Module Name: src Committed By: tsutsui Date: Wed Mar 3 13:39:58 UTC 2010
Modified Files: src/sys/arch/x68k/dev: if_ne_intio.c if_ne_neptune.c src/sys/conf: files src/sys/dev/ic: ne2000.c ne2000var.h src/sys/dev/isa: if_ne_isa.c src/sys/dev/isapnp: if_ne_isapnp.c Log Message: Put several fixes to ne(4) driver for better 8 bit mode support, especially on RTL8019AS which is also used for non-ISA local bus of embedded controllers and some m68k machines like atari and x68k. * move RTL8019 probe and attach code from each bus attachment to MI ne2000_detect() and ne2000_attach() * change a method for backend and attachment to specify 8 bit mode to use a new sc->sc_quirk member, instead of sc->sc_dmawidth * handle more NE2000 8 bit mode specific settings, including bus_space(9) access width and available size of buffer memory * add a function to detect NE2000 8 bit mode (disabled by default, but enalbed by options NE2000_DETECT_8BIT to avoid possible regression on various ISA clones) * fix ipkdb attachment accordingly (untested) Tested on two NE2000 ISA variants (RTL8019AS and another clone named UL0001) in both 8 bit and 16 bit mode on i386. "Looks good" from non...@. See my post on tech-kern for details: http://mail-index.NetBSD.org/tech-kern/2010/02/26/msg007423.html To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x68k/dev/if_ne_intio.c cvs rdiff -u -r1.19 -r1.20 src/sys/arch/x68k/dev/if_ne_neptune.c cvs rdiff -u -r1.979 -r1.980 src/sys/conf/files cvs rdiff -u -r1.67 -r1.68 src/sys/dev/ic/ne2000.c cvs rdiff -u -r1.24 -r1.25 src/sys/dev/ic/ne2000var.h cvs rdiff -u -r1.26 -r1.27 src/sys/dev/isa/if_ne_isa.c cvs rdiff -u -r1.26 -r1.27 src/sys/dev/isapnp/if_ne_isapnp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.