freebsd-skq/sys/conf
wpaul b39a79861d This commit adds device driver support for the ADMtek AN986 Pegasus
USB ethernet chip. Adapters that use this chip include the LinkSys
USB100TX. There are a few others, but I'm not certain of their
availability in the U.S. I used an ADMtek eval board for development.
Note that while the ADMtek chip is a 100Mbps device, you can't really
get 100Mbps speeds over USB. Regardless, this driver uses miibus to
allow speed and duplex mode selection as well as autonegotiation.
Building and kldloading the driver as a module is also supported.

Note that in order to make this driver work, I had to make what some
may consider an ugly hack to sys/dev/usb/usbdi.c. The usbd_transfer()
function will use tsleep() for synchronous transfers that don't complete
right away. This is a problem since there are times when we need to
do sync transfers from an interrupt context (i.e. when reading registers
from the MAC via the control endpoint), where tsleep() us a no-no.
My hack allows the driver to have the code poll for transfer completion
subject to the xfer->timeout timeout rather that calling tsleep().
This hack is controlled by a quirk entry and is only enabled for the
ADMtek device.

Now, I'm sure there are a few of you out there ready to jump on me
and suggest some other approach that doesn't involve a busy wait. The
only solution that might work is to handle the interrupts in a kernel
thread, where you may have something resembling a process context that
makes it okay to tsleep(). This is lovely, except we don't have any
mechanism like that now, and I'm not about to implement such a thing
myself since it's beyond the scope of driver development. (Translation:
I'll be damned if I know how to do it.) If FreeBSD ever aquires such
a mechanism, I'll be glad to revisit the driver to take advantage of
it. In the meantime, I settled for what I perceived to be the solution
that involved the least amount of code changes. In general, the hit
is pretty light.

Also note that my only USB test box has a UHCI controller: I haven't
I don't have a machine with an OHCI controller available.

Highlights:

- Updated usb_quirks.* to add UQ_NO_TSLEEP quirk for ADMtek part.
- Updated usbdevs and regenerated generated files
- Updated HARDWARE.TXT and RELNOTES.TXT files
- Updated sysinstall/device.c and userconfig.c
- Updated kernel configs -- device aue0 is commented out by default
- Updated /sys/conf/files
- Added new kld module directory
1999-12-28 02:01:18 +00:00
..
defines
files This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
files.alpha Only compile gusc for isa (the #if NISA inside gusc effectively covers 1999-12-21 13:53:49 +00:00
files.i386 Update config rules for making {linux|svr4}_assym.h 1999-12-23 21:52:17 +00:00
files.pc98 Merge from sys/i386/conf/files.i386 rev 1.293. 1999-12-24 11:20:14 +00:00
kern.mk Make "-mpreferred-stack-boundary=2" the default on the i386. 1999-11-17 07:30:35 +00:00
kmod.mk Update vnode_if.sh location. This was deliberately left a while after 1999-12-22 01:07:30 +00:00
ldscript.alpha Lots of changes, including: 1998-08-10 07:53:59 +00:00
ldscript.amd64 Remove a rather bogus search path reference.. 1999-06-03 22:07:41 +00:00
ldscript.i386 Remove a rather bogus search path reference.. 1999-06-03 22:07:41 +00:00
ldscript.powerpc Lots of changes, including: 1998-08-10 07:53:59 +00:00
majors Add character major 139 for the Sangoma Technologies 'wanrouter' driver. 1999-12-17 19:56:39 +00:00
Makefile.alpha Synced with Makefile.i386. The following cleanups in Makefile.i386 1999-12-27 12:06:11 +00:00
Makefile.i386 Zap kvm_kernel.db stuff now that libkvm gets it directly from the running 1999-12-27 07:17:51 +00:00
Makefile.pc98 Synced with sys/i386/conf/Makefile.i386 rev 1.169. 1999-12-27 13:53:43 +00:00
Makefile.powerpc Zap kvm_kernel.db stuff now that libkvm gets it directly from the running 1999-12-27 07:17:51 +00:00
newvers.sh $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
nfsswapkernel.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
NOTES This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
options IPSEC support in the kernel. 1999-12-22 19:13:38 +00:00
options.alpha - Add the device resume method. It supercedes the existing resume 1999-12-15 10:04:05 +00:00
options.i386 - Add the device resume method. It supercedes the existing resume 1999-12-15 10:04:05 +00:00
options.pc98 Sync with sys/i386/conf/options.i386 rev 1.130. 1999-12-20 11:00:02 +00:00
param.c This is Bosko Milekic's mbuf allocation waiting code. Basically, this 1999-12-12 05:52:51 +00:00
systags.sh $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00