From aec951eb3af961953f9e8152fd05f32e11b11f36 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 23 May 2023 19:48:15 +0200 Subject: [PATCH] arch/x86/include/arch/pci_io_cfg: add IO port count & last port defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PCI config space access via IO ports uses two 32 bit IO ports. Signed-off-by: Felix Held Change-Id: Ie99b4f5fc01fb0405243ff108d813ee1a3d35e5d Reviewed-on: https://review.coreboot.org/c/coreboot/+/75408 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/pci_io_cfg.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/include/arch/pci_io_cfg.h b/src/arch/x86/include/arch/pci_io_cfg.h index 45c757c95b..288bbc2eff 100644 --- a/src/arch/x86/include/arch/pci_io_cfg.h +++ b/src/arch/x86/include/arch/pci_io_cfg.h @@ -7,8 +7,10 @@ #include #include -#define PCI_IO_CONFIG_INDEX 0xcf8 -#define PCI_IO_CONFIG_DATA 0xcfc +#define PCI_IO_CONFIG_INDEX 0xcf8 +#define PCI_IO_CONFIG_DATA 0xcfc +#define PCI_IO_CONFIG_PORT_COUNT 8 +#define PCI_IO_CONFIG_LAST_PORT (PCI_IO_CONFIG_INDEX + PCI_IO_CONFIG_PORT_COUNT - 1) static __always_inline uint32_t pci_io_encode_addr(pci_devfn_t dev, uint16_t reg)