From 371f04811e075d79741d130e2043ec8e19044dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 23 Jan 2019 16:02:28 +0200 Subject: device/pci: Always define PCI_DEV() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has uses outside ARCH_x86 and/or __PRE_RAM__. Change-Id: I2eec674ec5ba4ffe03a20db0f73cf87e5e4b4d0d Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/31302 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/arch/x86/include/arch/io.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index 1a27994ca7..71e3ba00ae 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -205,11 +205,6 @@ static __always_inline void write64(volatile void *addr, #ifdef __SIMPLE_DEVICE__ -#define PCI_DEV(SEGBUS, DEV, FN) ( \ - (((SEGBUS) & 0xFFF) << 20) | \ - (((DEV) & 0x1F) << 15) | \ - (((FN) & 0x07) << 12)) - #define PCI_ID(VENDOR_ID, DEVICE_ID) \ ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF)) @@ -273,7 +268,6 @@ void pci_write_config32(pci_devfn_t dev, unsigned int where, uint32_t value) pci_io_write_config32(dev, where, value); } -#define PCI_DEV_INVALID (0xffffffffU) static inline pci_devfn_t pci_io_locate_device(unsigned int pci_id, pci_devfn_t dev) { -- cgit v1.2.3