2004-05-03 12:03:15 +00:00
|
|
|
.\" Copyright (c) 2002, 2004
|
2002-10-30 08:42:24 +00:00
|
|
|
.\" Thomas Quinot <thomas@FreeBSD.org>. 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
|
2002-11-01 10:02:31 +00:00
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THE VOICES IN HIS HEAD
|
2002-10-30 08:42:24 +00:00
|
|
|
.\" 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.
|
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" $FreeBSD$
|
2002-10-30 08:42:24 +00:00
|
|
|
.\"
|
|
|
|
.Dd October 23, 2002
|
|
|
|
.Dt ATAPICAM 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm atapicam
|
|
|
|
.Nd CAM XPT (transport) module for ATAPI devices
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "device atapicam"
|
|
|
|
.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
|
2002-12-10 14:21:55 +00:00
|
|
|
the SCSI subsystem,
|
|
|
|
.Xr cam 4 .
|
2002-10-30 08:42:24 +00:00
|
|
|
.Pp
|
2002-12-10 14:21:55 +00:00
|
|
|
.Xr ata 4
|
2002-10-30 08:42:24 +00:00
|
|
|
and
|
2002-12-10 14:21:55 +00:00
|
|
|
.Xr scbus 4
|
2002-10-30 08:42:24 +00:00
|
|
|
must be configured in the kernel as well.
|
|
|
|
The SCSI target drivers
|
2002-12-10 14:21:55 +00:00
|
|
|
.Xr ( cd 4 ,
|
|
|
|
.Xr da 4 ,
|
|
|
|
or
|
|
|
|
.Xr st 4 )
|
2002-10-30 08:42:24 +00:00
|
|
|
can then be used to access the devices.
|
2002-12-10 14:21:55 +00:00
|
|
|
The generic passthrough device,
|
|
|
|
.Xr pass 4 ,
|
2002-10-30 08:42:24 +00:00
|
|
|
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.
|
2002-12-10 14:21:55 +00:00
|
|
|
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).
|
2002-10-30 08:42:24 +00:00
|
|
|
.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
|
2002-12-10 14:21:55 +00:00
|
|
|
.Dv MODE_SELECT , MODE_SENSE , READ ,
|
2002-10-30 08:42:24 +00:00
|
|
|
or
|
2002-12-10 14:21:55 +00:00
|
|
|
.Dv WRITE .
|
2002-10-30 08:42:24 +00:00
|
|
|
They can also be common bugs, such as hanging when queried for
|
|
|
|
extended
|
2002-12-10 14:21:55 +00:00
|
|
|
.Dv INQUIRY
|
2002-10-30 08:42:24 +00:00
|
|
|
information.
|
|
|
|
.Sh EXAMPLES
|
2002-12-10 14:21:55 +00:00
|
|
|
.Bd -literal -offset indent
|
2004-05-03 12:03:15 +00:00
|
|
|
device ata
|
2002-12-10 14:21:55 +00:00
|
|
|
device atapicam
|
|
|
|
device scbus
|
|
|
|
device cd
|
|
|
|
device pass
|
|
|
|
.Ed
|
2002-10-30 08:42:24 +00:00
|
|
|
.Pp
|
|
|
|
Add the
|
|
|
|
.Nm
|
|
|
|
driver to the kernel.
|
|
|
|
.Pp
|
2002-12-10 14:21:55 +00:00
|
|
|
.Dl "camcontrol devlist"
|
2002-10-30 08:42:24 +00:00
|
|
|
.Pp
|
|
|
|
Print the list of all devices available through CAM.
|
|
|
|
.Pp
|
2004-05-03 12:03:15 +00:00
|
|
|
.Dl "mount -t cd9660 /dev/cd0 /mnt"
|
2002-10-30 08:42:24 +00:00
|
|
|
.Pp
|
|
|
|
Mount a CD-ROM from an ATAPI CD-ROM drive
|
2002-12-10 14:21:55 +00:00
|
|
|
(the command above assumes that the ATAPI drive is the only CD-ROM unit).
|
2002-10-30 08:42:24 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ata 4 ,
|
2002-12-10 14:21:55 +00:00
|
|
|
.Xr cam 4 ,
|
2002-10-30 08:42:24 +00:00
|
|
|
.Xr scsi 4 ,
|
|
|
|
.Xr atacontrol 8 ,
|
|
|
|
.Xr camcontrol 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The ATAPI/CAM driver first appeared in
|
2002-11-01 10:02:31 +00:00
|
|
|
.Fx 4.8
|
|
|
|
and
|
2002-10-30 08:42:24 +00:00
|
|
|
.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
|
2002-12-10 14:21:55 +00:00
|
|
|
.Xr ( acd 4 ,
|
|
|
|
.Xr ast 4 ,
|
|
|
|
and
|
|
|
|
.Xr afd 4 )
|
2002-10-30 08:42:24 +00:00
|
|
|
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.
|