Commit Graph

4353 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
Bruce Evans
e5389fb1c8 Fixed breakage of static linkage of rlogind. Someone added -lutil and
-lcom_err to some libpam modules without updating LIBPAM here.
1999-12-27 17:25:40 +00:00
Bruce Evans
20c4d417bc Fixed some bugs (one serious one: timeouts were claimed to be executed at
spl0) and some bitrot (the not-so-new callout_init/stop/reset functions
were not mentioned; the callout_activate/deactivate/pending macros are
still not mentioned).

Submitted by:	mostly by jlemon
1999-12-27 16:22:20 +00:00
Jeroen Ruigrok van der Werven
bffd29ff1c Fix some typo's.
PR:		15678
Submitted by:	Christian Weisgerber <naddy@mips.rhein-neckar.de>
1999-12-27 11:02:43 +00:00
Bruce Evans
3c7f758bda Fixed spelling error in document title.
Fixed syntax error in synopsis.
1999-12-26 16:58:31 +00:00
Bruce Evans
a824498e2d Removed ex script left over from incomplete backout in previous commit.
Use SYMLINKS instead of an ad hoc rule for installing words -> web2.
Don't override the install target; doing so just breaks things like
SYMLINKS.

Don't override the correct defaults for the all, clean, depend, lint
and tags targets.  Don't add a null rule to the cleandepend target.
1999-12-26 10:31:29 +00:00
Sheldon Hearn
58db7ebe9b Mandate the inclusion of <ieeefp.h> instead of <floatingpoint.h>. The
latter is just wrong.

There were many other problems spotted by bde, none of which are
addressed here.

Reviewed by:	bde
1999-12-24 08:43:19 +00:00
Andrey A. Chernov
d595a9292e Link la_LN*4 too 1999-12-24 08:10:48 +00:00
Andrey A. Chernov
907ddf9c39 Fix cut&paste error 1999-12-24 08:05:20 +00:00
Andrey A. Chernov
86103e7efc Add iso04 fonts
Submitted by:	Ricardas Cepas <rch@writeme.com>
1999-12-24 06:30:43 +00:00
Andrey A. Chernov
fd7f33ad86 Add Lithuanian keyboard
Submitted by:	Ricardas Cepas <rch@writeme.com>
1999-12-24 06:15:32 +00:00
Andrey A. Chernov
0e483924e4 Add lt_LT
Submitted by:	Ricardas Cepas <rch@writeme.com>
1999-12-24 05:58:07 +00:00
Andrey A. Chernov
656f43ab9a Add 8859-4 and lt_LT
Add missing dependance to cs_CZ

Submitted by:	Ricardas Cepas <rch@writeme.com>
1999-12-24 05:47:10 +00:00
Andrey A. Chernov
a81c99add8 Add 8859-4 and lt_LT
Submitted by:	Ricardas Cepas <rch@writeme.com>
1999-12-24 05:30:52 +00:00
Andrey A. Chernov
70ccaafac0 Oops, fix typo in prev. commit 1999-12-24 05:01:14 +00:00
Andrey A. Chernov
15227b7d04 Add Latin2 FreeBSD consoles
Minor correction of comments

Submitted by:	Latin2 console from Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1999-12-24 04:55:06 +00:00
Andrey A. Chernov
942c101cfa Add ACS support to 8859-2 fonts
Remove stale 8859-2 font
Fix Russian INDEX entries
Add more languages to FONT fields

Submitted by:	fonts from Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1999-12-24 04:35:33 +00:00
Andrey A. Chernov
fb46350574 Use 'i' for ACS lantern (as ncurses expect it) 1999-12-24 03:54:41 +00:00
Greg Lehey
587357da14 New man page. This will need modifications RSN. 1999-12-24 00:16:03 +00:00
Bruce Evans
c1ab0cfd47 Fixed bitrot in synopsis. The prototype for panic() was moved to
<sys/param.h>, but the #includes weren't adjusted here.
1999-12-23 17:42:10 +00:00
Bruce Evans
31f698b8ca Fixed wrong function types (the device_add_child() family returns a
device_t, not an int).
1999-12-23 17:39:45 +00:00
Bruce Evans
9961a6adff Removed unused include of <sys/buf.h> from synopsis. This include is
needed to access the internals of buffers but not necessarily to use
the VOP.  <sys/buf.h> recently grew a bogus dependency on <sys/systm.h>
for the declaration of spl*, and I prefer to fix the synopsis breakage
by removing a wart instead of adding one.
1999-12-23 17:35:48 +00:00
Bruce Evans
6ee16659ac Fixed bitrot in synopsis. The prototype for VOP_ISLOCKED() changed
recently, except of course in the documentation.  Other parts of this
man page are several years out of date.
1999-12-23 17:28:46 +00:00
Bruce Evans
f644d0654b Fixed missing #includes in synopsis. 1999-12-23 17:24:40 +00:00
Bruce Evans
5770fb1361 Fixed bitrot in synopsis. Important interface changes hadn't reached here. 1999-12-23 17:22:58 +00:00
Bruce Evans
bd00dbfafc "Fixed" assorted bitrot. remove_dev() was renamed to destroy_dev().
VOP_ABORTOP() went away.  at_shutdown() was replaced by undocumented
event handling.  Rename remove_dev() here too, and remove the dead
and dead wrong man pages.
1999-12-23 17:16:32 +00:00
Bruce Evans
e7589db845 Fixed bitrot in synopsis. The change from "int *pshared" to "int pshared"
hadn't reached here.
1999-12-23 16:51:27 +00:00
Poul-Henning Kamp
b69b535811 Duh! Also remove inter.phone from the makefile. 1999-12-23 09:28:49 +00:00
Poul-Henning Kamp
86c00aae88 Remove this file for the same reasons as for na.phone: There are
better and more comprehensive and reliable sources for such
information in the global village.
1999-12-23 08:52:59 +00:00
Greg Lehey
72059427d7 Add dialing code for Limassol, Cyprus. 1999-12-23 00:37:47 +00:00
Greg Lehey
28c12971af Update area codes for Australia.
Update some area codes for Malaysia.  The list is still woefully incomplete.
1999-12-23 00:31:04 +00:00
Andrey A. Chernov
1107842229 lt_LN->la_LN 1999-12-22 20:52:54 +00:00
Peter Wemm
3b073b53b7 Update vnode_if.sh location. This was deliberately left a while after
the repo copy as the kernel src/sys/modules stuff uses
/usr/share/mk/bsd.kmod.mk which often gets out of sync with the kernel
source.
1999-12-22 01:07:30 +00:00
Andrey A. Chernov
b1f5d23712 Add cs qwertz keyboard
Submitted by:	 Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1999-12-22 00:09:14 +00:00
Andrey A. Chernov
803fd6e279 Add cs_CZ
Submitted by:	 Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1999-12-22 00:02:21 +00:00
Andrey A. Chernov
3302808957 Add cs_CZ
Submitted by:	 Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1999-12-21 23:57:19 +00:00
Alexey Zelkin
b2d28ca479 Comment out explicit MANPATH setting.
(BTW, it's very bad practice to have MANPATH environment variable set)

PR:		conf/14487
Submitted by:	Norihiko Ishitani <nori@tlab.is.uec.ac.jp>
1999-12-21 17:18:19 +00:00
Sheldon Hearn
34ada08b62 Document allscreens_flags. This commit perpetuates the i386-centric
nature of this manual page. :-(

PR:		15066
Reported by:	Andy Farkas <andyf@speednet.com.au>
1999-12-21 11:22:06 +00:00
Joerg Wunsch
e34c71ea40 Add a flag to disable FIFO probing. The code seems to have a chance of
misdetecting FIFO capabilities, at least on my girlfriend's Thinkpad 755,
the driver doesn't work using the FIFO.

While i was at it, i (partially) fixed option FCC_YE since it would no
longer have compiled at all under -current.  I've also made an attempt
to document the device driver flags value (ab-)used internally by this
option.

RELENG_3 candidate, but with a slightly different patch there (will go
to jkh in email).
1999-12-21 08:33:03 +00:00
Joseph Koshy
1a93522d65 Add entries for two cities in India. 1999-12-21 05:22:43 +00:00
Julian Elischer
5129159789 Manual page style work.
Submitted by:	Alexey Zelkin <phantom@FreeBSD.org>
thanks!
1999-12-21 01:25:21 +00:00
Alexey Zelkin
c92079721b Add Simferopol, Ukraine (Crimean republic capital) 1999-12-20 16:30:39 +00:00
Sheldon Hearn
cde6156df8 Fix the availability table, which incorrectly indicated that sh(1)
does not have a builtin set command.
1999-12-20 16:29:56 +00:00
Alexey Zelkin
79ea9bc4f5 Sync with reality.
PR:		docs/15036
Submitted by:	Jake Burkholder <jburkhol@home.com>
1999-12-19 19:12:14 +00:00
Peter Wemm
8ddf96d9c5 This commit was generated by cvs2svn to compensate for changes in r54816,
which included commits to RCS files with non-trunk default branches.
1999-12-19 13:50:37 +00:00
Peter Wemm
3ae9291301 Import NetBSD's mailwrapper to redirect /usr/sbin/sendmail to the user's
chosen mailer.

Obtained from: NetBSD
1999-12-19 13:50:37 +00:00
Eivind Eklund
4dc39f110c Correct the documentation of LOCKPARENT - it does not reliably result in the
parent being locked, but rather plays some hide and seek (does not lock if
dvp == vp).

Also add a BUGS section noting that this is undesired behaviour.
1999-12-18 20:50:48 +00:00
Alexey Zelkin
ded8c91a78 Fix typos
PR:		docs/14858
Submitted by:	OKAZAKI Tetsurou <okazaki@be.to>
1999-12-17 14:48:00 +00:00
Eivind Eklund
9a8fa3c19f Document NDFREE w/flags, and fix up the description of NOFOLLOW. 1999-12-16 23:20:11 +00:00
Chris Costello
ddb9c6cd10 Document pthread_create().
Reviewed by:	jasone
1999-12-16 22:36:54 +00:00