From 0c9d146093be6fe0c6076c0d7f7b80a09f4a26ed Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 28 May 2000 16:38:28 +0000 Subject: Oops, nearly forgot to commit this one. Use correct register names, or this will not compile without COMPAT_OLDPCI. --- sys/dev/an/if_an_pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/an') 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); -- cgit v1.1