Commit Graph

13728 Commits

Author SHA1 Message Date
oster
9dfe7eee91 Use the newly added RF_DEBUG_STRIPELOCK to effectively remove a bunch
of stuff that most of the world will never want to use.
2002-09-11 02:52:33 +00:00
oster
fc178c4727 Add a new debugging #define: RF_DEBUG_STRIPELOCK 2002-09-11 02:51:21 +00:00
oster
cdb79dd4ae Nuke unneeded #include "rf_debugprint.h" 2002-09-11 02:22:49 +00:00
nathanw
cdee09ffbb At least some versions of the M-Systems DiskOnKey also need
UMASS_QUIRK_NO_MAX_LUN.
2002-09-10 16:52:48 +00:00
oster
5965f8b92a Disallow 'reconstruct-in-place' on a component that has failed
and has already been reconstructed to a hot spare.
2002-09-09 02:44:17 +00:00
oster
23f63d631e On a 'raidctl -f' or 'raidctl -F', close the failed component.
Thanks to Grant and Matt (phone) for poking me about this.
2002-09-09 01:54:53 +00:00
isaki
4ff27b57fb Correct xfer->busy_free status in DIAGNOSTIC. 2002-09-08 07:58:14 +00:00
oster
b07b6381d5 Protect rf_PrintDAGList() in a few more places. Thanks to Monroe Williams
on current-users for the patch.
2002-09-07 23:11:46 +00:00
uwe
d7b7f858cb Regen for Integraphics Systems CyberPro 2000 and 2010. 2002-09-06 23:58:11 +00:00
uwe
5619fe21f9 Add product ids for Integraphics Systems CyberPro 2000 and 2010. 2002-09-06 23:41:56 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
petrov
3962bed888 compiler warning. 2002-09-05 08:02:29 +00:00
martin
a9cd647f4d Adapt to recent sbusvar.h changes.
Use a slightly less conservative timing configuration.
2002-09-04 16:17:52 +00:00
martin
e7856d0f2a Adapt to sbusvar.h changes. 2002-09-04 16:12:23 +00:00
scw
0dbf19c561 Add a flag, SMC_FLAGS_32BIT_READ, which is settable by the bus-specific
back-end to indicate that the device always sees reads as 32-bit
transactions, even if the host does 8 or 16-bit reads.

This is necessary for the SH-5 "Cayman" on-board ethernet. The SMsC part
is behind an FPGA which maps all cpu reads to 32-bits transactions.
2002-09-04 14:54:37 +00:00
itojun
5e8477f10f correct integer overrun 2002-09-04 03:58:37 +00:00
mason
8b01de5e08 Commit with correct RCS IDs in these files - hadn't looked into them
previously to note that they reference the RCS ID in "pcmciadevs".
Hence, committed versions which incorrectly pointed back to the RCS ID
of the "pcmciadevs" that existed prior to my addition. Corrected in this
commit.
2002-09-04 02:21:09 +00:00
thorpej
467482eee8 Add support for memory-mapped PCnet-PCI chips. 2002-09-04 01:36:07 +00:00
mason
8e9d888f97 Support this device, which is evidently a rebadged GEMTEK WLAN which we
already support under another name:

wi0 at pcmcia0 function 0: NETGEAR MA401RA Wireless PC, Card, ISL37300PEval-RevA
wi0: 802.11 address <whatever>
wi0: using RF:PRISM2.5 MAC:ISL3873B(PCMCIA)
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.6)
2002-09-04 00:04:03 +00:00
augustss
405cd45f89 Replace the mr driver with the gtp driver. From OpenBSD. 2002-09-03 18:54:41 +00:00
augustss
2f5aeb92d3 Use a different way to recognize tea5759 chips. From OpenBSD. 2002-09-03 18:53:40 +00:00
thorpej
0007acff8b Fix the PARTID for the original 79c970, from Dave Barnes, kern/18029. 2002-09-03 17:57:49 +00:00
jdolecek
6fcbc6b230 regen: Cabletron 22xx (AMD LANCE/PCnet Ethernet) addition 2002-09-03 17:42:54 +00:00
jdolecek
5c2a73c8d7 According to kern/17695, the Cabletron 22xx works with the NetBSD
Lance Ethernet driver attached to isapnp. Add it to the list.
2002-09-03 17:42:26 +00:00
onoe
26ebf5f371 Several fixes hostap for awi driver:
- aging ang clear inactivity stations
- DTIM field in beacon/probe response.
- ignore IFF_PROMISC for hostap mode, since 802.11 has 3 address fields,
  so that promisc mode is not required for AP function.
2002-09-03 14:54:00 +00:00
itojun
c0a8cbae7c drop garbage packet (due to chip bug) before injecting it to bpf.
make sure to behave as IFF_SIMPLEX, some lance chips does not behave as
IFF_SIMPLEX (e.g. vmware in outgoing multicast case).
http://mail-index.netbsd.org/tech-net/2001/05/16/0001.html
2002-09-03 14:48:16 +00:00
onoe
efcfc3e1c8 Add experimental support of Host-AP mode for awi driver.
It works also with WEP enabled.
But aging the associated clients is not implemented yet, so that the number
of clients may increase unlimitedly..
2002-09-02 13:37:35 +00:00
mjacob
e2f3e02af9 Do not enable interrupt driven mailbox commands for non-FC scsi. 2002-09-01 22:30:09 +00:00
takemura
6a286a4f2a BUGFIX: WSDISPLAYIO_SVIDEO and WSDISPLAYIO_GVIDEO don't work. 2002-09-01 11:38:29 +00:00
uwe
e724974d54 Add quirks for Neodio ND5010. 2002-08-31 22:51:16 +00:00
ad
e7ab6ca550 Nuke incorrect mailbox length defines and just use 13 everywhere. May help
with PR/14266.
2002-08-31 05:18:03 +00:00
abs
f951ddc019 Fix AHC_NO_TAGS to actually disable tagged queuing, and document. 2002-08-30 21:54:10 +00:00
hannken
815491c0b3 Remove the old device buffer queue interface.
Approved by: Jason R. Thorpe <thorpej@wasabisystems.com>
2002-08-30 15:43:36 +00:00
ross
839099aa7b regen 2002-08-30 00:34:09 +00:00
ross
b2703dc568 fix typo 2002-08-30 00:33:15 +00:00
bouyer
3d187bd055 The 1010 will generate a scsi gross error if a RAM entry is read before being
written (i.e. is used uninitialised). The esiop SCRIPT may do this in some
circonstances (and it is safe) so bus_space_set_region_4() the RAM in
reset routine.
Problem reported and fix tested by Allen Briggs.
2002-08-29 18:23:52 +00:00
augustss
186b9996e7 Regen. 2002-08-29 16:46:36 +00:00
augustss
d498b930ff Add two devices. 2002-08-29 16:46:15 +00:00
bouyer
f86eed6ce2 Add definitions for the AIP control registers (1010 only). 2002-08-29 16:43:23 +00:00
bouyer
b13c46b64c Fix typo in comment. 2002-08-29 15:42:49 +00:00
martin
95617c00d7 Experimentation shows the hme chip is SIMPLEX if used in full-duplex
mode, but not otherwise.

This fixes PR 17523.
2002-08-29 14:33:03 +00:00
matt
e25f13dfbe From OpenBSD:
- Fix one typo (instead of two disable_rx, one disable_rx and one disable_tx)
[The other bug fix isn't appropriate since the was OACTIVE is dealt with
has been changed in NetBSD.]
2002-08-28 17:46:58 +00:00
dsainty
278bea1a2b Fix playback at 48kHz sample rate (integer overflow bug introduced in 1.18) 2002-08-28 10:51:03 +00:00
onoe
fd9daca7ea Attach another DLTs for bpf: DLT_IEEE802_11 to capture raw 802.11 frame. 2002-08-28 09:38:08 +00:00
toshii
e2d964c3ec Remove a superfluous interrupt request bit in yuvpack_prog,
which confuses the state machine in common_bktr_intr.
This makes "mplayer -tv ..." work (but only with NTSC).
2002-08-28 06:06:10 +00:00
thorpej
d8e650d53a * The Netgear GA-621 is a 64-bit card, so add it to the 64-bit
quirk table.
* We want to hardwire BMSR_EXTSTAT, not BMSR_EXTCAP, when reading
  the TBI BMSR.
* Fetch the GPIO bits from the GPIOR register after an auto-load,
  rather than reading from the EEPROM directly.
2002-08-26 22:52:02 +00:00
uwe
ee45afec36 Add no strings quirk for Neodio ND5010. 2002-08-26 21:34:28 +00:00
uwe
6504ec382d Regen for Neodio/ND5010. 2002-08-26 20:25:06 +00:00
uwe
fd02e2f63b Add Neodio and their nd5010 multi-format flash controller. 2002-08-26 20:18:56 +00:00
ad
35c2b89513 Add an ioctl to retrieve basic controller information. 2002-08-26 17:02:15 +00:00
martin
d797b29d85 Give arrays in the softc indexed by channel number the right size
and define a symbolic name for the number of channels.
2002-08-26 17:00:42 +00:00
ad
fba11cbab8 Handle aincent firmware as found on EISA/MCA boards. Untested. 2002-08-26 15:27:12 +00:00
scw
ce2ec9e63e Add support for the SMsC LAN83C183 PHY, which actually probes as a
Seeq 84220.

Also add an 84220-specific work-around for some braindamage (at least
in the PHY I'm working with) where the PHY always comes out of reset
isolated, regardless of the previous state of the BMCR_ISO bit. This
happens even if the PHY has address zero, which is contrary to the
part's datasheet...

The work-around is only applied if we notice BMCR_ISO is set when it
should be clear following reset. The fix is to wait 30mS and clear
it manually. (The change doesn't stick if it's cleared sooner than this)
2002-08-26 11:13:13 +00:00
ragge
217df25ecc Include DMF32/DMZ32 files. The actual device drivers will be checked in when
the licensing of the 4.4BSD encumbered files are solved.
2002-08-26 08:08:06 +00:00
itojun
9287c3fbb9 need to set wantinit variable 2002-08-26 07:38:34 +00:00
itojun
3931bcf3a3 suppress some of debugging output (IFF_DEBUG will re-enable it). PR 18069 2002-08-26 07:37:26 +00:00
petrov
a413e88543 Accept WDTR from device(based on John Heasley patch for SCSI3 drive).
Do not define NCR53C9X_DEBUG.
2002-08-26 06:23:32 +00:00
petrov
3a67429963 Start SYNC/WIDE renegotiating in controller reset, rearrange debug output. 2002-08-26 05:17:48 +00:00
petrov
584ece2d73 Dispose unused tinfo flags. 2002-08-26 05:14:47 +00:00
thorpej
f066e17960 Fix some signed/unsigned comparison warnings from GCC 3.3. 2002-08-25 19:11:16 +00:00
bouyer
9ca1f94f72 Support Ultra/133 on promise controllers that can do it. 2002-08-25 17:26:58 +00:00
bouyer
a9d165fd6a Correct setup for Ultra133 capable VIA chipsets, From Matthias Drochner
on current-users, with cross-check and some improvement from linux-2.4.19
and FreeBSD-current.
Also don't set the APO_UDMA_CLK66 bit for Ultra/100 capable chipset, and
support Ultra/133 for the VT8233A.
2002-08-25 17:25:33 +00:00
bouyer
7e6804d723 Add support for Ultra/133 (ultra-DMA6) in wdc_probe_caps(). 2002-08-25 17:22:38 +00:00
augustss
bd028c470a Fix a name I forgot. 2002-08-24 17:58:15 +00:00
augustss
ffc3083503 Attach Bluetooth host controller driver (which has not been written) to
ubt device.
2002-08-24 17:31:19 +00:00
augustss
7db70d7d18 Add some placeholders for Bluetooth code. 2002-08-24 17:30:13 +00:00
augustss
4e63b2ebe1 Add needs-flag for ubtbcmfw. 2002-08-24 17:27:53 +00:00
augustss
36e33c869d Add sysctl support to firmware loader. 2002-08-24 17:24:04 +00:00
itojun
a8b4aa9a72 #if 0 out call to rnd_add_uint32() in interrupt logic until thorpej
measures performance differences.
2002-08-23 16:30:10 +00:00
bouyer
0d17a940f8 Add support for HPT372. From sdegler@kashmir.degler.net in kern/17908,
with some improvement from me, and from FreeBSD.
2002-08-23 16:24:54 +00:00
bouyer
1a7bae9619 Add support for Promise Ultra133TX2 and Ultra133TX2v2, from FreeBSD and
stephen@degler.net in kern/17509.
2002-08-23 16:02:32 +00:00
bouyer
ea9862cb62 Regen: Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID 2002-08-23 15:57:04 +00:00
bouyer
f49156d31c Add Promise Ultra133TX2 and Ultra133TX2v2 PCI ID. 2002-08-23 15:56:30 +00:00
itojun
e68a39d27b attach random number source. 2002-08-23 07:45:39 +00:00
thorpej
90817e313c Use the structures defined in bsd_openprom.h for "reg", "range",
and "intr" properties, rather than having identical-except-for-names
sbus_* and iommu_* versions.
2002-08-23 02:53:10 +00:00
augustss
6add8c3d67 Remove some debugging crap. 2002-08-23 00:58:58 +00:00
augustss
fb1033e35b Add firmware downloader for BCM2033 (no firmware yet; waiting for OK
from Broadcom).
2002-08-23 00:55:20 +00:00
augustss
19801c46c9 Regen. 2002-08-23 00:53:58 +00:00
augustss
70dfad754f Use separate ids for BCM2033 before and after firmware download. 2002-08-23 00:52:45 +00:00
martin
be6275d6fc Add a mixerctl to mute the internal (mono) speaker via
"mixerctl -w monitor.mono=off".

From Sung-Won Chung, slightly modified. All errors by me.
2002-08-22 20:42:22 +00:00
augustss
974cba9514 Print a message saying that this is not real driver. 2002-08-22 10:17:46 +00:00
augustss
4b34ae978d A placeholder until we have a real Bluetooth driver. 2002-08-22 10:15:57 +00:00
augustss
f7f7bb1ee4 Update class codes. 2002-08-22 10:15:12 +00:00
augustss
b8a7c4ede8 Add Bluetooth related classes etc. 2002-08-22 10:08:34 +00:00
martin
f2889deae7 Argh! Remove accidently commited debug changes. 2002-08-22 10:06:22 +00:00
martin
0d833862da Fix output volume handling, port-sparc64/18033 from Sung-Won Chung. 2002-08-22 10:02:21 +00:00
augustss
cbd5a8c29d Fix typo. 2002-08-22 09:57:13 +00:00
augustss
7ad63025e4 Fix an error message. 2002-08-22 02:54:18 +00:00
augustss
8a40ad021e Regen. 2002-08-22 02:12:16 +00:00
augustss
bd7284c0c1 Add Apple's Bluetooth adapter (Broadcom BCM2033). 2002-08-22 02:11:53 +00:00
itojun
7b0ecaee62 use RND_ENABLED() to avoid unneeded function call. should help if_gsip case. 2002-08-21 03:59:31 +00:00
onoe
19a6d3dfb3 Make the meaning of media options consistent with other wireless drivers.
mediaopt adhoc  802.11 adhoc (IBSS) mode.  IBSS creation is enabled
			for cards which can create IBSS.
	mediaopt adhoc,flag0    old lucent adhoc demo mode.
Note that [adhoc] media options for wi driver was used for adhoc demo mode,
which is NOW CHANGED.
2002-08-21 03:26:29 +00:00
christos
64bf5ef14f Fix battery support (Masanori Kanaoka).
XXX: ToDo: Still the battery charge is 96% when the battery is
fully charged on my libretto because of the estimated total charge offset.
2002-08-20 14:07:51 +00:00
itojun
76f65d83e3 attach random number source. 2002-08-20 00:35:46 +00:00
itohy
125a1bc0a9 Leaving overflow-sensitive code, very similar to what was fixed
in the previous changes to cfb.c / sfb.c / xcfb.c, would not be clever.
Just modify in the similar way.
2002-08-19 13:05:42 +00:00
itohy
a64e475289 Make it compile again.
Hi, itojun!
2002-08-19 03:52:53 +00:00
kanaoka
6e12c44e0f - Fix typo in a message.
- Avoid to divide by 0.
   When booting without battery, sc->sc_design_capacity become 0.
2002-08-18 07:45:04 +00:00
thorpej
3e3fdc01e9 * After testing for DD on a descriptor, and finding it clear,
sync that descriptor with PREREAD to make sure that it is evicted
  from the data cache.  From Allen Briggs.
* With the above bug fixed, stop using BUS_DMA_COHERENT, resulting in
  a fairly decent performance improvement on systems where BUS_DMA_COHERENT
  causes descriptors to be accessed uncached (most painful in wm_start()).
2002-08-17 20:58:04 +00:00
mjacob
672c41205f If we're using ancient (pre 1.17.0) 2100 f/w (for the cards that cannot
load f/w images > 0x7fff words), set ISP_FW_ATTR_SCCLUN. We explicitly
don't believe we can find attributes if f/w is < 1.17.0, so we have to
set SCCLUN for the 1.15.37 f/w we're using manually- otherwise every
target will replicate itself across all 16 supported luns for non-SCCLUN
f/w.
2002-08-17 17:31:53 +00:00
mjacob
bb6cb67b54 Further fix problems with 23XX ISR handling and correctly initialize the
23XX to use ZIO in preference to fast posting.
2002-08-16 21:43:14 +00:00
heinz
306c75457d regen 2002-08-16 15:08:08 +00:00
heinz
fb31736257 Add Lucent/Agere FW322/323 IEEE 1394 controller 2002-08-16 15:03:02 +00:00
kent
4cb030f3b9 Fix division-by-zero when auich_set_params() is called before auich_calibrate(). 2002-08-16 11:22:13 +00:00
thorpej
b9d86783bf * Hard-code EXTSR_1000XFDX|EXTSR_1000XHDX for reads of the MII_EXTSR
in the TBI case.
* Force BMSR_ANEG | BMSR_EXTCAP to be returned for reads of the MII_BMSR
  in the TBI case.
2002-08-16 07:10:56 +00:00
thorpej
00a0212e10 Update a comment; TCP/IP checksum offloading is fixed! 2002-08-15 18:35:25 +00:00
briggs
8d5eb3e93d On transmit, zero the upper 32 bits of the address in the tx descriptor.
The descriptor may have been used as as context descriptor in the past,
in which case this field will be non-zero.  h/w checksum offload works now.
2002-08-15 18:29:02 +00:00
christos
4251568ad8 Fix multi-function card memory problems:
- centralize pcmcia function allocation and free'ing.
- free the cfe too, not just the pf in the multifunction card case.
- don't free pointers while walking the list, because free() will
  fill the memory with deadbeef, thus killing list walking.
2002-08-15 10:37:02 +00:00
augustss
bbe21e45f5 Move a quirk tests so the message printed about directionality is right. 2002-08-15 09:32:50 +00:00
augustss
b8866543d8 Set segment register if the device is 64 bit capable. 2002-08-14 11:20:28 +00:00
augustss
8e1e1415f8 Add Palm m515. From FreeBSD. 2002-08-13 11:38:15 +00:00
augustss
65d64346a9 Regen. 2002-08-13 11:37:22 +00:00
augustss
40c21e37cd Add Palm m515. From FreeBSD. 2002-08-13 11:37:09 +00:00
enami
18f74c0e31 The revision of new document is 1.0. 2002-08-13 09:58:05 +00:00
augustss
489236c043 Increase the timeout waiting for reset to finish.
Update documentation URL.
2002-08-13 09:51:27 +00:00
mjacob
93ad4971f1 Various changes to allow for overriding just loopid and/or iid.
Fix a random 23XX ISR reading bug. Be chattier about HBA_BOTCH
errors. More f/w cashdump layering.
2002-08-12 21:33:39 +00:00
thorpej
1336889c8a wi_keylen is kept in little-endian order, so le16toh() it before
using it in e.g. a memcpy() call.
2002-08-12 16:56:39 +00:00
enami
d21877b892 No longer need to calculate geomsize if we use fictitious geometry. 2002-08-12 02:34:12 +00:00
thorpej
1cb29bde17 Pass all 3 parameters to wi_cmd(). 2002-08-11 22:03:43 +00:00
thorpej
b336ee00cd * Fix a Lucent <-> Prism2 WEP interop bug. We only want to set the
EXCLUDE_UNENCRYPTED bit in the WI_RID_P2_ENCRYPTION value if we are
  in shared key mode.  Symbol cards, just to be different, supposedly
  always want the EXCLUDE_UNENCRYPTED bit set (confirmed with the
  Linux orinoco and spectrum24 drivers).

* Flesh out the Host-AP WEP transmit side.  Note this does not yet
  work properly; the frame as seen by the receiver FCS's incorrectly.

Both changes from OpenBSD.  Not confirmed whether or not Host-AP WEP
works with OpenBSD (mail sent to millert).
2002-08-11 21:54:19 +00:00
thorpej
3ebfddbcca Remove an unused member from the softc. 2002-08-11 21:50:06 +00:00
thorpej
c4ec970f17 Remove a redundant defn. 2002-08-11 21:49:40 +00:00
isaki
dd0e0396bc Add driver for ScanLogic SL811HS/T USB Host Controller.
XXX It's experimental code yet.

For x68k: USB part of Nereid USB/Ethernet/memory board
For ISA:  ISA USB Host board from Morphy planning
2002-08-11 13:17:52 +00:00
drochner
29c16c72fb -avoid lock leak in error case
-Free AGP memory on close, to avoid a memory leak in case
 the X server doesn't free it explicitely.
 (It appears that the X server never calls AGPIOC_DEALLOCATE.)
 Fixes PR kern/17869 by Emmanuel Dreyfus.
2002-08-11 12:40:47 +00:00
drochner
ce5452e87b update the is_bound flag for local memory too 2002-08-11 12:36:21 +00:00
thorpej
22c90da7f0 Snapshot of work-in-progress: Add AP support for Prism2-based boards.
WEP for APs is not yet implemented, but without WEP, this works well
enough for my laptop to associate with an AP running this code.

Adapted from OpenBSD.
2002-08-11 06:13:53 +00:00
thorpej
918a335551 Use WI_RID_DATA_RATES to fetch the supported rates. From OpenBSD. 2002-08-11 01:35:10 +00:00
thorpej
bb718bd6e3 * Add "wi_flags" to the softc to indicate capabilities of the card. Fill
in this info based on firmware type and version.  Replace "wi_has_wep"
  with a flag.
* For cards which support IBSS, add "ibss" has a media option.
* For cards which support CREATE_IBSS, add "ibss-master" as a media
  option.
* Use the "ibss" and "ibss-master" media options to determine if
  we should go into IBSS mode and/or create the IBSS.
* Internally convert between the generic WI_PORTTYPE_IBSS and the
  value the firmware wants to use for IBSS.
* When setting the IBSS name, if a desired-SSID is set, and we're
  an ibss-master, write the desired-SSID into the own-SSID slot.
  This ensures that "ifconfig wi0 nwid FOO" will do the expected
  thing.
* Only set the roaming mode if the card supports roaming.

From OpenBSD.
2002-08-11 01:30:28 +00:00
thorpej
d1737f8f98 Only read supported rates on Prism2 boards. 2002-08-11 00:11:52 +00:00
thorpej
375eb183ff Read supported rates from the card and report them. Only add
media types if that rate is supported.

Adapted from OpenBSD.
2002-08-11 00:00:41 +00:00
thorpej
dbae3bd18f Define PORTTYPE constants for IBSS and HOSTAP (already in the
comments!).
2002-08-10 23:29:53 +00:00
thorpej
742ad68157 Fix some whitespace. 2002-08-10 23:16:14 +00:00
thorpej
1fa46f89f9 Preliminary support for the ten-bit interface on the DP83820. This
code needs more testing, and more bug fixing.
2002-08-10 22:57:15 +00:00
thorpej
5689818798 Don't treat the "reset complete" interrupts as errors. Doing so
causes us to go into a reset/interrupt/reset/... loop.
2002-08-10 22:54:54 +00:00
toshii
16a190bb23 Use UDMA/100 on SiS745 chipset. 2002-08-10 16:33:23 +00:00
toshii
7576c71257 Regen; added SiS745 host bridge. 2002-08-10 16:30:45 +00:00
toshii
a4e64b08d4 Add SiS745 host bridge. 2002-08-10 16:26:14 +00:00
drochner
724142aab4 regen 2002-08-08 15:17:02 +00:00
drochner
2b013b41b9 add another quickcam 2002-08-08 15:16:22 +00:00
itojun
514ea24105 audit bitmask test mistake (s/&&/&/). from openbsd 2002-08-08 15:08:55 +00:00
drochner
681c8f675a regen 2002-08-08 09:57:21 +00:00
drochner
fa4f52ebfd addanother ppb 2002-08-08 09:56:38 +00:00
oster
2a80a0fbe1 make 'configureMutex' be a lockmgr lock instead of a simple lock.
The result is MUCH fewer complaints with kernels compiled with LOCKDEBUG.
2002-08-08 02:55:36 +00:00
oster
7c2df6a96d Initial kick at some functions to provide lockmgr lock support
instead of only simplelock support.
2002-08-08 02:54:29 +00:00
oster
813fbd6152 RF_LOCK_MUTEX()/RF_UNLOCK_MUTEX() often cover more code than they
needs to.  In particular, they often surround calls to malloc().
Re-work the locking on most macros to avoid this problem.

XXX: On MP systems, simultaneous calls to the GET macros when a
freelist is empty may cause that freelist to grow more quickly than
before.  Given that the "increment" value of these lists are fairly
small, this shouldn't be too much of an issue.
2002-08-08 02:53:01 +00:00
thorpej
2b615e62c4 Add support for the new i82540, i82545, and i82546 Gig-E chips. The
i82546 chip has 2 Gig-E interfaces in a single chip.

The main difference is these chips have a special handshaking protocol
for accessing the EEPROM (due to the shared nature on the i82546).
2002-08-08 00:12:08 +00:00
fvdl
660edcbaff Match 881011 PHY. 2002-08-08 00:04:57 +00:00
fvdl
86710d1b0a Regen after addition of marvell 881011. 2002-08-08 00:04:28 +00:00
fvdl
b068d9297a Add ID for Marvell 881011 phy found on newer i8254x-based gig-e cards. 2002-08-08 00:03:42 +00:00
augustss
ac60be1a15 Regen. 2002-08-07 23:26:34 +00:00
augustss
e815298273 Correct product name for the Genesys hub. 2002-08-07 23:26:18 +00:00
oster
9c2db4ef79 Let's not bother poking CD's to see if they might have RAID sets
on them.
2002-08-07 20:45:39 +00:00
augustss
8abb6b6ba2 Fix some braindead calls to free memory (only encountered under low memory
conditions).  From OpenBSD.
2002-08-07 20:03:19 +00:00
augustss
d027824a17 Regen. 2002-08-07 15:39:43 +00:00
augustss
f19e258062 Add a Genesys hub. 2002-08-07 15:39:23 +00:00
kent
3898bab95a - Port clock calibration code (auich_calibrate) from ich.c of FreeBSD to solve
kern/16373.
- SiS 7012 support from kern/17716 submitted by Quentin Garnier.
- ICH4 support
- Experimental support for nForce MCP, AMD768 and AMD8111.
- Rename the short name for ICH3: "i830M" -> "ICH3"
2002-08-07 10:31:09 +00:00
simonb
d436dc19f3 Fix a typo in a comment. 2002-08-07 04:53:18 +00:00
simonb
fdfab8da56 Fix a typo in a comment. 2002-08-06 23:51:43 +00:00
augustss
61a3b5e422 Pull in tea5757.c for the mr driver. Fixes kern/17864. 2002-08-06 23:09:10 +00:00
itojun
8e7a88a3ff integer overflow. from silvio@qualys.com 2002-08-06 22:51:45 +00:00
kim
462f87e7fd Missing comma in aenfmt array initialization. 2002-08-06 20:47:44 +00:00
soren
9e129fde67 Add ATA SMART reporting support from Ben Collver in kern/12787. 2002-08-05 23:29:27 +00:00
onoe
248c861292 Fix IBSS for awi driver. 2002-08-05 06:55:05 +00:00
thorpej
82421f1fdb Regen; added ADI BECC product ID. 2002-08-04 21:47:58 +00:00
thorpej
4da9d49d31 Add product ID for the ADI i80200 Big Endian Companion Chip. 2002-08-04 21:47:25 +00:00
oster
2a9c8b7cfd One less debug option. 2002-08-04 03:33:04 +00:00
oster
522009f8a9 Nuke some unneeded #includes. 2002-08-04 03:27:04 +00:00
oster
1387eac16b Remove a couple of options that are obsolete. 2002-08-04 03:26:39 +00:00
oster
6ad082845f Let's just say that the way things were stored in the array for the
debugging buffer made it much less useful than it appears.  More memory
for other things now.
2002-08-04 03:22:07 +00:00
thorpej
16003abd0f Add standard names for 5-, 6-, 7-, and 8-way XOR. 2002-08-04 02:17:06 +00:00
thorpej
4c1506f740 *Actually return* EINVAL when the output stream UIO's I/O is larger
than SSIZE_MAX.
2002-08-04 01:52:00 +00:00
kent
78f533176c regen 2002-08-03 17:12:42 +00:00
kent
dc268b4f91 Add the following:
- SiS 7012 AC-97 (kern/17716)
 - NVIDIA nForce MCP AC-97
 - AMD 8111 AC-97
2002-08-03 17:10:35 +00:00
soren
0320ffcb2e Regen. 2002-08-03 14:41:01 +00:00
soren
906d3a8670 Add some Canon cameras. 2002-08-03 14:40:44 +00:00
oster
354a8ea84b Improve error messages. 2002-08-03 01:24:03 +00:00
oster
48a3ce178f Nuke function prototypes for previously nuked functions. 2002-08-03 01:07:53 +00:00
oster
91d1d5d729 Nuke two more functions that arn't used anywhere and are only contributing
to kernel bloat.
2002-08-03 01:06:48 +00:00
soren
5db905460e CG3 on at least the Classic doesn't have a "model" name, so fake one. 2002-08-03 00:59:00 +00:00
oster
35940367a4 Cleanup configuration and auto-configuration information printing.
Thanks to mrg for the suggestions.
2002-08-03 00:55:54 +00:00
oster
61015077a7 Backout some "new stuff" that accidentally got included on the last commit. 2002-08-03 00:38:42 +00:00
itojun
8dd04cdcd7 correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls.  from openbsd
2002-08-03 00:12:48 +00:00
soren
5fa952b83f As in PR kern/10999 from Matthew Orgass, make the panic message more
helpful in the case where no console device has registered.
2002-08-02 19:55:32 +00:00
soren
f69878391e Regen. 2002-08-02 19:36:26 +00:00
soren
6d154bbd46 Add O2 Micro Cardbus bridge ID from PR kern/17469 by Nicolas Joly. 2002-08-02 19:35:43 +00:00
explorer
4dd0826200 display the V, W, and Wh rather than mV, mW, and mWh 2002-08-02 16:51:48 +00:00
oster
4488afa61f Do not truncate the size of the vnd, as that will cause lossage with
images with sizes that are not multiples of 1MB.  Fix as proposed by me on
tech-kern, and ok'ed by Christos.
2002-08-02 14:43:32 +00:00
ad
22a1da8740 Regen. 2002-08-02 12:45:23 +00:00
ad
7416434a87 PR 17719 from Mark Davies: Additional Adaptec RAID controller types. 2002-08-02 12:44:42 +00:00
bouyer
d9c216c219 Add Siig 20x 8 ports and and Oxford x952 cards. From Paul Shupak in kern/17790. 2002-08-02 10:40:30 +00:00
bouyer
36969486b0 Add yet another broken sony cdrom. This one, in addition to broken LUN
handling, has broken sync negotiation. Also add PQUIRK_NOWIDE to be safe.
Fix PR kern/17773.
2002-08-02 08:00:36 +00:00
thorpej
32ff91814a Add "xor2", "xor3", and "xor4" function names, which perform an
XOR on 2, 3, and 4 input streams, respectively.
2002-08-02 06:45:40 +00:00
thorpej
add44d0f41 Fix a signed/unsigned botch that broke an error recovery path.
(I could have sworn I fixed this bug over a week ago...)
2002-08-02 06:35:59 +00:00
oster
d64a7f44ce - AuxFunc is no longer used.
- cleanup function prototypes in rf_diskqueue.h
2002-08-02 04:01:51 +00:00
oster
5dcdb1e4d9 It appears that nothing is using rf_CreateDiskQueueDataFull. Make it even
harder to do so by removing it.
2002-08-02 03:55:13 +00:00
oster
475b3447d1 Bye-bye to the memchunk files. 2002-08-02 03:48:14 +00:00
oster
8ffec04f7c rf_memchunk.c is no longer needed. 2002-08-02 03:47:48 +00:00
oster
752e8eb5c8 - remove "#include "rf_memchunk.h"
- nuke the call to rf_ConfigureMemChunk() from rf_driver.c
2002-08-02 03:42:33 +00:00
oster
fcc4232f71 Nuke stuff dealing with the experimental memChunk code. It's unused, and
currently only contributing to bloat.
2002-08-02 03:32:56 +00:00
oster
f8388364aa - remove memChunkEnable as an arg to InitHdrNode 2002-08-02 01:15:22 +00:00
thorpej
0cb8f6797b Fix a typo which caused the wrong register to be updated when
the media is not full-duplex.
2002-08-02 01:12:32 +00:00
thorpej
ff8c9fb45c Grr, fix typo in RCS ID tag. 2002-08-02 00:31:35 +00:00
thorpej
5d06c0e812 dmover(9) -- an interface to hardware-assisted data movers. This allows
clients to use a hardware-assisted data mover to clear a region of memory,
fill a region of memory with a specific value, copy a region of memory,
and perform simple boolean operations such as XOR on multiple regions
of memory.

Included here is a software back-end which can serve as an example of
how to write a back-end (and also provides a fall-back in case hardware
for a given function is not available), as well as a dmoverio(4) pseudo-
device which provides access to dmover(9) to userland via a message
passing interface.

dmover(9) is still a work-in-progress -- a few minor changes to the
interface are expected.
2002-08-02 00:30:37 +00:00
oster
bf72c7334c Unused code go bye-bye. 2002-08-02 00:24:56 +00:00
bouyer
8d3ed14056 Regen: remove duplicate entry for 82801DB_LPC. 2002-07-31 11:16:49 +00:00
bouyer
176bb1fe72 Ops, remove duplicate entry for 82801DB_LPC, pointed out by geoff wing. 2002-07-31 11:16:17 +00:00
simonb
10f735a013 Fix WDOGIOC_GTICKLER for userland ticklers. 2002-07-31 06:48:58 +00:00
bouyer
2362df5330 Add support for the 82801DB ICH4 IDE controller, from kern/17757 by
Andreas Wrede <andreas@planix.com>
2002-07-30 21:01:57 +00:00
bouyer
27198fbcab Regen: Add Intel 845G PCI IDs 2002-07-30 20:43:57 +00:00
bouyer
551aeaf8b3 Add Intel 845G PCI IDs, from kern/17743 by Andreas Wrede <andreas@planix.com> 2002-07-30 20:43:12 +00:00
augustss
0e796224d0 Remove warning about PCI bus configuration being broken since it
works now.
2002-07-30 15:01:15 +00:00
augustss
2dce9e8e5e Number PCI busses using a simple pre-order numbering instead of
some strange binary split numbering that doesn't work with multiple
bridges on the same bus, nor with deeply nested bridges.
2002-07-30 15:00:03 +00:00
augustss
056f94ceb3 Regen. 2002-07-29 20:08:50 +00:00
augustss
ef76dd6ed4 Add a couple of bridge devices. 2002-07-29 20:08:25 +00:00
simonb
21ffe19c1b Don't name parameters in a function declaration. 2002-07-29 05:57:16 +00:00
simonb
b8f11b739f ANSIfy, KNF. 2002-07-29 05:54:09 +00:00
augustss
eb7d3799cf Add a quirk for an In-System Design adapter. 2002-07-29 03:30:46 +00:00
augustss
a82acc0c6d Regen. 2002-07-29 03:30:00 +00:00
augustss
9e287c33a3 Add an In-System storage adapter. 2002-07-29 03:29:34 +00:00
augustss
9ae405a13b Add code to activate devices that are no active. 2002-07-29 03:26:20 +00:00
augustss
91282a0226 Another part of the PCI fixup change. 2002-07-29 03:25:18 +00:00
augustss
9891751782 Only be very verbose with ACPI_EXTRA_DEBUG set. 2002-07-29 03:10:16 +00:00
augustss
290fa82ceb Add code to perform PCI interrupt routing fixup. 2002-07-29 03:06:56 +00:00
augustss
1394e1ce1a A resource with 0 interrupts is not illegal; it occurs before interrupts
have been allocated.
2002-07-29 03:05:52 +00:00
christos
08ea4bc534 my card prints transmit aborted and then hangs. Let's try to reset it. 2002-07-28 15:41:00 +00:00
augustss
1d1e817466 Fix typo in macro. 2002-07-28 15:22:06 +00:00
wiz
645df36eff Spell '[Rr]ight' correctly. From Jim Bernard. 2002-07-26 14:11:34 +00:00
wiz
b02ee1f0b7 Two typos in comments. 2002-07-26 14:10:22 +00:00
joda
a48e860d85 regen; System controller in SGI O300 2002-07-26 13:32:49 +00:00
joda
78869892e3 System controller in SGI O300 2002-07-26 13:31:33 +00:00
onoe
46243dd61d Add support of Silicon Image 0680 Ultra ATA/133 ATA Controller.
It's ugly that all register values are written in numeric, but I can't
find any definition of the registers to be written in literal.
2002-07-26 10:23:30 +00:00
onoe
2354f208d4 regen: Add Silicon Image (CMDTECH) 0680 2002-07-26 10:17:21 +00:00
onoe
f0f7c1edb7 Add Silicon Image (CMDTECH) 0680 2002-07-26 10:14:00 +00:00
enami
ef6c924232 Don't sprinkle cleanup code here and there (necessary cleanup was missed). 2002-07-26 06:16:32 +00:00
wiz
5db23d2c5d enouth -> enough. 2002-07-26 01:00:39 +00:00
wiz
52078f1201 Correct function name in some debug printfs. (More could be done.) 2002-07-26 00:01:30 +00:00
ragge
535e154ac7 Correct ra disk instrumentation. From Johnny Billquist. 2002-07-25 12:13:03 +00:00
onoe
fdcde8230d Set desired ESSID for probe request. 2002-07-25 07:15:50 +00:00
matt
0594308e42 Add support for Belkin USB to LAN Converter. 2002-07-25 06:45:38 +00:00
matt
3e7edf7543 Regen. 2002-07-25 05:23:09 +00:00
matt
8dd631f144 Add Belkin USB2LAN converter 2002-07-25 05:22:38 +00:00
mjacob
0bf3a73821 Fixes kern/17573: correctly describe the bfi && physical sector defect list
formats.

Obtained from PR submitter.
2002-07-24 23:45:03 +00:00
hannken
f8908aa291 Convert to new device buffer queue interface. 2002-07-24 19:34:57 +00:00
oster
de6f092d9d RAIDframe doesn't need to be so chatty on autoconfigure. Leave it
a chatty if DEBUG is set... (for now..)
2002-07-24 02:55:22 +00:00
oster
4c591ca7bc Don't print the value of protectedSectors all the time. 2002-07-24 02:17:14 +00:00
rjs
2ce5cda977 Regenerate. 2002-07-23 23:12:48 +00:00
rjs
2ddb53c039 Add entries for:
Ositech Seven of Diamonds Ethernet Card
    Netgear FA410TX Ethernet Card
2002-07-23 23:11:04 +00:00
matt
7a023d8f5f Add a quirk for a HITACHI driver (CAP_SYNC|CAP_WIDE16). 2002-07-23 21:10:16 +00:00
hannken
9c4c15c084 Convert to new device buffer queue interface.
Approved by: Nathan J. Williams <nathanw@netbsd.org>
2002-07-23 20:49:54 +00:00
christos
fa08f33f2d PR/17686: Cliff Albert: Dynalink L10C pcmcia card is not supported 2002-07-23 14:11:11 +00:00
mjl
f790e45db0 Regen for Dynalink L10C 2002-07-23 10:35:28 +00:00