Commit Graph

19705 Commits

Author SHA1 Message Date
chs
2933005205 avoid checking if an unsigned number is less than 0. fixes PR 29948. 2006-01-21 19:28:44 +00:00
uwe
cebdea24e0 Use uintN_t. 2006-01-20 02:47:30 +00:00
xtraeme
e2aca22c8e From OpenBSD:
--
Add a workaround for VIA EHCI controllers which, under load, signal qTD
completion before they have performed writeback from the overlay qTD.

This condition would exhibit itself as a umass stall that never recovers.
--

This fixes the problem reported by Thomas Klausner on current-users@:
http://mail-index.netbsd.org/current-users/2006/01/17/0000.html
2006-01-17 12:30:00 +00:00
yamt
d91bf59ce6 dmoverioopen: add a missing simple_lock_init(). 2006-01-17 12:10:51 +00:00
thorpej
f789b6be70 Add an API for loading firmware images for devices. 2006-01-17 06:08:48 +00:00
bouyer
038345f3e8 Add missing ch_ndrive initialisations. Pointed out by Juan RP. 2006-01-17 00:40:49 +00:00
christos
ac9c2323d2 regen 2006-01-16 23:00:17 +00:00
christos
a39411c0d7 PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics 2006-01-16 22:59:36 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
kent
1e8e79dd3b readable names for AD1981HD codec 2006-01-16 14:28:38 +00:00
kent
dd89fc8bd6 Don't crash when a connection list has invalid NIDs.
PR#32485 by Samuel Tran
2006-01-16 14:15:26 +00:00
abs
2287ad2061 cast 16bit atap_capacity to u_int64_t before << 16. (assigned to
a u_int64_t variable). Fixes 1 to 2 TB disks in qemu. Tested with
1200GB and to a lesser extent 2047GB sparse files. For reference
an empty FFS1 filesystem on a 1200GB sparse file uses 19GB of disk.
2006-01-15 19:51:06 +00:00
yamt
c05dbefbea compstrategy: remove bogus handling of B_PHYS. 2006-01-15 12:14:52 +00:00
itohy
690b61f41b - Fix panic when the DMA buffer is not 4byte aligned.
In this case, the transfer count becomes larger than the reality,
  and this fix works around it.

- Add missing bus_dmamap_unload() in attach failure path.
2006-01-14 07:14:45 +00:00
christos
e35d1933fb Add SanDisk pcmcia memory card adapter. Works like an IDE drive.
XXX: Linux driver has a hack not to probe the slave drive. We just
create a phantom drive:

    wdc0 at pcmcia0 function 0: <             , Memory Card Adapter II, V1.00>
    wdc0: i/o mapped mode
    atabus2 at wdc0 channel 0
    wd1 at atabus2 drive 0: <Memory Card Adapter II>
    wd1: drive supports 1-sector PIO transfers, LBA addressing
    wd1: 241 MB, 965 cyl, 16 head, 32 sec, 512 bytes/sect x 494080 sectors
    wd2 at atabus2 drive 1: <>
    wd2: drive supports 1-sector PIO transfers, chs addressing
    wd2: 0, 0 cyl, 0 head, 0 sec, 512 bytes/sect x 0 sectors
    wd2: 32-bit data port
    wd2: disk label read failed
    wd2: disk label read failed
2006-01-11 13:34:33 +00:00
yamt
432eec05f5 use nestiobuf api for vnd. 2006-01-11 00:50:29 +00:00
yamt
e86cc25701 don't set b_rawblkno unnecessarily.
it will be set by device strategy routine.
2006-01-11 00:49:59 +00:00
christos
82f14002cb Regen 2006-01-10 20:33:31 +00:00
christos
eec1348ff2 PR/32494: Dennis Chernoivanov: Intel PRO/100 VE (LOM) not detected on Sony Vaio 2006-01-10 20:31:36 +00:00
cdi
bcaee69819 PR/32494: Add ID 0x1068 for Intel PRO/100 VE (LOM) found on Sony Vaio
S4HRP laptops.
2006-01-10 20:30:47 +00:00
oster
4476a2943b rf_DiskUnlockFunc and rf_DiskUnlockFuncForThreads are never used. Punt them.
rf_DiskUnlockUndoFunc is in the same boat.  Punt it too.
2006-01-09 01:33:27 +00:00
oster
0d6d84878e Really move all of the bp initalization bits into InitBP(). 2006-01-08 22:26:30 +00:00
dsl
a6d7f81261 Save console baud rate as both the input and output rates.
This is what I thought I'd done in rev 1.237
2006-01-08 22:19:59 +00:00
oster
96c9402704 For the normal (read/write) case, do all the buffer initialization
inside of InitBP().
2006-01-08 22:06:26 +00:00
oster
aad92944f5 Cleanup the initialization of buffers a bit, and remove some old code
that works around a bug that no longer exists.  From yamt. Thanks!
(a bit more cleanup to follow)
2006-01-08 21:53:26 +00:00
kent
225ba2620d add some trace messages in azalia_mixer_init(). 2006-01-08 16:52:42 +00:00
yamt
5bb3912ab6 raidstrategy: fix weird ENOSPC when reading from/writing to a raw partition. 2006-01-08 09:11:21 +00:00
yamt
5bca923bc4 raidioctl:
- don't ignore raidread_component_label error.
- remove an unnessesary memset.
2006-01-08 09:09:53 +00:00
yamt
fe3aca751f do b_blkno -> b_rawblkno translation earlier so that bufq can use it. 2006-01-08 09:09:00 +00:00
oster
55da57e0c1 Remove the component buffer bits, now that I know there is a
"private" structure in struct buf that can be used to keep track of
the request associated with this buffer (the buffer used here is one
allocated from rf_CreateDiskQueueData(), so it's ours to do with what
we please).  Shrinks code a little, reduces the run-time memory
footprint a bit, and simplifies both rf_DispatchKernelIO() and
KernelWakeupFunc().

Thanks to yamt for his "why is rf_DispatchKernelIO using another buf"
question which prompted me to revisit this code.
2006-01-07 16:08:44 +00:00
yamt
9c0e5c0db7 - do disk_busy/unbusy for requested i/o, rather than ones that we reuqest.
- on error, be conservative about b_resid.
- make vndthread static.
2006-01-07 13:25:50 +00:00
christos
a6c7e45e28 fix typo. 2006-01-07 07:18:06 +00:00
yamt
ea494c18a9 fss_cluster_iodone: don't call brelvp on non-buffercache buf. 2006-01-07 01:11:42 +00:00
yamt
2addc3084c remove B_EINTR as it isn't used anymore. 2006-01-07 00:26:58 +00:00
yamt
7b826aac85 initialize necessary members of struct buf. PR/32462 from Reinoud Zandijk. 2006-01-06 09:21:44 +00:00
rpaulo
69846c9381 More comments fixing. 2006-01-05 17:13:20 +00:00
rpaulo
e438cb4b93 * defflag ACPI_DSDT_OVERRIDE and defparam ACPI_DSDT_FILE.
* adjust comments to reality
2006-01-05 16:56:54 +00:00
bouyer
6ad7a02d77 Fix forcing use of DMA mode for the generic pciide driver: default_chip_map()
is called from pciide_attach() and at this point we don't know which drives
are here. Just assume all drives are there and allocate DMA ressources for
all of them.
2006-01-04 22:10:10 +00:00
xtraeme
d064eae373 Add rlphy(4) (Realtek 8139/8201L PHY) from OpenBSD. 2006-01-04 21:52:17 +00:00
xtraeme
7d3727fd87 regen 2006-01-04 21:46:35 +00:00
xtraeme
531d6a9b45 Add Realtek RTL8201L. From OpenBSD 2006-01-04 21:42:51 +00:00
xtraeme
b2bb747d7c Make this build again (remove unused variable). 2006-01-04 17:16:35 +00:00
yamt
690d424f28 - add simple functions to allocate/free a buffer for i/o.
- make bufpool static.
2006-01-04 10:13:05 +00:00
oster
35f400bfd9 We need to mark used spares as failed if they encounter IO errors!
Commit fixes problem reported (privately) by Jeff Rizzo.


XXX: Note that we are still are unable to allow a reconstruct of
a failed spare -- it's easy enough to attempt to do it, but the
code in rf_ContinueReconstructFailedDisk() isn't anywhere close to
ready to allow it.  Yet another reason why the whole disk/spare thing
needs to be re-worked. *sigh*
2006-01-04 04:56:41 +00:00
kent
de8198c18c support for 8ch playback with STAC9221D codec.
Thanks to Tomokatsu HAYAKAWA.
2006-01-03 15:43:04 +00:00
kent
ce56ff707e ALC260: improve readability of mixer item names. 2006-01-03 15:31:15 +00:00
kent
a2e0795bf5 - make this compile with AZALIA_DEBUG
Thanks to Tomokatsu HAYAKAWA.
- introduce WIDGET_CHANNELS macro
2006-01-03 14:16:28 +00:00
manu
a4e775f913 regen 2006-01-02 23:12:50 +00:00
manu
8756a32ca6 Add support for nForce430 ATA133 and SATA controllers. My disks now run
at a decent speed.
2006-01-02 23:12:23 +00:00
tron
85c59666a3 Regen. 2006-01-02 21:49:44 +00:00