Commit Graph

1368 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
Daniel C. Sobral 48d9eeb33a configSamba is gone, and is not coming back. 1999-12-23 10:16:46 +00:00
Jordan K. Hubbard 3446977f16 Fix the brain-o which prevented the Custom installation item from
working.  It was, as I predicted, a stupid bug and thanks to the
submitter for spotting it.  I'll also re-roll some 3.4-RELEASE install
floppies for this.
1999-12-22 01:44:57 +00:00
Daniel C. Sobral 92dd206086 configApache does not exist anymore.
PR:		9582
Submitted by:	Stephan Lagerholm <istephan@unilog.se>
1999-12-20 19:22:57 +00:00
Jordan K. Hubbard 126e9198eb Whoops, this function is supposed to return a boolean status, not
flags.
1999-12-20 00:16:10 +00:00
Jordan K. Hubbard 74ffe8004b Do better things with router configuration (use proper display variable,
for one thing - it's router_enable to check, not router).
1999-12-19 22:38:59 +00:00
Jordan K. Hubbard a281594c29 Whoops, I broke the doc browser (not that anyone would notice since nobody
READS the docs, but anyway.. :).  Fix it.
1999-12-19 22:28:41 +00:00
Jordan K. Hubbard 968b30ead8 D'oh! Inserted a clear() in a *very* wrong place with my last commit. 1999-12-19 20:41:06 +00:00
Jordan K. Hubbard e23b011f50 Bah, I got the MFC and this commit backwards. :) 1999-12-19 19:42:02 +00:00
Jordan K. Hubbard 87df92bf9b MFC: can't stop tweaking this compulsively. 1999-12-19 07:02:46 +00:00
Jordan K. Hubbard 793171c689 cosmetics missed in last commit. 1999-12-19 06:50:44 +00:00
Jordan K. Hubbard 8e23f29e15 More cosmetic surgery and a nasty null pointer bug in index.c fixed. 1999-12-19 06:34:22 +00:00
Jordan K. Hubbard f927f0e653 Be paranoid about refreshing after an action. 1999-12-19 04:06:46 +00:00
Jordan K. Hubbard a322c54678 Yet more cosmetic fixes (I have a little time to kill while waiting for
something else, so I might as well tweak 3.4's look-and-feel for the better
while I'm at it - final release build should be sometime later on tonite).
1999-12-18 03:13:19 +00:00
Jordan K. Hubbard a4415a1c07 Add more strategic screen clears 1999-12-18 02:29:24 +00:00
Jordan K. Hubbard 8932007887 Better screen handling in X desktop setup.
Don't get cute with nested dialogs now.
1999-12-18 02:04:02 +00:00
Jordan K. Hubbard 3b7657d80d Add another strategic screen clear. 1999-12-17 03:00:28 +00:00
Jordan K. Hubbard 61547e027b In retrospect, msgNotify() should leave its contents on the screen
longer to give the user something to look at while things are happening.
Change it to do so and insert the appropriate screen saves elsewhere.
1999-12-17 02:46:04 +00:00
Jordan K. Hubbard 8668fad364 Bump default root size to 50MB on i386 (70MB on Alpha).
Requested incessantly by:	billf
1999-12-17 02:02:51 +00:00
Jordan K. Hubbard 149c5b331b Properly disable COMPAT_3X for alpha. 1999-12-15 18:55:27 +00:00
Jordan K. Hubbard bf74f9c166 Put up some more helpful dialog boxes.
Adjust some text to make more sense.
1999-12-15 01:30:52 +00:00
Jordan K. Hubbard 7025aeb16e Completely rip-out and redesign sysinstall's refresh model as well
as redoing all the menus to have proper, or at least non-hallucinogenic,
keyboard accelerators.

This requires my recent update to libdialog to work properly and will
probably also exhibit some other "interesting" behavior while the last
few missing screen clears are found (which is why I'm not going to MFC
immediately).  At least now, however, sysinstall does not gratuitously
redraw random screens at the drop of a hat and drive serial console
installers out of their minds.
1999-12-14 04:25:29 +00:00
Jordan K. Hubbard 883db2a0de Make kerberos4 conditional. 1999-12-14 00:47:23 +00:00
Jordan K. Hubbard 241109ce4f Conditionalize kerberos4 to keep sources in sync. 1999-12-14 00:44:05 +00:00
Jordan K. Hubbard 404f4d4100 I shouldn't have incremented PART_OFF; it was wrong and broke label
display to boot.  Also fix some various warning fluff while I'm in
here cleaning up.
1999-12-12 04:58:02 +00:00
Poul-Henning Kamp 2029959351 Remove references to ze and zp drivers. 1999-12-10 10:55:27 +00:00
Søren Schmidt f49e572bbe Remove sysinstall knowledge of the wd based devices.. 1999-12-08 09:51:00 +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
Jordan K. Hubbard 50fbef8c45 Allow 2 more characters for Mike's long device names. 1999-12-02 02:55:57 +00:00
Jordan K. Hubbard fb08130c0d We need COMPAT3X for both i386 and alpha, not just i386. 1999-12-02 01:54:15 +00:00
Jordan K. Hubbard 08c667112d Don't make the failure of a LOCAL dist a reported error.
If we're running 4.x and install X, auto-select COMPAT3X.
1999-12-01 01:34:33 +00:00
Mike Smith c56a2e807a Add support for the AMI MegaRAID and Mylex drivers to sysinstall.
There are reports that installs to these controllers still don't
work, but this is at least one step closer.
1999-11-27 21:33:04 +00:00
Ollivier Robert f55c07ab93 Add ftp.nz.freebsd.org to the list of available FTP sites.
Submitted by:	"Dan Langille" <dan@freebsddiary.org>
1999-11-27 16:02:08 +00:00
Poul-Henning Kamp 4a59084cee Remove BAD144 support. 1999-11-27 14:33:07 +00:00
Jordan K. Hubbard 2925899ae9 minor bugfix to loader.conf code. 1999-11-25 17:56:00 +00:00
Jordan K. Hubbard 46849eed91 Clean up the loader.conf write-out code. 1999-11-24 09:45:36 +00:00
Jordan K. Hubbard 2daa303614 Update for new doc paths.
Submitted by:	Martin Kammerhofer <mkamm@gmx.net>
PR:		15020
1999-11-21 22:04:13 +00:00
David E. O'Brien f06f71af59 Don't ask about SCO/IBSC2 binary support on the Alpha. 1999-11-18 03:03:01 +00:00
Søren Schmidt 0b7a9a135d Add devices from the ATA driver (ad, acd, afd, ast). 1999-11-09 19:10:15 +00:00
Jordan K. Hubbard bc9c6dbbd6 Add the latest categories. 1999-11-08 16:23:34 +00:00
Jordan K. Hubbard 29527eb44c Defensive coding to prevent a potential segfault.
PR:		14706
Submitted by:	ru
1999-11-08 16:19:25 +00:00
Jordan K. Hubbard bc775f8b25 Allow distributions to be excluded more easily in scripts.
Submitted by:	Brian Dean <brdean@unx.sas.com>
1999-11-08 11:51:57 +00:00
Jordan K. Hubbard bbf0b709cd Make sure modes on new skeleton files are correct. 1999-11-05 11:04:30 +00:00
Jordan K. Hubbard 0ec4416c55 Really fix the auto keyword botch correctly by just letting it
do its job and not override it when set.

Submitted by:		Ruslan Ermilov <ru@FreeBSD.org>
1999-10-05 10:10:42 +00:00
Peter Wemm 233036aac1 Use sigemptyset rather than sa_mask = 0.
Submitted by:	"John W. DeBoskey" <jwd@unx.sas.com>
1999-09-30 19:55:00 +00:00
Jordan K. Hubbard 56373d38a8 Sigh, too many late nights! 1999-09-30 08:32:35 +00:00
Jordan K. Hubbard 222e52ceae Oh bollocks, I really screwed up the "auto" check here. Time
to crack the K&R; I must have forgotten the C language. :)

Embarrassingly noticed by:	Howard Gutch <logix@foobar.franken.de>
1999-09-27 21:48:28 +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
Mark Murray df3819c1b4 Prepare for K5. 1999-09-19 22:30:39 +00:00
Jordan K. Hubbard 6dc5df3d74 execute a strategic clear. 1999-09-19 08:24:32 +00:00