Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/75618?usp=email )
(
3 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )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 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 --- A src/arch/x86/include/arch/vga.h 1 file changed, 11 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Eric Lai: Looks good to me, approved
diff --git a/src/arch/x86/include/arch/vga.h b/src/arch/x86/include/arch/vga.h new file mode 100644 index 0000000..b82d635 --- /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 */