diff options
author | peter <peter@FreeBSD.org> | 2000-05-28 16:02:05 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-28 16:02:05 +0000 |
commit | f19e7c1acc7e84d76f03037e137ffa5b905d2f98 (patch) | |
tree | c10bbd903780714bb1d0ab202bb5e3b1b0354a38 /sys | |
parent | 76506d9fe2ec1fbf30910ab2e5af58be135b75f9 (diff) | |
download | FreeBSD-src-f19e7c1acc7e84d76f03037e137ffa5b905d2f98.zip FreeBSD-src-f19e7c1acc7e84d76f03037e137ffa5b905d2f98.tar.gz |
Use the correct register names. s/PCI_COMMAND_STATUS_REG/PCIR_COMMAND/
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/dc/if_dc.c | 6 | ||||
-rw-r--r-- | sys/pci/if_dc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 7344561..a397fbe 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -1451,10 +1451,10 @@ static int dc_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 DC_USEIOSPACE if (!(command & PCIM_CMD_PORTEN)) { diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 7344561..a397fbe 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -1451,10 +1451,10 @@ static int dc_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 DC_USEIOSPACE if (!(command & PCIM_CMD_PORTEN)) { |