summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-04-01 02:49:04 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-04-01 02:49:04 +0000
commit6424c22051b6f810c5dc80f321724f94280910ec (patch)
tree66d8f728623cb8b90b7db699c58d7400f14ae7fe /sys
parenta81b4256e53e92636c0c1d41a925d343d2c9d60a (diff)
0 -> prodidx. breakage for 5700 Bx workaround introduced in rev 1.21
Noticed/tested by aaron@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_bge.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index b19f2f9d985..80874e43a4e 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.55 2005/03/27 16:14:43 krw Exp $ */
+/* $OpenBSD: if_bge.c,v 1.56 2005/04/01 02:49:03 brad Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
* Copyright (c) 1997, 1998, 1999, 2001
@@ -937,11 +937,11 @@ bge_init_tx_ring(sc)
sc->bge_tx_saved_considx = 0;
CSR_WRITE_4(sc, BGE_MBX_TX_HOST_PROD0_LO, 0);
- if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG) /* 5700 b2 errata */
+ if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG)
CSR_WRITE_4(sc, BGE_MBX_TX_HOST_PROD0_LO, 0);
CSR_WRITE_4(sc, BGE_MBX_TX_NIC_PROD0_LO, 0);
- if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG) /* 5700 b2 errata */
+ if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG)
CSR_WRITE_4(sc, BGE_MBX_TX_NIC_PROD0_LO, 0);
for (i = 0; i < BGE_TX_RING_CNT; i++) {
@@ -2752,8 +2752,8 @@ bge_start(ifp)
/* Transmit */
CSR_WRITE_4(sc, BGE_MBX_TX_HOST_PROD0_LO, prodidx);
- if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG) /* 5700 b2 errata */
- CSR_WRITE_4(sc, BGE_MBX_TX_HOST_PROD0_LO, 0);
+ if (sc->bge_quirks & BGE_QUIRK_PRODUCER_BUG)
+ CSR_WRITE_4(sc, BGE_MBX_TX_HOST_PROD0_LO, prodidx);
/*
* Set a timeout in case the chip goes out to lunch.