tools/firmware/rombios/e820.h
raw| 1 | #ifndef __ROMBIOS_E820_H__ |
| 2 | #define __ROMBIOS_E820_H__ |
| 3 | |
| 4 | /* |
| 5 | * PC BIOS standard E820 types and structure. |
| 6 | */ |
| 7 | #define E820_RAM 1 |
| 8 | #define E820_RESERVED 2 |
| 9 | #define E820_ACPI 3 |
| 10 | #define E820_NVS 4 |
| 11 | |
| 12 | struct e820entry { |
| 13 | uint64_t addr; |
| 14 | uint64_t size; |
| 15 | uint32_t type; |
| 16 | } __attribute__((packed)); |
| 17 | |
| 18 | #endif /* __ROMBIOS_E820_H__ */ |