trusty-log.h 518 B

12345678910111213141516171819202122
  1. #ifndef _TRUSTY_LOG_H_
  2. #define _TRUSTY_LOG_H_
  3. /*
  4. * Ring buffer that supports one secure producer thread and one
  5. * linux side consumer thread.
  6. */
  7. struct log_rb {
  8. volatile uint32_t alloc;
  9. volatile uint32_t put;
  10. uint32_t sz;
  11. volatile char data[0];
  12. } __packed;
  13. #define SMC_SC_SHARED_LOG_VERSION SMC_STDCALL_NR(SMC_ENTITY_LOGGING, 0)
  14. #define SMC_SC_SHARED_LOG_ADD SMC_STDCALL_NR(SMC_ENTITY_LOGGING, 1)
  15. #define SMC_SC_SHARED_LOG_RM SMC_STDCALL_NR(SMC_ENTITY_LOGGING, 2)
  16. #define TRUSTY_LOG_API_VERSION 1
  17. #endif