diff options
Diffstat (limited to 'sys/dev/an/if_an_pci.c')
-rw-r--r-- | sys/dev/an/if_an_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c index 4b455e0..987def3 100644 --- a/sys/dev/an/if_an_pci.c +++ b/sys/dev/an/if_an_pci.c @@ -147,10 +147,10 @@ static int an_attach_pci(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; - 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); if (!(command & PCIM_CMD_PORTEN)) { printf("an%d: failed to enable I/O ports!\n", unit); |