summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 0ef88c3..ec18090 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -1776,8 +1776,8 @@ static int dc_attach(dev)
* Map control/status registers.
*/
pci_enable_busmaster(dev);
- pci_enable_io(dev, PCIM_CMD_PORTEN);
- pci_enable_io(dev, PCIM_CMD_MEMEN);
+ pci_enable_io(dev, SYS_RES_IOPORT);
+ pci_enable_io(dev, SYS_RES_MEMORY);
command = pci_read_config(dev, PCIR_COMMAND, 4);
#ifdef DC_USEIOSPACE
OpenPOWER on IntegriCloud