4#include_next <boot/boot.h>
19#define MULTIBOOT_MMAP_MAX 32
20#define MULTIBOOT_MODULES_MAX 32
36 while (_mmap < mmap_end && count < max) {
41 if (start < 0x100000000ULL) {
42 if (end > 0xFFFFFFFFULL || end < start)
48 boot_mmap[count++] = (
mmap_t) {
70 for (
unsigned i = 0; i < info->
mods_count && count < max; ++i) {
186 .end = paddr + yres * scanline,
void earlycon_fb_register(uintptr_t paddr, uint32_t scanline, uint32_t yres, uint32_t xres, uint32_t depth)
Registers the boot loader's framebuffer, for the early console.
static int build_multiboot_modules(multiboot_info_t *info, module_t *modules, int max)
static struct boot * process_multiboot_info(multiboot_info_t *info)
#define MULTIBOOT_MODULES_MAX
static int build_multiboot_mmap(multiboot_info_t *info, mmap_t *boot_mmap, int max)
#define MULTIBOOT_MMAP_MAX
struct elf32_sym elf_sym_t
struct elf32_shdr elf_shdr_t
int fbdev_register(int type, void *data)
Registers a framebuffer, which fbdev_probe() sets up with its driver.
multiboot.h - Multiboot header file.
struct multiboot_mmap_entry multiboot_mmap_t
#define MULTIBOOT_INFO_FRAMEBUFFER_INFO
#define MULTIBOOT_INFO_MEMORY
#define MULTIBOOT_INFO_VIDEO_INFO
#define MULTIBOOT_INFO_MEM_MAP
#define MULTIBOOT_FRAMEBUFFER_TYPE_RGB
struct multiboot_mod_list multiboot_module_t
struct multiboot_info multiboot_info_t
#define MULTIBOOT_INFO_MODS
#define MULTIBOOT_INFO_ELF_SHDR
#define MULTIBOOT_INFO_CMDLINE
unsigned long long int uint64_t
The boot loader's VBE framebuffer: what VBE said about the card and the mode (dev/fb/vesa/).
struct mode_info_block * mode_info
struct vbe_info_block * vbe_info
A VBE mode's information block.
uint8_t red_field_position
uint16_t bytes_per_scanline
uint8_t blue_field_position
uint8_t green_field_position
uint16_t lin_bytes_per_scanline
uint32_t vbe_control_info
uint32_t framebuffer_pitch
union multiboot_info::@271253110040301035057036353331356106057115263040 u
uint8_t framebuffer_color_info[6]
uint64_t framebuffer_addr
uint32_t framebuffer_width
uint32_t framebuffer_height
The VBE controller information block.