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>
This commit is contained in:
Felix Held 2023-06-05 15:09:14 +02:00
parent 728399da76
commit 542abc1f49
1 changed files with 11 additions and 0 deletions

View File

@ -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 */