freebsd_amp_hwpstate/usr.sbin
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
..
IPXrouted
ac
accton
adduser
amd
apm
apmconf
apmd
arp
atm
boot0cfg
bootparamd
btxld
cdcontrol Fixed a potential buffer overflow problem, in the device name handling. 1999-12-05 20:05:45 +00:00
chkgrp
chown Install `chown' into /sbin rather than /usr/sbin as `chown' is needed by 1999-12-14 04:48:17 +00:00
chroot
ckdist
config Add a 'warning' option for the files* files. This is intended to enable 1999-12-12 09:38:48 +00:00
cron
crunch
ctm
dev_mkdb kvm_mkdb(8) no longer exists (in .Xr) and kvm_nlist(8) has even less to do 1999-12-27 08:01:11 +00:00
diskpart
dpt
edquota
elf2exe Use long long format specifiers and cast each parameter to long long. 1999-12-18 12:12:12 +00:00
fdcontrol
fdformat
fdwrite
i4b Replace spaces with a tab to fix build breakage 1999-12-15 01:07:28 +00:00
inetd
iostat
ipftest Move basic ifilter utils to sbin where they shold have been committed by 1999-12-06 20:50:04 +00:00
ipresend Move basic ifilter utils to sbin where they shold have been committed by 1999-12-06 20:50:04 +00:00
ipsend Move basic ifilter utils to sbin where they shold have been committed by 1999-12-06 20:50:04 +00:00
iptest Move basic ifilter utils to sbin where they shold have been committed by 1999-12-06 20:50:04 +00:00
jail Properly manify this manpage. 1999-12-21 11:25:10 +00:00
kbdcontrol Define some more function keys in the keymap: panic, lshifta, rshifta, etc. 1999-12-10 04:24:27 +00:00
kbdmap
kernbb
keyadmin
keyserv
kgmon
kgzip Now that we have an elf(5) we can x-ref it here. 1999-12-20 02:39:50 +00:00
lpr Add support for pr's locale 1999-11-30 16:15:22 +00:00
lptcontrol
mailstats
mailwrapper Import NetBSD's mailwrapper to redirect /usr/sbin/sendmail to the user's 1999-12-19 13:50:37 +00:00
makemap
manctl
memcontrol
mergemaster
mixer
mount_nwfs
mount_portalfs
mountd Added ntfs filesystem to be exported. 1999-12-03 20:23:53 +00:00
moused Back out previous commit, which broke mouse wheel support in moused. 1999-12-17 10:05:36 +00:00
mptable
mrouted
mtest
mtree Added support for file flags, mostly merged from the NetBSD version. 1999-12-09 20:38:36 +00:00
named oops, named-bootconf.pl has morphed into something else and moved. 1999-11-30 10:18:49 +00:00
named.reload
named.restart
ndc
newsyslog
nfsd
ngctl Manual page style work. 1999-12-21 01:25:21 +00:00
nghook Fix minor typo. 1999-12-22 01:25:07 +00:00
nologin
nslookup
nsupdate
ntp Don't compile mktime, it is already present elsewhere. 1999-12-22 09:36:41 +00:00
pccard Version 1.16 was a bad change, so revert it. 1999-12-08 18:12:02 +00:00
pciconf [ repository copy of sys/pci/pci_ioctl.h to sys/sys/pciio.h happened in the 1999-12-08 17:44:04 +00:00
pcvt "char *area" -> "char **area", to match the source code. 1999-12-16 02:16:54 +00:00
periodic
pkg_install Only pkg_delete the old package if the new one builds properly. 1999-12-06 03:19:16 +00:00
pnpinfo
portmap
ppp Add a bunch of `const's and fix a typo. 1999-12-27 11:54:57 +00:00
pppctl
pppd
pppstats
praliases
procctl
pstat Add extra columns for printing longer device name. 1999-12-05 20:04:56 +00:00
pw Revert the libcrypt/libmd stuff back to how it was. This should not have 1999-12-18 13:55:17 +00:00
pwd_mkdb Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in 1999-12-02 16:39:15 +00:00
quot
quotaon
rarpd
repquota
rmt
rndcontrol
rpc.lockd
rpc.statd
rpc.umntall Fix errors unmounting remote systems which don't understand RPC_UMNTALL. 1999-12-08 22:29:30 +00:00
rpc.yppasswdd Revert the libcrypt/libmd stuff back to how it was. This should not have 1999-12-18 13:55:17 +00:00
rpc.ypupdated
rpc.ypxfrd
rtprio
rwhod
sa
sade This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
sendmail
sgsc
sicontrol
sliplogin
slstat
spkrtest
spray
stallion
sysinstall This commit adds device driver support for the ADMtek AN986 Pegasus 1999-12-28 02:01:18 +00:00
syslogd
tcpdchk
tcpdmatch
tcpdump
timed
traceroute
trpt
tzsetup
usbd Add a missing '"' in the examples. 1999-12-17 06:04:37 +00:00
usbdevs
vidcontrol
vipw Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in 1999-12-02 16:39:15 +00:00
vnconfig
watch
wicontrol
wlconfig
wormcontrol
xten
yp_mkdb
ypbind
yppoll
yppush
ypserv
ypset
zic
Makefile Zap kvm_mkdb, it was for kvm_nlist's benefit, but now it goes direct 1999-12-27 07:27:50 +00:00
Makefile.inc