summaryrefslogtreecommitdiff
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-05-28 15:50:40 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-05-28 15:50:40 +0000
commit403b9111fba837401a10943f2133fbf5e166196a (patch)
tree18feb9c36716d75b1f3429881f893815be5d2fa2 /sys/dev/dpt
parent31891bc2bd5a74cac2022601b17759f8e9764c64 (diff)
Notes
Diffstat (limited to 'sys/dev/dpt')
-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 ee2116cc9fff..20487bb9cf40 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);