freebsd-nq/sys/dev/ata
Craig Rodrigues 8d1a3b6998 Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel
option is defined.  This sysctl can be queried by feature_present(3).

Query for this feature in /sbin/atacontrol and /usr/sbin/burncd.
If these utilities detect that ATA_CAM is enabled, then these utilities
will error out.  These utilities are compatible with the old ATA
driver, but are incomptible with the new ATA_CAM driver.  By erroring out,
we give end-users an idea as to what remedies to use, and reduce the need for them
to file PR's.  For atacontrol, camcontrol must be used instead,
and for burncd, alternative utilties from the ports collection must be used
such as sysutils/cdrtools.

In future, maybe someone can re-write burncd to work with ATA_CAM,
but at least for now, we give a somewhat useful error message to end users.

PR:		160979
Reviewed by:	jh, Arnaud Lacombe <lacombar at gmail dot com>
Reported by:	Joe Barbish <fbsd8 at a1poweruser dot com>
MFC after:	3 days
2011-10-09 21:42:02 +00:00
..
chipsets Do not force AHCI mode on NVIDIA MCP89 SATA controllers. Recent Apple 2011-08-02 11:07:47 +00:00
ata_if.m Make ata_getrev() an optional method by implementing ata_null_getrev(). 2010-01-20 14:29:55 +00:00
ata-all.c Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel 2011-10-09 21:42:02 +00:00
ata-all.h Implement automatic SCSI sense fetching for ata(4) in ATA_CAM mode. 2011-04-12 09:55:24 +00:00
ata-card.c Minor formatting nits. 2010-07-04 05:58:17 +00:00
ata-cbus.c Add type specific suspend/resume ata channel functions. Add checks to avoid 2009-03-09 20:48:57 +00:00
ata-disk.c Add the disk ident and a human-meaningful description (here, the disk model 2011-02-26 14:58:54 +00:00
ata-disk.h
ata-dma.c - Allocate the DMA memory used for the work area as coherent as at least 2011-03-06 12:54:00 +00:00
ata-isa.c Add type specific suspend/resume ata channel functions. Add checks to avoid 2009-03-09 20:48:57 +00:00
ata-lowlevel.c Make PATA-like soft-reset in ata(4) more strict in checking disk signature. 2011-04-21 07:26:14 +00:00
ata-pci.c - Use mutex to serialize index/data register pair usage, when 2011-07-22 16:37:04 +00:00
ata-pci.h - Use mutex to serialize index/data register pair usage, when 2011-07-22 16:37:04 +00:00
ata-queue.c Mark ATA channel as idle on timeout in non-ATA_CAM mode. 2010-04-26 11:58:15 +00:00
ata-raid-ddf.h Add basic support for DDF, often found on Adaptec HostRAID controllers. 2009-02-20 06:10:12 +00:00
ata-raid.c Use last 16 bytes of serial number in metadata instead of first ones, 2010-03-26 10:18:19 +00:00
ata-raid.h Add basic support for DDF, often found on Adaptec HostRAID controllers. 2009-02-20 06:10:12 +00:00
ata-sata.c Intel NM10 chipset's SATA controller has same PCI ID and revision as ICH7's, 2011-06-09 16:30:13 +00:00
atapi-cam.c Fix possible use after free. 2010-06-05 08:58:03 +00:00
atapi-cd.c Specify the capability and media bits of the capabilities page in 2009-12-13 18:26:19 +00:00
atapi-cd.h Specify the capability and media bits of the capabilities page in 2009-12-13 18:26:19 +00:00
atapi-fd.c MFp4: 2009-12-06 00:10:13 +00:00
atapi-fd.h
atapi-tape.c MFp4: 2009-12-06 00:10:13 +00:00
atapi-tape.h