diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-13 06:02:01 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2001-03-13 06:02:01 +0000 |
commit | f4b8af3b7cf7885854cec2d74b56a3a2ed2bdc26 (patch) | |
tree | 9f0e82885a5fc2a892d6da2e7c6bb7a2930a2a14 /sys/dev/ic/ne2000.c | |
parent | e3d757bc3f713cfb0fd02364a640d8eded8aa678 (diff) |
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.
Diffstat (limited to 'sys/dev/ic/ne2000.c')
-rw-r--r-- | sys/dev/ic/ne2000.c | 9 |
1 files changed, 3 insertions, 6 deletions
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; } |