home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cdrom.zip
/
DDK
/
BASE
/
SRC
/
DEV
/
DASD
/
CDROM
/
OS2CDROM
/
cdsony.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-18
|
2KB
|
91 lines
/**************************************************************************
*
* SOURCE FILE NAME = CDSONY.H
*
* DESCRIPTIVE NAME = Vendor unique command descriptor blocks for Sony
*
* Copyright : COPYRIGHT IBM CORPORATION, 1991, 1992
* LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
* REFER TO COPYRIGHT INSTRUCTION FORM#G120-2083
* RESTRICTED MATERIALS OF IBM
* IBM CONFIDENTIAL
*
* VERSION = V2.0
*
* DATE
*
* DESCRIPTION
*
*
* FUNCTIONS
*
* ENTRY POINTS:
*
* DEPENDENCIES:
*
* NOTES
*
*
* STRUCTURES
*
* EXTERNAL REFERENCES
*
* EXTERNAL FUNCTIONS
*
* CHANGE ACTIVITY =
* DATE FLAG APAR CHANGE DESCRIPTION
* -------- ---------- ----- --------------------------------------
* mm/dd/yy @Vr.mpppxx xxxxx xxxxxxx
****************************************************************************/
/*
** CD-ROM device specific data structures
*/
#define SONY_READ_CDDA 0xD8
#define SONY_READ_CDXA 0xDB
/************************************************
* Sony SCSI Read CD-DA (0xD8) *
************************************************/
struct Sony_CDB_Read_CDDA {
UCHAR OpCode;
UCHAR reserved_1 : 5;
UCHAR LUN : 3;
union
ULONGB LBA;
union
ULONGB transfer_length;
UCHAR sub_code;
UCHAR control;
};
#define CDDA_SUBCODE_2352 0x00
#define CDDA_SUBCODE_2368 0x01
#define CDDA_SUBCODE_2448 0x02
#define CDDA_SUBCODE_96 0x03
/************************************************
* Sony SCSI Read CD-XA (0xDB) *
************************************************/
struct Sony_CDB_Read_CDXA {
UCHAR OpCode;
UCHAR reserved_1 : 5;
UCHAR LUN : 3;
union
ULONGB LBA;
UCHAR format;
union
ULONGB transfer_length;
UCHAR control;
};
#define CDXA_FORMAT_2048 0x00
#define CDXA_FORMAT_2352 0x0F
#define CDXA_FORMAT_2646 0x1F