diff options
author | peter <peter@FreeBSD.org> | 2000-05-28 16:38:28 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-28 16:38:28 +0000 |
commit | 0c9d146093be6fe0c6076c0d7f7b80a09f4a26ed (patch) | |
tree | 75ea7b5032f5c4a499739f82f70bcb185a459e3e /sys/dev/an/if_an_pci.c | |
parent | eda3ab65365eda15e04a893a46c7244b53638c94 (diff) | |
download | FreeBSD-src-0c9d146093be6fe0c6076c0d7f7b80a09f4a26ed.zip FreeBSD-src-0c9d146093be6fe0c6076c0d7f7b80a09f4a26ed.tar.gz |
Oops, nearly forgot to commit this one. Use correct register names, or
this will not compile without COMPAT_OLDPCI.
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); |