13cf493c6SJoerg Wunsch.\" Copyright (c) 1997 23cf493c6SJoerg Wunsch.\" John-Mark Gurney. All rights reserved. 33cf493c6SJoerg Wunsch.\" 43cf493c6SJoerg Wunsch.\" Redistribution and use in source and binary forms, with or without 53cf493c6SJoerg Wunsch.\" modification, are permitted provided that the following conditions 63cf493c6SJoerg Wunsch.\" are met: 73cf493c6SJoerg Wunsch.\" 1. Redistributions of source code must retain the above copyright 83cf493c6SJoerg Wunsch.\" notice, this list of conditions and the following disclaimer. 93cf493c6SJoerg Wunsch.\" 2. Redistributions in binary form must reproduce the above copyright 103cf493c6SJoerg Wunsch.\" notice, this list of conditions and the following disclaimer in the 113cf493c6SJoerg Wunsch.\" documentation and/or other materials provided with the distribution. 123cf493c6SJoerg Wunsch.\" 3. Neither the name of the author nor the names of any co-contributors 133cf493c6SJoerg Wunsch.\" may be used to endorse or promote products derived from this software 143cf493c6SJoerg Wunsch.\" without specific prior written permission. 153cf493c6SJoerg Wunsch.\" 163cf493c6SJoerg Wunsch.\" THIS SOFTWARE IS PROVIDED BY John-Mark Gurney AND CONTRIBUTORS ``AS IS'' AND 173cf493c6SJoerg Wunsch.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 183cf493c6SJoerg Wunsch.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 193cf493c6SJoerg Wunsch.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 203cf493c6SJoerg Wunsch.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 213cf493c6SJoerg Wunsch.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 223cf493c6SJoerg Wunsch.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 233cf493c6SJoerg Wunsch.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 243cf493c6SJoerg Wunsch.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 253cf493c6SJoerg Wunsch.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 263cf493c6SJoerg Wunsch.\" SUCH DAMAGE. 273cf493c6SJoerg Wunsch.\" 287f3dea24SPeter Wemm.\" $FreeBSD$ 293cf493c6SJoerg Wunsch.\" 30e6c744a0SKenneth D. Merry.Dd October 10, 1998 3109edd56aSMike Pritchard.Dt CD 9 323cf493c6SJoerg Wunsch.Os FreeBSD 333cf493c6SJoerg Wunsch.Sh NAME 343cf493c6SJoerg Wunsch.Nm cd 35e6c744a0SKenneth D. Merry.Nd CDROM driver for the CAM SCSI subsystem 363cf493c6SJoerg Wunsch.Sh DESCRIPTION 37076dc43cSMike PritchardThe 38076dc43cSMike Pritchard.Nm 39e6c744a0SKenneth D. Merrydevice driver provides a read only interface for CDROM drives ( 403cf493c6SJoerg Wunsch.Tn SCSI 41e6c744a0SKenneth D. Merrytype 5) 42e6c744a0SKenneth D. Merryand WORM drives ( 43e6c744a0SKenneth D. Merry.Tn SCSI 44e6c744a0SKenneth D. Merrytype 4) 45e6c744a0SKenneth D. Merrythat support CDROM type commands. 46e6c744a0SKenneth D. MerrySome drives don't behave as the driver expects. See the section 473cf493c6SJoerg WunschQUIRKS for info on possible flags. 483cf493c6SJoerg Wunsch.Sh QUIRKS 493cf493c6SJoerg WunschEach 503cf493c6SJoerg Wunsch.Tn CD-ROM 513cf493c6SJoerg Wunschdevice can have different interpretations of the 523cf493c6SJoerg Wunsch.Tn SCSI 533cf493c6SJoerg Wunschspec. This can lead to drives requiring special handling in the driver. The 543cf493c6SJoerg Wunschfollowing is a list of quirks that the driver recognize. See 553cf493c6SJoerg Wunsch.Xr scsiconf 9 563cf493c6SJoerg Wunschfor more information on how to add quirk entries. 573cf493c6SJoerg Wunsch.Bl -tag -width CD_Q_BCD_TRACKS 583cf493c6SJoerg Wunsch.It Dv CD_Q_NO_TOUCH 593cf493c6SJoerg WunschThis flag tell the driver not to probe the drive at attach time to see if 60e6c744a0SKenneth D. Merrythere is a disk in the drive and find out what size it is. This flag is 61e6c744a0SKenneth D. Merrycurrently unimplemented in the CAM 624b66483fSRuslan Ermilov.Nm 63e6c744a0SKenneth D. Merrydriver. 643cf493c6SJoerg Wunsch.It Dv CD_Q_BCD_TRACKS 653cf493c6SJoerg WunschThis flag is for broken drives that return the track numbers in packed BCD 66df3cc939SJohn-Mark Gurneyinstead of straight decimal. If the drive seems to skip tracks 67df3cc939SJohn-Mark Gurney.Pq tracks 10-15 are skipped 683cf493c6SJoerg Wunschthen you have a drive that is in need of this flag. 69e6c744a0SKenneth D. Merry.It Dv CD_Q_NO_CHANGER 70e6c744a0SKenneth D. MerryThis flag tells the driver that the device in question is not a changer. 71e6c744a0SKenneth D. MerryThis is only necessary for a CDROM device with multiple luns that are not a 72e6c744a0SKenneth D. Merrypart of a changer. 73e6c744a0SKenneth D. Merry.It Dv CD_Q_CHANGER 74e6c744a0SKenneth D. MerryThis flag tells the driver that the given device is a multi-lun changer. 75e6c744a0SKenneth D. MerryIn general, the driver will figure this out automatically when it sees a 76e6c744a0SKenneth D. MerryLUN greater than 0. Setting this flag only has the effect of telling the 77e6c744a0SKenneth D. Merrydriver to run the initial read capacity command for LUN 0 of the changer 78e6c744a0SKenneth D. Merrythrough the changer scheduling code. 793cf493c6SJoerg Wunsch.El 803cf493c6SJoerg Wunsch.Sh FILES 81e6c744a0SKenneth D. Merry.Bl -tag -width /sys/cam/scsi/scsi_cd.c -compact 82e6c744a0SKenneth D. Merry.It Pa /sys/cam/scsi/scsi_cd.c 83e6c744a0SKenneth D. Merryis the driver source file. 843cf493c6SJoerg Wunsch.El 853cf493c6SJoerg Wunsch.Sh SEE ALSO 863cf493c6SJoerg Wunsch.Xr cd 4 , 87de336449SKenneth D. Merry.Xr scsi 4 883cf493c6SJoerg Wunsch.Sh HISTORY 893cf493c6SJoerg WunschThe 903cf493c6SJoerg Wunsch.Nm 913cf493c6SJoerg Wunschmanual page first appeared in 920f63118aSMike Pritchard.Fx 2.2 . 93aaf1f16eSPhilippe Charnier.Sh AUTHORS 943cf493c6SJoerg WunschThis 95aaf1f16eSPhilippe Charniermanual page was written by 96aaf1f16eSPhilippe Charnier.An John-Mark Gurney Aq gurney_j@efn.org . 97e6c744a0SKenneth D. MerryIt was updated for CAM and 98e6c744a0SKenneth D. Merry.Fx 3.0 99e6c744a0SKenneth D. Merryby 100def37e7cSMike Pritchard.An Kenneth Merry Aq ken@FreeBSD.org . 101