summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-06-05 15:09:14 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-06-06 15:43:39 +0000
commit542abc1f493034b1d7ee8f4c3e1ddc5703c30016 (patch)
treee90c55f52e4804f4b77e179f121c3295d6b122e3 /src/arch
parent728399da76ed6e8890a714eb277d8e9c52fb2e18 (diff)
downloadcoreboot-542abc1f493034b1d7ee8f4c3e1ddc5703c30016.tar.gz
coreboot-542abc1f493034b1d7ee8f4c3e1ddc5703c30016.tar.bz2
coreboot-542abc1f493034b1d7ee8f4c3e1ddc5703c30016.zip
arch/x86/include/arch/vga: add defines for VGA MMIO addresses
To avoid magic constants in the code, add defines for the VGA MMIO address range from 0xa0000-0xbffff. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ie4a4f39a4e876bbba59620d689cd56c3c286daae Reviewed-on: https://review.coreboot.org/c/coreboot/+/75618 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/include/arch/vga.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/vga.h b/src/arch/x86/include/arch/vga.h
new file mode 100644
index 000000000000..b82d63530b1c
--- /dev/null
+++ b/src/arch/x86/include/arch/vga.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef ARCH_X86_VGA_H
+#define ARCH_X86_VGA_H
+
+/* VGA MMIO and SMM ASEG share the same address range */
+#define VGA_MMIO_BASE 0xa0000
+#define VGA_MMIO_SIZE 0x20000
+#define VGA_MMIO_LIMIT (VGA_MMIO_BASE + VGA_MMIO_SIZE - 1)
+
+#endif /* ARCH_X86_VGA_H */