freebsd-skq/sys/dev
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
..
advansys Move the declaration of panic() from sys/systm.h to sys/param.h. 1999-09-26 18:19:49 +00:00
aha MIN unused, so kill it 1999-10-25 04:28:53 +00:00
ahb $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
aic Adjust data pointers for untransmitted bytes in fifos when there's phase 1999-12-16 16:11:49 +00:00
aic7xxx Correct an "argument reversal" bug that could cause commands requed from 1999-12-20 21:32:32 +00:00
amd Properly set the alignment argument to bus_dma_tag_create(). If we 1999-08-16 01:52:21 +00:00
amr Fix a printf format problem on the Alpha, where size_t == unsigned long, 1999-12-12 20:53:31 +00:00
ar Add explicit null entries for new entrypoints. 1999-12-01 09:34:14 +00:00
ata Yet another cleanup of the VIA code, this time it should work 1999-12-21 20:18:56 +00:00
atkbdc - Add the device resume method. It supercedes the existing resume 1999-12-15 10:04:05 +00:00
bktr bktr driver 2.06 changelog 1999-12-11 07:33:36 +00:00
buslogic * Add struct resource_list* argument to resource_list_alloc and 1999-10-12 21:35:51 +00:00
cardbus Sync to latest cardbusdevs file 1999-11-18 07:22:59 +00:00
ccd Remove unused variable 1999-12-21 08:20:36 +00:00
cs Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
cy Introduce ttyread() and ttywrite() which do the canonical thing. 1999-09-28 11:45:31 +00:00
dc Fix some problems reported by Mike Pritchard: 1999-12-13 21:45:13 +00:00
de Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
dec $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
dgb Introduce ttyread() and ttywrite() which do the canonical thing. 1999-09-28 11:45:31 +00:00
dpt Switch over to the new location in sys/dev/dpt. 1999-10-09 03:46:28 +00:00
ed Fix pccard ed driver, I think. 1999-12-10 07:22:53 +00:00
eisa Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
en remove unused #include, add $FreeBSD$ 1999-10-11 19:14:37 +00:00
ep kill debug printf that says detach 1999-12-10 07:24:39 +00:00
ex Fix bus_setup_intr(); I changed exintr() to take a pointer to ex_softc 1999-11-03 15:45:14 +00:00
fb Fix the ioctl CONS_FINDMODE and its underlying subroutine 1999-12-07 11:23:58 +00:00
fdc Add a flag to disable FIFO probing. The code seems to have a chance of 1999-12-21 08:33:03 +00:00
fe Make release is now falling over in if_fe.c due to Warner's pccard changes: 1999-10-25 17:04:17 +00:00
fxp Make the fxp driver work on alpha, rather than panic the machine on boot 1999-09-30 19:03:12 +00:00
hea Incorrect uses of NULL changed to 0 1999-12-21 08:24:35 +00:00
hfa Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
ic $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ida Revamp the devstat priority system. All disks now have the same priority. 1999-12-08 04:45:23 +00:00
ie Hid silly unknown board types message behind if (bootverbose). This 1999-10-11 18:53:59 +00:00
iicbus Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
isp Add in missing ENABLE TARGET MODE opcode. 1999-12-27 08:47:11 +00:00
joy Removed unnecessary include files. 1999-12-20 12:08:20 +00:00
kbd - Add a module event function to the ukbd driver and make the ukbd KLD 1999-12-13 10:36:36 +00:00
lnc Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
mc146818 Major changes to the generic device framework for FreeBSD/alpha: 1998-06-14 13:46:10 +00:00
mca Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
mcd Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
md Initialize type correctly. 1999-12-01 10:20:21 +00:00
mii Fix some problems reported by Mike Pritchard: 1999-12-13 21:45:13 +00:00
mlx Fix the firmware build number output (again). 1999-12-25 01:45:22 +00:00
mse - Remove cdevsw_add(). 1999-10-06 13:03:09 +00:00
pccard Tonight's cleanups. 1999-12-07 06:44:38 +00:00
pcf Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
pci Make the usb and ide/ata device identification a little saner. Rather than 1999-12-10 17:44:22 +00:00
pcic Delay creation of threads until after the idle thread is created, more 1999-12-21 08:32:15 +00:00
pdq Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
ppbus Incorrect NULL -> 0 1999-12-20 17:50:24 +00:00
ppc $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
rc Introduce ttyread() and ttywrite() which do the canonical thing. 1999-09-28 11:45:31 +00:00
rp Introduce ttyread() and ttywrite() which do the canonical thing. 1999-09-28 11:45:31 +00:00
scd Remove five now unused fields from struct cdevsw. They should never 1999-09-25 18:24:47 +00:00
sf Modify the Adaptec "starfire" driver to reset the PHY on the MII bus 1999-12-05 20:02:45 +00:00
si Fix some -Wunused warnings 1999-11-18 08:43:58 +00:00
sio Recognize the GVC0505 (GVC 56k Faxmodem) as a sio device. 1999-12-27 05:02:25 +00:00
sk Call sk_start() at the end of sk_intr() if there's packets in the 1999-09-25 04:50:27 +00:00
smbus Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
sn Two nits and disable isa probe due to its overly agressive claiming of 1999-12-28 01:07:16 +00:00
snp Remove cdevsw_add() - the make_dev() calls are already there. 1999-11-18 06:39:47 +00:00
sound Fix a mistake in the PNP EISA-encoding of the Avance ALS120 id. 1999-12-26 10:51:47 +00:00
speaker Move isfoo() and friends to the newly created sys/ctype.h. 1999-11-03 17:54:26 +00:00
sr Add explicit null entries for new entrypoints. 1999-12-01 09:34:14 +00:00
streams Rename remove_dev() to destroy_dev(). 1999-11-08 07:44:01 +00:00
sym * The C1010 stepping B0 (Rev 1) tested OK for DT transfers without the U3EN 1999-12-16 17:00:53 +00:00
syscons - Remember the keyboard repeat delay and rate. 1999-12-13 09:31:43 +00:00
ti As suggested by phk, unconditionalize BPF support in these drivers. Since 1999-09-23 03:32:57 +00:00
tx Change incorrect NULLs to 0s 1999-12-21 11:14:12 +00:00
usb This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
vinum Introduce NDFREE (and remove VOP_ABORTOP) 1999-12-15 23:02:35 +00:00
vn Introduce NDFREE (and remove VOP_ABORTOP) 1999-12-15 23:02:35 +00:00
vr Change contigmalloc() lower memory bound from 1MB to 0 to improve 1999-09-25 17:29:02 +00:00
vx Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
wi Fix invocation of bus_teardown_intr(). The last arg is supposed to be 1999-12-08 02:00:10 +00:00
wl Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
xe Disable old PCCARD_MODULE code. 1999-10-29 17:28:09 +00:00