Commit Graph

17881 Commits

Author SHA1 Message Date
thorpej 27f0170634 Break out the wedge discovery methods into true modules, and add some
infrastructure that allows new ones to be added.  The discovery methods
are prioritized, and only one can exist at a given priority.

The DKWEDGE_METHOD_GPT option causes GPT support to be included.  GPT is
at priority 0; we prefer GPT above all others.
2004-10-01 05:16:04 +00:00
enami b4a9b4deed Don't touch free'ed object. Fixes l_holdcnt leak reported by Andreas Wrede
on current-users.
2004-10-01 03:39:11 +00:00
thorpej b1958acc5a Only really need FCFS here. Noted by yamt@ 2004-09-30 23:20:41 +00:00
cube 000afe4614 Regen. 2004-09-30 21:59:06 +00:00
cube 331512aeeb Add a bunch of devices found on the SuperMicro P4SCi motherboard. 2004-09-30 21:58:26 +00:00
briggs 1991e35ca9 PR kern/27088 from Jared Momose. The read function should specify the
length of the command buffer (1) instead of 0.  Otherwise, data will
have an implied offset of 0 and reads at non-0 locations will incorrectly
return the data from 0.  Fix as suggested in the report.
2004-09-30 18:57:39 +00:00
yamt 81378f8ab8 - mbuf external storage is of (caddr_t), not (caddr_t *).
- remove a needless cast.
2004-09-29 11:22:03 +00:00
bouyer b31a120195 Add a WD_QUIRK_FORCE_LBA48 quirck, which forces all access to use LBA48.
Use it for ST3200822A, which has a broken firmware and return an error
when accessing sector 0xfffffff with a LBA command.
Patch tested by David Brownlee.
2004-09-28 18:22:33 +00:00
yamt 5735ef17ab ex_add_rxbuf: use MRESETDATA macro. 2004-09-28 11:35:21 +00:00
yamt 478d44cb16 ath_getmbuf: check MCLGET failure. 2004-09-28 11:34:37 +00:00
dyoung 1b319e72be Simplify the BSSID synchronization code. 2004-09-28 00:42:11 +00:00
martin d297b5849e Fix $NetBSD$ tag typo. From Sean Davis in private mail. 2004-09-27 15:22:42 +00:00
martin 8be55501e5 Use PRId64 and PRIu64 to print 64 bit integers. Problem noticed by Sean Davis. 2004-09-27 07:56:14 +00:00
skd 25b218cbd7 Fix Yukon ram sizing.
Fix tx queue (slist can be corrupted when tx interrupts hit within tx_encap.
Lower interrupt moderation timer to (improves performance).
Improve chip identification. (from linux sk98lin driver).
Keep tx queue running by kicking the tx bmu repeatedly.
2004-09-26 14:23:58 +00:00
dogcow f3084b1ba9 Fix debug message output args to match yamt's src/sys/sys/buf.h changes. 2004-09-26 09:00:37 +00:00
dyoung f5fc723f2b Add rtw(4). 2004-09-26 03:03:17 +00:00
dyoung 517a54fd17 Add Cardbus, PCI bus front-ends for RTL8180 802.11b MAC/baseband. 2004-09-26 02:33:36 +00:00
dyoung 3e9bdb9662 Add work-in-progress driver rtw(4) for Realtek RTL8180 MAC/baseband.
Add register definitions for Maxim MAX2820 and Philips SA2400 radio
front-ends.
2004-09-26 02:29:15 +00:00
thorpej aae3f1ca07 Add wedges support to the MSCP disk driver. 2004-09-25 16:44:30 +00:00
chris 47ccffe876 Fix compile if DKWEDGE_AUTODISCOVER isn't defined.
(only tested with GENERIC cats kernel)
2004-09-25 16:42:15 +00:00
thorpej ecb2cb3112 Add support for wedges to the RL01/RL02 disk driver.
XXX Can't do autodiscovery here, since we can't do I/O in rlattach().
2004-09-25 16:27:38 +00:00
thorpej dbb3225d5b Can't actually auto-discover wedges here yet, because ed drives are
not attached with interrupts enabled, meaning we can't do the required
I/O.  Add a comment to this effect.
2004-09-25 16:13:42 +00:00
tsutsui 2e988c7c99 - spc is now MI.
- Remove obsolete hp300 devices.
2004-09-25 12:31:19 +00:00
tsutsui 036acd9295 Use ANSI function decls. 2004-09-25 11:58:19 +00:00
tsutsui a5c60861e8 Sprinkle DELAY(1)'s in several busy loops to avoid excessive bus access.
Inspired by OpenBSD.
2004-09-25 10:47:29 +00:00
tsutsui 30e4125256 On manual xfer via TEMP register, set PCTL_BFINT_ENAB and check
bus free by INTS register. spc_intr() also checks the INTS_DISCON bit.
2004-09-25 10:36:15 +00:00
tsutsui 45d871e0fb In spc_intr(), return 0 if the interrupt is not for spc(4). 2004-09-25 10:32:15 +00:00
tsutsui dc28263470 Use manual xfer via TEMP register in status phase even on x68k.
Some devices do not transfer data with proper way on status phase
and it causes bus error in spc_datain_pio() which uses auto xfer
via DREG register on weird x68k hardware.
2004-09-25 10:15:36 +00:00
tsutsui ae6239f109 Use ANSI function decls. 2004-09-25 09:46:17 +00:00
heas afe3b1d559 Add TWE_OP_PROBE, which probes (and attaches) a port/drive. It's argument
is bytes 9 & 10 of the twe_cmd where the bit set corresponds to the port to
probe + 1 (ie: port 0 == 0x1).
2004-09-25 08:27:47 +00:00
thorpej 281037afd6 Add support for wedges to the OpenFirmware disk driver. 2004-09-25 05:21:03 +00:00
thorpej 2a671cfd0e Add support for wedges to the MCA ESDI disk driver. 2004-09-25 04:47:02 +00:00
thorpej 46cfcf0eb8 Add support for wedges to the logical disk driver. 2004-09-25 04:28:08 +00:00
thorpej 72b84bf041 Add support for wedges to the SCSI disk driver. 2004-09-25 04:11:23 +00:00
thorpej cc79c7aeb0 Add support for wedges to the ATA disk driver. 2004-09-25 03:34:02 +00:00
thorpej baefaf4422 Work-in-progress implementation of "wedges", a new way to represent
partitions in the NetBSD kernel.  See discussion on tech-kern for details.
2004-09-25 03:30:44 +00:00
heas 9d64f3ebc8 Take the modulus of the AEN queue tail number rather than the mask of. Now
the tail pointer advances properly.
2004-09-23 01:16:34 +00:00
heas ad8109e2b5 Typo in define; PhysSectorNym -> PhysSectorNum 2004-09-23 01:14:50 +00:00
kent 54cf6460d6 ac97_host_if::reset() returns non-zero value if codec reset fails, and
ac97 is not attached in that case.

PR: kern/26973
2004-09-22 12:20:24 +00:00
yamt 52f0c217f7 introduce M_EXT_RW to allow mbuf external storage R/W.
discussed on tech-net@.
2004-09-21 21:57:30 +00:00
thorpej 14a961d318 Fix a mis-placed wdc_init_shadow_regs(). 2004-09-21 02:46:46 +00:00
simonb 74b1235f26 Fix a typo in a comment. 2004-09-20 07:32:02 +00:00
chs b42337cb2a fix optimized compilation. 2004-09-19 23:00:29 +00:00
yamt ec18670e28 fix printf formats to match with sys/buf.h rev.1.75.
PR/26994 from Andreas Wiese.
2004-09-19 12:22:22 +00:00
mycroft 7ef0686963 If our enqueue failed -- because we're polling and there is already something
in the queue -- do not attempt to requeue it.  We only poll in two cases:

1) We have a non-interrupting controller.  In this case, execution of the
   previous command should have left the queue empty.  (Perhaps there should be
   a KASSERT() to this effect.)

2) We're in the shutdown path, either doing a cache sync or a dump.  In these
   cases, the retry behavior is useless, because we will no longer get
   interrupts to notify us that the earlier commands completed.  Instead we
   just spin for a few seconds and fail anyway.  (XXX We should probably clear
   the queue explicitly so that the shutdown/dump will succeed.)
2004-09-18 18:49:50 +00:00
mycroft b89029809c Since we always defer probing SCSI and ATAPI devices now, we can never be
"cold" -- so change the check for this to a KASSERT().
2004-09-18 18:29:00 +00:00
mycroft 007ffe47ec Oops; eliminate the EJUSTRETURN return value from scsipi_execute_xs(). Don't
know how this worked when I tested it.
2004-09-18 18:00:05 +00:00
yamt 22399b45d0 change some members of struct buf from long to int.
ride on 2.0H.
2004-09-18 16:40:11 +00:00
martin 06e56dc6b2 Add support for PCI-X version of LSI FC929; from Bert Kiers in PR kern/26836. 2004-09-18 08:52:50 +00:00
martin 9d347457c2 Regen (FC929X added) 2004-09-18 08:48:29 +00:00