mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Pass the table address as a paramter to the build function and cause it to return the number of entries. Pass both base and offset as parameters to the dump function. This adds a duplicated e820.h header to ROMBIOS. Since the e820 data structure is well defined by existing BIOS implementations I think this is OK and simplifies the cross talk between hvmloader and ROMBIOS. Reduces the cross talk between ROMBIOS and hvmloader. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org>
19 lines
357 B
C
19 lines
357 B
C
#ifndef __ROMBIOS_E820_H__
|
|
#define __ROMBIOS_E820_H__
|
|
|
|
/*
|
|
* PC BIOS standard E820 types and structure.
|
|
*/
|
|
#define E820_RAM 1
|
|
#define E820_RESERVED 2
|
|
#define E820_ACPI 3
|
|
#define E820_NVS 4
|
|
|
|
struct e820entry {
|
|
uint64_t addr;
|
|
uint64_t size;
|
|
uint32_t type;
|
|
} __attribute__((packed));
|
|
|
|
#endif /* __ROMBIOS_E820_H__ */
|