Use correct register values. This one was in aic7xxx and advansys too.

This commit is contained in:
Peter Wemm 2000-05-28 15:50:40 +00:00
parent 31891bc2bd
commit 403b9111fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61037

View file

@ -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);