1 #ifndef __HVMLOADER_E820_H__
2 #define __HVMLOADER_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 #define E820MAX	128
19 
20 struct e820map {
21     unsigned int nr_map;
22     struct e820entry map[E820MAX];
23 };
24 
25 #endif /* __HVMLOADER_E820_H__ */
26 
27 /*
28  * Local variables:
29  * mode: C
30  * c-file-style: "BSD"
31  * c-basic-offset: 4
32  * tab-width: 4
33  * indent-tabs-mode: nil
34  * End:
35  */
36