From 432251409700beddd8204fc2cddf2e6bd0f5b1ca Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 29 Oct 2000 09:59:28 +0000 Subject: Fix params passed to pci_porten() and pci_memen(). --- sys/dev/pci/pci.c | 4 ++-- sys/pci/pci.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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 -- cgit v1.1