Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/75618?usp=email )
Change subject: arch/x86/include/arch/vga: add defines for VGA MMIO addresses ......................................................................
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 --- A src/arch/x86/include/arch/vga.h 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/75618/1
diff --git a/src/arch/x86/include/arch/vga.h b/src/arch/x86/include/arch/vga.h new file mode 100644 index 0000000..f2d512d --- /dev/null +++ b/src/arch/x86/include/arch/vga.h @@ -0,0 +1,13 @@ +/* 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_LENGTH 0x20000 +#define VGA_MMIO_LIMIT (VGA_MMIO_BASE + VGA_MMIO_LENGTH - 1) + + +#endif /* ARCH_X86_VGA_H */ +