diff options
Diffstat (limited to 'sys/pci/if_wb.c')
-rw-r--r-- | sys/pci/if_wb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 78d0c0a..2f8b60a 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -852,10 +852,10 @@ static int wb_attach(dev) /* * Map control/status registers. */ - command = pci_read_config(dev, PCI_COMMAND_STATUS_REG, 4); + command = pci_read_config(dev, PCIR_COMMAND, 4); command |= (PCIM_CMD_PORTEN|PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN); - pci_write_config(dev, PCI_COMMAND_STATUS_REG, command, 4); - command = pci_read_config(dev, PCI_COMMAND_STATUS_REG, 4); + pci_write_config(dev, PCIR_COMMAND, command, 4); + command = pci_read_config(dev, PCIR_COMMAND, 4); #ifdef WB_USEIOSPACE if (!(command & PCIM_CMD_PORTEN)) { |