aboutsummaryrefslogtreecommitdiff
path: root/src/arch/i386/lib/pci_ops_conf1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/i386/lib/pci_ops_conf1.c')
-rw-r--r--src/arch/i386/lib/pci_ops_conf1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/i386/lib/pci_ops_conf1.c b/src/arch/i386/lib/pci_ops_conf1.c
index b4181e39bc..4c4cd672e6 100644
--- a/src/arch/i386/lib/pci_ops_conf1.c
+++ b/src/arch/i386/lib/pci_ops_conf1.c
@@ -8,7 +8,11 @@
* Functions for accessing PCI configuration space with type 1 accesses
*/
+#if PCI_IO_CFG_EXT == 0
#define CONFIG_CMD(bus,devfn, where) (0x80000000 | (bus << 16) | (devfn << 8) | (where & ~3))
+#else
+#define CONFIG_CMD(bus,devfn, where) (0x80000000 | (bus << 16) | (devfn << 8) | ((where & 0xff) & ~3) | ((where & 0xf00)<<16) )
+#endif
static uint8_t pci_conf1_read_config8(struct bus *pbus, int bus, int devfn, int where)
{