Commit Graph

19742 Commits

Author SHA1 Message Date
dyoung e46f0f4008 In rtw_{rx,tx}ring_fixup, do not set the tx/rx ring index to
something out of bounds if we read an invalid pointer form the
hardware.  Prevents a panic when an rtw@cardbus is ejected.
2006-02-04 23:22:27 +00:00
reinoud c0dbf19c1e Add support for SCSI MMC feature 0x0024: hardware assisted defect
management to be passed in mmc_discinfo's device capabilities.

When a device reports support for this the hardware will automatically
remap sectors on read- or write-errors. CD-MRW, DVD+MRW, DVD-RAM and BR-RE
support these.
2006-02-04 21:26:15 +00:00
yamt e31143d772 vndthread: fix an integer overflow. fix a panic reported by Simon Burge. 2006-02-04 13:40:38 +00:00
yamt 9e261d2477 vndstrategy: do bounds_check_with_mediasize. 2006-02-04 13:38:04 +00:00
yamt 6e6449891d vndthread: play with b_vp and v_numoutput as it used to do,
for "strange" filesystems like nfs.  PR/32671 from Simon Burge.

although i'm not really happy with this "fix", i think that the code will
be replaced with direct i/o anyway, sooner or later...
2006-02-04 11:52:32 +00:00
yamt b38b1510eb vnd_cget: remove a wrong comment. 2006-02-04 11:19:59 +00:00
yamt fe1aa7db74 vnd_destroy: don't access freed memory. 2006-02-04 10:48:32 +00:00
reinoud 1b09e70fcd Adding two Ioctl's to scsipi's cd.c to abstract SCSI MMC devices. The
ioctl's and their structures are currenly hidden from inclusion for normal
userland applications to allow the MMC abstraction interface to mature
first.

Its useage is mainly for applications dedicated to handling and processing
SCSI MMC compliant devices and their media. Examples of these are CDs, DVDs
and comparable optical devices but also some magnetic swapable devices that
present themselves as a SCSI MMC compliant device.

Its current use is currently the to be committed in-kernel UDF filingsystem
and its userland tools.
2006-02-02 14:48:02 +00:00
cube 69a545f3ff Fix typo. 2006-02-02 06:57:35 +00:00
cube da9c97d43c Move the code that destroys the device to vndclose. That way it no longer
returns ENXIO when deconfiguring a vnd.
2006-02-02 06:56:30 +00:00
christos 8e18deb784 regen 2006-02-02 01:40:19 +00:00
christos d3c467af65 PR/32695: Chuck Tuffli: incorrect PCI device id for CMD Technology (0x1095)
SiI3132 SATALink (0x3132)
2006-02-02 01:39:53 +00:00
cube 9f02c7bd62 Free cfdata memory. The tap LKM might be wrong in that area, to...
Pointed out by Greg Oster.
2006-02-01 05:05:22 +00:00
cube aa933732c0 Free the bufq. Pointed out by yamt@. 2006-02-01 04:30:10 +00:00
cube 6527a45571 Have vnd(4) devices automatically created when the user tries to
configure one.  That removes the compile-time constant that limits the
number of vnds.

Thanks xtraeme@ for testing.
2006-02-01 03:15:33 +00:00
xtraeme 38f79c01fe The NVidia nForce430 IDE Controller supports Ultra-DMA Mode 6, enable it.
Patch from MASUDA Hideo via tech-kern.
2006-01-31 16:49:26 +00:00
kochi 0cdeab4c58 remove ACPI_DISABLE_ON_POWEROFF option, which was there just for
compatibility of our old driver behavior, which is not necessary.
2006-01-31 09:30:06 +00:00
dsl 6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
augustss f1d35de4d5 Use correct return values when polling. 2006-01-29 11:35:11 +00:00
jdolecek 0a5be6a731 add cast to compile with AAC_DPRINTF 2006-01-29 09:48:09 +00:00
kochi 9e72fe1e5e adapt for ACPI-CA 20060113 2006-01-29 03:12:22 +00:00
kochi 5d63813b95 Merge ACPI-CA 20060113 2006-01-29 03:11:26 +00:00
kochi 86bf0f2eb2 Merge ACPI-CA 20060113 (new files)
CVg: Committing in .CPI-CA 20060113'
2006-01-29 03:10:55 +00:00
kochi 2564e681ae Merge ACPI-CA 20060113 2006-01-29 03:05:46 +00:00
kochi 13bafec3c5 Import the INTEL ACPI-CA 20060113 2006-01-29 03:02:40 +00:00
kleink 2269235d63 Add support for the AMD8111 RNG; from Nicolas Joly in PR kern/32284. 2006-01-28 23:31:24 +00:00
dogcow 957820f961 Regen. 2006-01-27 06:12:55 +00:00
dogcow 23c23e5330 add vendor, Zydas, and product Zydas ZD1211 802.11abg 2006-01-27 06:11:58 +00:00
bouyer ae41171480 Add support for Promise PDC2057x SATA/150 Ide controllers.
From FreeBSD, tested by Douglas Wade Needham.
2006-01-26 20:58:52 +00:00
bouyer 35ab8a8cc8 Regen: Add Promise PDC2057x 2006-01-26 20:54:19 +00:00
bouyer f946f2d85d Add Promise PDC2057x SATA/150 controllers, from FreeBSD. 2006-01-26 20:53:19 +00:00
reinoud aeaada2a1b Duh! If askes to halt the input dont halt the output instead. This also
fixes the timeout on draining when closing.
2006-01-24 23:29:05 +00:00
bouyer 72d6450048 Revert part of previous: checking the drive's status after a read seems to
cause interrupt timeouts on some hardware.
2006-01-24 21:43:26 +00:00
christos 4478531a98 Add support for more puc chips from Pavel Cahyna.
This might NetMos 9845 card which need the COM_FREQ * 4 hack, but this
can be re-added by a more specific entry (matching subsystem IDs).
2006-01-24 20:10:55 +00:00
bouyer 1af9387585 Make some debug printf more verbose.
In wdccommand_intr(), after a data read check that the drive is ready again.
2006-01-22 16:44:45 +00:00
bouyer 6d97d9d080 For an IDENTIFY we have to wait for DRQ after issuing the command. 2006-01-22 16:40:56 +00:00
christos 8918ce44a0 Default to 2 drives for products not listed. 2006-01-22 00:08:38 +00:00
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