NetBSD/sys/dev/scsipi/scsi_cd.h

55 lines
1.4 KiB
C
Raw Normal View History

/* $NetBSD: scsi_cd.h,v 1.8 1997/10/01 01:18:58 enami Exp $ */
1993-03-21 21:04:42 +03:00
/*
* 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
1993-03-21 21:04:42 +03:00
* 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.
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
1993-03-21 21:04:42 +03:00
*/
#ifndef _SCSI_SCSI_CD_H
#define _SCSI_SCSI_CD_H 1
1993-03-21 21:04:42 +03:00
/*
* SCSI specific command format
1993-03-21 21:04:42 +03:00
*/
#define PLAY_TRACK 0x48 /* cdrom play track/index mode */
struct scsi_play_track {
u_int8_t opcode;
u_int8_t byte2;
u_int8_t unused[2];
u_int8_t start_track;
u_int8_t start_index;
u_int8_t unused1;
u_int8_t end_track;
u_int8_t end_index;
u_int8_t control;
1993-03-21 21:04:42 +03:00
};
/* sense pages */
#define SCSI_CD_PAGE_CODE 0x3F
#define SCSI_AUDIO_PAGE 0x0e
#define SCSI_CD_PAGE_PS 0x80
1993-03-21 21:04:42 +03:00
union scsi_cd_pages {
struct cd_audio_page audio;
1993-03-21 21:04:42 +03:00
};
struct scsi_cd_mode_data {
1993-03-21 21:04:42 +03:00
struct scsi_mode_header header;
struct scsi_blk_desc blk_desc;
union scsi_cd_pages page;
1993-03-21 21:04:42 +03:00
};
#endif /*_SCSI_SCSI_CD_H*/
1993-03-21 21:04:42 +03:00