#IFNDEF MKECDEF
#DEFINE MKECDEF
define SUCCESS                                            0x0000
define SCT_INVALID_FUNCTION_CODE                          0x0001
define SCT_INVALID_LBA                                    0x0002
define SCT_REQ_SECNT_OVERFLOW                             0x0003
define SCT_INVALID_ERR_RECOVERY_FUNCODE                   0x0004
define SCT_INVALID_ERR_RECOVERY_SELECTCODE                0x0005
define SCT_HOST_RD_TIMER_LESS_THAN_MIN                    0x0006
define SCT_HOST_WR_TIMER_LESS_THAN_MIN                    0x0007
define SCT_BKG_CMD_ABORT_BY_INT_HOST_CMD                  0x0008
define SCT_BKG_CMD_TERMINATED_UNREC_SERVO_ERR             0x0009
define SCT_INVALID_FUNC_CODE_IN_LNG_SCTR_ACC_CMD          0x000A
define SCT_DATA_XFER_CMD_ISSUED_WO_SCT_KEYSECTOR_CMD      0x000B
define SCT_INVALID_FUNC_CODE_IN_FEAT_CNTL_CMD             0x000C
define SCT_INVALID_FEATURE_CODE_IN_FEAT_CNTL_CMD          0x000D
define SCT_INVALID_NEW_STATE_FEATCTL_CMD                  0x000E
define SCT_INVALID_OPTION_FLAGS_VAL_IN_FEAT_CNTL_CMD      0x000F
define SCT_INVALID_ACTION_CODE                            0x0010
define SCT_INVALID_TABLE_ID                               0x0011
define SCT_CMD_ABRT_DRV_SECURITY_LOCK                     0x0012
define SCT_INVALID_REVISION_CODE                          0x0013
define SCT_UNSUP_BIST_MODE_IN_PATTERN_REQ                 0xC001
define VSCE_CTLR_FW_REQ_CMD_ABRT                          0x0801
define VSCE_ILLEGAL_DRIVE_MODEL                           0x0802
define VSCE_ILLEGAL_PARM0                                 0x0803
define VSCE_ILLEGAL_PARM1                                 0x0804
define VSCE_ILLEGAL_PARM2                                 0x0805
define VSCE_ILLEGAL_PARM3                                 0x0806
define VSCE_ILLEGAL_CMD                                   0x0807
define VSCE_FATAL_SERVO_ERR                               0x0808
define VSCE_TIMEOUT_ERR                                   0x0809
define VSCE_INDEX_NOT_FOUND_ERR                           0x080A
define VSCE_SEC_CNT_MISMATCH_ERR                          0x080B
define VSCE_SAM_ERR                                       0x080C
define VSCE_UNABLE_TO_SPINUP                              0x080D
define VSCE_UNABLE_TO_SPINDOWN                            0x080E
define VSCE_UNABLE_TO_SPEED                               0x080F
define VSCE_BURST_SYNC_FAIL                               0x0810
define VSCE_UNLATCH_FAIL                                  0x0811
define VSCE_CTR_PD_SEEK_FAIL                              0x0812
define VSCE_BURST_SLOPE_CALIBR_FAIL                       0x0813
define VSCE_FLEX_BIAL_CALIBR_FAIL                         0x0814
define VSCE_MOTOR_TORQUE_CALIBR_FAIL                      0x0815
define VSCE_RRO_CALIBR_FAIL                               0x0816
define VSCE_FAR_GAIN_CALIBR_FAIL                          0x0817
define VSCE_TRACK0_SEEK_FAIL                              0x0818
define VSCE_RC_SERVO_GAIN_CALIBR_FAIL                     0x0819
define VSCE_RC_LTR_OL_CALIBR_FAIL                         0x081A
define VSCE_SNAPSHOT_GAIN_CALIBR_FAIL                     0x081B
define VSCE_TANG_HD_OFFSET_CALIBR_FAIL                    0x081C
define VSCE_BANDWIDTH_CALIBR_FAIL                         0x081D
define VSCE_RRO_LEARNING_OVERFLOW                         0x081E
define VSCE_RRO_LEARNING                                  0x081F
define VSCE_RESERVED_FOR_SERVO_USE_END                    0x09FF
define VSCE_DRVPROT_DISK_ERROR_DRVPROVL                   0x1004
define VSCE_DRVPROT_DISK_ERROR_DRVPROT1                   0x1005
define VSCE_DRVPROT_DISK_ERROR_CFGSEC                     0x1007
define VSCE_DRVPROT_CMD_ERROR_INVALID_CRC_CHKSUM          0x2024
define VSCE_DRVPROT_CMD_ERROR_INVALID_OPCODE              0x2025
define VSCE_DRVPROT_CMD_ERROR_KEYS_ALREADY_LOADED         0x2026
define VSCE_DRVPROT_CMD_ERROR_LOAD_ZERO_KEY               0x2027
define VSCE_DRVPROT_CMD_ERROR_INVALID_CONDITIONS          0x2028
define VSCE_DRVPROT_CMD_ERROR_INVALID_SUB_OPCODE          0x2029
define VSCE_DRVPROT_CMD_ERROR_INVALID_CUST_CONFIG         0x202A
define VSCE_DRVPROT_DRIVE_IS_UNLOCKED                     0x202B
define VSCE_DRVPROT_DRIVE_IS_LOCKED                       0x202C
define VSCE_DRVPROT_ENCRYPTION_KEYS_NOT_LOADED            0x202D
define VSCE_DRVPROT_DATA_SHOULD_NOT_BE_ENCRYPTED          0x202E
define VSCE_DRVPROT_DATA_SHOULD_BE_ENCRYPTED              0x202F
define VSCE_DRVPROT_CMD_ERROR_SET_ZERO_PASSWORD           0x2030
define VSCE_DRVPROT_LOCK_PREPARE_NOT_SET                  0x2031
define VSCE_DRVPROT_CHANGE_KEY_WHILE_IN_LOCK_CNTDOWN      0x2032
define VSCE_DRVPROT_MISMATCH_HRN                          0x2033
define VSCE_DRVPROT_MISMATCH_DRN                          0x2034
define VSCE_DRVPROT_MISMATCH_PASSWORD                     0x2035
define VSCE_DRVPROT_NO_HRN_OR_DRN_WAS_ISSUED              0x2036
define VSCE_DRVPROT_NO_PASSWORD_SET_IN_DRIVE              0x2037
define VSCE_DRVPROT_SET_PASSWORD_WHILE_LOCKCOUNTDOWN      0x2038
define VSCE_DRVPROT_LOCK_FAIL_UPD_CONFIG_OR_FLUSH_ERR     0x2039
define VSCE_INV_MOD_ACT_CODE_REQ                          0xB001
define VSCE_VSC_CMD_SET_NOT_ENABLED                       0xB002
define VSCE_INV_MOD_BYTE_IN_MODCFG_SEC_CMD                0xB003
define VSCE_INV_SMART_ENABLE_CODE                         0xB004
define VSCE_INV_OP_REQ                                    0xB005
define VSCE_OFF_TOO_LARGE                                 0xB006
define VSCE_INV_HEAD_NUM                                  0xB007
define VSCE_CYL_ABOVE_LIMIT                               0xB008
define VSCE_INV_WEDGE_OFF                                 0xB009
define VSCE_INV_WEDGE_SIZE                                0xB00A
define VSCE_START_ADDR_TOO_LARGE                          0xB00B
define VSCE_LGTH_TOO_LARGE                                0xB00C
define VSCE_INVALID_TBL_ID                                0xB00D
define VSCE_UNSUP_ACTION_CODE                             0xB00E
define VSCE_UNSUP_FUNCTION                                0xB00F
define VSCE_VAL_ACTION_CODE_UNSUP_FEATURE                 0xB010
define VSCE_VAL_ACTION_CODE_UNSUP_OP                      0xB011
define VSCE_INV_FUNC_CODE_REQ                             0xB012
define VSCE_TBL_OFFSET_TOO_LARGE                          0xB013
define VSCE_INV_EXCEPTION_FEAT                            0xB014
define VSCE_INV_OFFSET                                    0xB015
define VSCE_VSC_MODE_DISABLED                             0x3016
define VSCE_INV_KEY_SECTOR_SIZE                           0xB017
define VSCE_XFER_REQ_EXCEED_AVAILABLE_DATA                0xB018
define VSCE_INV_VSC_SOURCE                                0xB019
define VSCE_ACTION_CODE_OUT_OF_RANGE                      0xB01A
define VSCE_KEY_SECTOR_MUST_PRECEED_DATA_XFER_REQUEST     0xB01B
define VSCE_INVALID_SETTLE_MODE                           0xB01C
define VSCE_INV_ENABLE_DISABLE_KEY_IN_FEATURE_REGS        0xB01D
define VSCE_FUNC_NOT_SUPP_ON_SOC_PLATFORM                 0xB01E
define VSCE_INV_SECTOR_REQUEST                            0xB01F
define VSCE_FLASH_LENGTH_TOO_SMALL                        0xB020
define VSCE_FLASH_START_ADDR_TOO_SMALL                    0xB021
define VSCE_FLASH_START_SECTOR_TOO_SMALL                  0xB022
define VSCE_FLASH_ACCESS_RANGE_REQ_TOO_LARGE              0xB023
define VSCE_INVALID_LBA_REQUEST                           0xB024
define VSCE_PST_BUFFER_NOT_ALLOCATED                      0xB025
define VSCE_COMMAND_NOT_ALLOWED_FROM_PST                  0xB026
define VSC_INVALID_PST_TEST_ID                            0xB027
define VSC_INVALID_PST_VECTOR_ADDRESS                     0xB028
define VSCE_PST_VSCD_BUFFER_TOO_SMALL                     0xB029
define VSCE_SECTOR_OFFSET_NOT_FROM_ZERO                   0xB02A
define VSCE_INV_RSC_MEM_REQUEST                           0xB02B
define VSCE_INV_PST_TEST_MODE_REQ                         0xB02C
define VSCE_CLEAR_DRM_LOG_FAILED                          0xB02D
define VSCE_CLEAR_FACTORY_FILE_FAILED                     0xB02E
define VSCE_WARNING_WEAR_LVL_WITH_BG_DIS                  0xB02F
define VSCE_INVALID_WEAR_LVL_ARGUMENT                     0xB030
define VSCE_INVALID_PERIOD_SHIFT_CTLR_ARGUMENT            0xB031
define VSCE_WARNING_DRM_FLUSH_WITH_BG_DIS                 0xB032
define VSCE_INVALID_DRM_FLUSH_CTRL_ARGUMENT               0xB033
define VSCE_INVALID_SMART_BACKDOOR_ARGUMENT               0xB034
define VSCE_INVALID_BG_ACTIVITY_ARGUMENT                  0xB035
define VSCE_INVALID_DTEMP_SAMPLING_ARGUMENT               0xB036
define VSCE_CONFIG_WRITE_FAILED                           0x3037
define VSCE_INVALID_CLEAR_DRM_SECTION                     0xB038
define VSCE_CLEAR_DRM_SECTION_FAILED                      0x3039
define VSCE_SET_CONFIG_LBA_FAILED                         0x303A
define VSCE_FORMAT_SET_FAILED                             0x303B
define VSCE_DEPOP_INVALID_HEAD_ID                         0xB03C
define VSCE_ERROR_RATE_TBL_NOT_PRESENT                    0x303D
define VSCE_IBI_MODE_BIT_NOT_SET                          0x303E
define VSCE_REQ_ENDLBA_LESS_THAN_STARTLBA                 0xB03F
define VSCE_DEPOP_ONLY_ONE_HEAD                           0xB040
define VSCE_PERM_OVL_ALREADY_LOADED                       0x3041
define VSCE_PERM_OVL_NOT_LOADED                           0x3042
define VSCE_INVALID_PST_MODE_ARGUMENT                     0xB043
define VSCE_INVALID_DRM_GROUP_SECTION                     0x3044
define VSCE_INVALID_DRM_GROUP_QSUBSECTION                 0x3045
define VSCE_DRM_GROUP_QUEUE_EMPTY                         0x3046
define VSCE_INVALID_DRM_GROUP_LSUBSECTION                 0x3047
define VSCE_INVALID_DRM_SUBSECTION                        0x3048
define VSCE_INVALID_LIFE_QUEUE_FLAG                       0x3049
define VSCE_PROTOCOL_VIOLATION                            0x304A
define VSCE_DEPOP_DISABLED                                0x304B
define VSCE_DEPOP_INVALID_APB                             0x304C
define VSCE_PUSH_DOWNS_ON_TRACK                           0xB04D
define VSCE_INVALID_PERIOD_SUM_PARA                       0xB04E
define VSCE_HOST_DATA_XFER_DID_NOT_OCCUR                  0xB04F
define VSCE_INVALID_CLRDRM_AGENTCODE                      0xB050
define VSCE_FEATURECTRL_INVALID_ARG                       0xB051
define VSCE_FEATURECTRL_RD_FEATURE_UNSUP                  0xB052
define VSCE_MEM_TBL_IS_READ_ONLY                          0xB053
define VSCE_DEBUG_STOP_OCCURRED                           0xB054
define VSCE_RDWRFIELD_INVALID_LENGTH                      0xB055
define VSCE_REQUESTED_RELOS_GREATER_THAN_AVAIL            0xB056
define VSCE_INVALID_LENGTH                                0xB057
define VSCE_INVALID_COUNT_VALUE                           0xB058
define LAST_BKGRND_VSC_CMD_FAILED_SEE_SECNDRY_ERR_CODE_FOR_EXT_ERR 0x3059
define VSCE_INV_ADDRESS_MODE                              0xB05A
define VSCE_SERVO_TRACE_DISABLED                          0xB05B
define VSCE_CFG_SVO_TRACE_ALRDY_ENABLED                   0xB05C
define VSCE_INV_START_WEDGE                               0xB05D
define VSCE_INV_ZONE_NUMBER                               0xB05E
define VSCE_CYL_NOT_IN_GAIN_CAL_ZONE                      0xB05F
define VSCE_DSLE_GAIN_CAL_TO_RUN_THIS_CMD                 0xB060
define VSCE_INV_CONFIG_SECTION                            0xB061
define VSCE_SVO_INTFCE_RETND_INVLD_TABLE_SIZE             0xB062
define VSCE_GAINCAL_TABLE_NOT_INITIALIZED                 0xB063
define VSCE_GAINCAL_TRAINING_NOT_STARTED                  0xB064
define VSCE_GAINCAL_VALUE_NOT_TRAINED                     0xB065
define VSCE_GAINCAL_FEATURE_NOT_IMPLEMENTED               0xB066
define VSCE_PARTIAL_FILE_REQUEST_PAST_EOF                 0xB067
define VSCE_INV_DVT_OPCODE                                0xB068
define VSCE_TEMP_SRAM_STATIC_ALREADY_ALLOCATED            0xB069
define VSCE_TABLE_NOT_AVAILABLE_CACHE_RELO_DISABLED       0xB06A
define VSCE_NO_TEMP_SRAM_STATIC_ALLOCATED                 0xB070
define VSCE_INVALID_SMART_ATTRIBUTE_STATUS                0xB071
define VSCE_INVALID_SMART_ATTRIBUTE_ID                    0xB072
define VSCE_SINGLE_PASS_TONESCAN_NOT_SUPPORTED            0xB073
define VSCE_INVALID_WEAR_LVL_MODE                         0xB074
define VSCE_INVALID_WL_CONFIG_TABLE_NOT_AVAIL             0xB075
define VSCE_DEPOP_IBI_SRFC1_LOG_NOT_IN_TRK_DIR            0xB076
define VSCE_DEPOP_IBI_SRFC1_PES_NOT_IN_TRK_DIR            0xB077
define VSCE_PARTIAL_FILE_NOT_IN_PST_MODE                  0xB078
define VSCE_DFH_MODE_NOT_ENABLED                          0xB079
define VSCE_PARAMETER_OUT_OF_RANGE                        0xB07A
define VSCE_FMT_SELECT_CAPACITY_FAILURE                   0xB07B
define VSCE_DCM_UNINITIALIZED                             0xB07C
define VSCE_CAPACITY_GROUP_DEFINITION_ERROR               0xB07D
define VSCE_W_R_GAP_INFO_NOT_AVAILABLE                    0xB07E
define VSCE_DRIVE_PROTECT_LOCKED                          0xB080
define VSCE_INVALID_REGION_NUMBER                         0xB081
define VSCE_DISK_BACKEND_TBL_NOT_PRESENT                  0xB082
define VSCE_COMPAREIDS_LBA_MISCOMPARE_ERROR               0xB083
define VSCE_FLEX_BIAS_FILTER_ERR                          0xB084
define VSCE_INV_SMART_EN_CODE                             0xB100
define SMART_INV_HOST_SECTOR_REQ                          0xB101
define SMART_INV_VENDOR_SECTOR_REQ                        0xB102
define SMART_FEAT_NOT_SUPP                                0xB103
define SMART_INVALID_SECTOR_CNT                           0xB104
define VSCE_ODTAA_NOT_INITD                               0x3208
define VSCE_TLIST_DATA_NOT_AVAIL                          0x3209
define VSCE_ODTAA_RD_WDG_ERR                              0x320C
define VSCE_RRO_NOT_INITD                                 0x320E
define VSCE_DRM_SPN_COUNTERS_READ_FAIL                    0x3219
define VSCE_DRM_ACT_COUNTERS_READ_FAIL                    0x321A
define VSCE_STATIC_FILE_INVALID                           0x321B
define VSCE_MRM_REQUEST_FAILED                            0x321C
define VSCE_MRM_REQUEST_TIMED_OUT                         0x321D
define VSCE_MRM_REQUEST_REJECTED                          0x321E
define VSCE_MRM_REQUEST_CANCELED                          0x321F
define VSCE_MRM_START_CANCELED                            0x3220
define VSCE_MRM_WAIT_CANCELED                             0x3221
define VSCE_RESOURCE_ALLOCATION_FAILED                    0x3222
define VSCE_DRM_LOG_NOT_LOADED                            0x3223
define VSCE_DFH_CALIBRATION_FAILED                        0x3224
define VSCE_DRM_LOG_SECTIONS_BAD_CHECKSUM                 0x3225
define VSCE_DRM_LOG_PERIOD_LOG_BAD_CHECKSUM               0x3232
define SMART_READ_SELF_TEST_LOG_ERR                       0x3300
define SMART_DRM_LOG_HAS_NOT_BEEN_LOADED                  0x3301
define SMART_WRITE_SEL_TEST_ST_INPROGRESS                 0xB302
define SMART_SELECTIVE_TEST_INVALID_VERSION               0xB303
define SMART_OFFLINE_IMM_DISABLED                         0xB304
define SMART_RESOURCE_ALLOCATION_FAILED                   0xB305
define SMART_STATUS_FAILED                                0xB306
define SMART_DRM_LOAD_DISABLED                            0x3307
define VSCE_OBSOLETE_COMMAND                              0xB400
define VSCE_SMART_CMD_W_SMART_DIS                         0xB401
define VSCE_FEAT_NOT_SUPP                                 0xB402
define VSCE_SECURITY_CMD_W_BAD_PARAMETER                  0xB403
define VSCE_SECURITY_CMD_W_SECURITYMODE_DISABLED          0xB404
define VSCE_SECURITY_CMD_W_DISK_FROZEN                    0xB405
define VSCE_SECURITY_CMD_W_DISK_LOCKED                    0xB406
define VSCE_SECURITY_CMD_W_DISK_LOCKEDORFROZEN            0xB407
define VSCE_SECURITY_CMD_W_DISK_EXPIREDORFROZEN           0xB408
define VSCE_SECURITY_CMD_W_RECEIVE_DATAERROR              0xB409
define VSCE_SECURITY_CMD_W_PASSWORD_MISCOMPARE            0xB40A
define VSCE_SECURITY_CMD_W_PASSWORD_IS_ZERO               0xB40B
define VSCE_SECURITY_CMD_W_INV_MASTER_PW_REVISION         0xB40C
define VSCE_SECURITY_CMD_NO_ERASE_PREPARE                 0xB40D
define VSCE_SECURITY_CMD_RCVD_IN_INVAL_STATE              0xB40E
define VSCE_CHS_LBA_TOO_LARGE                             0xB418
define VSCE_ERRINJ_INV_FUNC_CODE                          0xB430
define VSCE_ERRINJ_INV_ERR_TYPE                           0xB431
define VSCE_ERRINJ_INV_NRZ_MODE                           0xB432
define CA_FLUSH_CACHEDRELO_GOT_DISK_ERROR                 0x3502
define CA_CANT_INVALIDATE_SD_IN_DYNAMIC_STATE             0x3503
define RSC_ALLOCATION_SECTORS_BEYOND_RANGE                0x3600
define RSC_ALLOCATION_GOT_DISK_ERROR                      0x3602
define RSC_ALLOCATION_NO_CONTI_BUFFER                     0x3603
define RSC_ALLOCATE_TRANSIENT_WITH_CACHE_VALID            0x3604
define RSC_ALLOCATE_TRANSIENT_BUFFER_USED                 0x3605
define RSC_ALLOCATE_SD_NO_SD                              0x3606
define RSC_ALLOCATION_NO_BUFFERS_AVAIL                    0x3607
define RSC_ALLOCATION_GOT_DISK_ERROR_DBS                  0x3608
define FM_ERR_FILE_INFO                                   0x3700
define FM_ERR_DIR                                         0x3701
define FM_ERR_FILE_ID                                     0x3702
define FM_ERR_CHECKSUM                                    0x3703
define FM_ERR_COMPAT                                      0x3704
define FM_ERR_TIMEOUT                                     0x3705
define FM_ERR_NOT_STATIC_FILE                             0x3706
define FM_ERR_NO_BUFFER                                   0x3707
define FM_ERR_DRIVE_NOT_READY                             0x3708
define FM_ERR_FILEHDR_FILESIZE_ZERO                       0x3709
define FM_ERR_INCOMPATIBLE_VERSION                        0x370A
define FM_ERR_NOT_FLASH_FILE                              0x370C
define FM_CANT_RENAME_TO_EXISTING_FILE_ID                 0x370D
define FM_ERR_FILES_GOOD_BUT_CHECKSUMS_DIFFERENT          0x370E
define FM_ERR_HEADER_II_SIGNATURE_INVALID                 0x370F
define FM_ERR_HEADER_II_TOO_SMALL                         0x3710
define FM_ERR_PARTIAL_FILE_REQUEST_INVALID                0x3711
define FM_SECTOR_COUNT_EXCEEDS_MAX_ALLOCATED_BUFFER       0x3712
define FM_ERR_FILE_SIZE_EXCEEDS_STATIC_BUFFER_SIZE        0x3713
define FM_ERR_PARTIAL_FILE_BUF_OFFSET_EXCEEDS_EOF         0x3714
define FM_ERR_PARTIAL_FILE_SEC_COUNT_EXCEEDS_EOF          0x3715
define FM_ERR_NO_SD_CREATED_FOR_THE_REQUESTED_FILE_ID     0x3716
define FM_NO_MORE_SPACE_IN_DIR                            0x3717
define FM_NUM_COPY_MORE_THEN_MAX_COPY                     0x3718
define FM_NO_MORE_SPACE_IN_REGION                         0x3719
define FM_FILE_CANNOT_CREATE_ON_EXISTING_FILE             0x3720
define FM_ERR_FILE_ENTRY_NUM_NOT_FOUND_IN_DIRSEC          0x3721
define FM_ERR_TRYING_TO_COPY_TO_SAME_REGION               0x3722
define FM_ERR_FILE_INIT_PLACEHOLDER_BIT_NOT_SET           0x3723
define FM_ERR_FILE_TARGET_RLBA_OVERLAP                    0x3724
define FM_ERR_NO_CONTIGUOUS_SPACE_IN_REGION               0x3725
define FM_ERR_CANNOT_RESOLVE_OVERLAP                      0x3726
define FM_ERR_CANNOT_FREE_ENOUGH_SPACE                    0x3727
define FM_ERR_CANNOT_CREATE_CONTIGUOS_SPACE_IN_REGION     0x3728
define FM_ERR_REQUESTRLBA_EXCEED_REGION_DOUNDARY          0x3729
define FM_ERR_DIRECTORY_ENTRY_NOT_SAME                    0x3730
define FM_ERR_DEFRAG_DETECT_PKT_FILE_IN_RSVD              0x3731
define FM_ERR_GATHER_FIELD_FILE                           0x3732
define FM_ERR_SORT_DIR_SECTOR                             0x3733
define FM_ERR_DEFRAG_RSVD                                 0x3734
define BG_ERR_INVALID_SELFTEST_SELECTED                   0xB800
define BG_ERR_PST_ABORTED_BY_RESET                        0x3801
define BG_ERR_PST_ABORTED_BY_DEADMAN                      0x3802
define BG_ERR_INVALID_ASCAN_CFGPARMS                      0x3803
define BG_TLIST_DATA_NOT_AVAIL                            0x3804
define BG_PST_UNABLE_TO_LOAD_PTM                          0x3805
define BG_PST_RSC_ALLOCATION_FAILED                       0x3806
define BG_PST_DISABLED_VIA_DEBUGSTOP                      0x3807
define BG_ERR_BACKGROUND_DISABLED                         0x3809
define BG_PST_INVALID_PTM_LOAD_ADDRESS                    0x380A
define BG_PST_INVALID_PTM_START_ADDRESS                   0x380B
define BG_ERR_NONCAPTIVE_MEMORY_TEST_NOT_ALLOWED          0x380C
define BG_PST_UNABLE_TO_FLASH_PTM                         0x380D
define BG_ERR_SELFTEST_ABORTED_TIMEDOUT                   0x380E
define OVM_PERMANENT_ALREADY_LOADED                       0x3900
define OVM_TRANSIENT_ALREADY_LOADED                       0x3901
define OVM_PERMANENT_NOT_LOADED                           0x3902
define OVM_TRANSIENT_NOT_LOADED                           0x3903
define OVM_ERR_NOT_COMPATIBLE                             0x3904
define OVM_ERR_CHECKSUM                                   0x3905
define OVM_UNDEFINED_FN                                   0x3906
define OVM_ERR_BUILDID_MISMATCH                           0x3907
define FLASH_UNKNOWN_ERROR                                0x3A00
define FLASH_INVALID_FLASH_SECTOR_ADDRESS                 0x3A01
define FLASH_WRITE_LATCH_ENABLE_ERROR                     0x3A02
define FLASH_WRITE_PAGE_SEND_BYTE_ERROR                   0x3A03
define FLASH_WRITE_PAGE_TIMEOUT                           0x3A04
define FLASH_WRITE_PAGE_TO_SMEM_ERROR                     0x3A05
define FLASH_READ_BLOCK_GET_BYTE_ERROR                    0x3A06
define FLASH_BYTE_COUNT_EXCEEDS_DEVICE_LIMIT              0x3A07
define FLASH_INVALID_FLASH_ADDRESS                        0x3A08
define FLASH_INITIAL_BOOT_HEADER_MISSING                  0x3A09
define FLASH_SEND_BYTE_TIMEOUT                            0x3A0A
define FLASH_READ_CMD_ERROR                               0x3A0B
define FLASH_INVALID_FLASH_DATA                           0x3A0C
define FLASH_DATA_COMPARE_ERROR                           0x3A0D
define FLASH_DEVICE_ID_ERROR                              0x3A0E
define FLASH_READ_INFO_START_TIMEOUT                      0x3A0F
define FLASH_STATUS_TIMEOUT                               0x3A10
define FLASH_COMMAND_TIMEOUT                              0x3A11
define DPTM_MALLOC_FAILURE                                0x3A20
define DPTM_FREE_FAILURE                                  0x3A21
define DPTM_INITIALIZATION_FAILURE                        0x3A22
define DPTM_FAILED_TO_PROCESS_DOWNLOADED_PACKET           0x3A23
define DPTM_FAILED_TO_BACK_UP_FLASH_FILES                 0x3A24
define DPTM_PRESERVED_FILE_HAS_DIFF_VERSION_OR_SIZE       0x3A25
define DPTM_UNHANDLED_FILELIST_EXCEPTION                  0x3A26
define DPTM_FILE_ID_NOT_IN_FILE_LIST                      0x3A27
define DPTM_FLASH_WRITE_BUFFER_INVALID                    0x3A28
define DPTM_FLASH_IMAGE_TOO_BIG                           0x3A29
define DPTM_FLASH_PROGRAM_FAILURE                         0x3A2A
define DPTM_FAILED_TO_VERIFY_PROGRAMMED_FLASH             0x3A2B
define DPTM_FAILED_TO_APPLY_MOD_BYTES                     0x3A2C
define DPTM_CLEANUP_FAILURE                               0x3A2D
define DPTM_FAILED_TO_WRITE_CFG                           0x3A2E
define RSEEK_MALLOC_FAILURE                               0x3A60
define RSEEK_FREE_FAILURE                                 0x3A61
define SELFTEST_CHECK_RES_FILE_ERROR                      0x3B00
define SELFTEST_SCAN_ERROR                                0x3B01
define SELFTEST_SRAM_HARD_ERROR                           0x3B02
define SELFTEST_SRAM_SOFT_ERROR                           0x3B03
define SELFTEST_SRAM_MULTISOFT_ERROR                      0x3B04
define SELFTEST_DRAM_HARD_ERROR                           0x3B05
define SELFTEST_DRAM_SOFT_ERROR                           0x3B06
define SELFTEST_DRAM_MULTISOFT_ERROR                      0x3B07
define SELFTEST_TRANSIENT_LOAD_FAULT                      0x3B08
define FMT_ERR_PLIST_NOT_FOUND                            0x3C00
define FMT_ERR_INVALID_PLIST                              0x3C01
define FMT_ERR_GLIST_NOT_FOUND                            0x3C02
define FMT_ERR_INVALID_GLIST                              0x3C03
define FMT_ERR_EXCEEDED_PUSH_DOWNS                        0x3C04
define FMT_ERR_PDLIST_WRT_FAIL                            0x3C05
define FMT_ERR_NEW_BAD_TRKS                               0x3C06
define FMT_ERR_FRMT_FAILURE                               0x3C07
define FMT_ERR_EXCEEDED_GLIST                             0x3C08
define FMT_ERR_GLIST_WRT_FAIL                             0x3C09
define FMT_ERR_CAPACITY                                   0x3C0A
define FMT_ERR_ZSD_NOT_LOADED                             0x3C0B
define FMT_ERR_BUF_ALLOCATION                             0x3C0C
define FMT_ERR_RELOLIST_WRT_FAIL                          0x3C0D
define FMT_ERR_PDLIST_NOT_FOUND                           0x3C0E
define FMT_ERR_RELOLIST_NOT_FOUND                         0x3C0F
define FMT_ERR_EXCEEDED_RELOLIST                          0x3C10
define FMT_ERR_WRT_FAIL                                   0x3C11
define FMT_ERR_EXCEEDED_RPDLIST                           0x3C12
define FMT_ERR_RPDLIST_WRT_FAIL                           0x3C13
define FMT_ERR_RPDLIST_NOT_LOADED                         0x3C14
define FMT_PLIST_PSN_OUT_OF_RANGE                         0x3C15
define FMT_PUSHCOUNT_OVERFLOW                             0x3C16
define FMT_HASH_TABLE_OVERFLOW                            0x3C17
define FMT_ERR_INVALID_ZONE_TABLE                         0x3C18
define FMT_ERR_CANT_MERGE_PGLIST                          0x3C19
define FMT_ERR_PLIST_WRT_FAIL                             0x3C1A
define FMT_ERR_SLIPS_EXCEED_LIMIT                         0x3C1B
define FMT_ERR_TRACK_PUSHED_DOWN                          0x3C1C
define FMT_ERR_FLIST_WRT_FAIL                             0x3C1D
define FMT_PLIST_CYLINDER_OUT_OF_RANGE                    0x3C1E
define FMT_PLIST_HEAD_OUT_OF_RANGE                        0x3C1F
define FMT_ERR_REMERGE_REQUIRED                           0x3C20
define DFL_DFCTFND                                        0x3D80
define DFL_NODEFECT                                       0x3D81
define DFL_TRKDFCTFND                                     0x3D82
define DFL_EMPTY                                          0x3D83
define DFL_NOMEM                                          0x3D84
define DFL_PLWRERR                                        0x3D85
define DFL_GLWRERR                                        0x3D86
define DFL_PDLWRERR                                       0x3D87
define DFL_RELOLWRERR                                     0x3D89
define DFL_GLFULL                                         0x3D8A
define DFL_PLFULL                                         0x3D8B
define DFL_CLFULL                                         0x3D8C
define DFL_PLDEFECT                                       0x3D8D
define DFL_GLDEFECT                                       0x3D8E
define DFL_NOLIST                                         0x3D8F
define DFL_DEF1_LT                                        0x3D90
define DFL_DEF1_GT                                        0x3D91
define DFL_DEF1_EQ                                        0x3D92
define DFL_INVALIDLBA                                     0x3D93
define DFL_INVALIDLBARANGE                                0x3D94
define DFL_DUPLICATEDEFECT                                0x3D95
define DFL_DLFULL                                         0x3D96
define CACHE_RELO_SPARE_RW_TIMEOUT                        0x3E00
define CACHE_RELO_INSUFFICIENT_CACHE_SPACE                0x3E01
define CACHE_RELO_READ_RELO_DOES_NOT_EXIST                0x3E02
define CACHE_RELO_WRITE_RELO_DOES_NOT_EXIST               0x3E03
define CACHE_RELO_READ_NEW_RELO_FAILURE                   0x3E04
define CACHE_RELO_LOAD_TRACK_CACHE_FAILURE                0x3E05
define CACHE_RELO_RW_IN_PROGRESS                          0x3E06
define DM_TRANSLATION_OUT_OF_RANGE                        0x3F00
define DM_SECTOR_OUT_OF_RANGE                             0x3F01
define DM_RM_NOT_A_SPARE_RELO                             0x3F02
define DM_RM_NOT_A_SPARE_LBA                              0x3F03
define DM_RM_NOT_A_RELOLIST_ENTRY                         0x3F04
define DM_RM_NOT_A_USER_LBA                               0x3F05
define DM_RM_INSERTING_IN_FULL_RELOLIST                   0x3F06
define DM_RM_INSERTING_AN_EXISTING_LBA                    0x3F07
define DM_HEAD_CHK_WRONG_CYL_FOR_RSVD_AREA                0x3F08
define DM_HEAD_CHK_WRONG_HEAD_FOR_USER_AREA               0x3F09
define DM_RM_NO_MORE_SPARES_FOR_CACHE_RELO                0x3F0A
define FMT_RSVD_ERROR_RPDLIST_OVERFLOW                    0x4080
define FMT_RSVD_ERROR_RPLIST_PSN_OUT_OF_RANGE             0x4081
define FMT_RSVD_ERROR_RPLIST_FILE_ID_INVALID              0x4082
define FMT_RSVD_HASH_BLOCK_EMPTY                          0x4083
define FMT_RSVD_ERROR_HEAD_COUNT_ZERO                     0x4084
define FMT_RSVD_ERROR_ZONE_TABLE_SPT_ZERO                 0x4085
define FMT_RSVD_ERROR_NO_SPARES_AVAILABLE                 0x4086
define FMT_RSVD_REGION_CROSSES_HEAD_BOUNDARY              0x4087
define FMT_RSVD_REGION_TOO_LARGE                          0x4088
define FMT_RSVD_TWO_REGION_ON_SAME_VIRT_HEAD              0x4089
define MEMORY_TEST_DATA_BUS_ERROR                         0x4100
define MEMORY_TEST_ADDRESS_BUS_ERROR                      0x4101
define MEMORY_TEST_DEVICE_BUS_ERROR                       0x4102
define HPA_INVALID_VALUE_SPECIFIED                        0xC200
define HPA_LOCK_IN_PLACE                                  0xC201
define HPA_LOCK_NOT_IN_PLACE                              0xC202
define HPA_FREEZE_LOCK_IN_PLACE                           0xC203
define HPA_COMMAND_SEQUENCE_ERROR                         0xC204
define HPA_SET_MAX_ADDR_EXT_IN_PLACE                      0xC205
define HPA_PASSWORD_ACTIVE                                0xC206
define HPA_PASSWORD_NOT_ACTIVE                            0xC207
define HPA_PASSWORD_MISCOMPARE                            0xC208
define HPA_SECOND_NON_VOLATILE_COMMAND                    0xC209
define HPA_READ_MAX_FIRST_COMMAND                         0xC20A
define HPA_COMMAND_SEQUENCE_FAULT                         0xC20B
define HOST_UNSUPPORTED_ATA_OPCODE                        0xC400
define HOST_RECEIVED_LBA_TOO_BIG                          0xC401
define HOST_LBA_OUT_OF_RANGE                              0xC402
define HOST_DRV_PARAMS_SPT_NOT_SUPPORTED                  0xC403
define HOST_DRV_PARAMS_HDS_NOT_SUPPORTED                  0xC404
define HOST_UNSUPPORTED_FEATURE_VALUE                     0xC405
define HOST_UNSUPPORTED_MULTI_COUNT                       0xC406
define HOST_MULTI_NOT_SET                                 0xC407
define HOST_DIS_IORDY_NOT_SUPPORTED                       0xC408
define HOST_UNSUPPORTED_COMMAND_IN_PST_MODE               0xC409
define HOST_INVALID_SECTOR_COUNT                          0xC40A
define HOST_VSC_CMD_EXECUTING_IN_BKGRND                   0xC40B
define HOST_CMD_NOT_ALLOWED_GAIN_CAL_MODE_ACTIVE          0xC40C
define HOST_QUEUE_CMD_INTERMIX_ERROR                      0xC40D
define HOST_UNSUPPORTED_SET_FEATURE_SATA_FEATURE          0xC40E
define HOST_QUEUE_TAG_ERROR                               0xC40F
define HOST_INVALID_CHS_CYLINDER_NUMBER                   0xC410
define HOST_INVALID_CHS_HEAD_NUMBER                       0xC411
define HOST_INVALID_CHS_SECTOR_NUMBER                     0xC412
define HOST_UNSUPPORTED_ATA_CMD_IN_SIO_MODE               0xC413
define HOST_RESERVED_STANDBY_TIMER_VALUE                  0xC414
define HOST_PUIS_SET_FEATURE_DISABLED_IN_CFG_SECTOR       0xC420
define HOST_PUIS_FLASH_SET_TO_USE_JUMPER                  0xC421
define HOST_PUIS_SET_FEATURE_NOT_SUPPORTED_IN_XPM2        0xC422
define HOST_PUIS_SPIN_UP_CMD_NOT_SUPPORTED_IN_XPM2        0xC423
define HOST_PUIS_JUMPER_ENABLED_IN_FLASH_NO_JUMPER        0xC424
define HOST_PUIS_DISABLED_IN_FLASH                        0xC425
define HOST_INVALID_ATA_STREAM_ID                         0xC430
define HOST_ATA_STREAM_ID_NOT_CFG                         0xC431
define HOST_DLMC_BAD_COMP_CHAR                            0x4506
define HOST_DLMC_INVALID_PACKET                           0x4509
define HOST_DLMC_INVALID_PROD_FAMILY                      0x450C
define HOST_DLMC_INVALID_TPI_CODE                         0x451E
define HOST_DLMC_INVALID_SECTION_OFFSET                   0x4520
define HOST_DLMC_INVALID_CUST_ID                          0x4524
define HOST_DLMC_TOTAL_XFERRED_TOO_LARGE                  0x4525
define HOST_DLMC_ERROR_SAVING_DRV_STATE                   0x4526
define HOST_DLMC_XFER_SIZE_OUT_OF_RANGE                   0x4527
define HOST_LATCHED_FATAL_WRITE_FAULT                     0x4580
define HOST_LOCKED_UNIT_ACCESS_DENIED                     0xC581
define HOST_RESIDENT_FILES_NOT_LOADED                     0x4582
define HOST_DEBUGSTOP_OCCURRED                            0x4583
define HOST_DOWNLOAD_MICRCODE_ERROR                       0x4584
define HOST_DOWNLOAD_MICRCODE_NO_SD                       0x4585
define HOST_NCQ_NO_RDLOG10                                0xC586
define HOST_CACHE_OVERLAY_NOT_LOADED                      0x4587
define HOST_DOWNLOAD_MICRCODE_NO_PTM_CODE                 0x4588
define HOST_INTERFACE_CRC_ERROR                           0xC601
define HOST_INTERFACE_CRC_OVERRUN_UNDERRUN_ERROR          0xC602
define HOST_INTERFACE_OVERRUN_UNDERRUN_ERROR              0xC603
define HOST_ABORTED_CMD                                   0x4612
define HOST_XFER_CANCEL_ERROR                             0x4630
define HOST_SATA_CRC_ERROR                                0xC641
define HOST_SATA_RX_PROTOCOL_ERROR                        0xC642
define HOST_SATA_RX_SYNC_TERMINATE_ERROR                  0xC643
define HOST_SATA_RX_LENGTH_ERROR                          0xC644
define HOST_SATA_TX_RERR_ERROR                            0xC645
define HOST_SATA_TX_SYNC_TERMINATE_ERROR                  0xC646
define HOST_SATA_RETRANSMIT_ERROR                         0xC647
define HOST_SATA_TM_FIFO_ERROR                            0xC648
define HOST_SATA_DISPARITY_ERROR                          0xC649
define HOST_SATA_CODE_VIOLATION_ERROR                     0xC64A
define HOST_SATA_LINK_HUNG_ERROR                          0xC64B
define HOST_SATA_UNRECOGNIZED_FIS_ERROR                   0xC64C
define HOST_SATA_UNKNOWN_ERROR                            0xC64D
define HOST_SATA_RX_DISPARITY_IN_FIS                      0xC64E
define HOST_SATA_WRITE_XFER_OVERRUN                       0xC64F
define CACHE_FLUSH_FAILURE1                               0x4700
define CACHE_FLUSH_FAILURE2                               0x4701
define DCO_INVALID_FEATURE_SET                            0xC800
define DCO_FREEZE_LOCK_IN_PLACE                           0xC801
define DCO_ERR_CHECKSUM                                   0xC802
define DCO_ERR_SIGNATURE                                  0xC803
define DCO_ERR_INVALID_UDMA_MODE                          0xC804
define DCO_ERR_CMND_ABORTED                               0xC805
define UNSUPPORTED_LOG_ADDRESS                            0xC820
define CHGDEFCMD_INVALID_PSWD_ERROR                       0xC840
define CHGDEFCMD_INVALID_CFG_NUM_ERROR                    0xC841
define CHGDEFCMD_UNDEFINED_CAPACITY_ERROR                 0xC842
define CHGDEFCMD_ILLEGAL_CAPACITY_ERROR                   0xC843
define CHGDEFCMD_ERROR_COUNTER_MAX_ERROR                  0xC844
define CHGDEFCMD_INVALID_CFGSEL_ARRAY_ERROR               0xC845
define CHGDEFCMD_NOT_ENABLED_ERROR                        0xC846
define CHGDEFCMD_NATIVE_MAX_LBA_INVALID_ERROR             0xC847
define CHGDEFCMD_FIELD_LIST_ERROR                         0xC848
define COMMAND_TIMEOUT_ERROR                              0x4900
define COMMAND_TIMEOUT_AV_CCTO_ERROR                      0x4901
define COMMAND_TIMEOUT_SA_STREAMING_ERROR                 0x4902
define COMMAND_TIMEOUT_TLER_ERROR                         0x4903
define COMMAND_TIMEOUT_RD_TLER_ERROR                      0x4904
define COMMAND_TIMEOUT_WR_TLER_ERROR                      0x4905
define DISK_NON_ERROR_STATUS_RANGE_RSVD                   0x5100
define DISK_ECC_CORRECTED                                 0x5101
define DISK_TA_DET_STATUS                                 0x5102
define DISK_TA_2ND_SYNC_MARK_ERROR                        0x5103
define DISK_UNSAFE_2ND_SYNC_MARK_ERROR                    0x5104
define DISK_ERROR_DRM_LOG_RANGE_RSVD                      0x5120
define DISK_FIFO_OVER_UNDER                               0x5122
define DISK_FIFO_OVER_RUN                                 0x5123
define DISK_FIFO_UNDER_RUN                                0x5124
define DISK_SEC_PULSE_RG_ERROR                            0x5125
define DISK_SEC_PULSE_WG_ERROR                            0x5126
define DISK_ECC_DATA_SIZE_ERROR                           0x5127
define DISK_RG_OVER_SERVO_ERROR                           0x5128
define DISK_DAM_ERROR_RANGE_RSVD                          0x5180
define DISK_DAM_ERROR                                     0x5181
define DISK_DAM_TA_ERROR                                  0x5182
define DISK_SEC_PULSE_RG_ERROR_RECOVER                    0x5183
define DISK_ECC_DATA_SIZE_ERROR_RECOVER                   0x5184
define DISK_RG_OVER_SERVO_ERROR_RECOVER                   0x5185
define DISK_SPBA_ERROR_RANGE_RSVD                         0x5190
define DISK_SPBA_ERROR                                    0x5191
define DISK_TIMEOUT_SEC_NOTFOUND_ERROR                    0x5192
define DISK_ECC_ERROR_RANGE_RSVD                          0x51A0
define DISK_CRC_ERROR                                     0x51A1
define DISK_ECU_UNSAFE_ERROR                              0x51A2
define DISK_ECU_UNSAFE_TA_ERROR                           0x51A3
define DISK_WRITE_ERROR_RANGE_RSVD                        0x51C0
define DISK_WRITE_ERROR                                   0x51C1
define DISK_TIMEOUT_ERROR_RANGE_RSVD                      0x51E0
define DISK_TIMEOUT_DM_NOT_ACTIVE_ERROR                   0x51E2
define DISK_TIMEOUT_DM_NOT_ACTIVE_ERROR_RD                0x51E3
define DISK_TIMEOUT_DM_NOT_ACTIVE_ERROR_WRT               0x51E4
define DISK_TIMEOUT_BUFFER_NOT_READY_ERROR                0x51E5
define DISK_TIMEOUT_DF_ERROR                              0x51E6
define DISK_GENERAL_ERROR                                 0x51E7
define DISK_TIMEOUT_TLER_ERROR                            0x51E8
define DISK_EVENT_TIMEOUT_DF_ERROR                        0x51E9
define DISK_BUFFER_FULL_ERROR                             0x51EA
define DISK_not_used_error_5200                           0x5200
define DISK_not_used_error_5201                           0x5201
define DISK_not_used_error_5203                           0x5203
define DISK_ER_FWECC_FAILURE                              0x5204
define DISK_not_used_error_5205                           0x5205
define DISK_not_used_error_5206                           0x5206
define DISK_not_used_error_5207                           0x5207
define DISK_not_used_error_5208                           0x5208
define DISK_not_used_error_5209                           0x5209
define DISK_RECAL_FAILURE                                 0x521A
define DISK_not_used_error_521B                           0x521B
define TONESCAN_DEFECT_BUFFER_OVERFLOW_ERROR              0x521C
define DISK_WEDGE_COMMAND_IN_PROGRESS                     0x521D
define DISK_SPINUP_TIMEOUT1                               0x521E
define DISK_SPINUP_TIMEOUT2                               0x521F
define DISK_WEDGE_INVALID_WEDGE_COUNT                     0x5220
define DISK_RELO_PERM_OVL_NOT_LOADED                      0x5221
define RELO_SST_FAILED                                    0x5230
define RELO_NOT_POSSIBLE_ON_SPARE                         0x5231
define RELO_INVALID_REQUEST_COUNT                         0x5232
define RELO_NOT_POSSIBLE_ON_RSVD                          0x5233
define DISK_STOP_ON_CREATE_RELO                           0x5234
define DISK_STOP_ON_CREATE_TARE                           0x5235
define RELO_DISABLED                                      0x5236
define RELO_DISABLED_YOU_DIDNT_RUN_FMTUNIT                0x5237
define RELO_IN_POST_READ_CANCELLED                        0x5238
define RELO_LAST_LBA_IN_USER_AREA                         0x5239
define RELO_DISABLED_NOT_INITED                           0x523A
define RELO_EC_SPARE_LBA_WITH_NO_USER_LBA                 0x523B
define PM_ILLEGAL_MODE_TRANSITION                         0x5240
define PM_TRANSITION_NOT_NEEDED_OK                        0x5241
define DISK_not_used_error_5250                           0x5250
define DISK_CHANNEL_HEAD_SIZE_INIT_ERROR                  0x5251
define DISK_SERVO_ERROR                                   0x5380
define DISK_SERVO_NOT_READY_ERROR                         0x5381
define DISK_SERVO_SPINDLE_ERROR                           0x53A0
define DISK_SERVO_SPINDLE_SPINUP_ERROR                    0x53A1
define DISK_SERVO_SPINDLE_SPINDOWN_ERROR                  0x53A2
define DISK_SERVO_SPINDLE_OFF_SPEED_ERROR                 0x53A3
define DISK_SERVO_SPINDLE_SPINUP_FATAL_ERROR              0x53A4
define DISK_SERVO_SPINDLE_GET_SPINUP_TIME_ERROR           0x53A5
define DISK_SERVO_ACTUATOR_ERROR                          0x53C0
define DISK_SERVO_ACTUATOR_DRV_FLT_ERROR                  0x53C1
define DISK_SERVO_ACTUATOR_ABORT_ERROR                    0x53C2
define DISK_SERVO_ACTUATOR_WRT_INH_ERROR                  0x53C3
define DISK_SERVO_ACTUATOR_CTRL_FLT_ERROR                 0x53C4
define DISK_SERVO_ACTUATOR_SHOCK_FLT_ERROR                0x53C5
define DISK_SERVO_ACTUATOR_WR_UNSAFE_ERROR                0x53C6
define DISK_SERVO_ACTUATOR_SRV_FLT_ERROR                  0x53C7
define DISK_SERVO_ACTUATOR_WG_MASK_ERROR                  0x53C8
define DISK_SERVO_ACTUATOR_FATAL_ERROR                    0x53C9
define DISK_SERVO_ACTUATOR_TIMEOUT_ERROR                  0x53CA
define DISK_SERVO_ACTUATOR_SAIL_ERROR                     0x53CB
define DISK_SERVO_ACTUATOR_BAD_WEDGE_ERROR                0x53CC
define DISK_SERVO_ACTUATOR_NO_SC_TARGET_WEDGE_ERROR       0x53CD
define DISK_SERVO_ACTUATOR_SPLIT_EN_TIMEOUT_ERROR         0x53CE
define DISK_SERVO_ACTUATOR_TBG_UNLOCK_DET                 0x53CF
define DISK_SERVO_WRT_FLT_WRITE_UNSAFE_ERROR              0x53D1
define DISK_SERVO_WRT_FLT_SPINDLE_AT_SPEED_ERROR          0x53D2
define DISK_SERVO_WRT_FLT_SSM_TIMEOUT_ERROR               0x53D3
define DISK_SERVO_WRT_FLT_ILLEGAL_GRAY_CODE__ERROR        0x53D4
define DISK_SERVO_WRT_FLT_ILLEGAL_CYL_ERROR               0x53D5
define DISK_SERVO_WRT_FLT_OFFTRACK_ERROR                  0x53D6
define DISK_SERVO_WRT_FLT_FATAL_ERROR_PATH_SERVO_DEAD     0x53D7
define DISK_SERVO_WRT_FLT_READ_OFFTRACK_ERROR             0x53D8
define DISK_SERVO_WRT_FLT_TONESCAN_SSM_TIMEOUT_ERROR      0x53D9
define DISK_SERVO_ERROR_REQUIRES_ACT_INIT                 0x53E0
define DISK_SERVO_ACTUATOR_AI_NO_SC_TARGET_WEDGE_ERROR    0x53E1
define DISK_SERVO_ACTUATOR_AI_TIMEOUT_ERROR               0x53E2
define DISK_SERVO_ACTUATOR_AI_BAD_WEDGE_ERROR             0x53E3
define DISK_SERVO_ACTUATOR_AI_FATAL_ERROR                 0x53E4
define DISK_SERVO_WRT_FLT_AI_WRITE_UNSAFE_ERROR           0x53F1
define DISK_SERVO_WRT_FLT_AI_SPINDLE_AT_SPEED_ERROR       0x53F2
define DISK_SERVO_WRT_FLT_AI_SSM_TIMEOUT_ERROR            0x53F3
define DISK_SERVO_WRT_FLT_AI_ILLEGAL_GRAY_CODE__ERROR     0x53F4
define DISK_SERVO_WRT_FLT_AI_ILLEGAL_CYL_ERROR            0x53F5
define DISK_SERVO_WRT_FLT_AI_OFFTRACK_ERROR               0x53F6
define DISK_SERVO_WRT_FLT_AI_FATAL_ERROR_PATH_SERVO_DEAD  0x53F7
define DISK_SERVO_WRT_FLT_AI_READ_OFFTRACK_ERROR          0x53F8
define SERVO_ERROR_CODE_BASE_SvirOk                       0x5400
define SERVO_ERROR_CODE_BASE_SvirAbort                    0x5401
define SERVO_ERROR_CODE_BASE_SvirModel                    0x5402
define SERVO_ERROR_CODE_BASE_SvirHed                      0x5410
define SERVO_ERROR_CODE_BASE_SvirCyl                      0x5411
define SERVO_ERROR_CODE_BASE_SvirParm1                    0x5412
define SERVO_ERROR_CODE_BASE_SvirParm2                    0x5413
define SERVO_ERROR_CODE_BASE_SvirParm3                    0x5414
define SERVO_ERROR_CODE_BASE_SVIR_SUBCMD                  0x5416
define SERVO_ERROR_CODE_BASE_SVIR_LENGTH                  0x5416
define SERVO_ERROR_CODE_BASE_SvirCmnd                     0x5418
define SERVO_ERROR_CODE_BASE_SvirErr                      0x5420
define SERVO_ERROR_CODE_BASE_SvirTo                       0x5421
define SERVO_ERROR_CODE_BASE_SvirIndx                     0x5422
define SERVO_ERROR_CODE_BASE_SvirSect                     0x5423
define SERVO_ERROR_CODE_BASE_SvirSAMErr                   0x5424
define SERVO_ERROR_CODE_BASE_SvirWRROOnTk2Lrn             0x5426
define SERVO_ERROR_CODE_BASE_SvirWRROOnTk2Wrt             0x5427
define SERVO_ERROR_CODE_BASE_SvirWRROCalibLrn             0x5428
define SERVO_ERROR_CODE_BASE_SvirWRROBrstErr              0x5429
define SERVO_ERROR_CODE_BASE_SvirWRRORdLimLrn             0x542a
define SERVO_ERROR_CODE_BASE_SvirWRROJogLrnErr            0x542b
define SERVO_ERROR_CODE_BASE_SvirWRROWriteErr             0x542c
define SERVO_ERROR_CODE_BASE_SvirWRROSetupErr             0x542d
define SERVO_ERROR_CODE_BASE_SvirWRROTroLimLrn            0x542e
define SERVO_ERROR_CODE_BASE_SvirSpinUp                   0x5430
define SERVO_ERROR_CODE_BASE_SvirSpinDown                 0x5431
define SERVO_ERROR_CODE_BASE_SvirActSpeed                 0x5440
define SERVO_ERROR_CODE_BASE_SvirActSync                  0x5441
define SERVO_ERROR_CODE_BASE_SvirActUnlat                 0x5442
define SERVO_ERROR_CODE_BASE_SvirActPdFail                0x5443
define SERVO_ERROR_CODE_BASE_SVIRDRVNOTCAL                0x5444
define SERVO_ERROR_CODE_BASE_SvirWRROLoadErr              0x5447
define SERVO_ERROR_CODE_BASE_SvirWRROCmpErr               0x5449
define SERVO_ERROR_CODE_BASE_SvirCalNorm                  0x5450
define SERVO_ERROR_CODE_BASE_SvirCalFlex                  0x5458
define SERVO_ERROR_CODE_BASE_SvirCalMotor                 0x5459
define SERVO_ERROR_CODE_BASE_SvirCalRRO                   0x545a
define SERVO_ERROR_CODE_BASE_SvirCalFGain                 0x545b
define SERVO_ERROR_CODE_BASE_SvirCalSeek                  0x545c
define SERVO_ERROR_CODE_BASE_SvirCalApGain                0x545d
define SERVO_ERROR_CODE_BASE_SvirCalLTR                   0x545e
define SERVO_ERROR_CODE_BASE_SvirCalGainS                 0x545f
define SERVO_ERROR_CODE_BASE_SvirCalTangHO                0x5460
define SERVO_ERROR_CODE_BASE_SvirCalBW                    0x5461
define SERVO_ERROR_CODE_BASE_SvirRROOvf                   0x5470
define SERVO_ERROR_CODE_BASE_SvirRROAlg                   0x5471
define SERVO_ERROR_CODE_BASE_SvirRampLUL                  0x5472
define SERVO_ERROR_CODE_BASE_SvirLatchHang                0x5473
define SERVO_ERROR_CODE_BASE_SvirLoad2Fast                0x5474
define SERVO_ERROR_CODE_BASE_SvirLoad2Slow                0x5475
define SERVO_ERROR_CODE_BASE_SvirIRcalib                  0x5476
define SERVO_ERROR_CODE_BASE_SvirADChang                  0x5477
define SERVO_ERROR_CODE_BASE_SvirRampCalRange             0x5478
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd0               0x5480
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd1               0x5481
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd2               0x5482
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd3               0x5483
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd4               0x5484
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd5               0x5485
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd6               0x5486
define SERVO_ERROR_CODE_BASE_SvirCalRRO_Hd7               0x5487
define SERVO_ERROR_CODE_BASE_SvirSTraceFile               0x5490
define SIO_INVALID_SD_INDEX                               0x5500
define SIO_INVALID_BUFF_PTR                               0x5501
define SIO_ERR_TIMEOUT                                    0x5502
define SPP_ERR_DEVICE_INIT                                0x5503
define SIO_INV_PARAM                                      0x5504
define SIO_INV_XFER_CMD_HDR_CHECKSUM                      0x5505
define SIO_ERR_INV_CMD_FUNCTION                           0x5506
define SIO_INV_CRC                                        0x5507
define SIO_UNKNOWN_ERR                                    0x5508
define SIO_ERR_XFER_REQ_GT_AVAIL_DATA                     0x5509
define SIO_ERR_ACK_SIZE_REQ_GT_XFER_LEN_REQ               0x550A
define SIO_ERR_XFER_ABORT_REQUEST                         0x550B
define SIO_ERR_TIMEOUT_XMIT_ISR                           0x550C
define SIO_ERR_TIMEOUT_XMIT_DATA                          0x550D
define SIO_ERR_TIMEOUT_RECV_ISR                           0x550E
define SIO_ERR_TIMEOUT_XFER_REQ                           0x550F
define SIO_PROT_ERR_CMD_NOT_EXPCTD                        0x5510
define SIO_INV_TRANSFER_PAYLOAD_LEN                       0x5511
define SIO_INV_TRANSFER_LENGTH                            0x5512
define SIO_ERR_NO_DATA_TRANSFER_IN_PROG                   0x5513
define SIO_ERR_XFER_CMD_ACK_SIZE                          0x5514
define SIO_ERR_INV_ABN_NUMBER                             0x5515
define SIO_ERR_MAX_CRC_ERRS_RECV_DATA                     0x5516
define SIO_ERR_CRC_ERR_RECVED_RETRY_SENT                  0x5517
define SIO_ERR_MAX_RETRIES                                0x5518
define SIO_INV_XFER_CMD_PAYLOAD_LEN                       0x5519
define SIO_ERR_CMD_ABORTED                                0x5520
define SIO_ERR_TIMEOUT_WAITING_4_ACK_CMD                  0x5521
define SIO_ERR_MAX_CRC_ERRS_NON_SEQ_ABN_RECV_DATA         0x5522
define SIO_ERR_WAITING_4_XFER_COMPLETE                    0x5523
define SIO_ERR_INV_CMD_HDR_RESERVE_FIELD                  0x5524
define SIO_ERR_INV_XFER_CMD_HDR_PARAM_FIELD               0x5525
define SIO_ERR_INV_XFER_CMD_PAYLOAD_CRC                   0x5526
define SIO_ERR_INV_XFER_CMD_DIR_FIELD                     0x5527
define SIO_ERR_INV_ACK_CMD_HDR_RESV_FIELD                 0x5528
define SIO_ERR_INV_TRNSFR_CMPLTE_CMD_RESV_FIELD           0x5529
define SIO_ERR_INV_RETRY_CMD_RESV_FIELD                   0x5530
define SIO_ERR_INV_ACK_CMD_HDR_LEN_FIELD                  0x5531
define SIO_ERR_INV_TRNSFR_CMPLTE_CMD_LEN_FIELD            0x5532
define SIO_ERR_INV_RETRY_CMD_LEN_FIELD                    0x5533
define SIO_ERR_INV_ACK_CMD_HDR_PARAM_FIELD                0x5534
define SIO_ERR_INV_TRNSFR_CMPLTE_CMD_PARAM_FIELD          0x5535
define SIO_ERR_INV_RETRY_CMD_PARAM_FIELD                  0x5536
define SIO_ERR_INV_ACK_CMD_CHKSUM                         0x5537
define SIO_ERR_INV_TRANSFER_CMPLTE_CMD_CHKSUM             0x5538
define SIO_ERR_INV_RETRY_CMD_CHKSUM                       0x5539
define UART_OTHER_ERROR                                   0x5540
define UART_OVERRUN_ERROR                                 0x5541
define UART_FRAMING_ERROR                                 0x5542
define CANCEL_ERRORS_RANGE                                0x6400
define CA_FLUSH_ALL_GOT_CANCELED                          0x6401
define CA_FLUSH_CACHEDRELO_GOT_CANCELED                   0x6402
define DISK_CANCEL_ERROR                                  0x6403
define EXEC_OPERATION_CANCELED                            0x6404
define RSC_ALLOCATION_GOT_CANCELED                        0x6405
define BG_ERR_CANCELLED                                   0x6406
define CACHE_RELO_OPERATION_CANCELLED                     0x6407
define FMT_ERR_FORMAT_UNIT_CANCELLED                      0x6408
define FM_ERR_CANCELED                                    0x6409
define DISK_REMOVE_BY_REQUEST                             0x640A
define HOST_OPERATION_CANCELED                            0x640B
define SERVO_PTM_ERROR_CODE_BASE                          0x7000
define ERROR_CODE_BASE                                    0x7100
define ARCO_ERROR_CODE_BASE                               0x7200
define SPT_PTM_ERROR_CODE_BASE                            0x7300
define CTLR_PTM_ERROR_CODE_BASE                           0x7500
define IBI_ERROR_CODE_BASE                                0x7600
define COMMON_PTM_ERROR_CODE_BASE                         0x7F00
define PTM_ERR_INV_VEC_TBL_VER                            0x7F01
define NOT_AN_ERR_SIO_INVLD_NON_ATA_OPCODE                0xFFFE
define NOT_AN_ERR_VSC_CMD_EXEC_IN_BKG                     0xFFFF
define HAL_INVALID_PARAMETER                              0x8000
define HAL_FLASH_UNKNOWN_ERROR                            0x8020
define HAL_FLASH_INVALID_FLASH_SECTOR_ADDRESS             0x8021
define HAL_FLASH_WRITE_LATCH_ENABLE_ERROR                 0x8022
define HAL_FLASH_WRITE_PAGE_SEND_BYTE_ERROR               0x8023
define HAL_FLASH_WRITE_PAGE_TIMEOUT                       0x8024
define HAL_FLASH_WRITE_PAGE_TO_SMEM_ERROR                 0x8025
define HAL_FLASH_READ_BLOCK_GET_BYTE_ERROR                0x8026
define HAL_FLASH_BYTE_COUNT_EXCEEDS_DEVICE_LIMIT          0x8027
define HAL_FLASH_INVALID_FLASH_ADDRESS                    0x8028
define HAL_FLASH_INITIAL_BOOT_HEADER_MISSING              0x8029
define HAL_FLASH_SEND_BYTE_TIMEOUT                        0x802A
define HAL_FLASH_READ_CMD_ERROR                           0x802B
define HAL_FLASH_INVALID_FLASH_DATA                       0x802C
define HAL_FLASH_DATA_COMPARE_ERROR                       0x802D
define HAL_FLASH_DEVICE_ID_ERROR                          0x802E
define HAL_FLASH_READ_INFO_START_TIMEOUT                  0x802F
define HAL_FLASH_STATUS_TIMEOUT                           0x8030
define HAL_FLASH_COMMAND_TIMEOUT                          0x8031
define HAL_FLASH_BAD_CHECKSUM                             0x8032
define HAL_SYS_PLL_LOCK_FAILURE                           0x8100
define HAL_SYS_SPP_CHECK_FAIL                             0x8101
define HAL_SYS_UART_FIFO_FULL                             0x8102
define HAL_SYS_UART_FIFO_EMPTY                            0x8103
define HAL_SYS_UART_OVERRUN                               0x8104
define HAL_SYS_UART_OTHERS_ERROR                          0x8105
define HAL_SYS_UART_XMIT_FIFO_FULL                        0x8106
#ENDIF
