From 7c2b81b0e97e507aa2b3b3fac77056edcdf18669 Mon Sep 17 00:00:00 2001 From: mav Date: Thu, 4 Apr 2013 07:12:24 +0000 Subject: Remove all legacy ATA code parts, not used since options ATA_CAM enabled in most kernels before FreeBSD 9.0. Remove such modules and respective kernel options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam. Remove the atacontrol utility and some man pages. Remove useless now options ATA_CAM. No objections: current@, stable@ MFC after: never --- share/man/man4/Makefile | 2 - share/man/man4/ata.4 | 7 --- share/man/man4/atapicam.4 | 134 ----------------------------------------- share/man/man4/ataraid.4 | 148 ---------------------------------------------- 4 files changed, 291 deletions(-) delete mode 100644 share/man/man4/atapicam.4 delete mode 100644 share/man/man4/ataraid.4 (limited to 'share/man/man4') diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index ec14e54..22bb8d1 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -51,8 +51,6 @@ MAN= aac.4 \ ${_asmc.4} \ asr.4 \ ata.4 \ - atapicam.4 \ - ataraid.4 \ ath.4 \ ath_ahb.4 \ ath_hal.4 \ diff --git a/share/man/man4/ata.4 b/share/man/man4/ata.4 index b325eb7..a1cbad3 100644 --- a/share/man/man4/ata.4 +++ b/share/man/man4/ata.4 @@ -36,7 +36,6 @@ kernel configuration file: .Bd -ragged -offset indent .Cd "device scbus" .Cd "device ata" -.Cd "options ATA_CAM" .Ed .Pp Alternatively, to load the driver as set of modules at boot time, @@ -79,12 +78,6 @@ prerequisite for the other modules. The next three lines are generic bus-specific drivers. Of the rest, ataahci is the AHCI driver. The others are vendor-specific PCI drivers. -The -.Dv ATA_CAM -option should always remain in the kernel configuration, to make -the driver work as a -.Xr CAM 4 -subsystem module. .Pp The following tunables are settable from the .Xr loader 8 : diff --git a/share/man/man4/atapicam.4 b/share/man/man4/atapicam.4 deleted file mode 100644 index 5f083d0..0000000 --- a/share/man/man4/atapicam.4 +++ /dev/null @@ -1,134 +0,0 @@ -.\" Copyright (c) 2002, 2004 -.\" Thomas Quinot . All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. Neither the name of the author nor the names of any co-contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS -.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF -.\" THE POSSIBILITY OF SUCH DAMAGE. -.\" -.\" $FreeBSD$ -.\" -.Dd October 22, 2009 -.Dt ATAPICAM 4 -.Os -.Sh NAME -.Nm atapicam -.Nd CAM XPT (transport) module for ATAPI devices -.Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your -kernel configuration file: -.Bd -ragged -offset indent -.Cd "device scbus" -.Cd "device ata" -.Cd "device atapicam" -.Ed -.Pp -Alternatively, to load the driver as a -module at boot time, place the following line in -.Xr loader.conf 5 : -.Bd -literal -offset indent -atapicam_load="YES" -.Ed -.Sh DESCRIPTION -The ATAPI/CAM module allows ATAPI devices (CD-ROM, CD-RW, DVD drives, -floppy drives such as Iomega Zip, tape drives) to be accessed through -the SCSI subsystem, -.Xr cam 4 . -.Pp -.Xr ata 4 -and -.Xr scbus 4 -must be configured in the kernel as well. -The SCSI target drivers -.Xr ( cd 4 , -.Xr da 4 , -or -.Xr st 4 ) -can then be used to access the devices. -The generic passthrough device, -.Xr pass 4 , -can also be used to send SCSI commands directly -to the devices through the CAM API. -.Pp -A separate CAM bus is created for each ATA bus in the system. -On each of these buses, target ID 0 is assigned to the master -device, and ID 1 is assigned to the slave -(provided they are ATAPI devices). -.Sh IMPLEMENTATION NOTES -Some SCSI commands are intercepted by the driver, and undergo special -processing in order to work around limitations of ATAPI devices. -Such limitations can be consequences of the ATAPI specification. -For example, ATAPI devices do not implement the 6-byte versions -of -.Dv MODE_SELECT , MODE_SENSE , READ , -or -.Dv WRITE . -They can also be common bugs, such as hanging when queried for -extended -.Dv INQUIRY -information. -.Sh EXAMPLES -.Bd -literal -offset indent -device ata -device atapicam -device scbus -device cd -device pass -.Ed -.Pp -Add the -.Nm -driver to the kernel. -.Pp -.Dl "camcontrol devlist" -.Pp -Print the list of all devices available through CAM. -.Pp -.Dl "mount -t cd9660 /dev/cd0 /mnt" -.Pp -Mount a CD-ROM from an ATAPI CD-ROM drive -(the command above assumes that the ATAPI drive is the only CD-ROM unit). -.Sh SEE ALSO -.Xr ata 4 , -.Xr cam 4 , -.Xr scsi 4 , -.Xr atacontrol 8 , -.Xr camcontrol 8 -.Sh HISTORY -The ATAPI/CAM driver first appeared in -.Fx 4.8 -and -.Fx 5.0 . -.Sh AUTHORS -The ATAPI/CAM driver was written by -.An Thomas Quinot Aq thomas@FreeBSD.org . -.Sh BUGS -.Nm -and ATAPI-specific target drivers -.Xr ( acd 4 , -.Xr ast 4 , -and -.Xr afd 4 ) -can be configured in the same kernel. -Simultaneous access to the same device through the SCSI generic drivers -and the ATAPI-specific drivers may cause problems and is strongly discouraged. diff --git a/share/man/man4/ataraid.4 b/share/man/man4/ataraid.4 deleted file mode 100644 index 98d3068..0000000 --- a/share/man/man4/ataraid.4 +++ /dev/null @@ -1,148 +0,0 @@ -.\" Copyright (c) 2005 Christian Brueffer -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD$ -.\" -.Dd February 17, 2006 -.Dt ATARAID 4 -.Os -.Sh NAME -.Nm ataraid -.Nd "ATA software RAID support" -.Sh SYNOPSIS -.Cd "device ata" -.Cd "device ataraid" -.Sh DESCRIPTION -The -.Nm -driver provides support for so-called software RAID -(sometimes referred to as fake RAID or pseudo RAID). -.Pp -When a controller that supports software RAID is instructed to -create a RAID array, its BIOS writes data structures in a specific -metadata format to the disks. -These data structures are picked up by the -.Nm -driver, so that -.Fx -can work with the array. -The -.Nm -driver has to understand the specific metadata format of a -controller BIOS in order to support its RAID capabilities. -.Pp -Read-only support for a metadata format means that -.Fx -can use the given RAID array for normal read/write operations. -Creation and rebuild of such arrays has to be done from the -controller BIOS. -.Pp -Read and write support for a metadata format means that -.Fx -can use the given RAID array for normal read/write operations. -Additionally, the -.Xr atacontrol 8 -utility can be used to create, rebuild, update and fail such -RAID arrays. -.Pp -The -.Nm -driver can read the following metadata formats: -.Pp -.Bl -bullet -compact -.It -Adaptec HostRAID -.It -Highpoint V2 RocketRAID -.It -Highpoint V3 RocketRAID -.It -Intel MatrixRAID -.It -Integrated Technology Express (ITE) -.It -JMicron -.It -LSI Logic V2 MegaRAID -.It -LSI Logic V3 MegaRAID -.It -NVIDIA MediaShield -.It -Promise FastTrak -.It -Silicon Image Medley -.It -Silicon Integrated Systems (SiS) -.It -VIA Tech V-RAID -.It -FreeBSD PseudoRAID -.El -.Pp -The -.Nm -driver can write the following metadata formats: -.Pp -.Bl -bullet -compact -.It -Highpoint V2 RocketRAID -.It -Intel MatrixRAID -.It -JMicron -.It -Promise FastTrak -.It -Silicon Integrated Systems (SiS) -.It -VIA Tech V-RAID -.It -FreeBSD PseudoRAID -.El -.Pp -It is also possible to use software RAID on controllers -that do not have special software RAID capabilities. -See -.Xr atacontrol 8 -for details. -.Sh FILES -.Bl -tag -width ".Pa /dev/ar*" -compact -.It Pa /dev/ar* -ATA RAID device nodes -.El -.Sh SEE ALSO -.Xr ata 4 , -.Xr atacontrol 8 -.Sh AUTHORS -.An -nosplit -The -.Nm -driver was written by -.An S\(/oren Schmidt Aq sos@FreeBSD.org . -This manual page was written by -.An Christian Brueffer Aq brueffer@FreeBSD.org . -.Sh CAVEATS -RAID5 is not supported at this time. -Code exists, but it neither uses nor maintains parity information. -- cgit v1.1