sc01(HW)


sc01 -- CD-ROM Target Driver

Description

sc01 is a Storage Device Interface (SDI)-compliant CD-ROM target driver that provides access to one or more CD-ROM drives. Each drive must be attached to a SCSI bus controlled by an SDI-compliant host adapter driver (for example, see adsc(HW)).

Access to a particular drive is accomplished using the sc01 device files located in /dev/[r]cdrom. Each device file identifies a particular drive based on the SCSI ID assigned to that drive. The binding between a device file and a CD-ROM drive is as follows:


/dev/rcdrom/cd0
CD-ROM drive with lowest SCSI ID

/dev/rcdrom/cd1
CD-ROM drive with next to lowest SCSI ID
and so on. See Files below for more details.

Most CD-ROM drives can handle CD-ROM disks that contain two types of data: informational data and audio data. The sc01 driver allows access to both types of data.

A CD-ROM disk that contains informational data is treated as a random-access storage device, such as a hard disk. The information on the disk is divided into consecutively numbered, fixed-size (usually 2KB) sectors that can be accessed in any order. The standard tools for reading data from a random-access device, such as dd(ADM) or read(S), can be used to read informational data from a CD-ROM. However, all write operations are prohibited.

Audio commands control the operation of the drive's audio output hardware (usually a headphone jack located on the drive). For example, the C_PLAYAUDIO ioctl(S) causes the audio hardware to decode and convert the audio data to analog at a specific location on the disk, and play the audio on the drive's audio output hardware. Audio data is not returned to the host system.

All audio data commands are executed through the ioctl interface and often require a parameter structure that identifies the audio data to be acted upon. Unlike informational data, audio data is not referenced by a sector address. The methods used to identify a particular section of audio data should be described in the SCSI interface section of the reference manual supplied with your CD-ROM drive. Audio data cannot be read as if it were informational data, and informational data cannot be played using the drive's audio hardware.

ioctl calls

The sc01 driver uses several ioctl(S) commands. These are documented on the sdi(HW) manual page.

Files

The following CD-ROM special files are provided for SCO Open Server Release 6.0.0. In the following table, 'C' is the controller number of the Host Adapter that the CD-ROM drive is attached to, 'B' is the bus or channel number that the CD-ROM drive is attached to, 'T' is the target ID of the CD-ROM drive and 'L' is the logical unit number of the CD-ROM drive. Also, 'U' is the CD-ROM drive's number in the system, starting at 0 ( zero ). For example, the first CD-ROM drive in the system could be referenced as /dev/cdrom/cdrom0

Block Special File Character Special File

 
/dev/cdrom/cCbBtTlL /dev/rcdrom/cCbBtTlL
/dev/cdrom/cdromU /dev/rcdrom/cdromU
/dev/cdU /dev/rcdU

 Block Special File      Character Special File
 /dev/cdrom/cCbBtTlL     /dev/rcdrom/cCbBtTlL
 /dev/cdrom/cdromU       /dev/rcdrom/cdromU
 /dev/cdU                /dev/rcdU

References

ioctl(S), sd01(HW), sdi(HW), st01(HW), sw01(HW)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 02 June 2005