cmdqSecTl_Api.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef __CMDQSECTL_API_H__
  2. #define __CMDQSECTL_API_H__
  3. /*
  4. ** this file define common type between cmdq normal world and secrue world
  5. ** only type and micro is allowed
  6. */
  7. /**
  8. * Command IDs for normal world(TLC or linux kernel) to Trustlet
  9. */
  10. #define CMD_CMDQ_TL_SUBMIT_TASK 1
  11. #define CMD_CMDQ_TL_RES_RELEASE 2 /* (not used)release resource in secure path per session */
  12. #define CMD_CMDQ_TL_CANCEL_TASK 3
  13. #define CMD_CMDQ_TL_PATH_RES_ALLOCATE 4 /* create global resouce for secure path */
  14. #define CMD_CMDQ_TL_PATH_RES_RELEASE 5 /* destroy globacl resource for secure path */
  15. #define CMD_CMDQ_TL_INIT_SHARED_MEMORY 6 /* create shared memory in Normal and Secure world */
  16. #define CMD_CMDQ_TL_SYNC_HANDLE_HDCP 7 /* send src & dst handle to Secure World to copy HDCP version */
  17. #define CMD_CMDQ_TL_REGISTER_SECURE_IRQ 8 /* register secure irq */
  18. #define CMD_CMDQ_TL_DUMP_SMI_LARB 9
  19. #define CMD_CMDQ_TL_TEST_HELLO_TL (4000) /* entry cmdqSecTl, and do nothing */
  20. #define CMD_CMDQ_TL_TEST_DUMMY (4001) /* entry cmdqSecTl and cmdqSecDr, and do nothing */
  21. #define CMD_CMDQ_TL_TEST_SMI_DUMP (4002)
  22. #define CMD_CMDQ_TL_TRAP_DR_INFINITELY (4004)
  23. #define CMD_CMDQ_TL_DUMP (4005)
  24. /*
  25. ** for CMDQ_LOG_LEVEL
  26. ** set log level to 0 to enable all logs
  27. ** set log level to 3 to close all logs
  28. */
  29. enum LOG_LEVEL {
  30. LOG_LEVEL_MSG = 0,
  31. LOG_LEVEL_LOG = 1,
  32. LOG_LEVEL_ERR = 2,
  33. LOG_LEVEL_MAX,
  34. };
  35. /**
  36. * Termination codes
  37. */
  38. #define EXIT_ERROR ((uint32_t)(-1))
  39. /**
  40. * Trustlet UUID:
  41. * filename of output bin is {TL_UUID}.tlbin
  42. */
  43. /* #define TL_CMDQ_UUID { { 9, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } } */
  44. #define TZ_TA_CMDQ_NAME "CMDQ_TA"
  45. #define TZ_TA_CMDQ_UUID "5c071864-505d-11e4-9e35-164230d1df67"
  46. #endif /* __CMDQSECTEST_API_H__ */