diff options
author | phk <phk@FreeBSD.org> | 2000-10-29 09:59:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-10-29 09:59:28 +0000 |
commit | 432251409700beddd8204fc2cddf2e6bd0f5b1ca (patch) | |
tree | c0618d6ddd8e15376523fe2fb79f175d5d933429 | |
parent | 6f8edb50c6d8904d12219526a9ccc789f8a782fb (diff) | |
download | FreeBSD-src-432251409700beddd8204fc2cddf2e6bd0f5b1ca.zip FreeBSD-src-432251409700beddd8204fc2cddf2e6bd0f5b1ca.tar.gz |
Fix params passed to pci_porten() and pci_memen().
-rw-r--r-- | sys/dev/pci/pci.c | 4 | ||||
-rw-r--r-- | sys/pci/pci.c | 4 |
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 |