2 * linux/drivers/ide/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
39 * typical timeout for packet command
41 #define ATAPI_WAIT_PC (60 * HZ)
42 #define ATAPI_WAIT_WRITE_BUSY (10 * HZ)
44 /************************************************************************/
48 #define SECTOR_SIZE (1 << SECTOR_BITS)
50 #define SECTORS_PER_FRAME (CD_FRAMESIZE >> SECTOR_BITS)
51 #define SECTOR_BUFFER_SIZE (CD_FRAMESIZE * 32)
53 /* Configuration flags. These describe the capabilities of the drive.
54 They generally do not change after initialization, unless we learn
55 more about the drive from stuff failing. */
56 struct ide_cd_config_flags {
57 __u8 drq_interrupt : 1; /* Device sends an interrupt when ready
58 for a packet command. */
59 __u8 no_doorlock : 1; /* Drive cannot lock the door. */
60 __u8 no_eject : 1; /* Drive cannot eject the disc. */
61 __u8 nec260 : 1; /* Drive is a pre-1.2 NEC 260 drive. */
62 __u8 playmsf_as_bcd : 1; /* PLAYMSF command takes BCD args. */
63 __u8 tocaddr_as_bcd : 1; /* TOC addresses are in BCD. */
64 __u8 toctracks_as_bcd : 1; /* TOC track numbers are in BCD. */
65 __u8 subchan_as_bcd : 1; /* Subchannel info is in BCD. */
66 __u8 is_changer : 1; /* Drive is a changer. */
67 __u8 cd_r : 1; /* Drive can write to CD-R media . */
68 __u8 cd_rw : 1; /* Drive can write to CD-R/W media . */
69 __u8 dvd : 1; /* Drive is a DVD-ROM */
70 __u8 dvd_r : 1; /* Drive can write DVD-R */
71 __u8 dvd_ram : 1; /* Drive can write DVD-RAM */
72 __u8 ram : 1; /* generic WRITE (dvd-ram/mrw) */
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 */
83 __u8 mo_drive : 1; /* drive is an MO device */
84 __u8 no_speed_select : 1; /* SET_CD_SPEED command is unsupported. */
86 byte max_speed; /* Max speed of the drive */
88 #define CDROM_CONFIG_FLAGS(drive) (&(((struct cdrom_info *)(drive->driver_data))->config_flags))
91 /* State flags. These give information about the current state of the
92 drive, and will change during normal operation. */
93 struct ide_cd_state_flags {
94 __u8 media_changed : 1; /* Driver has noticed a media change. */
95 __u8 toc_valid : 1; /* Saved TOC information is current. */
96 __u8 door_locked : 1; /* We think that the drive door is locked. */
97 __u8 writing : 1; /* the drive is currently writing */
99 byte current_speed; /* Current speed of the drive */
102 #define CDROM_STATE_FLAGS(drive) (&(((struct cdrom_info *)(drive->driver_data))->state_flags))
104 /* Structure of a MSF cdrom address. */
112 /* Space to hold the disk TOC. */
113 #define MAX_TRACKS 99
114 struct atapi_toc_header {
115 unsigned short toc_length;
120 struct atapi_toc_entry {
122 #if defined(__BIG_ENDIAN_BITFIELD)
125 #elif defined(__LITTLE_ENDIAN_BITFIELD)
129 #error "Please fix <asm/byteorder.h>"
135 struct atapi_msf msf;
140 int last_session_lba;
142 unsigned long capacity;
143 struct atapi_toc_header hdr;
144 struct atapi_toc_entry ent[MAX_TRACKS+1];
145 /* One extra for the leadout. */
148 /* This should probably go into cdrom.h along with the other
149 * generic stuff now in the Mt. Fuji spec.
151 struct atapi_capabilities_page {
152 struct mode_page_header header;
153 #if defined(__BIG_ENDIAN_BITFIELD)
154 __u8 parameters_saveable : 1;
157 #elif defined(__LITTLE_ENDIAN_BITFIELD)
160 __u8 parameters_saveable : 1;
162 #error "Please fix <asm/byteorder.h>"
167 #if defined(__BIG_ENDIAN_BITFIELD)
169 /* Drive supports reading of DVD-RAM discs */
170 __u8 dvd_ram_read : 1;
171 /* Drive supports reading of DVD-R discs */
173 /* Drive supports reading of DVD-ROM discs */
175 /* Drive supports reading CD-R discs with addressing method 2 */
176 __u8 method2 : 1; /* reserved in 1.2 */
177 /* Drive can read from CD-R/W (CD-E) discs (orange book, part III) */
178 __u8 cd_rw_read : 1; /* reserved in 1.2 */
179 /* Drive supports read from CD-R discs (orange book, part II) */
180 __u8 cd_r_read : 1; /* reserved in 1.2 */
181 #elif defined(__LITTLE_ENDIAN_BITFIELD)
182 /* Drive supports read from CD-R discs (orange book, part II) */
183 __u8 cd_r_read : 1; /* reserved in 1.2 */
184 /* Drive can read from CD-R/W (CD-E) discs (orange book, part III) */
185 __u8 cd_rw_read : 1; /* reserved in 1.2 */
186 /* Drive supports reading CD-R discs with addressing method 2 */
188 /* Drive supports reading of DVD-ROM discs */
190 /* Drive supports reading of DVD-R discs */
192 /* Drive supports reading of DVD-RAM discs */
193 __u8 dvd_ram_read : 1;
196 #error "Please fix <asm/byteorder.h>"
199 #if defined(__BIG_ENDIAN_BITFIELD)
201 /* Drive can write DVD-RAM discs */
202 __u8 dvd_ram_write : 1;
203 /* Drive can write DVD-R discs */
204 __u8 dvd_r_write : 1;
206 /* Drive can fake writes */
208 /* Drive can write to CD-R/W (CD-E) discs (orange book, part III) */
209 __u8 cd_rw_write : 1; /* reserved in 1.2 */
210 /* Drive supports write to CD-R discs (orange book, part II) */
211 __u8 cd_r_write : 1; /* reserved in 1.2 */
212 #elif defined(__LITTLE_ENDIAN_BITFIELD)
213 /* Drive can write to CD-R discs (orange book, part II) */
214 __u8 cd_r_write : 1; /* reserved in 1.2 */
215 /* Drive can write to CD-R/W (CD-E) discs (orange book, part III) */
216 __u8 cd_rw_write : 1; /* reserved in 1.2 */
217 /* Drive can fake writes */
220 /* Drive can write DVD-R discs */
221 __u8 dvd_r_write : 1;
222 /* Drive can write DVD-RAM discs */
223 __u8 dvd_ram_write : 1;
226 #error "Please fix <asm/byteorder.h>"
229 #if defined(__BIG_ENDIAN_BITFIELD)
231 /* Drive can read multisession discs. */
232 __u8 multisession : 1;
233 /* Drive can read mode 2, form 2 data. */
234 __u8 mode2_form2 : 1;
235 /* Drive can read mode 2, form 1 (XA) data. */
236 __u8 mode2_form1 : 1;
237 /* Drive supports digital output on port 2. */
239 /* Drive supports digital output on port 1. */
241 /* Drive can deliver a composite audio/video data stream. */
243 /* Drive supports audio play operations. */
245 #elif defined(__LITTLE_ENDIAN_BITFIELD)
246 /* Drive supports audio play operations. */
248 /* Drive can deliver a composite audio/video data stream. */
250 /* Drive supports digital output on port 1. */
252 /* Drive supports digital output on port 2. */
254 /* Drive can read mode 2, form 1 (XA) data. */
255 __u8 mode2_form1 : 1;
256 /* Drive can read mode 2, form 2 data. */
257 __u8 mode2_form2 : 1;
258 /* Drive can read multisession discs. */
259 __u8 multisession : 1;
262 #error "Please fix <asm/byteorder.h>"
265 #if defined(__BIG_ENDIAN_BITFIELD)
267 /* Drive can return Media Catalog Number (UPC) info. */
269 /* Drive can return International Standard Recording Code info. */
271 /* Drive supports C2 error pointers. */
272 __u8 c2_pointers : 1;
273 /* R-W data will be returned deinterleaved and error corrected. */
275 /* Subchannel reads can return combined R-W information. */
276 __u8 rw_supported : 1;
277 /* Drive can continue a read cdda operation from a loss of streaming.*/
278 __u8 cdda_accurate : 1;
279 /* Drive can read Red Book audio data. */
281 #elif defined(__LITTLE_ENDIAN_BITFIELD)
282 /* Drive can read Red Book audio data. */
284 /* Drive can continue a read cdda operation from a loss of streaming.*/
285 __u8 cdda_accurate : 1;
286 /* Subchannel reads can return combined R-W information. */
287 __u8 rw_supported : 1;
288 /* R-W data will be returned deinterleaved and error corrected. */
290 /* Drive supports C2 error pointers. */
291 __u8 c2_pointers : 1;
292 /* Drive can return International Standard Recording Code info. */
294 /* Drive can return Media Catalog Number (UPC) info. */
298 #error "Please fix <asm/byteorder.h>"
301 #if defined(__BIG_ENDIAN_BITFIELD)
302 /* Drive mechanism types. */
303 mechtype_t mechtype : 3;
305 /* Drive can eject a disc or changer cartridge. */
307 /* State of prevent/allow jumper. */
308 __u8 prevent_jumper : 1;
309 /* Present state of door lock. */
311 /* Drive can lock the door. */
313 #elif defined(__LITTLE_ENDIAN_BITFIELD)
315 /* Drive can lock the door. */
317 /* Present state of door lock. */
319 /* State of prevent/allow jumper. */
320 __u8 prevent_jumper : 1;
321 /* Drive can eject a disc or changer cartridge. */
324 /* Drive mechanism types. */
325 mechtype_t mechtype : 3;
327 #error "Please fix <asm/byteorder.h>"
330 #if defined(__BIG_ENDIAN_BITFIELD)
332 /* Drive supports software slot selection. */
333 __u8 sss : 1; /* reserved in 1.2 */
334 /* Changer can report exact contents of slots. */
335 __u8 disc_present : 1; /* reserved in 1.2 */
336 /* Audio for each channel can be muted independently. */
337 __u8 separate_mute : 1;
338 /* Audio level for each channel can be controlled independently. */
339 __u8 separate_volume : 1;
340 #elif defined(__LITTLE_ENDIAN_BITFIELD)
342 /* Audio level for each channel can be controlled independently. */
343 __u8 separate_volume : 1;
344 /* Audio for each channel can be muted independently. */
345 __u8 separate_mute : 1;
346 /* Changer can report exact contents of slots. */
347 __u8 disc_present : 1; /* reserved in 1.2 */
348 /* Drive supports software slot selection. */
349 __u8 sss : 1; /* reserved in 1.2 */
352 #error "Please fix <asm/byteorder.h>"
355 /* Note: the following four fields are returned in big-endian form. */
356 /* Maximum speed (in kB/s). */
357 unsigned short maxspeed;
358 /* Number of discrete volume levels. */
359 unsigned short n_vol_levels;
360 /* Size of cache in drive, in kB. */
361 unsigned short buffer_size;
362 /* Current speed (in kB/s). */
363 unsigned short curspeed;
368 struct atapi_mechstat_header {
369 #if defined(__BIG_ENDIAN_BITFIELD)
371 __u8 changer_state : 2;
373 #elif defined(__LITTLE_ENDIAN_BITFIELD)
375 __u8 changer_state : 2;
378 #error "Please fix <asm/byteorder.h>"
381 #if defined(__BIG_ENDIAN_BITFIELD)
385 #elif defined(__LITTLE_ENDIAN_BITFIELD)
390 #error "Please fix <asm/byteorder.h>"
400 #if defined(__BIG_ENDIAN_BITFIELD)
401 __u8 disc_present : 1;
404 #elif defined(__LITTLE_ENDIAN_BITFIELD)
407 __u8 disc_present : 1;
409 #error "Please fix <asm/byteorder.h>"
415 struct atapi_changer_info {
416 struct atapi_mechstat_header hdr;
417 struct atapi_slot slots[0];
420 /* Extra per-device info for cdrom drives. */
423 ide_driver_t *driver;
424 struct gendisk *disk;
427 /* Buffer for table of contents. NULL if we haven't allocated
428 a TOC buffer for this device yet. */
430 struct atapi_toc *toc;
432 unsigned long sector_buffered;
433 unsigned long nsectors_buffered;
434 unsigned char *buffer;
436 /* The result of the last successful request sense command
438 struct request_sense sense_data;
440 struct request request_sense_request;
442 unsigned long last_block;
443 unsigned long start_seek;
444 /* Buffer to hold mechanism status and changer slot table. */
445 struct atapi_changer_info *changer_info;
447 struct ide_cd_config_flags config_flags;
448 struct ide_cd_state_flags state_flags;
450 /* Per-device info needed by cdrom.c generic driver. */
451 struct cdrom_device_info devinfo;
453 unsigned long write_timeout;
456 /****************************************************************************
457 * Descriptions of ATAPI error codes.
460 /* This stuff should be in cdrom.h, since it is now generic... */
462 /* ATAPI sense keys (from table 140 of ATAPI 2.6) */
463 #define NO_SENSE 0x00
464 #define RECOVERED_ERROR 0x01
465 #define NOT_READY 0x02
466 #define MEDIUM_ERROR 0x03
467 #define HARDWARE_ERROR 0x04
468 #define ILLEGAL_REQUEST 0x05
469 #define UNIT_ATTENTION 0x06
470 #define DATA_PROTECT 0x07
471 #define BLANK_CHECK 0x08
472 #define ABORTED_COMMAND 0x0b
473 #define MISCOMPARE 0x0e
477 /* This stuff should be in cdrom.h, since it is now generic... */
478 #if VERBOSE_IDE_CD_ERRORS
480 /* The generic packet command opcodes for CD/DVD Logical Units,
481 * From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
482 static const struct {
483 unsigned short packet_command;
484 const char * const text;
485 } packet_command_texts[] = {
486 { GPCMD_TEST_UNIT_READY, "Test Unit Ready" },
487 { GPCMD_REQUEST_SENSE, "Request Sense" },
488 { GPCMD_FORMAT_UNIT, "Format Unit" },
489 { GPCMD_INQUIRY, "Inquiry" },
490 { GPCMD_START_STOP_UNIT, "Start/Stop Unit" },
491 { GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL, "Prevent/Allow Medium Removal" },
492 { GPCMD_READ_FORMAT_CAPACITIES, "Read Format Capacities" },
493 { GPCMD_READ_CDVD_CAPACITY, "Read Cd/Dvd Capacity" },
494 { GPCMD_READ_10, "Read 10" },
495 { GPCMD_WRITE_10, "Write 10" },
496 { GPCMD_SEEK, "Seek" },
497 { GPCMD_WRITE_AND_VERIFY_10, "Write and Verify 10" },
498 { GPCMD_VERIFY_10, "Verify 10" },
499 { GPCMD_FLUSH_CACHE, "Flush Cache" },
500 { GPCMD_READ_SUBCHANNEL, "Read Subchannel" },
501 { GPCMD_READ_TOC_PMA_ATIP, "Read Table of Contents" },
502 { GPCMD_READ_HEADER, "Read Header" },
503 { GPCMD_PLAY_AUDIO_10, "Play Audio 10" },
504 { GPCMD_GET_CONFIGURATION, "Get Configuration" },
505 { GPCMD_PLAY_AUDIO_MSF, "Play Audio MSF" },
506 { GPCMD_PLAYAUDIO_TI, "Play Audio TrackIndex" },
507 { GPCMD_GET_EVENT_STATUS_NOTIFICATION, "Get Event Status Notification" },
508 { GPCMD_PAUSE_RESUME, "Pause/Resume" },
509 { GPCMD_STOP_PLAY_SCAN, "Stop Play/Scan" },
510 { GPCMD_READ_DISC_INFO, "Read Disc Info" },
511 { GPCMD_READ_TRACK_RZONE_INFO, "Read Track Rzone Info" },
512 { GPCMD_RESERVE_RZONE_TRACK, "Reserve Rzone Track" },
513 { GPCMD_SEND_OPC, "Send OPC" },
514 { GPCMD_MODE_SELECT_10, "Mode Select 10" },
515 { GPCMD_REPAIR_RZONE_TRACK, "Repair Rzone Track" },
516 { GPCMD_MODE_SENSE_10, "Mode Sense 10" },
517 { GPCMD_CLOSE_TRACK, "Close Track" },
518 { GPCMD_BLANK, "Blank" },
519 { GPCMD_SEND_EVENT, "Send Event" },
520 { GPCMD_SEND_KEY, "Send Key" },
521 { GPCMD_REPORT_KEY, "Report Key" },
522 { GPCMD_LOAD_UNLOAD, "Load/Unload" },
523 { GPCMD_SET_READ_AHEAD, "Set Read-ahead" },
524 { GPCMD_READ_12, "Read 12" },
525 { GPCMD_GET_PERFORMANCE, "Get Performance" },
526 { GPCMD_SEND_DVD_STRUCTURE, "Send DVD Structure" },
527 { GPCMD_READ_DVD_STRUCTURE, "Read DVD Structure" },
528 { GPCMD_SET_STREAMING, "Set Streaming" },
529 { GPCMD_READ_CD_MSF, "Read CD MSF" },
530 { GPCMD_SCAN, "Scan" },
531 { GPCMD_SET_SPEED, "Set Speed" },
532 { GPCMD_PLAY_CD, "Play CD" },
533 { GPCMD_MECHANISM_STATUS, "Mechanism Status" },
534 { GPCMD_READ_CD, "Read CD" },
539 /* From Table 303 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
540 static const char * const sense_key_texts[16] = {
559 /* From Table 304 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
560 static const struct {
561 unsigned long asc_ascq;
562 const char * const text;
563 } sense_data_texts[] = {
564 { 0x000000, "No additional sense information" },
565 { 0x000011, "Play operation in progress" },
566 { 0x000012, "Play operation paused" },
567 { 0x000013, "Play operation successfully completed" },
568 { 0x000014, "Play operation stopped due to error" },
569 { 0x000015, "No current audio status to return" },
570 { 0x010c0a, "Write error - padding blocks added" },
571 { 0x011700, "Recovered data with no error correction applied" },
572 { 0x011701, "Recovered data with retries" },
573 { 0x011702, "Recovered data with positive head offset" },
574 { 0x011703, "Recovered data with negative head offset" },
575 { 0x011704, "Recovered data with retries and/or CIRC applied" },
576 { 0x011705, "Recovered data using previous sector ID" },
577 { 0x011800, "Recovered data with error correction applied" },
578 { 0x011801, "Recovered data with error correction and retries applied"},
579 { 0x011802, "Recovered data - the data was auto-reallocated" },
580 { 0x011803, "Recovered data with CIRC" },
581 { 0x011804, "Recovered data with L-EC" },
583 "Failure prediction threshold exceeded - Predicted logical unit failure" },
585 "Failure prediction threshold exceeded - Predicted media failure" },
586 { 0x015dff, "Failure prediction threshold exceeded - False" },
587 { 0x017301, "Power calibration area almost full" },
588 { 0x020400, "Logical unit not ready - cause not reportable" },
589 /* Following is misspelled in ATAPI 2.6, _and_ in Mt. Fuji */
591 "Logical unit not ready - in progress [sic] of becoming ready" },
592 { 0x020402, "Logical unit not ready - initializing command required" },
593 { 0x020403, "Logical unit not ready - manual intervention required" },
594 { 0x020404, "Logical unit not ready - format in progress" },
595 { 0x020407, "Logical unit not ready - operation in progress" },
596 { 0x020408, "Logical unit not ready - long write in progress" },
597 { 0x020600, "No reference position found (media may be upside down)" },
598 { 0x023000, "Incompatible medium installed" },
599 { 0x023a00, "Medium not present" },
600 { 0x025300, "Media load or eject failed" },
601 { 0x025700, "Unable to recover table of contents" },
602 { 0x030300, "Peripheral device write fault" },
603 { 0x030301, "No write current" },
604 { 0x030302, "Excessive write errors" },
605 { 0x030c00, "Write error" },
606 { 0x030c01, "Write error - Recovered with auto reallocation" },
607 { 0x030c02, "Write error - auto reallocation failed" },
608 { 0x030c03, "Write error - recommend reassignment" },
609 { 0x030c04, "Compression check miscompare error" },
610 { 0x030c05, "Data expansion occurred during compress" },
611 { 0x030c06, "Block not compressible" },
612 { 0x030c07, "Write error - recovery needed" },
613 { 0x030c08, "Write error - recovery failed" },
614 { 0x030c09, "Write error - loss of streaming" },
615 { 0x031100, "Unrecovered read error" },
616 { 0x031106, "CIRC unrecovered error" },
617 { 0x033101, "Format command failed" },
618 { 0x033200, "No defect spare location available" },
619 { 0x033201, "Defect list update failure" },
620 { 0x035100, "Erase failure" },
621 { 0x037200, "Session fixation error" },
622 { 0x037201, "Session fixation error writin lead-in" },
623 { 0x037202, "Session fixation error writin lead-out" },
624 { 0x037300, "CD control error" },
625 { 0x037302, "Power calibration area is full" },
626 { 0x037303, "Power calibration area error" },
627 { 0x037304, "Program memory area / RMA update failure" },
628 { 0x037305, "Program memory area / RMA is full" },
629 { 0x037306, "Program memory area / RMA is (almost) full" },
631 { 0x040200, "No seek complete" },
632 { 0x040300, "Write fault" },
633 { 0x040900, "Track following error" },
634 { 0x040901, "Tracking servo failure" },
635 { 0x040902, "Focus servo failure" },
636 { 0x040903, "Spindle servo failure" },
637 { 0x041500, "Random positioning error" },
638 { 0x041501, "Mechanical positioning or changer error" },
639 { 0x041502, "Positioning error detected by read of medium" },
640 { 0x043c00, "Mechanical positioning or changer error" },
641 { 0x044000, "Diagnostic failure on component (ASCQ)" },
642 { 0x044400, "Internal CD/DVD logical unit failure" },
643 { 0x04b600, "Media load mechanism failed" },
644 { 0x051a00, "Parameter list length error" },
645 { 0x052000, "Invalid command operation code" },
646 { 0x052100, "Logical block address out of range" },
647 { 0x052102, "Invalid address for write" },
648 { 0x052400, "Invalid field in command packet" },
649 { 0x052600, "Invalid field in parameter list" },
650 { 0x052601, "Parameter not supported" },
651 { 0x052602, "Parameter value invalid" },
652 { 0x052700, "Write protected media" },
653 { 0x052c00, "Command sequence error" },
654 { 0x052c03, "Current program area is not empty" },
655 { 0x052c04, "Current program area is empty" },
656 { 0x053001, "Cannot read medium - unknown format" },
657 { 0x053002, "Cannot read medium - incompatible format" },
658 { 0x053900, "Saving parameters not supported" },
659 { 0x054e00, "Overlapped commands attempted" },
660 { 0x055302, "Medium removal prevented" },
661 { 0x055500, "System resource failure" },
662 { 0x056300, "End of user area encountered on this track" },
663 { 0x056400, "Illegal mode for this track or incompatible medium" },
664 { 0x056f00, "Copy protection key exchange failure - Authentication failure" },
665 { 0x056f01, "Copy protection key exchange failure - Key not present" },
666 { 0x056f02, "Copy protection key exchange failure - Key not established" },
667 { 0x056f03, "Read of scrambled sector without authentication" },
668 { 0x056f04, "Media region code is mismatched to logical unit" },
669 { 0x056f05, "Drive region must be permanent / region reset count error" },
670 { 0x057203, "Session fixation error - incomplete track in session" },
671 { 0x057204, "Empty or partially written reserved track" },
672 { 0x057205, "No more RZONE reservations are allowed" },
673 { 0x05bf00, "Loss of streaming" },
674 { 0x062800, "Not ready to ready transition, medium may have changed" },
675 { 0x062900, "Power on, reset or hardware reset occurred" },
676 { 0x062a00, "Parameters changed" },
677 { 0x062a01, "Mode parameters changed" },
678 { 0x062e00, "Insufficient time for operation" },
679 { 0x063f00, "Logical unit operating conditions have changed" },
680 { 0x063f01, "Microcode has been changed" },
681 { 0x065a00, "Operator request or state change input (unspecified)" },
682 { 0x065a01, "Operator medium removal request" },
683 { 0x0bb900, "Play operation aborted" },
685 /* Here we use 0xff for the key (not a valid key) to signify
686 * that these can have _any_ key value associated with them... */
687 { 0xff0401, "Logical unit is in process of becoming ready" },
688 { 0xff0400, "Logical unit not ready, cause not reportable" },
689 { 0xff0402, "Logical unit not ready, initializing command required" },
690 { 0xff0403, "Logical unit not ready, manual intervention required" },
691 { 0xff0500, "Logical unit does not respond to selection" },
692 { 0xff0800, "Logical unit communication failure" },
693 { 0xff0802, "Logical unit communication parity error" },
694 { 0xff0801, "Logical unit communication time-out" },
695 { 0xff2500, "Logical unit not supported" },
696 { 0xff4c00, "Logical unit failed self-configuration" },
697 { 0xff3e00, "Logical unit has not self-configured yet" },
702 #endif /* _IDE_CD_H */