summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2002-09-20 15:16:06 +0000
committermbr <mbr@FreeBSD.org>2002-09-20 15:16:06 +0000
commitbca2116b2401b5ec867f1d037f2f921a1d429b68 (patch)
tree5aac4e29aeadee5143ad523cf6d52d0d10e177fa /sys/pci/if_dc.c
parent7fd38535eae3b6a4d4995a5d64312946ac90c975 (diff)
downloadFreeBSD-src-bca2116b2401b5ec867f1d037f2f921a1d429b68.zip
FreeBSD-src-bca2116b2401b5ec867f1d037f2f921a1d429b68.tar.gz
Enable the automatic TX underrun recovery for the ADMtek chips.
This solves cvsup update on my laptop which aborts after a while without this patch. PR: 34236 Reviewed by: phk MFC after: 2 weeks
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 01ebb9e..e16e2f9 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -1482,6 +1482,9 @@ dc_setcfg(sc, media)
}
}
+ if (DC_IS_ADMTEK(sc))
+ DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
+
if ((media & IFM_GMASK) == IFM_FDX) {
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_FULLDUPLEX);
if (sc->dc_pmode == DC_PMODE_SYM && DC_IS_PNIC(sc))
OpenPOWER on IntegriCloud