summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/arch-qemu/qemu.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-09-10 08:52:00 -0400
committerTom Rini <trini@konsulko.com>2019-09-10 08:52:00 -0400
commit001c8ea94ae710d8340829237a7d788b25ce2ae7 (patch)
treebbc7a63fc5958c9f1aa7715809d13407dcaa390d /arch/x86/include/asm/arch-qemu/qemu.h
parent3aec234e3f0a35c5d07ae5bb8d4c8dfea4aaf204 (diff)
parentdd4faa964f0741c314b4f1c09f27c07aedc5cdf0 (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86
- Tangier ACPI table fixes - Support getting high memory size on QEMU x86 - Show UEFI images involved in crash for x86 - EFI loader conventional memory map fix
Diffstat (limited to 'arch/x86/include/asm/arch-qemu/qemu.h')
-rw-r--r--arch/x86/include/asm/arch-qemu/qemu.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-qemu/qemu.h b/arch/x86/include/asm/arch-qemu/qemu.h
index 100eb8e646..061735b298 100644
--- a/arch/x86/include/asm/arch-qemu/qemu.h
+++ b/arch/x86/include/asm/arch-qemu/qemu.h
@@ -32,9 +32,27 @@
#define LOW_RAM_ADDR 0x34
#define HIGH_RAM_ADDR 0x35
+#define LOW_HIGHRAM_ADDR 0x5b
+#define MID_HIGHRAM_ADDR 0x5c
+#define HIGH_HIGHRAM_ADDR 0x5d
+
/* PM registers */
#define PMBA 0x40
#define PMREGMISC 0x80
#define PMIOSE (1 << 0)
+/**
+ * qemu_get_low_memory_size() - Get low memory size
+ *
+ * @return: size of memory below 4GiB
+ */
+u32 qemu_get_low_memory_size(void);
+
+/**
+ * qemu_get_high_memory_size() - Get high memory size
+ *
+ * @return: size of memory above 4GiB
+ */
+u64 qemu_get_high_memory_size(void);
+
#endif /* _ARCH_QEMU_H_ */