summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-28 15:50:40 +0000
committerpeter <peter@FreeBSD.org>2000-05-28 15:50:40 +0000
commitcb68f6fdc05a6e458a724dc69fe05ae5ad9bfcee (patch)
treef2aef40edfd9b052cd29f7395bc25fcd94a35b10
parent3d3263476ea3c9efbc1896de413e89bb3ca6ac2c (diff)
downloadFreeBSD-src-cb68f6fdc05a6e458a724dc69fe05ae5ad9bfcee.zip
FreeBSD-src-cb68f6fdc05a6e458a724dc69fe05ae5ad9bfcee.tar.gz
Use correct register values. This one was in aic7xxx and advansys too.
-rw-r--r--sys/dev/dpt/dpt_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index ee2116c..20487bb 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -93,7 +93,7 @@ dpt_pci_attach (device_t dev)
io = bus_alloc_resource(dev, iotype, &rid, 0, ~0, 1, RF_ACTIVE);
}
#endif
- if (io == NULL && (command & PCI_COMMAND_IO_ENABLE) != 0) {
+ if (io == NULL && (command & PCIM_CMD_PORTEN) != 0) {
rid = DPT_PCI_IOADDR;
iotype = SYS_RES_IOPORT;
io = bus_alloc_resource(dev, iotype, &rid, 0, ~0, 1, RF_ACTIVE);
OpenPOWER on IntegriCloud