Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83407?usp=email )
Change subject: emulation/qemu-q35: Move QEMU specific macros to "q35.h" ......................................................................
emulation/qemu-q35: Move QEMU specific macros to "q35.h"
Change-Id: I0bf13def8bc4510053f6bb44e043bbcb0b958b01 Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/mainboard/emulation/qemu-q35/memmap.c M src/mainboard/emulation/qemu-q35/q35.h 2 files changed, 3 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/83407/1
diff --git a/src/mainboard/emulation/qemu-q35/memmap.c b/src/mainboard/emulation/qemu-q35/memmap.c index 150ea11..d57b25c 100644 --- a/src/mainboard/emulation/qemu-q35/memmap.c +++ b/src/mainboard/emulation/qemu-q35/memmap.c @@ -34,19 +34,6 @@ die("You must run qemu for machine Q35 (-M q35)"); }
-/* QEMU-specific register */ -#define EXT_TSEG_MBYTES 0x50 -#define SMRAMC 0x9d -#define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0)) -#define G_SMRAME (1 << 3) -#define D_LCK (1 << 4) -#define D_CLS (1 << 5) -#define D_OPEN (1 << 6) -#define ESMRAMC 0x9e -#define T_EN (1 << 0) -#define TSEG_SZ_MASK (3 << 1) -#define H_SMRAME (1 << 7) - /* Decodes TSEG region size to bytes. */ static size_t decode_tseg_size(u8 esmramc) { diff --git a/src/mainboard/emulation/qemu-q35/q35.h b/src/mainboard/emulation/qemu-q35/q35.h index ae0fa38..6dee5f1 100644 --- a/src/mainboard/emulation/qemu-q35/q35.h +++ b/src/mainboard/emulation/qemu-q35/q35.h @@ -8,6 +8,9 @@
#define HOST_BRIDGE PCI_DEV(0, 0, 0)
+#define EXT_TSEG_MBYTES 0x50 +#define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0)) + #define D0F0_PCIEXBAR_LO 0x60 #define D0F0_PCIEXBAR_HI 0x64