summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-02-10 16:54:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-02-10 16:54:24 +0000
commit212fea9140bdf68f4d890a81bdb3b9a0078bf7b5 (patch)
tree8e5f50ac4fc763cf71edf5f8784dcb1db0842b6c /sys/dev
parente0860560cd16db945fe38123ee69f135ce502568 (diff)
Set reserved bits in the TX Configuration Register the value from the Sun docs.
Seems to fix watchdog timeout issues in Sun ERI variants. tested by a few
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 78d99d023d0..aea5eb45d27 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gem.c,v 1.72 2008/02/08 15:03:36 thib Exp $ */
+/* $OpenBSD: gem.c,v 1.73 2008/02/10 16:54:23 kettenis Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -762,7 +762,7 @@ gem_init(struct ifnet *ifp)
v = gem_ringsize(GEM_NTXDESC /*XXX*/);
bus_space_write_4(t, h, GEM_TX_CONFIG,
v|GEM_TX_CONFIG_TXDMA_EN|
- ((0x400<<10)&GEM_TX_CONFIG_TXFIFO_TH));
+ ((0x4ff<<10)&GEM_TX_CONFIG_TXFIFO_TH));
bus_space_write_4(t, h, GEM_TX_KICK, 0);
/* step 10. ERX Configuration */