Offset | Contents |
---|---|
0 | Device ( 0 – 7) |
4 | Card (0 – 3) |
8 | Logical Unit Number (0 – 7) |
12 | Driver handle (see CD_Identify) |
16 | Reserved (set to zero) |
The following table details the different data modes that CDFS currently understands.
Mode | Meaning |
---|---|
0 | Audio |
1 | Data Mode 1 |
2 | Data Mode 2 format 1 |
3 | Data Mode 2 format 2 |
Addresses have different meaning depending on the addressing mode:
Mode | Meaning |
---|---|
0 | Logical block addressing (Offset in blocks from the start of a CD’s data area) |
1 | Red Book addressing (A time offset from a CD’s first frame, in the form detailed below this table) |
2 | Physical block addressing (offset in blocks from the first block on the CD) |
Byte | Label | Meaning |
---|---|---|
0 | FF | Frame number (0 – 74) (75 frames in one second) |
1 | SS | Seconds (0-59) |
2 | MM | Minutes (0-99) |
3 | Reserved |
The first readable audio block on a CD is usually 2 secs (150 blocks) into the data area – modes 0 and 1 may give an error if you try to access below this.
Bits | Meaning |
---|---|
0 – 5 | The number of CD commands recognised, currently 31, maximum 63 |
6 | Use the SCSI 1 read data command |
7 | Use the SCSI 1 seek command |
8 | Use old (SCSI I?) Inquiry |
9 | Use old Capacity |
10 | Use old Ready |
11 | Use old Stop/Open |
12 | Use old Check |
13 | Use old Status |
14 | Use old Control |
15 | Use old Prefetch |
16 | Use old Reset |
17 | Use Read data proprietary |
18 | Use Read data scatter |
19 | Use Seek data proprietary |
20 | Use Seek data scatter |
21 | Call SCSI_Op to implement CD_SCSIUserOp rather than the soft loadable driver |
22 – 31 | Reserved (must be zero) |
Value | Meaning |
---|---|
1 | OK |
2 | Busy |
4 | Not Ready (e.g. Drive empty) |
8 | Unavailable |
The following block is used by CD_SetParameters and CD_GetParameters.
Offset | Contents |
---|---|
0 | Log spin-down delay 0-15 (0 equivilent to 16, 1 = shortest) |
4 | Number of retries |
8 | Read mode (0, 1 and 3 for data, 2 for audio) |
12 | Speed in multiples of ‘standard’ speed |