summaryrefslogtreecommitdiff
path: root/include/shim.h
blob: e4457652c3494fe754baa1e8fd0f7b24576f2cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#include <memory.h>

#define CMDLINE_MAX     32
#define MMAP_MAX_ENTRY  64

struct memory_segment {
	uint64_t addr;
	uint64_t len;
};

struct memory_map {
	uint32_t entry_count;
	struct memory_segment entries[MMAP_MAX_ENTRY];
};

struct framebuffer {
	uint64_t addr;
	uint32_t pitch;
	uint32_t width;
	uint32_t height;
	uint8_t bit_depth;
};

struct boot_info {
	struct memory_map map;
	struct framebuffer fb;
	void *symbol_table;
	void *acpi_table;
	char cmdline[CMDLINE_MAX];
};