Contiki 2.6
|
00001 /* Sense keys */ 00002 #define SCSI_SENSE_KEY_NO_SENSE 0x0 00003 #define SCSI_SENSE_KEY_RECOVERED_ERROR 0x1 00004 #define SCSI_SENSE_KEY_NOT_READY 0x2 00005 #define SCSI_SENSE_KEY_MEDIUM_ERROR 0x3 00006 #define SCSI_SENSE_KEY_HARDWARE_ERROR 0x4 00007 #define SCSI_SENSE_KEY_ILLEGAL_REQUEST 0x5 00008 #define SCSI_SENSE_KEY_UNIT_ATTENTION 0x6 00009 #define SCSI_SENSE_KEY_DATA_PROTECT 0x7 00010 #define SCSI_SENSE_KEY_BLANK_CHECK 0x8 00011 #define SCSI_SENSE_KEY_VENDOR_SPECIFIC 0x9 00012 #define SCSI_SENSE_KEY_COPY_ABORTED 0xA 00013 #define SCSI_SENSE_KEY_ABORTED_COMMAND 0xB 00014 #define SCSI_SENSE_KEY_VOLUME_OVERFLOW 0xD 00015 #define SCSI_SENSE_KEY_MISCOMPARE 0xE 00016 00017 /* Additional sense codes */ 00018 #define SCSI_ASC_NO_SENSE 0x0000 00019 #define SCSI_ASC_FILEMARK_DETECTED 0x0001 00020 #define SCSI_ASC_END_OF_MEDIUM_DETECTED 0x0002 00021 #define SCSI_ASC_BEGINNING_OF_MEDIUM_DETECTED 0x0004 00022 #define SCSI_ASC_END_OF_DATA_DETECTED 0x0005 00023 #define SCSI_ASC_PERIPHERAL_DEVICE_WRITE_FAULT 0x0300 00024 #define SCSI_ASC_NO_WRITE_CURRENT 0x0301 00025 #define SCSI_ASC_EXCESSIVE_WRITE_ERRORS 0x0302 00026 #define SCSI_ASC_NOT_READY_CAUSE_NOT_REPORTABLE 0x0400 00027 #define SCSI_ASC_IN_PROCESS_OF_BECOMING_READY 0x0401 00028 #define SCSI_ASC_NOT_READY_INITIALIZING_COMMAND_REQUIRED 0x0402 00029 #define SCSI_ASC_NOT_READY_MANUAL_INTERVENTION_REQUIRED 0x0403 00030 #define SCSI_ASC_NOT_READY_FORMAT_IN_PROGRESS 0x0404 00031 #define SCSI_ASC_COMMUNICATION_FAILURE 0x0800 00032 #define SCSI_ASC_COMMUNICATION_TIME_OUT 0x0801 00033 #define SCSI_ASC_COMMUNICATION_PARITY_ERROR 0x0802 00034 #define SCSI_ASC_TRACK_FOLLOWING_ERROR 0x0900 00035 #define SCSI_ASC_ERROR_LOG_OVERFLOW 0x0a00 00036 #define SCSI_ASC_WRITE_ERROR 0x0c00 00037 #define SCSI_ASC_UNRECOVERED_READ_ERROR 0x1100 00038 #define SCSI_ASC_READ_RETRIES_EXHAUSTED 0x1101 00039 #define SCSI_ASC_ERROR_TOO_LONG_TO_CORRECT 0x1102 00040 #define SCSI_ASC_MULTIPLE_READ_ERRORS 0x1103 00041 #define SCSI_ASC_INCOMPLETE_BLOCK_READ 0x1108 00042 #define SCSI_ASC_NO_GAP_FOUND 0x1109 00043 #define SCSI_ASC_MISCORRECTED_ERROR 0x110a 00044 #define SCSI_ASC_RECORDED_ENTITY_NOT_FOUND 0x1400 00045 #define SCSI_ASC_RECORD_NOT_FOUND 0x1401 00046 #define SCSI_ASC_FILEMARK_NOT_FOUND 0x1402 00047 #define SCSI_ASC_END_OF_DATA_NOT_FOUND 0x1403 00048 #define SCSI_ASC_BLOCK_SEQUENCE_ERROR 0x1404 00049 #define SCSI_ASC_RANDOM_POSITIONING_ERROR 0x1500 00050 #define SCSI_ASC_MECHANICAL_POSITIONING_ERROR 0x1501 00051 #define SCSI_ASC_POSITIONING_ERROR_DETECTED_BY_READ OF_MEDIUM 0x1502 00052 #define SCSI_ASC_RECOVERED_DATA_WITH_NO_ERROR_CORRECTION_APPLIED 0x1700 00053 #define SCSI_ASC_RECOVERED_DATA_WITH_RETRIES 0x1701 00054 #define SCSI_ASC_RECOVERED_DATA_WITH_POSITIVE_HEAD_OFFSET 0x1702 00055 #define SCSI_ASC_RECOVERED_DATA_WITH_NEGATIVE_HEAD_OFFSET 0x1703 00056 #define SCSI_ASC_RECOVERED_DATA_WITH_ERROR_CORRECTION_APPLIED 0x1800 00057 #define SCSI_ASC_DEFECTLIST_ERROR 0x1900 00058 #define SCSI_ASC_PARAMETER_LIST_LENGTH_ERROR 0x1a00 00059 #define SCSI_ASC_INVALID_COMMAND_OPERATION_CODE 0x2000 00060 #define SCSI_ASC_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x2100 00061 #define SCSI_ASC_INVALID_FIELD_IN_CDB 0x2400 00062 #define SCSI_ASC_LOGICAL_UNIT_NOT_SUPPORTED 0x2500 00063 #define SCSI_ASC_INVALID_FIELD_IN_PARAMETER_LIST 0x2600 00064 #define SCSI_ASC_PARAMETER_NOT_SUPPORTED 0x2601 00065 #define SCSI_ASC_PARAMETER_VALUE_INVALID 0x2602 00066 #define SCSI_ASC_THRESHOLD_PARAMETERS_NOT_SUPPORTED 0x2603 00067 #define SCSI_ASC_WRITE_PROTECTED 0x2700 00068 #define SCSI_ASC_NOT_READY_TO_READY_TRANSITION 0x2800 00069 #define SCSI_ASC_PARAMETERS_CHANGED 0x2a00 00070 #define SCSI_ASC_MODE_PARAMETERS_CHANGED 0x2a01 00071 #define SCSI_ASC_OVERWRITE_ERROR_ON_UPDATE_IN_PLACE 0x2d00 00072 #define SCSI_ASC_POWERON_RESET_OR_DEVICE_RESET_OCCURRED 0x2900 00073 #define SCSI_ASC_INCOMPATIBLE_MEDIUM_INSTALLED 0x3000 00074 #define SCSI_ASC_CANNOT_READ_MEDIUM_UNKNOWN_FORMAT 0x3001 00075 #define SCSI_ASC_CANNOT_READ_MEDIUM_INCOMPATIBLE_FORMAT 0x3002 00076 #define SCSI_ASC_CLEANING_CARTRIDGE_INSTALLED 0x3003 00077 #define SCSI_ASC_MEDIUM_FORMAT_CORRUPTED 0x3100 00078 #define SCSI_ASC_TAPE_LENGTH_ERROR 0x3300 00079 #define SCSI_ASC_ROUNDED_PARAMETER 0x3700 00080 #define SCSI_ASC_SAVING_PARAMETERS_NOT_SUPPORTED 0x3900 00081 #define SCSI_ASC_MEDIUM_NOT_PRESENT 0x3a00 00082 #define SCSI_ASC_SEQUENTIAL_POSITIONING_ERROR 0x3b00 00083 #define SCSI_ASC_TAPE_POSITION_ERROR_AT_BEGINNING_OF_MEDIUM 0x3b01 00084 #define SCSI_ASC_TAPE_POSITION_ERROR_AT_END_OF_MEDIUM 0x3b02 00085 #define SCSI_ASC_REPOSITION_ERROR 0x3b08 00086 #define SCSI_ASC_NOT_SELF_CONFIGURED_YET 0x3e00 00087 #define SCSI_ASC_OPERATING_CONDITIONS_HAVE_CHANGED 0x3f00 00088 #define SCSI_ASC_MICROCODE_HAS_BEEN_CHANGED 0x3f01 00089 #define SCSI_ASC_INQUIRY_DATA_HAS_CHANGED 0x3f03 00090 /* 40 NN DIAGNOSTIC FAILURE ON COMPONENT NN (80H-FF H) */ 00091 #define SCSI_ASC_INTERNAL_FAILURE 0x4400 00092 #define SCSI_ASC_UNSUCCESSFUL_DEVICE_RESET 0x4600 00093 #define SCSI_ASC_FAILED_SELF_CONFIGURATION 0x4c00 00094 #define SCSI_ASC_OVERLAPPED_COMMANDS_ATTEMPTED 0x4e00 00095 #define SCSI_ASC_WRITE_APPEND_ERROR 0x5000 00096 #define SCSI_ASC_WRITE_APPEND_POSITION_ERROR 0x5001 00097 #define SCSI_ASC_POSITION_ERROR_RELATED_TO_TIMING 0x5002 00098 #define SCSI_ASC_ERASE_FAILURE 0x5100 00099 #define SCSI_ASC_CARTRIDGE_FAULT 0x5200 00100 #define SCSI_ASC_MEDIA_LOAD_EJECT_FAILED 0x5300 00101 #define SCSI_ASC_UNLOAD_TAPE_FAILURE 0x5301 00102 #define SCSI_ASC_MEDIUM_REMOVAL_PREVENTED 0x5302 00103 #define SCSI_ASC_OPERATOR_REQUEST_OR_STATE_CHANGE_INPUT 0x5a00 00104 #define SCSI_ASC_OPERATOR_MEDIUM_REMOVAL_REQUEST 0x5a01 00105 #define SCSI_ASC_OPERATOR_SELECTED_WRITE_PROTECT 0x5a01 00106 #define SCSI_ASC_OPERATOR_SELECTED_WRITE_PERMIT 0x5a03 00107 #define SCSI_ASC_LOG_EXCEPTION 0x5b00 00108 #define SCSI_ASC_THRESHOLD_CONDITION_MET 0x5b01 00109 #define SCSI_ASC_LOG_COUNTER_AT_MAXIMUM 0x5b02 00110 #define SCSI_ASC_LOG_LIST_CODES_EXHAUSTED 0x5b03 00111 /* 00112 70 NN DECOMPRES S ION EXCEP TION SHORT ALGORITHM ID OF NN 00113 71 00 DECOMPRES S ION EXCEP TION LONG ALGORITHM ID 00114 */ 00115 00116