From 94278c74bb09aa7354150b75c09fdcef8c18f271 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 28 May 2000 16:06:56 +0000 Subject: Use the correct name for the PCI command register (PCIR_COMMAND). Don't use constant that used to be a variable in our (very) old pci code. --- sys/dev/de/if_de.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index e949c9413eb1..3b2a4fbf93a0 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -3196,7 +3196,7 @@ tulip_reset( TULIP_CSR_WRITE(sc, csr_rxlist, TULIP_KVATOPHYS(sc, &sc->tulip_rxinfo.ri_first[0])); #endif TULIP_CSR_WRITE(sc, csr_busmode, - (1 << (pci_max_burst_len + 8)) + (1 << (3 /*pci_max_burst_len*/ + 8)) |TULIP_BUSMODE_CACHE_ALIGN8 |TULIP_BUSMODE_READMULTIPLE |(BYTE_ORDER != LITTLE_ENDIAN ? @@ -5136,12 +5136,12 @@ tulip_pci_attach(device_t dev) revinfo = pci_get_revid(dev); cfdainfo = pci_read_config(dev, PCI_CFDA, 4); - cfcsinfo = pci_read_config(dev, PCI_COMMAND_STATUS_REG, 4); + cfcsinfo = pci_read_config(dev, PCIR_COMMAND, 4); /* turn busmaster on in case BIOS doesn't set it */ if(!(cfcsinfo & PCIM_CMD_BUSMASTEREN)) { cfcsinfo |= PCIM_CMD_BUSMASTEREN; - pci_write_config(dev, PCI_COMMAND_STATUS_REG, cfcsinfo, 4); + pci_write_config(dev, PCIR_COMMAND, cfcsinfo, 4); } if (pci_get_vendor(dev) == DEC_VENDORID) { -- cgit v1.3