Commit Graph

45077 Commits

Author SHA1 Message Date
gibbs
8fe9ae191d Clean up the xpt_sim creation to mirror how HBA drivers perform this task.
Clean up node creation in the EDT so that initialization follows member
declaration.

Sort registered paths by pathid so that we probe busses in order of
ascending pathid.  This makes hardwiring of busses without wiring
individual targets do what the user expects. (submitted by tegge@FreeBSD.org)

Fix an EDT node leak.  Target nodes would never go away.

Implement xpt_bus_deregister().
(prodded by some patches from T. Ichinoseki, but implemented differently.)
2000-01-14 23:08:46 +00:00
jmb
395ce19794 Document the KASSERT() macro. 2000-01-14 21:41:09 +00:00
wpaul
1e2a8041d0 Add driver support for the Aironet 4500/4800 series wireless 802.11
NICs. (Finally!) The PCMCIA, ISA and PCI varieties are all supported,
though only the ISA and PCI ones will work on the alpha for now.
PCCARD, ISA and PCI attachments are all provided. Also provided an
ancontrol(8) utility for configuring the NIC, man pages, and updated
pccard.conf.sample. ISA cards are supported in both ISA PnP and hard-wired
mode, although you must configure the kernel explicitly to support the
hardwired mode since you have to know the I/O address and port ahead
of time.

Special thanks to Doug Ambrisko for doing the initial newbus hackery
and getting it to work in infrastructure mode.
2000-01-14 20:41:03 +00:00
bde
762f2e59e4 Forward declare some structs so that this header is more self-suifficent. 2000-01-14 19:54:42 +00:00
guido
e66131d414 Apply patches in rev 1.2 and 1.9 that I forgot
Pointe out by:	bde
2000-01-14 19:48:42 +00:00
bde
7c59c0cbac Use MALLOC_DECLARE when it is #defined, not when a (wrong) test of
__FreeBSD_version succeeds.
2000-01-14 19:47:07 +00:00
hosokawa
7884146f7d Set pccard_ifconfig in /etc/rc.conf automatically. 2000-01-14 19:05:55 +00:00
bde
fc143221f0 Removed redundant declarations again. Fixed in rev.1.5, broken in rev.1.8. 2000-01-14 18:57:33 +00:00
bde
edcb4e358c Fixed bitrot in K&R support (3 missing __P(())'s defeated the point of 7
non-missing ones in <com_err.h> which includes this file).
2000-01-14 18:51:30 +00:00
mdodd
5c3acbcb23 Oops! We need an entry for if_ie still. Change a few nits
while I'm here.
2000-01-14 18:50:40 +00:00
bde
81c47c06b2 Fixed bitrot in K&R support (1 missing __P(()) defeated the point of 7
non-missing ones).

Removed private declaration of __P(()) while I'm here.  Include
<sys/cdefs.h> to get the system definition.  The privation declaration
would break the system definition if it were different.
2000-01-14 18:28:23 +00:00
bde
42e0a0cec8 Adjust paths after repository copy. 2000-01-14 17:39:20 +00:00
hosokawa
4bd1823943 Enable pccardd when the system is installed with PC-card support. 2000-01-14 17:18:42 +00:00
wpaul
39da78bb33 Fix multicast filter programming. 2000-01-14 17:03:00 +00:00
peter
a01339bf77 Move sbin/i386/{mount_msdos,comcontrol} back to sbin, they are not
i386 specific.

Submitted by:	bde
2000-01-14 16:37:03 +00:00
bde
ac7bbd636a Removed yet another vestige of the ft driver. 2000-01-14 16:01:28 +00:00
peter
06b8f5b4d1 Make this compile - missing ")"; 2000-01-14 15:54:45 +00:00
bde
3c0d60caf9 Fixed corrupted tabs in previous commit. 2000-01-14 15:47:00 +00:00
bde
3c688ac85d Fixed disordering, misformatting, and duplicate declaration of
iruserok_af() in previous commit.
2000-01-14 15:43:27 +00:00
des
4e26c2b9bd Do this the Right Way (tm), i.e. use shutdown() instead of fooling around
with the size of the receive buffer.

Pointed out by:	ru
2000-01-14 15:37:18 +00:00
des
cb9a455cbe Reflect the change in secure mode semantics, and document fascist mode
properly.
2000-01-14 15:10:36 +00:00
des
3663c2376b Slight change of secure mode semantics: instead of reading (and counting)
vogons, set the size of the receive buffer to 1 and rely on the kernel to
simply drop incoming packets. The logging code was buggy anyway.

Use socklen_t instead of int for the length argument to recvfrom.

Add a 'continue' at the end of a loop for ANSI conformance.
2000-01-14 15:09:06 +00:00
luoqi
873e6077f1 Remove pre-CAM aic driver. Support for apm, pccard and pc98 has yet to
be incorporated into the new CAM driver.
2000-01-14 14:18:00 +00:00
kato
201865e21a Synced with sys/i386/isa/isa_compat.h rev 1.24. 2000-01-14 13:10:22 +00:00
kato
fd71cfb854 Synced with sys/i386/i386/userconfig.c rev 1.168. 2000-01-14 13:07:16 +00:00
kato
61386af7c7 Synced with sys/i386/conf/GENERIC rev 1.228. 2000-01-14 13:05:33 +00:00
kato
cd010a1d3e Synced with options.i386 rev 1.132. 2000-01-14 12:56:42 +00:00
sheldonh
858c111779 Add a missing .El macro. 2000-01-14 10:47:54 +00:00
sheldonh
c7c45620bc Protect the i386 machine-dependant type definitions of __int64_t
and __uint64_t from lint(1) with /* LONGLONG */ comments.
2000-01-14 10:41:39 +00:00
sheldonh
75ed7236f1 Populate /usr/libdata/lint again. David Malone <dwmalone@maths.tcd.ie>
is responsible for getting me to look at the NetBSD makefiles. :-)

Obtained from:	NetBSD
2000-01-14 10:02:27 +00:00
obrien
8144b5842a This patch solves the a cross-build problem where proj.c is both used by a
build-tools target and by the actual target.  In a cross-building situation
proj.o is both a native object and a cross-object (i.e., for the target
arch) and thus doesn't work.  Creating seperate opjects from the same
source file solves this...

This patch may also fix the following issue:

> it looks like -DNOCLEAN doesn't work too well.
> cd /usr/src/gnu/usr.bin/cc/f771; make build-tools
> make: don't know how to make /usr/obj/usr/src/i386/usr/include/stdarg.h. Stop

	This seems caused by wrong dependency information.  Dependency
	information shouldn't be created for build-tools sources.

Submitted by:	marcel
2000-01-14 09:28:25 +00:00
sheldonh
97d12f9561 Fix lint for the new cpp. Lint is still broken in other ways, but
this at least allows the use of lint -i on single files again.

Fiddled rcsid to satisfy commitprep.pl;  the original NetBSD tag
is still in the comments.
2000-01-14 09:25:31 +00:00
peter
a3e8a4d0bf Add back the 'at ppbus?' for the lpt etc drivers. Now it's used. 2000-01-14 08:16:28 +00:00
nsouch
cafa4ad045 ppi needs to use a bus method to get this rather than peering inside the
1284 stuff.

Submitted by: Peter Wemm <peter@netplex.com.au>
2000-01-14 08:03:15 +00:00
kris
e64b093666 Connect OpenSSL to the build. 2000-01-14 08:01:51 +00:00
rgrimes
c127d0e61e Replace beforeinstall target with new variables used by .mk system.
Reviewed by:	marcel, and make world
2000-01-14 07:57:47 +00:00
rgrimes
2801ff847c Introduce the new mk internal target _includeinstall and add the
controlling knob defaults INCOWN, INCGRP, INCMODE, and INCDIR.

Reviewed by:	marcel, and make world
2000-01-14 07:41:11 +00:00
peter
2d989cd686 Pre 4.0 tidy up.
Collect together the components of several drivers and export eisa from
the i386-only area (It's not, it's on some alphas too).  The code hasn't
been updated to work on the Alpha yet, but that can come later.

Repository copies were done a while ago.
Moving these now keeps them in consistant place across the 4.x series
as the newbusification progresses.

Submitted by:   mdodd
2000-01-14 07:14:17 +00:00
wpaul
f87edded23 Do a few minor cleanups. 2000-01-14 07:08:33 +00:00
kris
16a04bd228 (Forced commit) RSARef support is still forthcoming once I finish hacking
the code.
2000-01-14 05:51:14 +00:00
kris
fdd71b0f8f Build infrastructure for OpenSSL 2000-01-14 05:49:29 +00:00
kris
728ac76565 Fix breakage when NO_RSA specified.
Reviewed by:	Ben Laurie <ben@openssl.org>
2000-01-14 05:24:08 +00:00
peter
2196bee6e9 Don't do device_set_desc() until after checking for PnP probes. Otherwise
things like sound cards can get called "Parallel port".  A note to the
unwary; the isa-pnp devices in the system are probed like PCI - each
device ID is passed to *all* isa probe routines to find the best match.
If the driver is not prepared to deal with this, it must abort in this
scenario or it will try and claim all PnP devices.
2000-01-14 05:03:23 +00:00
dillon
53da3b72da Non-operational change, fix compiler warning.
Reviewed by:  mckusick
2000-01-14 04:39:28 +00:00
gibbs
85f2a7df4d The error status for a scsi status error is "CAM_SCSI_STATUS_ERROR", not 0. 2000-01-14 03:39:30 +00:00
gibbs
b65c047639 adv_pci.c:
Update list of supported products.
	Adjust probe message to include the ASC3030.

advansys.c:
	Fix a long standing bug in the error recovery strategy.  In order
	to keep recovery simple, we freeze the SIMQ, stopping the XPT from
	submitting new requests.  Unfortunately, we also will freeze the
	SIMQ if bus_dmamap_load blocks or we run out of controller resources.
	On cards with limited resources it was possible to freeze the
	SIM a second time and never unfreeze it.  Now we more carefully
	track our exception state so we never freeze the SIMQ more than
	once.

	Don't rely on pointers fitting in a 32bit field stored in the
	per-transaction data structures on the card.  Use an index to
	an array of transaction mapping structures instead.  This should
	allow this driver to work on the Alpha.

	Deal with the ASC3030 which is almost idistinguishable from the
	ASC3050.  Unfortunately the ASC3030 does not work at Ultra speeds,
	so if we can't find an eeprom, we must assume that ultra is disabled.
	The SIIG cards using the 3030 do not have eeproms.  As a side effect,
	we now honor the ultra disable bit in the eeprom if it is present.

	Don't bother attempting to write corrected eeprom data back to the
	eeprom.  We can function just fine if the data is corrupted and
	I'd rather not risk messing up the user's eeprom.

	Modify the interrupt handler to catch latched external bus rests.

	Dynamically determine the maximum number of S/G elements we can
	map at a single time.  The nature of the firmware interface for
	these cards makes this value dependent on the number of "queues"
	the card can support.

advlib.c:
advlib.h:
advmcode.c:
advmcode.h:
	Synchronize with the latest firmware image released in the
	Linux Advansys driver.
2000-01-14 03:33:38 +00:00
wpaul
25bfa75395 Add device driver support for USB ethernet adapters based on the CATC
USB-EL1202A chipset. Between this and the other two drivers, we should
have support for pretty much every USB ethernet adapter on the market.
The only other USB chip that I know of is the SMC USB97C196, and right
now I don't know of any adapters that use it (including the ones made
by SMC :/ ).

Note that the CATC chip supports a nifty feature: read and write combining.
This allows multiple ethernet packets to be transfered in a single USB
bulk in/out transaction. However I'm again having trouble with large
bulk in transfers like I did with the ADMtek chip, which leads me to
believe that our USB stack needs some work before we can really make
use of this feature. When/if things improve, I intend to revisit the
aue and cue drivers. For now, I've lost enough sanity points.
2000-01-14 03:14:49 +00:00
jasone
241bd93929 Add aio_waitcomplete(). Make aio work correctly for socket descriptors.
Make gratuitous style(9) fixes (me, not the submitter) to make the aio
code more readable.

PR:		kern/12053
Submitted by:	Chris Sedore <cmsedore@maxwell.syr.edu>
2000-01-14 02:53:29 +00:00
hosokawa
5955c7b344 Eliminate PC-card installation floppy and add PC-card support for
generic installation floppy.
2000-01-14 02:17:57 +00:00
wpaul
3e7d883777 Pull my head out of my ass and actually make the tx netisr stuff work right.
Do not not not call m_freem() in the txeof routines. Let the netisr routine
do it. This also makes the tx netisr queuing much simpler (I can just use
another ifqueue instead of the mess I had before.)

Thanks to Bosko Milekic for making me actually think about what I was
doing for a minute.
2000-01-14 01:36:16 +00:00