summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti/if_ti.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-28 16:13:43 +0000
committerpeter <peter@FreeBSD.org>2000-05-28 16:13:43 +0000
commitbe1e54079f39dc482e0c54b49e04515339fb8f39 (patch)
tree68c6ff8daa2bf911cca41003d1e54692ef777fc2 /sys/dev/ti/if_ti.c
parent41e3b1716fd36d13464188917371db1a7a320c0a (diff)
downloadFreeBSD-src-be1e54079f39dc482e0c54b49e04515339fb8f39.zip
FreeBSD-src-be1e54079f39dc482e0c54b49e04515339fb8f39.tar.gz
Use the correct register name. s/PCI_COMMAND_STATUS_REG/PCIR_COMMAND/
Diffstat (limited to 'sys/dev/ti/if_ti.c')
-rw-r--r--sys/dev/ti/if_ti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index fe4c861..54d7a86 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -1544,10 +1544,10 @@ static int ti_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_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);
if (!(command & PCIM_CMD_MEMEN)) {
printf("ti%d: failed to enable memory mapping!\n", unit);
OpenPOWER on IntegriCloud