5 #ifndef KERNEL_PSEUDO_TA_H 6 #define KERNEL_PSEUDO_TA_H 10 #include <tee_ta_manager.h> 11 #include <tee_api_types.h> 12 #include <user_ta_header.h> 15 #define PTA_MANDATORY_FLAGS (TA_FLAG_SINGLE_INSTANCE | \ 16 TA_FLAG_MULTI_SESSION | \ 17 TA_FLAG_INSTANCE_KEEP_ALIVE) 23 #define PTA_DEFAULT_FLAGS PTA_MANDATORY_FLAGS 30 TEE_Result (*create_entry_point)(void);
31 void (*destroy_entry_point)(void);
32 TEE_Result (*open_session_entry_point)(uint32_t nParamTypes,
34 void **ppSessionContext);
35 void (*close_session_entry_point)(
void *pSessionContext);
36 TEE_Result (*invoke_command_entry_point)(
void *pSessionContext,
37 uint32_t nCommandID, uint32_t nParamTypes,
41 #define pseudo_ta_register(...) static const struct pseudo_ta_head __head \ 42 __used __section("ta_head_section") = { __VA_ARGS__ } 50 static inline bool is_pseudo_ta_ctx(
struct tee_ta_ctx *ctx)
52 return !(ctx->flags & TA_FLAG_USER_MODE);
55 #define container_of(ptr, type, member) \ 57 const typeof(((type *)0)->member) *__ptr = (ptr); \ 58 (type *)((unsigned long)(__ptr) - offsetof(type, member)); \ 67 TEE_Result tee_ta_init_pseudo_ta_session(
const TEE_UUID *uuid,
Definition: tee_api_types.h:72
Definition: pseudo_ta.h:25
Definition: pseudo_ta.h:45
Definition: tee_ta_manager.h:117
Definition: tee_api_types.h:45
Definition: tee_ta_manager.h:105