diff options
author | Peter Wemm <peter@FreeBSD.org> | 2000-05-28 16:38:28 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2000-05-28 16:38:28 +0000 |
commit | 2ce54ad34d97950b4bb7747107462e6774a289e8 (patch) | |
tree | 2c9e5916c556a00e73fe75f2ccab17ee08e75d0e /sys/dev/an | |
parent | 30d1c11e3a9867b6b945ba9b16f76df61ccfa822 (diff) | |
download | src-2ce54ad34d97950b4bb7747107462e6774a289e8.tar.gz src-2ce54ad34d97950b4bb7747107462e6774a289e8.zip |
Oops, nearly forgot to commit this one. Use correct register names, or
this will not compile without COMPAT_OLDPCI.
Notes
Notes:
svn path=/head/; revision=61048
Diffstat (limited to 'sys/dev/an')
-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 4b455e0cc8f4..987def3c2f3a 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); |