diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-07-11 19:17:28 +0200 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2024-08-09 20:45:23 +0000 |
commit | 4d90a33a3138583a31e235a23fd2c80b7b5d37e6 (patch) | |
tree | d9832f925deb8ce7b5e0ebb0da4a05365c085334 /src | |
parent | a7c05f5a666f4e264e40f4ad244c96b8e40507df (diff) |
mb/emulation/qemu-q35: Move QEMU specific macros to "q35.h"
As `qemu-q35/memmap.c` includes `qemu-q35/q35.h`, move macros into q35.h
file.
Change-Id: I0bf13def8bc4510053f6bb44e043bbcb0b958b01
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83407
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/emulation/qemu-q35/memmap.c | 4 | ||||
-rw-r--r-- | src/mainboard/emulation/qemu-q35/q35.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mainboard/emulation/qemu-q35/memmap.c b/src/mainboard/emulation/qemu-q35/memmap.c index 9b391d65c8..d57b25c2e3 100644 --- a/src/mainboard/emulation/qemu-q35/memmap.c +++ b/src/mainboard/emulation/qemu-q35/memmap.c @@ -34,10 +34,6 @@ void mainboard_machine_check(void) die("You must run qemu for machine Q35 (-M q35)"); } -/* QEMU-specific register */ -#define EXT_TSEG_MBYTES 0x50 -#define C_BASE_SEG ((0 << 2) | (1 << 1) | (0 << 0)) - /* 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 ae0fa38fab..6dee5f1cd3 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 |