freebsd_amp_hwpstate/release/sysinstall
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
..
help configSamba is gone, and is not coming back. 1999-12-23 10:16:46 +00:00
Makefile Oh crud, did I ever screw the pooch! Rather than sync this with -stable, 1999-09-02 00:51:16 +00:00
anonFTP.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
cdrom.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
command.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
config.c Do better things with router configuration (use proper display variable, 1999-12-19 22:38:59 +00:00
dev2c.sh $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
devices.c This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
dhcp.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
disks.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
dispatch.c Completely rip-out and redesign sysinstall's refresh model as well 1999-12-14 04:25:29 +00:00
dist.c Add more strategic screen clears 1999-12-18 02:29:24 +00:00
dist.h Completely rip-out and redesign sysinstall's refresh model as well 1999-12-14 04:25:29 +00:00
dmenu.c Completely rip-out and redesign sysinstall's refresh model as well 1999-12-14 04:25:29 +00:00
doc.c Whoops, I broke the doc browser (not that anyone would notice since nobody 1999-12-19 22:28:41 +00:00
dos.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
floppy.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
ftp.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
globals.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
index.c More cosmetic surgery and a nasty null pointer bug in index.c fixed. 1999-12-19 06:34:22 +00:00
install.c MFC: can't stop tweaking this compulsively. 1999-12-19 07:02:46 +00:00
install.cfg
installUpgrade.c Completely rip-out and redesign sysinstall's refresh model as well 1999-12-14 04:25:29 +00:00
keymap.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
kget.c o Catch up with pnp changes - kget no longer saves pnp data. 1999-09-04 16:01:15 +00:00
label.c Better screen handling in X desktop setup. 1999-12-18 02:04:02 +00:00
lang.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
list.h $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
lndir.c
main.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
media.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
menus.c Fix the brain-o which prevented the Custom installation item from 1999-12-22 01:44:57 +00:00
misc.c Remove BAD144 support. 1999-11-27 14:33:07 +00:00
mouse.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
msg.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
network.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
nfs.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
options.c D'oh! Inserted a clear() in a *very* wrong place with my last commit. 1999-12-19 20:41:06 +00:00
package.c Whoops, this function is supposed to return a boolean status, not 1999-12-20 00:16:10 +00:00
pccard.c Completely rip-out and redesign sysinstall's refresh model as well 1999-12-14 04:25:29 +00:00
rtermcap.c
sysinstall.8 Prepare for K5. 1999-09-19 22:30:39 +00:00
sysinstall.h Allow distributions to be excluded more easily in scripts. 1999-11-08 11:51:57 +00:00
system.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
tape.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
tcpip.c In retrospect, msgNotify() should leave its contents on the screen 1999-12-17 02:46:04 +00:00
termcap.c
ufs.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
user.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
variable.c Oh crud, did I ever screw the pooch! Rather than sync this with -stable, 1999-09-02 00:51:16 +00:00
wizard.c $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00