diff options
Diffstat (limited to 'tools/iso/kernel.soso/multiboot.h')
-rw-r--r-- | tools/iso/kernel.soso/multiboot.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/iso/kernel.soso/multiboot.h b/tools/iso/kernel.soso/multiboot.h new file mode 100644 index 00000000..d42e6ef8 --- /dev/null +++ b/tools/iso/kernel.soso/multiboot.h @@ -0,0 +1,44 @@ +#ifndef MULTIBOOT_H +#define MULTIBOOT_H + +#include "common.h" + +#define MULTIBOOT_FRAMEBUFFER_TYPE_INDEXED 0 +#define MULTIBOOT_FRAMEBUFFER_TYPE_RGB 1 +#define MULTIBOOT_FRAMEBUFFER_TYPE_EGA_TEXT 2 + +struct Multiboot { + uint32 flags; + uint32 mem_lower; + uint32 mem_upper; + uint32 boot_device; + uint32 cmdline; + uint32 mods_count; + uint32 mods_addr; + uint32 num; + uint32 size; + uint32 addr; + uint32 shndx; + uint32 mmap_length; + uint32 mmap_addr; + uint32 drives_length; + uint32 drives_addr; + uint32 config_table; + uint32 boot_loader_name; + uint32 apm_table; + uint32 vbe_control_info; + uint32 vbe_mode_info; + uint16 vbe_mode; + uint16 vbe_interface_seg; + uint16 vbe_interface_off; + uint16 vbe_interface_len; + + uint64 framebuffer_addr; + uint32 framebuffer_pitch; + uint32 framebuffer_width; + uint32 framebuffer_height; + uint8 framebuffer_bpp; + uint8 framebuffer_type; +} __attribute__((packed)); + +#endif |