summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-10-17 06:48:47 +0000
committerdfr <dfr@FreeBSD.org>1999-10-17 06:48:47 +0000
commit800e3b1e2f0bd1b4156bf28a30ec20ef1de2e6a8 (patch)
tree587931ea3d94776fb3976d8c85434782e10a78c5 /sys
parent8c211e8c8b6890d181b64632ddf5f2e97146d428 (diff)
downloadFreeBSD-src-800e3b1e2f0bd1b4156bf28a30ec20ef1de2e6a8.zip
FreeBSD-src-800e3b1e2f0bd1b4156bf28a30ec20ef1de2e6a8.tar.gz
Correct a stupid type which prevented us from working with any device
which needed port resources.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c2
-rw-r--r--sys/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index f5da2d8..ca3de94 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1032,7 +1032,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
#endif
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
continue;
- if (type == SYS_RES_IOPORT && !pci_memen(cfg))
+ if (type == SYS_RES_MEMORY && !pci_memen(cfg))
continue;
resource_list_add(rl, type, reg,
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index f5da2d8..ca3de94 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -1032,7 +1032,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
#endif
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
continue;
- if (type == SYS_RES_IOPORT && !pci_memen(cfg))
+ if (type == SYS_RES_MEMORY && !pci_memen(cfg))
continue;
resource_list_add(rl, type, reg,
OpenPOWER on IntegriCloud