2024-01-29 00:22:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory.h>
|
|
|
|
|
2024-02-01 17:48:55 +00:00
|
|
|
#define CMDLINE_MAX 32
|
|
|
|
#define MMAP_MAX_ENTRY 64
|
2024-01-30 21:46:38 +00:00
|
|
|
|
2024-01-31 17:49:06 +00:00
|
|
|
struct memory_segment {
|
|
|
|
uint64_t addr;
|
|
|
|
uint64_t len;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct memory_map {
|
|
|
|
uint32_t entry_count;
|
2024-02-01 17:48:55 +00:00
|
|
|
struct memory_segment entries[MMAP_MAX_ENTRY];
|
2024-01-31 17:49:06 +00:00
|
|
|
};
|
|
|
|
|
2024-02-03 05:50:07 +00:00
|
|
|
struct framebuffer {
|
|
|
|
uint64_t addr;
|
|
|
|
uint32_t pitch;
|
|
|
|
uint32_t width;
|
|
|
|
uint32_t height;
|
|
|
|
uint8_t bit_depth;
|
|
|
|
};
|
2024-02-02 17:21:06 +00:00
|
|
|
|
2024-01-29 00:22:09 +00:00
|
|
|
struct boot_info {
|
2024-01-31 17:49:06 +00:00
|
|
|
struct memory_map map;
|
2024-02-03 05:50:07 +00:00
|
|
|
struct framebuffer fb;
|
2024-01-30 21:55:15 +00:00
|
|
|
void *symbol_table;
|
2024-01-30 21:46:38 +00:00
|
|
|
void *acpi_table;
|
|
|
|
char cmdline[CMDLINE_MAX];
|
2024-01-29 00:22:09 +00:00
|
|
|
};
|