summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/de/if_de.c6
-rw-r--r--sys/pci/if_de.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index e949c94..3b2a4fb 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) {
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index e949c94..3b2a4fb 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/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) {
OpenPOWER on IntegriCloud