xref: /freebsd/share/man/man9/cd.9 (revision a8445737e740901f5f2c8d24c12ef7fc8b00134e)
1.\" Copyright (c) 1997
2.\"	John-Mark Gurney.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY John-Mark Gurney 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 CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\"	$Id: cd.9,v 1.6 1997/04/02 09:41:16 jmg Exp $
29.\"
30.Dd February 1, 1997
31.Dt CD 9
32.Os FreeBSD
33.Sh NAME
34.Nm cd
35.Nd device driver for SCSI subsystem
36.Sh DESCRIPTION
37The
38.Nm
39device driver provides the
40.Tn SCSI
41subsystem a way to handle type 5
42.Pq Dv T_READONLY
43media.  Some drives don't behave as the driver expects.  See the section
44QUIRKS for info on possible flags.
45.Sh QUIRKS
46Each
47.Tn CD-ROM
48device can have different interpretations of the
49.Tn SCSI
50spec.  This can lead to drives requiring special handling in the driver.  The
51following is a list of quirks that the driver recognize.  See
52.Xr scsiconf 9
53for more information on how to add quirk entries.
54.Bl -tag -width CD_Q_BCD_TRACKS
55.It Dv CD_Q_NO_TOUCH
56This flag tell the driver not to probe the drive at attach time to see if
57there is a disk in the drive and find out what size it is.
58.It Dv CD_Q_BCD_TRACKS
59This flag is for broken drives that return the track numbers in packed BCD
60instead of straight decimal.  If the drive seems to skip tracks
61.Pq tracks 10-15 are skipped
62then you have a drive that is in need of this flag.
63.El
64.Sh FILES
65.Bl -tag -width /sys/scsi/scsiconf.h -compact
66.It Pa /sys/scsi/cd.c
67files contains actual driver code
68.It Pa /sys/scsi/scsiconf.h
69contains the defines of the
70.Dv CD_Q_xxx
71quirk flags
72.El
73.Sh SEE ALSO
74.Xr cd 4 ,
75.Xr scsi 4 ,
76.Xr scsiconf 9
77.Sh HISTORY
78The
79.Nm
80manual page first appeared in
81.Fx 2.2 .
82.Sh AUTHORS
83This
84manual page was written by
85.An John-Mark Gurney Aq gurney_j@efn.org .
86