From 542abc1f493034b1d7ee8f4c3e1ddc5703c30016 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 5 Jun 2023 15:09:14 +0200 Subject: [PATCH] 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 Change-Id: Ie4a4f39a4e876bbba59620d689cd56c3c286daae Reviewed-on: https://review.coreboot.org/c/coreboot/+/75618 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/vga.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/arch/x86/include/arch/vga.h diff --git a/src/arch/x86/include/arch/vga.h b/src/arch/x86/include/arch/vga.h new file mode 100644 index 0000000000..b82d63530b --- /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 */