freebsd-dev/sys/modules
Bill Paul ed63a7aaef 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
..
aha Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
amr Don't waste time creating amr.h since it (and NAMR) aren't used. 1999-12-12 20:54:53 +00:00
aue This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
bktr Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
cardbus Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
cbb Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ccd Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
cd9660 Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
coda Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
coff Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
dc Add the if_dc driver and remove all of the al, ax, dm, pn and mx drivers 1999-12-04 17:41:31 +00:00
fdesc Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
fdescfs Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
fpu $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
fxp Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
gnufpu $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
hpfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
ibcs2 Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
if_disc udp IPv6 support, IPv6/IPv4 tunneling support in kernel, 1999-12-07 17:39:16 +00:00
if_ef Add module for if_ef driver and make it compile. 1999-12-13 16:42:17 +00:00
if_ppp Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
if_sl Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
if_tun Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ip_mroute_mod $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ipfilter Add forgotten ip_fil.c and fil.c to kld version 1999-12-06 20:33:38 +00:00
ipfw $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
joy Fix joy and put it back in the MI section. (yes, it works on Alpha) 1999-12-12 20:42:58 +00:00
kernfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
linux Use genassym(1) and <sys/assym.h> to generate assembler symbols. 1999-12-23 19:59:47 +00:00
md Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
mfs Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
mii Add pci_if.h to SRCS so that dcphy will build. 1999-12-05 01:39:11 +00:00
mlx Move mlx from x86-only to generic. It builds on the Alpha and is in the 1999-12-12 21:00:42 +00:00
msdos Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
msdosfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
ncp Zap unused CFLAGS += -DNCP 1999-12-12 21:15:51 +00:00
netgraph Revert previous checkin; I incorrectly thought that it was needed 1999-12-21 20:51:34 +00:00
nfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
nfsclient Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
nfsserver Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
ntfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
nullfs Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
nwfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
osf1 Finally add the Alpha OSF/1 compat code. I will add it to the 1999-12-14 22:35:36 +00:00
pccard Add resource activation routines to pcic driver. Minor cleanup of 1999-11-28 21:11:13 +00:00
pcic i82365_isasubr is gone, remove from building module. 1999-12-19 05:49:56 +00:00
portal Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
portalfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
procfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
rl Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
sf Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
sis Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
sk Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
splash $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ste Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
streams Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
svr4 Use genassym(1) and <sys/assym.h> to generate assembler symbols. 1999-12-23 21:19:32 +00:00
syscons Add the apm_saver syscons screen saver module. 1999-10-02 03:56:42 +00:00
ti Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
tl Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ugen Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
uhid Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ukbd Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ulpt Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
umapfs Bring these more into line with other modules that have .h files generated 1999-12-12 16:47:33 +00:00
umass Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
umodem Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
ums Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
union Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
unionfs Remove a whole bunch of "CFLAGS+= -DFSNAME" cruft. It hasn't been 1999-12-12 20:34:11 +00:00
usb Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
vesa Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
vinum Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
vn Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
vr Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
wb Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
wi Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
xl Removed special rules for building and cleaning device interface files 1999-11-28 18:53:47 +00:00
Makefile This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00