hi_tde_errcode.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /******************************************************************************
  2. Copyright (C), 2016-2018, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : tde_errcode.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created :
  8. Last Modified :
  9. Description : err code define
  10. Function List :
  11. History : May modify the code to errcode.h FOR hi3110
  12. ******************************************************************************/
  13. #ifndef __TDE_ERRCODE_H__
  14. #define __TDE_ERRCODE_H__
  15. //#include "hi_debug.h"
  16. #include "hi_type.h"
  17. #ifdef __cplusplus
  18. #if __cplusplus
  19. extern "C" {
  20. #endif
  21. #endif /* __cplusplus */
  22. //#define HI_ID_TDE 100
  23. /* tde start err no. */
  24. #define HI_ERR_TDE_BASE ((HI_S32)( ((0x80UL + 0x20UL)<<24) | (100 << 16 ) | (4 << 13) | 1 ))
  25. enum
  26. {
  27. HI_ERR_TDE_DEV_NOT_OPEN = HI_ERR_TDE_BASE, /**< tde device not open yet */
  28. HI_ERR_TDE_DEV_OPEN_FAILED, /**< open tde device failed */
  29. HI_ERR_TDE_NULL_PTR, /**< input parameters contain null ptr */
  30. HI_ERR_TDE_NO_MEM, /**< malloc failed */
  31. HI_ERR_TDE_INVALID_HANDLE, /**< invalid job handle */
  32. HI_ERR_TDE_INVALID_PARA, /**< invalid parameter */
  33. HI_ERR_TDE_NOT_ALIGNED, /**< aligned error for position, stride, width */
  34. HI_ERR_TDE_MINIFICATION, /**< invalid minification */
  35. HI_ERR_TDE_CLIP_AREA, /**< clip area and operation area have no intersection */
  36. HI_ERR_TDE_JOB_TIMEOUT, /**< blocked job wait timeout */
  37. HI_ERR_TDE_UNSUPPORTED_OPERATION, /**< unsupported operation */
  38. HI_ERR_TDE_QUERY_TIMEOUT, /**< query time out */
  39. HI_ERR_TDE_INTERRUPT /* blocked job was interrupted */
  40. };
  41. #ifdef __cplusplus
  42. #if __cplusplus
  43. }
  44. #endif
  45. #endif /* __cplusplus */
  46. #endif /* __TDE_ERRCODE_H__*/