From 403b9111fba837401a10943f2133fbf5e166196a Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 28 May 2000 15:50:40 +0000 Subject: Use correct register values. This one was in aic7xxx and advansys too. --- sys/dev/dpt/dpt_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') 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); -- cgit v1.3