diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-08-05 14:33:51 +0200 |
| commit | bd7d4366b6643b5c6cd04f40dd32f5d9c9575fd6 (patch) | |
| tree | 92429e897be007d46c8f063a39a986df2124111a /include/multiboot2.h | |
| parent | be3274c49d0ca5e31daa855c4c109d830fdead67 (diff) | |
organised files; switched to recursive make
Diffstat (limited to 'include/multiboot2.h')
| -rw-r--r-- | include/multiboot2.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/multiboot2.h b/include/multiboot2.h deleted file mode 100644 index f22fd8e..0000000 --- a/include/multiboot2.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef MULTIBOOT2_H -#define MULTIBOOT2_H - -#include <stdint.h> - -struct mb2_tag_header { - uint32_t type; - uint32_t size; -} __attribute__((packed, aligned(8))); -typedef struct mb2_tag_header mb2_tag_header; - -struct mb2_tag_fb { - uint32_t type; - uint32_t size; - uint64_t framebuffer_addr; - uint32_t framebuffer_pitch; - uint32_t framebuffer_width; - uint32_t framebuffer_height; - uint8_t framebuffer_bpp; - uint8_t framebuffer_type; -} __attribute__((packed, aligned(8))); -typedef struct mb2_tag_fb mb2_tag_fb; - -// multiboot2 magic check -#define MB2_MAGIC 0x36D76289 - -// multiboot2 tag -#define MB2_TAG_END 0 -#define MB2_TAG_CMDLINE 1 -#define MB2_TAG_BOOTLOADER 2 -#define MB2_TAG_MODULES 3 -#define MB2_TAG_MEM 4 -#define MB2_TAG_BIOS 5 -#define MB2_TAG_MMAP 6 -#define MB2_TAG_VBE 7 -#define MB2_TAG_FB 8 - -void init_fb(mb2_tag_header* multiboot_bootinfo, uint32_t multiboot_magic); - -#endif |
