sandboxtee.h 778 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2018 Linaro Limited
  4. */
  5. #ifndef __SANDBOXTEE_H
  6. #define __SANDBOXTEE_H
  7. #include <search.h>
  8. #include <tee/optee_ta_avb.h>
  9. /**
  10. * struct sandbox_tee_state - internal state of the sandbox TEE
  11. * @session: current open session
  12. * @num_shms: number of registered shared memory objects
  13. * @ta: Trusted Application of current session
  14. * @ta_avb_rollback_indexes TA avb rollback indexes storage
  15. * @ta_avb_lock_state TA avb lock state storage
  16. * @pstorage_htab named persistent values storage
  17. */
  18. struct sandbox_tee_state {
  19. u32 session;
  20. int num_shms;
  21. void *ta;
  22. u64 ta_avb_rollback_indexes[TA_AVB_MAX_ROLLBACK_LOCATIONS];
  23. u32 ta_avb_lock_state;
  24. struct hsearch_data pstorage_htab;
  25. };
  26. #endif /*__SANDBOXTEE_H*/