summaryrefslogtreecommitdiffstats
path: root/sys/dev/de
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-10-26 07:40:11 +0000
committerdg <dg@FreeBSD.org>1995-10-26 07:40:11 +0000
commit440393bb4465ace7d36918c929198d5b40ca1701 (patch)
treebd057dfe7b74ebb1e92f6f574649ea86e59f2853 /sys/dev/de
parent6123290e321829bb6ec8f98e3ac6d0673a2ba34c (diff)
downloadFreeBSD-src-440393bb4465ace7d36918c929198d5b40ca1701.zip
FreeBSD-src-440393bb4465ace7d36918c929198d5b40ca1701.tar.gz
From Matt Thomas:
"I screwed the initialization of the burstsize. Right now it will default to 0 (which can cause corruption problems on high latency PCI buses). It should be set to 8 longwords to avoid problems with certain PCI chipsets." Submitted by: Matt Thomas <matt@lkg.dec.com>
Diffstat (limited to 'sys/dev/de')
-rw-r--r--sys/dev/de/if_de.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 9b459f9..c9de6a6 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_de.c,v 1.33 1995/10/07 20:34:30 davidg Exp $
+ * $Id: if_de.c,v 1.34 1995/10/13 19:48:03 wollman Exp $
*
*/
@@ -919,7 +919,8 @@ tulip_reset(
TULIP_WRITE_CSR(sc, csr_txlist, vtophys(&sc->tulip_txinfo.ri_first[0]));
TULIP_WRITE_CSR(sc, csr_rxlist, vtophys(&sc->tulip_rxinfo.ri_first[0]));
TULIP_WRITE_CSR(sc, csr_busmode,
- ((1 << TULIP_BURSTSIZE(sc->tulip_unit)) << 8)|TULIP_BUSMODE_CACHE_ALIGN8
+ (1 << (TULIP_BURSTSIZE(sc->tulip_unit) + 8))
+ |TULIP_BUSMODE_CACHE_ALIGN8
|(BYTE_ORDER != LITTLE_ENDIAN ? TULIP_BUSMODE_BIGENDIAN : 0));
sc->tulip_txq.ifq_maxlen = TULIP_TXDESCS;
OpenPOWER on IntegriCloud