summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c4
-rw-r--r--sys/pci/pci.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 5bf9b37..8860582 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1005,9 +1005,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg,
PCIB_WRITE_CONFIG(pcib, b, s, f, PCIR_COMMAND, cmd, 2);
}
#else
- if (type == SYS_RES_IOPORT && !pci_porten(cfg))
+ if (type == SYS_RES_IOPORT && !pci_porten(pcib, b, s, f))
return 1;
- if (type == SYS_RES_MEMORY && !pci_memen(cfg))
+ if (type == SYS_RES_MEMORY && !pci_memen(pcib, b, s, f))
return 1;
#endif
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 5bf9b37..8860582 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -1005,9 +1005,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg,
PCIB_WRITE_CONFIG(pcib, b, s, f, PCIR_COMMAND, cmd, 2);
}
#else
- if (type == SYS_RES_IOPORT && !pci_porten(cfg))
+ if (type == SYS_RES_IOPORT && !pci_porten(pcib, b, s, f))
return 1;
- if (type == SYS_RES_MEMORY && !pci_memen(cfg))
+ if (type == SYS_RES_MEMORY && !pci_memen(pcib, b, s, f))
return 1;
#endif
OpenPOWER on IntegriCloud