Commit Graph

17 Commits

Author SHA1 Message Date
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
David E. O'Brien
5eacf82188 Document `chown's move. 1999-12-14 04:54:55 +00:00
Jordan K. Hubbard
80da3ae170 Note that Tekram controllers are supported again.
PR:		15090
Reported by:	Ilmar S. Habibulin <ilmar@ints.ru>
1999-12-12 21:06:44 +00:00
Matthew Dillon
c137e096c2 Add blurb on massive improvements to NFS
Reviewed by:	jkh
1999-12-12 09:53:11 +00:00
Poul-Henning Kamp
2029959351 Remove references to ze and zp drivers. 1999-12-10 10:55:27 +00:00
Bill Paul
96f2e892a7 Add the if_dc driver and remove all of the al, ax, dm, pn and mx drivers
which it replaces. The new driver supports all of the chips supported
by the ones it replaces, as well as many DEC/Intel 21143 10/100 cards.

This also completes my quest to convert things to miibus and add
Alpha support.
1999-12-04 17:41:31 +00:00
Andrew Gallatin
a800cdfbb0 mention AlphaServer 1000 and AlphaServer DS20 1999-12-02 13:39:05 +00:00
Jordan K. Hubbard
4b0bfc1904 Correct outdated aic entries.
Submitted by:	Greg Lewis <glewis@trc.adelaide.edu.au>
PR:		15186
1999-12-02 08:25:53 +00:00
David E. O'Brien
aac7434a63 Update compiler entries.
Note the 100% total death of /dev/*sd*.
1999-11-27 21:18:19 +00:00
Marcel Moolenaar
bed0c34527 Add signal changes.
i386 only: Add Linuxulator sysctl variables.
1999-11-22 10:22:39 +00:00
Dag-Erling Smørgrav
6bdb9bffcc Document my TCP/IP hacks. 1999-11-02 08:44:26 +00:00
Bill Paul
efee742ecc Mention in the documentation that the AOpen/Acer ALN-320 is a supported
ethernet card (PCI, VIA Rhine II chipset).
1999-09-22 19:46:14 +00:00
Bill Paul
1088f6c7c1 Spruce up the ADMtek driver: conver to newbus, miibus and add support
for the AN985 "Centaur" chip, which is apparently the next genetation
of the "Comet." The AN985 is also a tulip clone and is similar to the
AL981 except that it uses a 99C66 EEPROM and a serial MII interface
(instead of direct access to the PHY registers).

Also updated various documentation to mention the AN985 and created
a loadable module.

I don't think there are any cards that use this chip on the market yet:
the datasheet I got from ADMtek has boxes with big X's in them where the
diagrams should be, and the sample boards I got have chips without any
artwork on them.
1999-09-22 05:07:51 +00:00
Jordan K. Hubbard
edf52b48c7 VERY preliminary versions of these documents for the Alpha. I've
made only the most superficial changes so far to HARDWARE.TXT and
eliminated the stuff I absolutely knew didn't work.  That still leaves
a lot of work to do and this is mostly just a place-holder for now.
1999-09-06 15:10:54 +00:00
Andrew Gallatin
a3af6eee5a Mention our support of the xp1000 family 1999-08-25 21:14:03 +00:00
Tim Vanderhoek
15e406d3ee MF3S: typo 1999-05-24 23:44:57 +00:00
Jordan K. Hubbard
2a43f686f5 A special installation guide for the Alpha. Thanks, Doug! This is good!
Submitted by:	Doug Rabson <dfr@freebsd.org>
1999-05-12 08:17:03 +00:00