include/linux/coreboot.h
Source file repositories/reference/linux-study-clean/include/linux/coreboot.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/coreboot.h- Extension
.h- Size
- 1940 bytes
- Lines
- 91
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/compiler_attributes.hlinux/stddef.hlinux/types.h
Detected Declarations
struct coreboot_table_entrystruct lb_cbmem_refstruct lb_cbmem_entrystruct lb_framebuffer
Annotated Snippet
struct coreboot_table_entry {
u32 tag;
u32 size;
};
/* Points to a CBMEM entry */
struct lb_cbmem_ref {
u32 tag;
u32 size;
cb_u64 cbmem_addr;
};
/* Corresponds to LB_TAG_CBMEM_ENTRY */
struct lb_cbmem_entry {
u32 tag;
u32 size;
cb_u64 address;
u32 entry_size;
u32 id;
};
#define LB_FRAMEBUFFER_ORIENTATION_NORMAL 0
#define LB_FRAMEBUFFER_ORIENTATION_BOTTOM_UP 1
#define LB_FRAMEBUFFER_ORIENTATION_LEFT_UP 2
#define LB_FRAMEBUFFER_ORIENTATION_RIGHT_UP 3
/* Describes framebuffer setup by coreboot */
struct lb_framebuffer {
u32 tag;
u32 size;
cb_u64 physical_address;
u32 x_resolution;
u32 y_resolution;
u32 bytes_per_line;
u8 bits_per_pixel;
u8 red_mask_pos;
u8 red_mask_size;
u8 green_mask_pos;
u8 green_mask_size;
u8 blue_mask_pos;
u8 blue_mask_size;
u8 reserved_mask_pos;
u8 reserved_mask_size;
u8 orientation;
};
/*
* True if the coreboot-provided data is large enough to hold information
* on the linear framebuffer. False otherwise.
*/
#define LB_FRAMEBUFFER_HAS_LFB(__fb) \
((__fb)->size >= offsetofend(struct lb_framebuffer, reserved_mask_size))
/*
* True if the coreboot-provided data is large enough to hold information
* on the display orientation. False otherwise.
*/
#define LB_FRAMEBUFFER_HAS_ORIENTATION(__fb) \
((__fb)->size >= offsetofend(struct lb_framebuffer, orientation))
#endif /* _LINUX_COREBOOT_H */
Annotation
- Immediate include surface: `linux/compiler_attributes.h`, `linux/stddef.h`, `linux/types.h`.
- Detected declarations: `struct coreboot_table_entry`, `struct lb_cbmem_ref`, `struct lb_cbmem_entry`, `struct lb_framebuffer`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.