mtk_status.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:13k
源码类别:

MTK

开发平台:

C++ Builder

  1. /*******************************************************************************
  2.  *  Copyright Statement:
  3.  *  --------------------
  4.  *  This software is protected by Copyright and the information contained
  5.  *  herein is confidential. The software may not be copied and the information
  6.  *  contained herein may not be used or disclosed except with the written
  7.  *  permission of MediaTek Inc. (C) 2006
  8.  *
  9.  ******************************************************************************/
  10. /*******************************************************************************
  11.  * Filename:
  12.  * ---------
  13.  *  mtk_status.h
  14.  *
  15.  * Project:
  16.  * --------
  17.  *  BootRom Library
  18.  *
  19.  * Description:
  20.  * ------------
  21.  *  The definition of error code 
  22.  *
  23.  * Author:
  24.  * -------
  25.  *  Amos Hsu (mtk00539)
  26.  *
  27.  *==============================================================================
  28.  *           HISTORY
  29.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  30.  *------------------------------------------------------------------------------
  31.  * $Revision$
  32.  * $Modtime$
  33.  * $Log$
  34.  *
  35.  * Jan 31 2008 mtk01413
  36.  * [STP100001630] [FlashTool] v3.0804.0 release
  37.  * New features:
  38.  *  1. USB Download for End User
  39.  * Enhancements:
  40.  *  1. [DA] Download Optimization with 921k on MT6225/MT6229/MT6230/MT6235/MT6238
  41.  *  2. [DA] Provide two download methodology : Best Effort Erase (default) and Sequential Erase
  42.  *  3. [DA] New CheckID algorithm for all SPANSION MCP series
  43.  *
  44.  * Dec 3 2007 mtk01413
  45.  * [STP100001568] [FlashTool] v3.0748.0 release
  46.  * 
  47.  *
  48.  * Aug 30 2007 mtk01413
  49.  * [STP100001497] [FlashTool] v3.2.0 release
  50.  * 
  51.  *
  52.  * Mar 12 2007 mtk01413
  53.  * [STP100001329] FlashTool v3.1.04 release
  54.  * 
  55.  *
  56.  * Jan 2 2007 mtk01413
  57.  * [STP100001195] FlashTool v3.1.02 release
  58.  * New features:
  59.  *  1. [BROM_DLL/DA] Support FOTA(Firmware update Over The Air) download.
  60.  *  2. [BROM_DLL/DA] Support MT6223  download.
  61.  *  3. [BROM_DLL/DA] Support MT6268T download.
  62.  *  4. [DA] Supports new NOR Flash device
  63.  *  [SPANSION] S29GL128NH
  64.  *  [SPANSION] S29GL128NL
  65.  *  [SPANSION] S29GL256NH
  66.  *  [SPANSION] S29GL256NL
  67.  *  [SPANSION] S29GL512NH
  68.  *  [SPANSION] S29GL512NL
  69.  * 
  70.  * Enhancements:
  71.  *  1. [DA] Support BBC(Blank Block Check) for NOR Flash Format.
  72.  *  2. [BROM_DLL/DA] Support Retransmit mechanism for NAND Readback operation.
  73.  *  3. [BROM_DLL] Enhance E-NFB Check.
  74.  * 
  75.  *
  76.  * Sep 27 2006 mtk00539
  77.  * [STP100001145] FlashTool v3.1.01 release
  78.  * 
  79.  *
  80.  * Aug 16 2006 mtk00539
  81.  * [STP100001057] FlashTool v3.1.00 release
  82.  * Add new status code
  83.  * S_BROM_NOT_SUPPORT_MT6205B
  84.  * S_DA_HANDSET_FAT_INFO_NOT_FOUND
  85.  * S_FT_GET_PROJECT_ID_FAIL
  86.  * S_DL_PROJECT_ID_DIFF_BETWEEN_MAIN_CODE_AND_JUMP_TBL
  87.  * S_SECURITY_DOWNLOAD_FILE_IS_CORRUPTED
  88.  * 
  89.  *
  90.  * Aug 14 2006 mtk01413
  91.  * [STP100001057] FlashTool v3.1.00 release
  92.  * 
  93.  *
  94.  * Aug 14 2006 mtk00539
  95.  * [STP100001057] FlashTool v3.1.00 release
  96.  * 
  97.  * 
  98.  *------------------------------------------------------------------------------
  99.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  100.  *==============================================================================
  101.  *******************************************************************************/
  102. #ifndef _MTK_STATUS_H_
  103. #define _MTK_STATUS_H_
  104. //------------------------------------------------------------------------------
  105. // return code                                                                  
  106. //------------------------------------------------------------------------------
  107. typedef enum {
  108. S_DONE = 0
  109. // private random error code (1~999) 
  110. // common error code (1000~1999) 
  111. ,S_COMMON_ERROR_BEGIN = 1000
  112. ,S_STOP = S_COMMON_ERROR_BEGIN
  113. ,S_UNDEFINED_ERROR
  114. ,S_INVALID_ARGUMENTS
  115. ,S_INVALID_BBCHIP_TYPE
  116. ,S_INVALID_EXT_CLOCK
  117. ,S_GET_DLL_VER_FAIL
  118. ,S_INVALID_BUF
  119. ,S_BUF_IS_NULL
  120. ,S_BUF_LEN_IS_ZERO
  121. ,S_BUF_SIZE_TOO_SMALL
  122. ,S_NOT_ENOUGH_MEMORY
  123. ,S_COM_PORT_OPEN_FAIL
  124. ,S_COM_PORT_SET_TIMEOUT_FAIL
  125. ,S_COM_PORT_SET_STATE_FAIL
  126. ,S_COM_PORT_PURGE_FAIL
  127. ,S_FILEPATH_NOT_SPECIFIED_YET
  128. ,S_UNKNOWN_TARGET_BBCHIP
  129. ,S_SKIP_BBCHIP_HW_VER_CHECK
  130. ,S_UNSUPPORTED_VER_OF_BOOT_ROM
  131. ,S_UNSUPPORTED_VER_OF_BOOTLOADER
  132. ,S_UNSUPPORTED_VER_OF_DA
  133. ,S_UNSUPPORTED_VER_OF_SEC_INFO
  134. ,S_UNSUPPORTED_VER_OF_ROM_INFO
  135. ,S_SEC_INFO_NOT_FOUND
  136. ,S_ROM_INFO_NOT_FOUND
  137. ,S_CUST_PARA_NOT_SUPPORTED
  138. ,S_CUST_PARA_WRITE_LEN_INCONSISTENT
  139. ,S_SEC_RO_NOT_SUPPORTED
  140. ,S_SEC_RO_WRITE_LEN_INCONSISTENT
  141. ,S_ADDR_N_LEN_NOT_32BITS_ALIGNMENT
  142. ,S_UART_CHKSUM_ERROR
  143. ,S_NOR_FLASH_BOOT
  144. ,S_NAND_FLASH_BOOT
  145. ,S_UNSUPPORTED_VER_OF_EMI_INFO
  146. ,S_COMMON_ERROR_END // END 
  147. // BOOT ROM error code (2000~2999) 
  148. ,S_BROM_ERROR_BEGIN = 2000
  149. ,S_BROM_SET_META_REG_FAIL = S_BROM_ERROR_BEGIN
  150. ,S_BROM_SET_FLASHTOOL_REG_FAIL
  151. ,S_BROM_SET_REMAP_REG_FAIL
  152. ,S_BROM_SET_EMI_FAIL
  153. ,S_BROM_DOWNLOAD_DA_FAIL
  154. ,S_BROM_CMD_STARTCMD_FAIL
  155. ,S_BROM_CMD_STARTCMD_TIMEOUT
  156. ,S_BROM_CMD_JUMP_FAIL
  157. ,S_BROM_CMD_WRITE16_MEM_FAIL
  158. ,S_BROM_CMD_READ16_MEM_FAIL
  159. ,S_BROM_CMD_WRITE16_REG_FAIL
  160. ,S_BROM_CMD_READ16_REG_FAIL
  161. ,S_BROM_CMD_CHKSUM16_MEM_FAIL
  162. ,S_BROM_CMD_WRITE32_MEM_FAIL
  163. ,S_BROM_CMD_READ32_MEM_FAIL
  164. ,S_BROM_CMD_WRITE32_REG_FAIL
  165. ,S_BROM_CMD_READ32_REG_FAIL
  166. ,S_BROM_CMD_CHKSUM32_MEM_FAIL
  167. ,S_BROM_JUMP_TO_META_MODE_FAIL
  168. ,S_BROM_WR16_RD16_MEM_RESULT_DIFF
  169. ,S_BROM_CHKSUM16_MEM_RESULT_DIFF
  170. ,S_BROM_BBCHIP_HW_VER_INCORRECT
  171. ,S_BROM_FAIL_TO_GET_BBCHIP_HW_VER
  172. ,S_BROM_AUTOBAUD_FAIL
  173. ,S_BROM_SPEEDUP_BAUDRATE_FAIL
  174. ,S_BROM_LOCK_POWERKEY_FAIL
  175. ,S_BROM_WM_APP_MSG_OUT_OF_RANGE
  176. ,S_BROM_NOT_SUPPORT_MT6205B
  177. ,S_BROM_EXCEED_MAX_DATA_BLOCKS
  178. ,S_BROM_EXTERNAL_SRAM_DETECTION_FAIL
  179. ,S_BROM_EXTERNAL_DRAM_DETECTION_FAIL
  180. ,S_BROM_GET_FW_VER_FAIL
  181. ,S_BROM_ERROR_END // END 
  182. // DA error code (3000~3999) 
  183. ,S_DA_ERROR_BEGIN = 3000
  184. ,S_DA_INT_RAM_ERROR = S_DA_ERROR_BEGIN
  185. ,S_DA_EXT_RAM_ERROR
  186. ,S_DA_SETUP_DRAM_FAIL
  187. ,S_DA_SETUP_PLL_ERR
  188. ,S_DA_DRAM_NOT_SUPPORT
  189. ,S_DA_RAM_FLOARTING
  190. ,S_DA_RAM_UNACCESSABLE
  191. ,S_DA_RAM_ERROR
  192. ,S_DA_DEVICE_NOT_FOUND
  193. ,S_DA_NOR_UNSUPPORTED_DEV_ID
  194. ,S_DA_NAND_UNSUPPORTED_DEV_ID
  195. ,S_DA_NOR_FLASH_NOT_FOUND
  196. ,S_DA_NAND_FLASH_NOT_FOUND
  197. ,S_DA_SOC_CHECK_FAIL
  198. ,S_DA_NOR_PROGRAM_FAILED
  199. ,S_DA_NOR_ERASE_FAILED
  200. ,S_DA_NAND_PAGE_PROGRAM_FAILED
  201. ,S_DA_NAND_SPARE_PROGRAM_FAILED
  202. ,S_DA_NAND_HW_COPYBACK_FAILED
  203. ,S_DA_NAND_ERASE_FAILED
  204. ,S_DA_TIMEOUT
  205. ,S_DA_IN_PROGRESS
  206. ,S_DA_SUPERAND_ONLY_SUPPORT_PAGE_READ
  207. ,S_DA_SUPERAND_PAGE_PRGRAM_NOT_SUPPORT
  208. ,S_DA_SUPERAND_SPARE_PRGRAM_NOT_SUPPORT
  209. ,S_DA_SUPERAND_COPYBACK_NOT_SUPPORT
  210. ,S_DA_NOR_CMD_SEQUENCE_ERR
  211. ,S_DA_NOR_BLOCK_IS_LOCKED
  212. ,S_DA_NAND_BLOCK_IS_LOCKED
  213. ,S_DA_NAND_BLOCK_DATA_UNSTABLE
  214. ,S_DA_NOR_BLOCK_DATA_UNSTABLE
  215. ,S_DA_NOR_VPP_RANGE_ERR
  216. ,S_DA_INVALID_BEGIN_ADDR
  217. ,S_DA_NOR_INVALID_ERASE_BEGIN_ADDR
  218. ,S_DA_NOR_INVALID_READ_BEGIN_ADDR
  219. ,S_DA_NOR_INVALID_PROGRAM_BEGIN_ADDR
  220. ,S_DA_INVALID_RANGE
  221. ,S_DA_NOR_PROGRAM_AT_ODD_ADDR
  222. ,S_DA_NOR_PROGRAM_WITH_ODD_LENGTH
  223. ,S_DA_NOR_BUFPGM_NO_SUPPORT
  224. ,S_DA_NAND_UNKNOWN_ERR
  225. ,S_DA_NAND_BAD_BLOCK
  226. ,S_DA_NAND_ECC_1BIT_CORRECT
  227. ,S_DA_NAND_ECC_2BITS_ERR
  228. ,S_DA_NAND_SPARE_CHKSUM_ERR
  229. ,S_DA_NAND_HW_COPYBACK_DATA_INCONSISTENT
  230. ,S_DA_NAND_INVALID_PAGE_INDEX
  231. ,S_DA_NFI_NOT_SUPPORT
  232. ,S_DA_NFI_CS1_NOT_SUPPORT
  233. ,S_DA_NFI_16BITS_IO_NOT_SUPPORT
  234. ,S_DA_NFB_BOOTLOADER_NOT_EXIST
  235. ,S_DA_NAND_NO_GOOD_BLOCK
  236. ,S_DA_BOOTLOADER_IS_TOO_LARGE
  237. ,S_DA_SIBLEY_REWRITE_OBJ_MODE_REGION
  238. ,S_DA_SIBLEY_WRITE_B_HALF_IN_CTRL_MODE_REGION
  239. ,S_DA_SIBLEY_ILLEGAL_CMD
  240. ,S_DA_SIBLEY_PROGRAM_AT_THE_SAME_REGIONS
  241. ,S_DA_UART_GET_DATA_TIMEOUT
  242. ,S_DA_UART_GET_CHKSUM_LSB_TIMEOUT
  243. ,S_DA_UART_GET_CHKSUM_MSB_TIMEOUT
  244. ,S_DA_UART_DATA_CKSUM_ERROR
  245. ,S_DA_UART_RX_BUF_FULL
  246. ,S_DA_FLASH_RECOVERY_BUF_NOT_ENOUGH
  247. ,S_DA_HANDSET_SEC_INFO_NOT_FOUND
  248. ,S_DA_HANDSET_SEC_INFO_MAC_VERIFY_FAIL
  249. ,S_DA_HANDSET_ROM_INFO_NOT_FOUND
  250. ,S_DA_HANDSET_FAT_INFO_NOT_FOUND
  251. ,S_DA_OPERATION_UNSUPPORT_FOR_NFB
  252. ,S_DA_BYPASS_POST_PROCESS
  253. ,S_DA_NOR_OTP_NOT_SUPPORT
  254. ,S_DA_NOR_OTP_EXIST
  255. ,S_DA_NOR_OTP_LOCKED
  256. ,S_DA_NOR_OTP_GETSIZE_FAIL
  257. ,S_DA_NOR_OTP_READ_FAIL
  258. ,S_DA_NOR_OTP_PROGRAM_FAIL
  259. ,S_DA_NOR_OTP_LOCK_FAIL
  260. ,S_DA_NOR_OTP_LOCK_CHECK_STATUS_FAIL
  261. ,S_DA_BLANK_FLASH
  262. ,S_DA_CODE_AREA_IS_BLANK
  263. ,S_DA_SEC_RO_AREA_IS_BLANK
  264. ,S_DA_NOR_OTP_UNLOCKED
  265. ,S_DA_UNSUPPORTED_BBCHIP
  266. ,S_DA_FAT_NOT_EXIST
  267. ,S_DA_EXT_SRAM_NOT_FOUND
  268. ,S_DA_EXT_DRAM_NOT_FOUND
  269. ,S_DA_MT_PIN_LOW
  270. ,S_DA_MT_PIN_HIGH
  271. ,S_DA_MT_PIN_SHORT
  272. ,S_DA_MT_BUS_ERROR
  273. ,S_DA_MT_ADDR_NOT_2BYTE_ALIGNMENT
  274. ,S_DA_MT_ADDR_NOT_4BYTE_ALIGNMENT
  275. ,S_DA_MT_SIZE_NOT_2BYTE_ALIGNMENT
  276. ,S_DA_MT_SIZE_NOT_4BYTE_ALIGNMENT
  277. ,S_DA_MT_DEDICATED_PATTERN_ERROR
  278. ,S_DA_MT_INC_PATTERN_ERROR
  279. ,S_DA_MT_DEC_PATTERN_ERROR
  280. ,S_DA_NFB_BLOCK_0_IS_BAD
  281. ,S_DA_CUST_PARA_AREA_IS_BLANK
  282. ,S_DA_ENTER_RELAY_MODE_FAIL
  283. ,S_DA_ENTER_RELAY_MODE_IS_FORBIDDEN_AFTER_META
  284. ,S_DA_ERROR_END // END 
  285. // FlashTool error code (4000~4999) 
  286. ,S_FT_ERROR_BEGIN = 4000
  287. ,S_FT_CALLBACK_DA_REPORT_FAIL = S_FT_ERROR_BEGIN
  288. ,S_FT_DA_NO_RESPONSE
  289. ,S_FT_DA_SYNC_INCORRECT
  290. ,S_FT_DA_VERSION_INCORRECT
  291. ,S_FT_DA_INIT_SYNC_ERROR
  292. ,S_FT_GET_DSP_VER_FAIL
  293. ,S_FT_CHANGE_BAUDRATE_FAIL
  294. ,S_FT_SET_DOWNLOAD_BLOCK_FAIL
  295. ,S_FT_DOWNLOAD_FAIL
  296. ,S_FT_READBACK_FAIL
  297. ,S_FT_FORMAT_FAIL
  298. ,S_FT_FINISH_CMD_FAIL
  299. ,S_FT_ENABLE_WATCHDOG_FAIL
  300. ,S_FT_NFB_DOWNLOAD_BOOTLOADER_FAIL
  301. ,S_FT_NFB_DOWNLOAD_CODE_FAIL
  302. ,S_FT_NFB_INVALID_BOOTLOADER_DRAM_SETTING
  303. ,S_FT_NAND_READADDR_NOT_PAGE_ALIGNMENT
  304. ,S_FT_NAND_READLEN_NOT_PAGE_ALIGNMENT
  305. ,S_FT_READ_REG16_FAIL
  306. ,S_FT_WRITE_REG16_FAIL
  307. ,S_FT_CUST_PARA_GET_INFO_FAIL
  308. ,S_FT_CUST_PARA_READ_FAIL
  309. ,S_FT_CUST_PARA_WRITE_FAIL
  310. ,S_FT_INVALID_FTCFG_OPERATION
  311. ,S_FT_INVALID_CUST_PARA_OPERATION
  312. ,S_FT_INVALID_SEC_RO_OPERATION
  313. ,S_FT_INVALID_OTP_OPERATION
  314. ,S_FT_POST_PROCESS_FAIL
  315. ,S_FT_FTCFG_UPDATE_FAIL
  316. ,S_FT_SEC_RO_GET_INFO_FAIL
  317. ,S_FT_SEC_RO_READ_FAIL
  318. ,S_FT_SEC_RO_WRITE_FAIL
  319. ,S_FT_ENABLE_DRAM_FAIL
  320. ,S_FT_FS_FINDFIRSTEX_FAIL
  321. ,S_FT_FS_FINDNEXTEX_FAIL
  322. ,S_FT_FS_FOPEN_FAIL
  323. ,S_FT_FS_GETFILESIZE_FAIL
  324. ,S_FT_FS_READ_FAIL
  325. ,S_FT_FS_FILENAME_INVALID
  326. ,S_FT_FS_FILENAME_TOO_LONG
  327. ,S_FT_FS_ASSERT
  328. ,S_FT_OTP_ADDR_NOT_WORD_ALIGNMENT
  329. ,S_FT_OTP_LENGTH_NOT_WORD_ALIGNMENT
  330. ,S_FT_OTP_INVALID_ADDRESS_RANGE
  331. ,S_FT_NAND_READ_TO_BUFFER_NOT_SUPPORT
  332. ,S_FT_GET_PROJECT_ID_FAIL
  333. ,S_FT_ENFB_ROM_FILE_SMALL_THAN_HEADER_DESCRIBE
  334. ,S_FT_RW_EXTRACT_NFB_FAIL
  335. ,S_FT_MEMORY_TEST_FAIL
  336. ,S_FT_ERROR_END // END 
  337. // FlashTool Handle error code (5000~5999) 
  338. ,S_FTHND_ERROR_BEGIN = 5000
  339. ,S_AUTH_HANDLE_IS_NOT_READY = S_FTHND_ERROR_BEGIN
  340. ,S_INVALID_AUTH_FILE
  341. ,S_INVALID_DA_FILE
  342. ,S_DA_HANDLE_IS_NOT_READY
  343. ,S_FTHND_ILLEGAL_INDEX
  344. ,S_FTHND_HANDLE_BUSY_NOW
  345. ,S_FTHND_FILE_IS_UPDATED
  346. ,S_FTHND_FILE_IS_NOT_LOADED_YET
  347. ,S_FTHND_FILE_LOAD_FAIL
  348. ,S_FTHND_FILE_UNLOAD_FAIL
  349. ,S_FTHND_LIST_IS_EMPTY
  350. ,S_DL_SCAT_INCORRECT_FORMAT
  351. ,S_DL_SCAT_ADDR_IS_NOT_WORD_ALIGN
  352. ,S_DL_SCAT_OFFSET_IS_NOT_WORD_ALIGN
  353. ,S_DL_SCAT_ADDR_IS_NOT_ASCENDING_ORDER
  354. ,S_DL_SCAT_JUMPTABLE_IS_NOT_ABSOLUTE_ADDR
  355. ,S_DL_LOAD_REGION_IS_OVERLAP
  356. ,S_DL_LOAD_REGION_NOT_FOUND
  357. ,S_DL_NOT_RESOURCE_BIN
  358. ,S_DL_MULTIBIN_MECHANISM_DISABLED
  359. ,S_DL_RESOURCE_NOT_MATCH_IN_JUMPTABLE
  360. ,S_DL_RESOURCE_MUST_DOWNLOAD_WITH_JUMPTABLE
  361. ,S_DL_OVERLAP_WITH_EXISTING_RESOURCE
  362. ,S_DL_INVALID_RESOURCE_BIN
  363. ,S_DL_JUMPTABLE_INCONSISTENT_WITH_SCAT
  364. ,S_DL_INVALID_JUMPTABLE
  365. ,S_DL_REGION_ADDR_INCONSISTENT_WITH_SCAT
  366. ,S_DL_REGION_ADDR_INCONSISTENT_WITH_RESOURCE_ADDR
  367. ,S_DL_INVALID_BOOTLOADER
  368. ,S_DL_BOOTLOADER_IS_NOT_LOADED_YET
  369. ,S_DL_BOOTLOADER_NOT_FOUND
  370. ,S_DL_REMOTE_FILE_UNSUPPORTED_BY_BL_AUTOLOAD
  371. ,S_DLIST_SAME_BBCHIP_SW_VER
  372. ,S_DLIST_BBCHIP_HW_VER_NOT_MATCHED
  373. ,S_DLIST_NO_MATCHED_DL_HANDLE_FOUND
  374. ,S_DLIST_DL_HANDLE_NOT_IN_LIST
  375. ,S_DLIST_DL_HANDLE_ALREADY_IN_LIST
  376. ,S_FTHND_CALLBACK_REMOTE_GET_FILE_LEN_FAIL
  377. ,S_FTHND_CALLBACK_REMOTE_READ_FILE_FAIL
  378. ,S_FTHND_CALLBACK_FILE_INTEGRITY_CHECK_FAIL
  379. ,S_UNSUPPORTED_VER_OF_AUTH_FILE
  380. ,S_DL_PROJECT_ID_DIFF_BETWEEN_MAIN_CODE_AND_JUMP_TBL
  381. ,S_DL_SCAT_OPEN_FAIL
  382. ,S_FTHND_CALLBACK_COM_INIT_STAGE_FAIL
  383. ,S_DL_UNSECURE_MAUI_TO_SECURE_BB
  384. ,S_FTHND_CALLBACK_REMOTE_GET_SIG_LEN_FAIL
  385. ,S_FTHND_CALLBACK_REMOTE_READ_SIG_FAIL
  386. ,S_FTHND_ERROR_END // END 
  387. // security error code (6000~6999) 
  388. ,S_SECURITY_ERROR_BEGIN = 6000
  389. ,S_SECURITY_CALLBACK_SLA_CHALLENGE_FAIL = S_SECURITY_ERROR_BEGIN
  390. ,S_SECURITY_SLA_WRONG_AUTH_FILE
  391. ,S_SECURITY_SLA_INVALID_AUTH_FILE
  392. ,S_SECURITY_SLA_CHALLENGE_FAIL
  393. ,S_SECURITY_SLA_FAIL
  394. ,S_SECURITY_DAA_FAIL
  395. ,S_SECURITY_SBC_FAIL
  396. ,S_SECURITY_SF_SECURE_VER_CHECK_FAIL
  397. ,S_SECURITY_SF_HANDSET_SECURE_CUSTOM_NAME_NOT_MATCH
  398. ,S_SECURITY_SF_FTCFG_LOCKDOWN
  399. ,S_SECURITY_SF_CODE_DOWNLOAD_FORBIDDEN
  400. ,S_SECURITY_SF_CODE_READBACK_FORBIDDEN
  401. ,S_SECURITY_SF_CODE_FORMAT_FORBIDDEN
  402. ,S_SECURITY_SF_SEC_RO_DOWNLOAD_FORBIDDEN
  403. ,S_SECURITY_SF_SEC_RO_READBACK_FORBIDDEN
  404. ,S_SECURITY_SF_SEC_RO_FORMAT_FORBIDDEN
  405. ,S_SECURITY_SF_FAT_DOWNLOAD_FORBIDDEN
  406. ,S_SECURITY_SF_FAT_READBACK_FORBIDDEN
  407. ,S_SECURITY_SF_FAT_FORMAT_FORBIDDEN
  408. ,S_SECURITY_SF_RESTRICTED_AREA_ACCESS_FORBIDDEN
  409. ,S_SECURITY_SECURE_CUSTOM_NAME_NOT_MATCH_BETWEEN_AUTH_AND_DL_HANDLE
  410. ,S_SECURITY_DOWNLOAD_FILE_IS_CORRUPTED
  411. ,S_SECURITY_NOT_SUPPORT
  412. ,S_SECURITY_BOOTLOADER_IMAGE_SIGNATURE_FAIL
  413. ,S_SECURITY_BOOTLOADER_ELDER_SW_VERSION_CANNOT_BE_DOWNLOADED
  414. ,S_SECURITY_BOOTLOADER_IMAGE_NO_SIGNATURE
  415. ,S_SECURITY_ERROR_END // END 
  416. // expand to 32bits width 
  417. ,S_MAX_STATUS_WIDTH = 0x7FFFFFFF
  418. } STATUS_E;
  419. #define STATUS_CODE(err_code, private_err_code)
  420. ((S_COMMON_ERROR_BEGIN<=err_code)?err_code:private_err_code)
  421. #endif