2 #define SCSI_SENSE_KEY_NO_SENSE 0x0
3 #define SCSI_SENSE_KEY_RECOVERED_ERROR 0x1
4 #define SCSI_SENSE_KEY_NOT_READY 0x2
5 #define SCSI_SENSE_KEY_MEDIUM_ERROR 0x3
6 #define SCSI_SENSE_KEY_HARDWARE_ERROR 0x4
7 #define SCSI_SENSE_KEY_ILLEGAL_REQUEST 0x5
8 #define SCSI_SENSE_KEY_UNIT_ATTENTION 0x6
9 #define SCSI_SENSE_KEY_DATA_PROTECT 0x7
10 #define SCSI_SENSE_KEY_BLANK_CHECK 0x8
11 #define SCSI_SENSE_KEY_VENDOR_SPECIFIC 0x9
12 #define SCSI_SENSE_KEY_COPY_ABORTED 0xA
13 #define SCSI_SENSE_KEY_ABORTED_COMMAND 0xB
14 #define SCSI_SENSE_KEY_VOLUME_OVERFLOW 0xD
15 #define SCSI_SENSE_KEY_MISCOMPARE 0xE
18 #define SCSI_ASC_NO_SENSE 0x0000
19 #define SCSI_ASC_FILEMARK_DETECTED 0x0001
20 #define SCSI_ASC_END_OF_MEDIUM_DETECTED 0x0002
21 #define SCSI_ASC_BEGINNING_OF_MEDIUM_DETECTED 0x0004
22 #define SCSI_ASC_END_OF_DATA_DETECTED 0x0005
23 #define SCSI_ASC_PERIPHERAL_DEVICE_WRITE_FAULT 0x0300
24 #define SCSI_ASC_NO_WRITE_CURRENT 0x0301
25 #define SCSI_ASC_EXCESSIVE_WRITE_ERRORS 0x0302
26 #define SCSI_ASC_NOT_READY_CAUSE_NOT_REPORTABLE 0x0400
27 #define SCSI_ASC_IN_PROCESS_OF_BECOMING_READY 0x0401
28 #define SCSI_ASC_NOT_READY_INITIALIZING_COMMAND_REQUIRED 0x0402
29 #define SCSI_ASC_NOT_READY_MANUAL_INTERVENTION_REQUIRED 0x0403
30 #define SCSI_ASC_NOT_READY_FORMAT_IN_PROGRESS 0x0404
31 #define SCSI_ASC_COMMUNICATION_FAILURE 0x0800
32 #define SCSI_ASC_COMMUNICATION_TIME_OUT 0x0801
33 #define SCSI_ASC_COMMUNICATION_PARITY_ERROR 0x0802
34 #define SCSI_ASC_TRACK_FOLLOWING_ERROR 0x0900
35 #define SCSI_ASC_ERROR_LOG_OVERFLOW 0x0a00
36 #define SCSI_ASC_WRITE_ERROR 0x0c00
37 #define SCSI_ASC_UNRECOVERED_READ_ERROR 0x1100
38 #define SCSI_ASC_READ_RETRIES_EXHAUSTED 0x1101
39 #define SCSI_ASC_ERROR_TOO_LONG_TO_CORRECT 0x1102
40 #define SCSI_ASC_MULTIPLE_READ_ERRORS 0x1103
41 #define SCSI_ASC_INCOMPLETE_BLOCK_READ 0x1108
42 #define SCSI_ASC_NO_GAP_FOUND 0x1109
43 #define SCSI_ASC_MISCORRECTED_ERROR 0x110a
44 #define SCSI_ASC_RECORDED_ENTITY_NOT_FOUND 0x1400
45 #define SCSI_ASC_RECORD_NOT_FOUND 0x1401
46 #define SCSI_ASC_FILEMARK_NOT_FOUND 0x1402
47 #define SCSI_ASC_END_OF_DATA_NOT_FOUND 0x1403
48 #define SCSI_ASC_BLOCK_SEQUENCE_ERROR 0x1404
49 #define SCSI_ASC_RANDOM_POSITIONING_ERROR 0x1500
50 #define SCSI_ASC_MECHANICAL_POSITIONING_ERROR 0x1501
51 #define SCSI_ASC_POSITIONING_ERROR_DETECTED_BY_READ OF_MEDIUM 0x1502
52 #define SCSI_ASC_RECOVERED_DATA_WITH_NO_ERROR_CORRECTION_APPLIED 0x1700
53 #define SCSI_ASC_RECOVERED_DATA_WITH_RETRIES 0x1701
54 #define SCSI_ASC_RECOVERED_DATA_WITH_POSITIVE_HEAD_OFFSET 0x1702
55 #define SCSI_ASC_RECOVERED_DATA_WITH_NEGATIVE_HEAD_OFFSET 0x1703
56 #define SCSI_ASC_RECOVERED_DATA_WITH_ERROR_CORRECTION_APPLIED 0x1800
57 #define SCSI_ASC_DEFECTLIST_ERROR 0x1900
58 #define SCSI_ASC_PARAMETER_LIST_LENGTH_ERROR 0x1a00
59 #define SCSI_ASC_INVALID_COMMAND_OPERATION_CODE 0x2000
60 #define SCSI_ASC_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x2100
61 #define SCSI_ASC_INVALID_FIELD_IN_CDB 0x2400
62 #define SCSI_ASC_LOGICAL_UNIT_NOT_SUPPORTED 0x2500
63 #define SCSI_ASC_INVALID_FIELD_IN_PARAMETER_LIST 0x2600
64 #define SCSI_ASC_PARAMETER_NOT_SUPPORTED 0x2601
65 #define SCSI_ASC_PARAMETER_VALUE_INVALID 0x2602
66 #define SCSI_ASC_THRESHOLD_PARAMETERS_NOT_SUPPORTED 0x2603
67 #define SCSI_ASC_WRITE_PROTECTED 0x2700
68 #define SCSI_ASC_NOT_READY_TO_READY_TRANSITION 0x2800
69 #define SCSI_ASC_PARAMETERS_CHANGED 0x2a00
70 #define SCSI_ASC_MODE_PARAMETERS_CHANGED 0x2a01
71 #define SCSI_ASC_OVERWRITE_ERROR_ON_UPDATE_IN_PLACE 0x2d00
72 #define SCSI_ASC_POWERON_RESET_OR_DEVICE_RESET_OCCURRED 0x2900
73 #define SCSI_ASC_INCOMPATIBLE_MEDIUM_INSTALLED 0x3000
74 #define SCSI_ASC_CANNOT_READ_MEDIUM_UNKNOWN_FORMAT 0x3001
75 #define SCSI_ASC_CANNOT_READ_MEDIUM_INCOMPATIBLE_FORMAT 0x3002
76 #define SCSI_ASC_CLEANING_CARTRIDGE_INSTALLED 0x3003
77 #define SCSI_ASC_MEDIUM_FORMAT_CORRUPTED 0x3100
78 #define SCSI_ASC_TAPE_LENGTH_ERROR 0x3300
79 #define SCSI_ASC_ROUNDED_PARAMETER 0x3700
80 #define SCSI_ASC_SAVING_PARAMETERS_NOT_SUPPORTED 0x3900
81 #define SCSI_ASC_MEDIUM_NOT_PRESENT 0x3a00
82 #define SCSI_ASC_SEQUENTIAL_POSITIONING_ERROR 0x3b00
83 #define SCSI_ASC_TAPE_POSITION_ERROR_AT_BEGINNING_OF_MEDIUM 0x3b01
84 #define SCSI_ASC_TAPE_POSITION_ERROR_AT_END_OF_MEDIUM 0x3b02
85 #define SCSI_ASC_REPOSITION_ERROR 0x3b08
86 #define SCSI_ASC_NOT_SELF_CONFIGURED_YET 0x3e00
87 #define SCSI_ASC_OPERATING_CONDITIONS_HAVE_CHANGED 0x3f00
88 #define SCSI_ASC_MICROCODE_HAS_BEEN_CHANGED 0x3f01
89 #define SCSI_ASC_INQUIRY_DATA_HAS_CHANGED 0x3f03
91 #define SCSI_ASC_INTERNAL_FAILURE 0x4400
92 #define SCSI_ASC_UNSUCCESSFUL_DEVICE_RESET 0x4600
93 #define SCSI_ASC_FAILED_SELF_CONFIGURATION 0x4c00
94 #define SCSI_ASC_OVERLAPPED_COMMANDS_ATTEMPTED 0x4e00
95 #define SCSI_ASC_WRITE_APPEND_ERROR 0x5000
96 #define SCSI_ASC_WRITE_APPEND_POSITION_ERROR 0x5001
97 #define SCSI_ASC_POSITION_ERROR_RELATED_TO_TIMING 0x5002
98 #define SCSI_ASC_ERASE_FAILURE 0x5100
99 #define SCSI_ASC_CARTRIDGE_FAULT 0x5200
100 #define SCSI_ASC_MEDIA_LOAD_EJECT_FAILED 0x5300
101 #define SCSI_ASC_UNLOAD_TAPE_FAILURE 0x5301
102 #define SCSI_ASC_MEDIUM_REMOVAL_PREVENTED 0x5302
103 #define SCSI_ASC_OPERATOR_REQUEST_OR_STATE_CHANGE_INPUT 0x5a00
104 #define SCSI_ASC_OPERATOR_MEDIUM_REMOVAL_REQUEST 0x5a01
105 #define SCSI_ASC_OPERATOR_SELECTED_WRITE_PROTECT 0x5a01
106 #define SCSI_ASC_OPERATOR_SELECTED_WRITE_PERMIT 0x5a03
107 #define SCSI_ASC_LOG_EXCEPTION 0x5b00
108 #define SCSI_ASC_THRESHOLD_CONDITION_MET 0x5b01
109 #define SCSI_ASC_LOG_COUNTER_AT_MAXIMUM 0x5b02
110 #define SCSI_ASC_LOG_LIST_CODES_EXHAUSTED 0x5b03