summaryrefslogtreecommitdiffstats
path: root/include/hw/i386/pc.h
diff options
context:
space:
mode:
authorGabriel L. Somlo2014-04-23 15:42:36 +0200
committerGerd Hoffmann2014-05-05 12:29:39 +0200
commit7bf8ef196e80bedec3c48017e3105e46548e7a7b (patch)
tree9682f521872ccf46182ebc613c5bc0d44ff716a0 /include/hw/i386/pc.h
parentpc: add 2.1 machine type (diff)
downloadqemu-7bf8ef196e80bedec3c48017e3105e46548e7a7b.tar.gz
qemu-7bf8ef196e80bedec3c48017e3105e46548e7a7b.tar.xz
qemu-7bf8ef196e80bedec3c48017e3105e46548e7a7b.zip
E820: Add interface for accessing e820 table
Add the following two functions: - e820_get_num_entries() - query the size of the e820 table - e820_get_entry() - grab an entry matching a given set of criteria This interface is currently necessary for creating type 19 (memory array mapped address) structures in smbios. Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/i386/pc.h')
-rw-r--r--include/hw/i386/pc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 9010246cb8..9f26e14bef 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -239,6 +239,8 @@ uint16_t pvpanic_port(void);
#define E820_UNUSABLE 5
int e820_add_entry(uint64_t, uint64_t, uint32_t);
+int e820_get_num_entries(void);
+bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *);
#define PC_Q35_COMPAT_1_7 \
PC_COMPAT_1_7, \