diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-11-06 14:36:17 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2013-11-11 12:14:42 +0100 |
commit | baa782020e9d2d0ce7b6fd1c7c43411c9aa2b900 (patch) | |
tree | cef0d18a74e078b76e18100dd25001497ccc196c /src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h | |
parent | 289b45fdffa42db85fa4ad63338677ab8f15e9a2 (diff) |
qemu: load e820 from fw_cfg
qemu 1.7+ provides a fw_cfg file named "etc/e820" with e820-like entries
for reservations and ram regions. Use it for ram detection if present,
otherwise fallback to the traditional cmos method.
Change-Id: Icac6c99d2a053e59dfdd28e48d1ceb3d56a61bdc
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/4030
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h b/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h index d159f12d09..80e628032b 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg_if.h @@ -51,3 +51,9 @@ typedef struct FWCfgFiles { uint32_t count; FWCfgFile f[]; } FWCfgFiles; + +typedef struct FwCfgE820Entry { + uint64_t address; + uint64_t length; + uint32_t type; +} FwCfgE820Entry __attribute((__aligned__(4))); |