summaryrefslogtreecommitdiff
path: root/kernel/include/comus/mboot.h
blob: 036cc405d78d4cc96fb168423674791da32f3371 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
 * @file mboot.h
 *
 * @author Freya Murphy <freya@freyacat.org>
 *
 * Multiboot functions
 */

#ifndef MBOOT_H_
#define MBOOT_H_

#include <comus/memory.h>
#include <efi.h>

/**
 * Load the multiboot information passed from the bootloader
 */
void mboot_init(long magic, volatile void *mboot);

/**
 * Get the memory map from multiboot
 */
int mboot_get_mmap(struct memory_map *map);

/**
 * Get the ACPI rsdp addr from multiboot
 */
void *mboot_get_rsdp(void);

/**
 * Get elf symbols from multiboot
 */
const char *mboot_get_elf_sym(uint64_t addr);

/**
 * Returns EFI64 system table
 */
EFI_SYSTEM_TABLE *mboot_get_efi_st(void);

/**
 * Returns EFI64 image handle
 */
EFI_HANDLE mboot_get_efi_hdl(void);

#endif /* mboot.h */