arch/x86/include/arch/pci_io_cfg: add IO port count & last port defines
The PCI config space access via IO ports uses two 32 bit IO ports. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ie99b4f5fc01fb0405243ff108d813ee1a3d35e5d Reviewed-on: https://review.coreboot.org/c/coreboot/+/75408 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		| @@ -7,8 +7,10 @@ | ||||
| #include <arch/io.h> | ||||
| #include <device/pci_type.h> | ||||
|  | ||||
| #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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user