* Written by Julian Elischer (julian@tfs.com)
* for TRW Financial Systems.
* TRW Financial Systems, in accordance with their agreement with Carnegie
* Mellon University, makes this software available to CMU to distribute
* or use in any manner that they see fit as long as this message is kept with
* the software. For this reason TFS also grants any other persons or
* organisations permission to use or modify this software.
* TFS supplies this software to be publicly redistributed
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
* PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
* -------------------- ----- ----------------------
* CURRENT PATCH LEVEL: 1 00098
* -------------------- ----- ----------------------
* 16 Feb 93 Julian Elischer ADDED for SCSI system
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
struct scsi_read_capacity_cd
u_char addr_3
; /* Most Significant */
u_char addr_0
; /* Least Significant */
struct scsi_read_subchannel
struct scsi_read_cd_capacity
u_char addr_3
; /* Most Significant */
u_char addr_0
; /* Least Significant */
#define READ_CD_CAPACITY 0x25 /* slightly different from disk */
#define READ_SUBCHANNEL 0x42 /* cdrom read Subchannel */
#define READ_TOC 0x43 /* cdrom read TOC */
#define READ_HEADER 0x44 /* cdrom read header */
#define PLAY 0x45 /* cdrom play 'play audio' mode */
#define PLAY_MSF 0x47 /* cdrom play Min,Sec,Frames mode */
#define PLAY_TRACK 0x48 /* cdrom play track/index mode */
#define PLAY_TRACK_REL 0x49 /* cdrom play track/index mode */
#define PAUSE 0x4b /* cdrom pause in 'play audio' mode */
#define PLAY_BIG 0xa5 /* cdrom pause in 'play audio' mode */
#define PLAY_TRACK_REL_BIG 0xa9 /* cdrom play track/index mode */
struct cd_inquiry_data
/* in case there is some special info */
u_char device_qualifier
:3;
u_char additional_length
;
struct scsi_read_cd_cap_data
u_char addr_3
; /* Most significant */
u_char addr_0
; /* Least significant */
u_char length_3
; /* Most significant */
u_char length_0
; /* Least significant */
#define LEFT_CHANNEL CHANNEL_0
#define RIGHT_CHANNEL CHANNEL_1
struct scsi_mode_header header
;
struct blk_desc blk_desc
;