From f4b8af3b7cf7885854cec2d74b56a3a2ed2bdc26 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Tue, 13 Mar 2001 06:02:01 +0000 Subject: The prescence of a DL10019 does not appear to imply a 24k buffer size. Always use an 8k buffer for NE1000 cards, 16k otherwise. This is likely sub-optimal, but at least it fixes the D-Link DE660 card, which hasn't worked since last August (and it seems like a fairly common model). fgsch@ ok. Thanks to Felix Kronlage who donated a test card and dongle for me to debug with. --- sys/dev/ic/ne2000.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sys/dev/ic/ne2000.c') diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c index cd6906f2591..e49dd3e2f81 100644 --- a/sys/dev/ic/ne2000.c +++ b/sys/dev/ic/ne2000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ne2000.c,v 1.9 2001/03/12 05:36:58 aaron Exp $ */ +/* $OpenBSD: ne2000.c,v 1.10 2001/03/13 06:02:00 aaron Exp $ */ /* $NetBSD: ne2000.c,v 1.12 1998/06/10 01:15:50 thorpej Exp $ */ /*- @@ -157,8 +157,7 @@ ne2000_attach(nsc, myea) dsc->sc_reg_map[i] = i; /* - * 8k of memory for NE1000, 16k for NE2000 and 24k for the - * card uses DL10019. + * 8k of memory for NE1000, 16k otherwise. */ switch (nsc->sc_type) { case NE2000_TYPE_NE1000: @@ -166,10 +165,8 @@ ne2000_attach(nsc, myea) break; case NE2000_TYPE_NE2000: case NE2000_TYPE_AX88190: /* XXX really? */ - memsize = 8192 * 2; - break; case NE2000_TYPE_DL10019: - memsize = 8192 * 3; + memsize = 8192 * 2; break; } -- cgit v1.2.3