1 .\" Copyright (c) 2002, 2004
2 .\" Thomas Quinot <thomas@FreeBSD.org>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the author nor the names of any co-contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR THE VOICES IN HIS HEAD
20 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
26 .\" THE POSSIBILITY OF SUCH DAMAGE.
35 .Nd CAM XPT (transport) module for ATAPI devices
39 The ATAPI/CAM module allows ATAPI devices (CD-ROM, CD-RW, DVD drives,
40 floppy drives such as Iomega Zip, tape drives) to be accessed through
47 must be configured in the kernel as well.
48 The SCSI target drivers
53 can then be used to access the devices.
54 The generic passthrough device,
56 can also be used to send SCSI commands directly
57 to the devices through the CAM API.
59 A separate CAM bus is created for each ATA bus in the system.
60 On each of these buses, target ID 0 is assigned to the master
61 device, and ID 1 is assigned to the slave
62 (provided they are ATAPI devices).
63 .Sh IMPLEMENTATION NOTES
64 Some SCSI commands are intercepted by the driver, and undergo special
65 processing in order to work around limitations of ATAPI devices.
66 Such limitations can be consequences of the ATAPI specification.
67 For example, ATAPI devices do not implement the 6-byte versions
69 .Dv MODE_SELECT , MODE_SENSE , READ ,
72 They can also be common bugs, such as hanging when queried for
77 .Bd -literal -offset indent
89 .Dl "camcontrol devlist"
91 Print the list of all devices available through CAM.
93 .Dl "mount -t cd9660 /dev/cd0 /mnt"
95 Mount a CD-ROM from an ATAPI CD-ROM drive
96 (the command above assumes that the ATAPI drive is the only CD-ROM unit).
104 The ATAPI/CAM driver first appeared in
109 The ATAPI/CAM driver was written by
110 .An Thomas Quinot Aq thomas@FreeBSD.org .
113 and ATAPI-specific target drivers
118 can be configured in the same kernel.
119 Simultaneous access to the same device through the SCSI generic drivers
120 and the ATAPI-specific drivers may cause problems and is strongly discouraged.