vcd_status.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef _VCD_ERR_STATUS_H_
  14. #define _VCD_ERR_STATUS_H_
  15. #define VCD_EVT_RESP_BASE 0x1000
  16. #define VCD_EVT_RESP_OPEN (VCD_EVT_RESP_BASE + 0x1)
  17. #define VCD_EVT_RESP_START (VCD_EVT_RESP_BASE + 0x2)
  18. #define VCD_EVT_RESP_STOP (VCD_EVT_RESP_BASE + 0x3)
  19. #define VCD_EVT_RESP_PAUSE (VCD_EVT_RESP_BASE + 0x4)
  20. #define VCD_EVT_RESP_FLUSH_INPUT_DONE (VCD_EVT_RESP_BASE + 0x5)
  21. #define VCD_EVT_RESP_FLUSH_OUTPUT_DONE (VCD_EVT_RESP_BASE + 0x6)
  22. #define VCD_EVT_RESP_INPUT_FLUSHED (VCD_EVT_RESP_BASE + 0x7)
  23. #define VCD_EVT_RESP_OUTPUT_FLUSHED (VCD_EVT_RESP_BASE + 0x8)
  24. #define VCD_EVT_RESP_INPUT_DONE (VCD_EVT_RESP_BASE + 0x9)
  25. #define VCD_EVT_RESP_OUTPUT_DONE (VCD_EVT_RESP_BASE + 0xa)
  26. #define VCD_EVT_IND_BASE 0x2000
  27. #define VCD_EVT_IND_INPUT_RECONFIG (VCD_EVT_IND_BASE + 0x1)
  28. #define VCD_EVT_IND_OUTPUT_RECONFIG (VCD_EVT_IND_BASE + 0x2)
  29. #define VCD_EVT_IND_HWERRFATAL (VCD_EVT_IND_BASE + 0x3)
  30. #define VCD_EVT_IND_RESOURCES_LOST (VCD_EVT_IND_BASE + 0x4)
  31. #define VCD_EVT_IND_INFO_OUTPUT_RECONFIG (VCD_EVT_IND_BASE + 0x5)
  32. #define VCD_EVT_IND_INFO_FIELD_DROPPED (VCD_EVT_IND_BASE + 0x6)
  33. #define VCD_EVT_IND_INFO_LTRUSE_FAILED (VCD_EVT_IND_BASE + 0x7)
  34. #define VCD_S_SUCCESS 0x0
  35. #define VCD_S_ERR_BASE 0x80000000
  36. #define VCD_ERR_FAIL (VCD_S_ERR_BASE + 0x01)
  37. #define VCD_ERR_ALLOC_FAIL (VCD_S_ERR_BASE + 0x02)
  38. #define VCD_ERR_ILLEGAL_OP (VCD_S_ERR_BASE + 0x03)
  39. #define VCD_ERR_ILLEGAL_PARM (VCD_S_ERR_BASE + 0x04)
  40. #define VCD_ERR_BAD_POINTER (VCD_S_ERR_BASE + 0x05)
  41. #define VCD_ERR_BAD_HANDLE (VCD_S_ERR_BASE + 0x06)
  42. #define VCD_ERR_NOT_SUPPORTED (VCD_S_ERR_BASE + 0x07)
  43. #define VCD_ERR_BAD_STATE (VCD_S_ERR_BASE + 0x08)
  44. #define VCD_ERR_BUSY (VCD_S_ERR_BASE + 0x09)
  45. #define VCD_ERR_MAX_CLIENT (VCD_S_ERR_BASE + 0x0a)
  46. #define VCD_ERR_IFRAME_EXPECTED (VCD_S_ERR_BASE + 0x0b)
  47. #define VCD_ERR_INTRLCD_FIELD_DROP (VCD_S_ERR_BASE + 0x0c)
  48. #define VCD_ERR_HW_FATAL (VCD_S_ERR_BASE + 0x0d)
  49. #define VCD_ERR_BITSTREAM_ERR (VCD_S_ERR_BASE + 0x0e)
  50. #define VCD_ERR_QEMPTY (VCD_S_ERR_BASE + 0x0f)
  51. #define VCD_ERR_SEQHDR_PARSE_FAIL (VCD_S_ERR_BASE + 0x10)
  52. #define VCD_ERR_INPUT_NOT_PROCESSED (VCD_S_ERR_BASE + 0x11)
  53. #define VCD_ERR_INDEX_NOMORE (VCD_S_ERR_BASE + 0x12)
  54. #define VCD_FAILED(rc) ((rc > VCD_S_ERR_BASE) ? true : false)
  55. #endif