2 * linux/drivers/block/ide_cd.h
4 * Copyright (C) 1996-98 Erik Andersen
5 * Copyright (C) 1998-2000 Jens Axboe
10 #include <linux/cdrom.h>
11 #include <asm/byteorder.h>
13 /* Turn this on to have the driver print out the meanings of the
14 ATAPI error codes. This will use up additional kernel-space
17 #ifndef VERBOSE_IDE_CD_ERRORS
18 #define VERBOSE_IDE_CD_ERRORS 1
22 /* Turning this on will remove code to work around various nonstandard
23 ATAPI implementations. If you know your drive follows the standard,
24 this will give you a slightly smaller kernel. */
26 #ifndef STANDARD_ATAPI
27 #define STANDARD_ATAPI 0
31 /* Turning this on will disable the door-locking functionality.
32 This is apparently needed for supermount. */
34 #ifndef NO_DOOR_LOCKING
35 #define NO_DOOR_LOCKING 0
38 /************************************************************************/
40 #define SECTOR_SIZE 512
42 #define SECTORS_PER_FRAME (CD_FRAMESIZE / SECTOR_SIZE)
43 #define SECTOR_BUFFER_SIZE (CD_FRAMESIZE * 32)
44 #define SECTORS_BUFFER (SECTOR_BUFFER_SIZE / SECTOR_SIZE)
46 #define MIN(a,b) ((a) < (b) ? (a) : (b))
48 /* special command codes for strategy routine. */
49 #define PACKET_COMMAND 4315
50 #define REQUEST_SENSE_COMMAND 4316
51 #define RESET_DRIVE_COMMAND 4317
54 /* Configuration flags. These describe the capabilities of the drive.
55 They generally do not change after initialization, unless we learn
56 more about the drive from stuff failing. */
57 struct ide_cd_config_flags
{
58 __u8 drq_interrupt
: 1; /* Device sends an interrupt when ready
59 for a packet command. */
60 __u8 no_doorlock
: 1; /* Drive cannot lock the door. */
61 __u8 no_eject
: 1; /* Drive cannot eject the disc. */
62 __u8 nec260
: 1; /* Drive is a pre-1.2 NEC 260 drive. */
63 __u8 playmsf_as_bcd
: 1; /* PLAYMSF command takes BCD args. */
64 __u8 tocaddr_as_bcd
: 1; /* TOC addresses are in BCD. */
65 __u8 toctracks_as_bcd
: 1; /* TOC track numbers are in BCD. */
66 __u8 subchan_as_bcd
: 1; /* Subchannel info is in BCD. */
67 __u8 is_changer
: 1; /* Drive is a changer. */
68 __u8 cd_r
: 1; /* Drive can write to CD-R media . */
69 __u8 cd_rw
: 1; /* Drive can write to CD-R/W media . */
70 __u8 dvd
: 1; /* Drive is a DVD-ROM */
71 __u8 dvd_r
: 1; /* Drive can write DVD-R */
72 __u8 dvd_ram
: 1; /* Drive can write DVD-RAM */
73 __u8 test_write
: 1; /* Drive can fake writes */
74 __u8 supp_disc_present
: 1; /* Changer can report exact contents
76 __u8 limit_nframes
: 1; /* Drive does not provide data in
77 multiples of SECTOR_SIZE when more
78 than one interrupt is needed. */
79 __u8 seeking
: 1; /* Seeking in progress */
80 __u8 audio_play
: 1; /* can do audio related commands */
81 __u8 close_tray
: 1; /* can close the tray */
82 __u8 writing
: 1; /* pseudo write in progress */
84 byte max_speed
; /* Max speed of the drive */
86 #define CDROM_CONFIG_FLAGS(drive) (&(((struct cdrom_info *)(drive->driver_data))->config_flags))
89 /* State flags. These give information about the current state of the
90 drive, and will change during normal operation. */
91 struct ide_cd_state_flags
{
92 __u8 media_changed
: 1; /* Driver has noticed a media change. */
93 __u8 toc_valid
: 1; /* Saved TOC information is current. */
94 __u8 door_locked
: 1; /* We think that the drive door is locked. */
95 __u8 writing
: 1; /* the drive is currently writing */
97 byte current_speed
; /* Current speed of the drive */
100 #define CDROM_STATE_FLAGS(drive) (&(((struct cdrom_info *)(drive->driver_data))->state_flags))
102 struct packet_command
{
106 struct request_sense
*sense_data
;
110 /* Structure of a MSF cdrom address. */
118 /* Space to hold the disk TOC. */
119 #define MAX_TRACKS 99
120 struct atapi_toc_header
{
121 unsigned short toc_length
;
126 struct atapi_toc_entry
{
128 #if defined(__BIG_ENDIAN_BITFIELD)
131 #elif defined(__LITTLE_ENDIAN_BITFIELD)
135 #error "Please fix <asm/byteorder.h>"
141 struct atapi_msf msf
;
146 int last_session_lba
;
149 struct atapi_toc_header hdr
;
150 struct atapi_toc_entry ent
[MAX_TRACKS
+1];
151 /* One extra for the leadout. */
155 /* This structure is annoyingly close to, but not identical with,
156 the cdrom_subchnl structure from cdrom.h. */
157 struct atapi_cdrom_subchnl
{
158 u_char acdsc_reserved
;
159 u_char acdsc_audiostatus
;
160 u_short acdsc_length
;
163 #if defined(__BIG_ENDIAN_BITFIELD)
164 u_char acdsc_ctrl
: 4;
166 #elif defined(__LITTLE_ENDIAN_BITFIELD)
168 u_char acdsc_ctrl
: 4;
170 #error "Please fix <asm/byteorder.h>"
175 struct atapi_msf msf
;
179 struct atapi_msf msf
;
186 /* This should probably go into cdrom.h along with the other
187 * generic stuff now in the Mt. Fuji spec.
189 struct atapi_capabilities_page
{
190 #if defined(__BIG_ENDIAN_BITFIELD)
191 __u8 parameters_saveable
: 1;
194 #elif defined(__LITTLE_ENDIAN_BITFIELD)
197 __u8 parameters_saveable
: 1;
199 #error "Please fix <asm/byteorder.h>"
204 #if defined(__BIG_ENDIAN_BITFIELD)
206 /* Drive supports reading of DVD-RAM discs */
207 __u8 dvd_ram_read
: 1;
208 /* Drive supports reading of DVD-R discs */
210 /* Drive supports reading of DVD-ROM discs */
212 /* Drive supports reading CD-R discs with addressing method 2 */
213 __u8 method2
: 1; /* reserved in 1.2 */
214 /* Drive can read from CD-R/W (CD-E) discs (orange book, part III) */
215 __u8 cd_rw_read
: 1; /* reserved in 1.2 */
216 /* Drive supports read from CD-R discs (orange book, part II) */
217 __u8 cd_r_read
: 1; /* reserved in 1.2 */
218 #elif defined(__LITTLE_ENDIAN_BITFIELD)
219 /* Drive supports read from CD-R discs (orange book, part II) */
220 __u8 cd_r_read
: 1; /* reserved in 1.2 */
221 /* Drive can read from CD-R/W (CD-E) discs (orange book, part III) */
222 __u8 cd_rw_read
: 1; /* reserved in 1.2 */
223 /* Drive supports reading CD-R discs with addressing method 2 */
225 /* Drive supports reading of DVD-ROM discs */
227 /* Drive supports reading of DVD-R discs */
229 /* Drive supports reading of DVD-RAM discs */
230 __u8 dvd_ram_read
: 1;
233 #error "Please fix <asm/byteorder.h>"
236 #if defined(__BIG_ENDIAN_BITFIELD)
238 /* Drive can write DVD-RAM discs */
239 __u8 dvd_ram_write
: 1;
240 /* Drive can write DVD-R discs */
241 __u8 dvd_r_write
: 1;
243 /* Drive can fake writes */
245 /* Drive can write to CD-R/W (CD-E) discs (orange book, part III) */
246 __u8 cd_rw_write
: 1; /* reserved in 1.2 */
247 /* Drive supports write to CD-R discs (orange book, part II) */
248 __u8 cd_r_write
: 1; /* reserved in 1.2 */
249 #elif defined(__LITTLE_ENDIAN_BITFIELD)
250 /* Drive can write to CD-R discs (orange book, part II) */
251 __u8 cd_r_write
: 1; /* reserved in 1.2 */
252 /* Drive can write to CD-R/W (CD-E) discs (orange book, part III) */
253 __u8 cd_rw_write
: 1; /* reserved in 1.2 */
254 /* Drive can fake writes */
257 /* Drive can write DVD-R discs */
258 __u8 dvd_r_write
: 1;
259 /* Drive can write DVD-RAM discs */
260 __u8 dvd_ram_write
: 1;
263 #error "Please fix <asm/byteorder.h>"
266 #if defined(__BIG_ENDIAN_BITFIELD)
268 /* Drive can read multisession discs. */
269 __u8 multisession
: 1;
270 /* Drive can read mode 2, form 2 data. */
271 __u8 mode2_form2
: 1;
272 /* Drive can read mode 2, form 1 (XA) data. */
273 __u8 mode2_form1
: 1;
274 /* Drive supports digital output on port 2. */
276 /* Drive supports digital output on port 1. */
278 /* Drive can deliver a composite audio/video data stream. */
280 /* Drive supports audio play operations. */
282 #elif defined(__LITTLE_ENDIAN_BITFIELD)
283 /* Drive supports audio play operations. */
285 /* Drive can deliver a composite audio/video data stream. */
287 /* Drive supports digital output on port 1. */
289 /* Drive supports digital output on port 2. */
291 /* Drive can read mode 2, form 1 (XA) data. */
292 __u8 mode2_form1
: 1;
293 /* Drive can read mode 2, form 2 data. */
294 __u8 mode2_form2
: 1;
295 /* Drive can read multisession discs. */
296 __u8 multisession
: 1;
299 #error "Please fix <asm/byteorder.h>"
302 #if defined(__BIG_ENDIAN_BITFIELD)
304 /* Drive can return Media Catalog Number (UPC) info. */
306 /* Drive can return International Standard Recording Code info. */
308 /* Drive supports C2 error pointers. */
309 __u8 c2_pointers
: 1;
310 /* R-W data will be returned deinterleaved and error corrected. */
312 /* Subchannel reads can return combined R-W information. */
313 __u8 rw_supported
: 1;
314 /* Drive can continue a read cdda operation from a loss of streaming.*/
315 __u8 cdda_accurate
: 1;
316 /* Drive can read Red Book audio data. */
318 #elif defined(__LITTLE_ENDIAN_BITFIELD)
319 /* Drive can read Red Book audio data. */
321 /* Drive can continue a read cdda operation from a loss of streaming.*/
322 __u8 cdda_accurate
: 1;
323 /* Subchannel reads can return combined R-W information. */
324 __u8 rw_supported
: 1;
325 /* R-W data will be returned deinterleaved and error corrected. */
327 /* Drive supports C2 error pointers. */
328 __u8 c2_pointers
: 1;
329 /* Drive can return International Standard Recording Code info. */
331 /* Drive can return Media Catalog Number (UPC) info. */
335 #error "Please fix <asm/byteorder.h>"
338 #if defined(__BIG_ENDIAN_BITFIELD)
339 /* Drive mechanism types. */
340 mechtype_t mechtype
: 3;
342 /* Drive can eject a disc or changer cartridge. */
344 /* State of prevent/allow jumper. */
345 __u8 prevent_jumper
: 1;
346 /* Present state of door lock. */
348 /* Drive can lock the door. */
350 #elif defined(__LITTLE_ENDIAN_BITFIELD)
352 /* Drive can lock the door. */
354 /* Present state of door lock. */
356 /* State of prevent/allow jumper. */
357 __u8 prevent_jumper
: 1;
358 /* Drive can eject a disc or changer cartridge. */
361 /* Drive mechanism types. */
362 mechtype_t mechtype
: 3;
364 #error "Please fix <asm/byteorder.h>"
367 #if defined(__BIG_ENDIAN_BITFIELD)
369 /* Drive supports software slot selection. */
370 __u8 sss
: 1; /* reserved in 1.2 */
371 /* Changer can report exact contents of slots. */
372 __u8 disc_present
: 1; /* reserved in 1.2 */
373 /* Audio for each channel can be muted independently. */
374 __u8 separate_mute
: 1;
375 /* Audio level for each channel can be controlled independently. */
376 __u8 separate_volume
: 1;
377 #elif defined(__LITTLE_ENDIAN_BITFIELD)
379 /* Audio level for each channel can be controlled independently. */
380 __u8 separate_volume
: 1;
381 /* Audio for each channel can be muted independently. */
382 __u8 separate_mute
: 1;
383 /* Changer can report exact contents of slots. */
384 __u8 disc_present
: 1; /* reserved in 1.2 */
385 /* Drive supports software slot selection. */
386 __u8 sss
: 1; /* reserved in 1.2 */
389 #error "Please fix <asm/byteorder.h>"
392 /* Note: the following four fields are returned in big-endian form. */
393 /* Maximum speed (in kB/s). */
394 unsigned short maxspeed
;
395 /* Number of discrete volume levels. */
396 unsigned short n_vol_levels
;
397 /* Size of cache in drive, in kB. */
398 unsigned short buffer_size
;
399 /* Current speed (in kB/s). */
400 unsigned short curspeed
;
402 /* Truncate the structure here, so we don't have headaches reading
403 from older drives. */
407 struct atapi_mechstat_header
{
408 #if defined(__BIG_ENDIAN_BITFIELD)
410 __u8 changer_state
: 2;
412 #elif defined(__LITTLE_ENDIAN_BITFIELD)
414 __u8 changer_state
: 2;
417 #error "Please fix <asm/byteorder.h>"
420 #if defined(__BIG_ENDIAN_BITFIELD)
424 #elif defined(__LITTLE_ENDIAN_BITFIELD)
429 #error "Please fix <asm/byteorder.h>"
434 __u8
short slot_tablelen
;
439 #if defined(__BIG_ENDIAN_BITFIELD)
440 __u8 disc_present
: 1;
443 #elif defined(__LITTLE_ENDIAN_BITFIELD)
446 __u8 disc_present
: 1;
448 #error "Please fix <asm/byteorder.h>"
454 struct atapi_changer_info
{
455 struct atapi_mechstat_header hdr
;
456 struct atapi_slot slots
[0];
459 /* Extra per-device info for cdrom drives. */
462 /* Buffer for table of contents. NULL if we haven't allocated
463 a TOC buffer for this device yet. */
465 struct atapi_toc
*toc
;
467 unsigned long sector_buffered
;
468 unsigned long nsectors_buffered
;
469 unsigned char *buffer
;
471 /* The result of the last successful request sense command
473 struct request_sense sense_data
;
475 struct request request_sense_request
;
476 struct packet_command request_sense_pc
;
478 unsigned long last_block
;
479 unsigned long start_seek
;
480 /* Buffer to hold mechanism status and changer slot table. */
481 struct atapi_changer_info
*changer_info
;
483 struct ide_cd_config_flags config_flags
;
484 struct ide_cd_state_flags state_flags
;
486 /* Per-device info needed by cdrom.c generic driver. */
487 struct cdrom_device_info devinfo
;
490 /****************************************************************************
491 * Descriptions of ATAPI error codes.
494 #define ARY_LEN(a) ((sizeof(a) / sizeof(a[0])))
496 /* This stuff should be in cdrom.h, since it is now generic... */
498 /* ATAPI sense keys (from table 140 of ATAPI 2.6) */
499 #define NO_SENSE 0x00
500 #define RECOVERED_ERROR 0x01
501 #define NOT_READY 0x02
502 #define MEDIUM_ERROR 0x03
503 #define HARDWARE_ERROR 0x04
504 #define ILLEGAL_REQUEST 0x05
505 #define UNIT_ATTENTION 0x06
506 #define DATA_PROTECT 0x07
507 #define ABORTED_COMMAND 0x0b
508 #define MISCOMPARE 0x0e
512 /* This stuff should be in cdrom.h, since it is now generic... */
513 #if VERBOSE_IDE_CD_ERRORS
515 /* The generic packet command opcodes for CD/DVD Logical Units,
516 * From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
518 unsigned short packet_command
;
519 const char * const text
;
520 } packet_command_texts
[] = {
521 { GPCMD_TEST_UNIT_READY
, "Test Unit Ready" },
522 { GPCMD_REQUEST_SENSE
, "Request Sense" },
523 { GPCMD_FORMAT_UNIT
, "Format Unit" },
524 { GPCMD_INQUIRY
, "Inquiry" },
525 { GPCMD_START_STOP_UNIT
, "Start/Stop Unit" },
526 { GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
, "Prevent/Allow Medium Removal" },
527 { GPCMD_READ_FORMAT_CAPACITIES
, "Read Format Capacities" },
528 { GPCMD_READ_CDVD_CAPACITY
, "Read Cd/Dvd Capacity" },
529 { GPCMD_READ_10
, "Read 10" },
530 { GPCMD_WRITE_10
, "Write 10" },
531 { GPCMD_SEEK
, "Seek" },
532 { GPCMD_WRITE_AND_VERIFY_10
, "Write and Verify 10" },
533 { GPCMD_VERIFY_10
, "Verify 10" },
534 { GPCMD_FLUSH_CACHE
, "Flush Cache" },
535 { GPCMD_READ_SUBCHANNEL
, "Read Subchannel" },
536 { GPCMD_READ_TOC_PMA_ATIP
, "Read Table of Contents" },
537 { GPCMD_READ_HEADER
, "Read Header" },
538 { GPCMD_PLAY_AUDIO_10
, "Play Audio 10" },
539 { GPCMD_GET_CONFIGURATION
, "Get Configuration" },
540 { GPCMD_PLAY_AUDIO_MSF
, "Play Audio MSF" },
541 { GPCMD_PLAYAUDIO_TI
, "Play Audio TrackIndex" },
542 { GPCMD_GET_EVENT_STATUS_NOTIFICATION
, "Get Event Status Notification" },
543 { GPCMD_PAUSE_RESUME
, "Pause/Resume" },
544 { GPCMD_STOP_PLAY_SCAN
, "Stop Play/Scan" },
545 { GPCMD_READ_DISC_INFO
, "Read Disc Info" },
546 { GPCMD_READ_TRACK_RZONE_INFO
, "Read Track Rzone Info" },
547 { GPCMD_RESERVE_RZONE_TRACK
, "Reserve Rzone Track" },
548 { GPCMD_SEND_OPC
, "Send OPC" },
549 { GPCMD_MODE_SELECT_10
, "Mode Select 10" },
550 { GPCMD_REPAIR_RZONE_TRACK
, "Repair Rzone Track" },
551 { GPCMD_MODE_SENSE_10
, "Mode Sense 10" },
552 { GPCMD_CLOSE_TRACK
, "Close Track" },
553 { GPCMD_BLANK
, "Blank" },
554 { GPCMD_SEND_EVENT
, "Send Event" },
555 { GPCMD_SEND_KEY
, "Send Key" },
556 { GPCMD_REPORT_KEY
, "Report Key" },
557 { GPCMD_LOAD_UNLOAD
, "Load/Unload" },
558 { GPCMD_SET_READ_AHEAD
, "Set Read-ahead" },
559 { GPCMD_READ_12
, "Read 12" },
560 { GPCMD_GET_PERFORMANCE
, "Get Performance" },
561 { GPCMD_SEND_DVD_STRUCTURE
, "Send DVD Structure" },
562 { GPCMD_READ_DVD_STRUCTURE
, "Read DVD Structure" },
563 { GPCMD_SET_STREAMING
, "Set Streaming" },
564 { GPCMD_READ_CD_MSF
, "Read CD MSF" },
565 { GPCMD_SCAN
, "Scan" },
566 { GPCMD_SET_SPEED
, "Set Speed" },
567 { GPCMD_PLAY_CD
, "Play CD" },
568 { GPCMD_MECHANISM_STATUS
, "Mechanism Status" },
569 { GPCMD_READ_CD
, "Read CD" },
574 /* From Table 303 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
575 const char * const sense_key_texts
[16] = {
594 /* From Table 304 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
596 unsigned long asc_ascq
;
597 const char * const text
;
598 } sense_data_texts
[] = {
599 { 0x000000, "No additional sense information" },
600 { 0x000011, "Play operation in progress" },
601 { 0x000012, "Play operation paused" },
602 { 0x000013, "Play operation successfully completed" },
603 { 0x000014, "Play operation stopped due to error" },
604 { 0x000015, "No current audio status to return" },
605 { 0x010c0a, "Write error - padding blocks added" },
606 { 0x011700, "Recovered data with no error correction applied" },
607 { 0x011701, "Recovered data with retries" },
608 { 0x011702, "Recovered data with positive head offset" },
609 { 0x011703, "Recovered data with negative head offset" },
610 { 0x011704, "Recovered data with retries and/or CIRC applied" },
611 { 0x011705, "Recovered data using previous sector ID" },
612 { 0x011800, "Recovered data with error correction applied" },
613 { 0x011801, "Recovered data with error correction and retries applied"},
614 { 0x011802, "Recovered data - the data was auto-reallocated" },
615 { 0x011803, "Recovered data with CIRC" },
616 { 0x011804, "Recovered data with L-EC" },
618 "Failure prediction threshold exceeded - Predicted logical unit failure" },
620 "Failure prediction threshold exceeded - Predicted media failure" },
621 { 0x015dff, "Failure prediction threshold exceeded - False" },
622 { 0x017301, "Power calibration area almost full" },
623 { 0x020400, "Logical unit not ready - cause not reportable" },
624 /* Following is misspelled in ATAPI 2.6, _and_ in Mt. Fuji */
626 "Logical unit not ready - in progress [sic] of becoming ready" },
627 { 0x020402, "Logical unit not ready - initializing command required" },
628 { 0x020403, "Logical unit not ready - manual intervention required" },
629 { 0x020404, "In process of becoming ready - writing" },
630 { 0x020600, "No reference position found (media may be upside down)" },
631 { 0x023000, "Incompatible medium installed" },
632 { 0x023a00, "Medium not present" },
633 { 0x025300, "Media load or eject failed" },
634 { 0x025700, "Unable to recover table of contents" },
635 { 0x030300, "Peripheral device write fault" },
636 { 0x030301, "No write current" },
637 { 0x030302, "Excessive write errors" },
638 { 0x030c00, "Write error" },
639 { 0x030c01, "Write error - Recovered with auto reallocation" },
640 { 0x030c02, "Write error - auto reallocation failed" },
641 { 0x030c03, "Write error - recommend reassignment" },
642 { 0x030c04, "Compression check miscompare error" },
643 { 0x030c05, "Data expansion occurred during compress" },
644 { 0x030c06, "Block not compressible" },
645 { 0x030c07, "Write error - recovery needed" },
646 { 0x030c08, "Write error - recovery failed" },
647 { 0x030c09, "Write error - loss of streaming" },
648 { 0x031100, "Unrecovered read error" },
649 { 0x031106, "CIRC unrecovered error" },
650 { 0x033101, "Format command failed" },
651 { 0x033200, "No defect spare location available" },
652 { 0x033201, "Defect list update failure" },
653 { 0x035100, "Erase failure" },
654 { 0x037200, "Session fixation error" },
655 { 0x037201, "Session fixation error writin lead-in" },
656 { 0x037202, "Session fixation error writin lead-out" },
657 { 0x037300, "CD control error" },
658 { 0x037302, "Power calibration area is full" },
659 { 0x037303, "Power calibration area error" },
660 { 0x037304, "Program memory area / RMA update failure" },
661 { 0x037305, "Program memory area / RMA is full" },
662 { 0x037306, "Program memory area / RMA is (almost) full" },
664 { 0x040200, "No seek complete" },
665 { 0x040300, "Write fault" },
666 { 0x040900, "Track following error" },
667 { 0x040901, "Tracking servo failure" },
668 { 0x040902, "Focus servo failure" },
669 { 0x040903, "Spindle servo failure" },
670 { 0x041500, "Random positioning error" },
671 { 0x041501, "Mechanical positioning or changer error" },
672 { 0x041502, "Positioning error detected by read of medium" },
673 { 0x043c00, "Mechanical positioning or changer error" },
674 { 0x044000, "Diagnostic failure on component (ASCQ)" },
675 { 0x044400, "Internal CD/DVD logical unit failure" },
676 { 0x04b600, "Media load mechanism failed" },
677 { 0x051a00, "Parameter list length error" },
678 { 0x052000, "Invalid command operation code" },
679 { 0x052c00, "Command sequence error" },
680 { 0x052100, "Logical block address out of range" },
681 { 0x052102, "Invalid address for write" },
682 { 0x052400, "Invalid field in command packet" },
683 { 0x052600, "Invalid field in parameter list" },
684 { 0x052601, "Parameter not supported" },
685 { 0x052602, "Parameter value invalid" },
686 { 0x052700, "Write protected media" },
687 { 0x052c00, "Command sequence error" },
688 { 0x052c03, "Current program area is not empty" },
689 { 0x052c04, "Current program area is empty" },
690 { 0x053001, "Cannot read medium - unknown format" },
691 { 0x053002, "Cannot read medium - incompatible format" },
692 { 0x053900, "Saving parameters not supported" },
693 { 0x054e00, "Overlapped commands attempted" },
694 { 0x055302, "Medium removal prevented" },
695 { 0x055500, "System resource failure" },
696 { 0x056300, "End of user area encountered on this track" },
697 { 0x056400, "Illegal mode for this track or incompatible medium" },
698 { 0x056f00, "Copy protection key exchange failure - Authentication failure" },
699 { 0x056f01, "Copy protection key exchange failure - Key not present" },
700 { 0x056f02, "Copy protection key exchange failure - Key not established" },
701 { 0x056f03, "Read of scrambled sector without authentication" },
702 { 0x056f04, "Media region code is mismatched to logical unit" },
703 { 0x056f05, "Drive region must be permanent / region reset count error" },
704 { 0x057203, "Session fixation error - incomplete track in session" },
705 { 0x057204, "Empty or partially written reserved track" },
706 { 0x057205, "No more RZONE reservations are allowed" },
707 { 0x05bf00, "Loss of streaming" },
708 { 0x062800, "Not ready to ready transition, medium may have changed" },
709 { 0x062900, "Power on, reset or hardware reset occurred" },
710 { 0x062a00, "Parameters changed" },
711 { 0x062a01, "Mode parameters changed" },
712 { 0x062e00, "Insufficient time for operation" },
713 { 0x063f00, "Logical unit operating conditions have changed" },
714 { 0x063f01, "Microcode has been changed" },
715 { 0x065a00, "Operator request or state change input (unspecified)" },
716 { 0x065a01, "Operator medium removal request" },
717 { 0x0bb900, "Play operation aborted" },
719 /* Here we use 0xff for the key (not a valid key) to signify
720 * that these can have _any_ key value associated with them... */
721 { 0xff0401, "Logical unit is in process of becoming ready" },
722 { 0xff0400, "Logical unit not ready, cause not reportable" },
723 { 0xff0402, "Logical unit not ready, initializing command required" },
724 { 0xff0403, "Logical unit not ready, manual intervention required" },
725 { 0xff0500, "Logical unit does not respond to selection" },
726 { 0xff0800, "Logical unit communication failure" },
727 { 0xff0802, "Logical unit communication parity error" },
728 { 0xff0801, "Logical unit communication time-out" },
729 { 0xff2500, "Logical unit not supported" },
730 { 0xff4c00, "Logical unit failed self-configuration" },
731 { 0xff3e00, "Logical unit has not self-configured yet" },
736 #endif /* _IDE_CD_H */