Wedson Almeida Filho | fdf4afc | 2018-07-19 15:45:21 +0100 | [diff] [blame^] | 1 | #ifndef _BOOT_PARAMS_H |
2 | #define _BOOT_PARAMS_H | ||||
3 | |||||
4 | #include <stdbool.h> | ||||
5 | |||||
6 | #include "mm.h" | ||||
7 | |||||
8 | struct boot_params { | ||||
9 | paddr_t mem_begin; | ||||
10 | paddr_t mem_end; | ||||
11 | paddr_t initrd_begin; | ||||
12 | paddr_t initrd_end; | ||||
13 | size_t kernel_arg; | ||||
14 | }; | ||||
15 | |||||
16 | struct boot_params_update { | ||||
17 | paddr_t reserved_begin; | ||||
18 | paddr_t reserved_end; | ||||
19 | paddr_t initrd_begin; | ||||
20 | paddr_t initrd_end; | ||||
21 | }; | ||||
22 | |||||
23 | bool plat_get_boot_params(struct boot_params *p); | ||||
24 | bool plat_update_boot_params(struct boot_params_update *p); | ||||
25 | |||||
26 | #endif /* _BOOT_PARAMS_H */ |