| Samsung Client API reference 1.0

- Main Page
- Related Pages
- Modules
- Files

- File List
- Globals

tees_client_api.h
Go to the documentation of this file.
1
9 #ifndef __TEES_CLIENT_API_H__
10 #define __TEES_CLIENT_API_H__
11
12 #include <tee_client_api.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /* WARNING! change only with the corresponding structure in teecl/main.c */
20 typedef enum {
21 CLUSTER_BIG,
22 CLUSTER_LITTLE,
23 CLUSTER_DEFAULT,
24 CLUSTER_MAX_VALUE
25 } Cluster;
26
32 const char* get_error_name(TEEC_Result result);
33
39 const char* get_error_text(TEEC_Result result);
40
46 const char* get_return_origin(uint32_t returnOrigin);
47
65 TEEC_Result TEECS_SetCluster(TEEC_Session *session, Cluster cluster);
66
88 TEEC_Result TEECS_Boost(TEEC_Session *session);
89
111 TEEC_Result TEECS_Unboost(TEEC_Session *session);
112
114 enum {
115 DISABLE_CRYPTO_CLK,
116 ENABLE_CRYPTO_CLK
117 };
118
131 TEEC_Result TEECS_SetCryptoClk(TEEC_Context *context, uint32_t state);
132
145 TEEC_Result TEECS_GetSessionId(const TEEC_Session *session, TEEC_UUID *session_id);
146
148 typedef enum {
149 TA_DEBUG_SERVICE_DLM,
150 TA_DEBUG_SERVICE_PMR,
151 } ta_debug_service_type_t;
152
190 TEEC_Result TEECS_OpenSession(TEEC_Context *context,
191 TEEC_Session *session,
192 const TEEC_UUID *destination,
193 const void *ta_image,
194 const size_t ta_image_size,
195 uint32_t connectionMethod,
196 const void *connectionData,
197 TEEC_Operation *operation,
198 uint32_t *returnOrigin);
199
229 TEEC_Result TEECS_OpenSession1(TEEC_Context *context,
230 TEEC_Session *session,
231 const TEEC_UUID *destination,
232 const char *destination_path,
233 uint32_t connectionMethod,
234 const void *connectionData,
235 TEEC_Operation *operation,
236 uint32_t *returnOrigin);
237
273 TEEC_Result TEECS_TADebugServiceCtl(ta_debug_service_type_t type,
274 const TEEC_UUID *monitoredTA,
275 const TEEC_UUID *monitoredSession);
276
288 TEEC_Result TEECS_WaitTADeath(TEEC_Session *session);
289
290 #ifdef __cplusplus
291 }
292 #endif
293
294 #endif /* __TEES_CLIENT_API_H__ */
295
Cluster
Cluster
Definition: tees_client_api.h:20
DISABLE_CRYPTO_CLK
Definition: tees_client_api.h:115
TEECS_GetSessionId
TEEC_Result TEECS_GetSessionId(const TEEC_Session *session, TEEC_UUID *session_id)
Function gets session ID.
get_error_name
const char * get_error_name(TEEC_Result result)
The function returns string representation of TEEC_Result type.
TEECS_SetCluster
TEEC_Result TEECS_SetCluster(TEEC_Session *session, Cluster cluster)
The function sets TA (main thread and its descendants, created after call) to desired cpu cluster...
ta_debug_service_type_t
ta_debug_service_type_t
Definition: tees_client_api.h:148
TEECS_Boost
TEEC_Result TEECS_Boost(TEEC_Session *session)
The function enables performance boosting for current TA session.
TEECS_OpenSession1
TEEC_Result TEECS_OpenSession1(TEEC_Context *context, TEEC_Session *session, const TEEC_UUID *destination, const char *destination_path, uint32_t connectionMethod, const void *connectionData, TEEC_Operation *operation, uint32_t *returnOrigin)
The function opens TA which is located not exactly in /vendor/tee directory. Function behaves the sam...
ENABLE_CRYPTO_CLK
Definition: tees_client_api.h:116
TEECS_Unboost
TEEC_Result TEECS_Unboost(TEEC_Session *session)
The function disables performance boosting for current TA session.
get_error_text
const char * get_error_text(TEEC_Result result)
The function returns description of TEEC_Result type.
TEECS_OpenSession
TEEC_Result TEECS_OpenSession(TEEC_Context *context, TEEC_Session *session, const TEEC_UUID *destination, const void *ta_image, const size_t ta_image_size, uint32_t connectionMethod, const void *connectionData, TEEC_Operation *operation, uint32_t *returnOrigin)
The function opens TA which is located not exactly in /vendor/tee directory. Function behaves the sam...
get_return_origin
const char * get_return_origin(uint32_t returnOrigin)
The function description of origin type.
TEECS_WaitTADeath
TEEC_Result TEECS_WaitTADeath(TEEC_Session *session)
Wait for unexpected death of TA.
TEECS_SetCryptoClk
TEEC_Result TEECS_SetCryptoClk(TEEC_Context *context, uint32_t state)
The function switches crypto clocks ON/OFF Initially designed to reduce power consuption on Qualcomm ...
TA_DEBUG_SERVICE_DLM
Definition: tees_client_api.h:149
TEECS_TADebugServiceCtl
TEEC_Result TEECS_TADebugServiceCtl(ta_debug_service_type_t type, const TEEC_UUID *monitoredTA, const TEEC_UUID *monitoredSession)
Create a request into underlying TEE implementation to provide TEE TA Debug functionality for current...
TA_DEBUG_SERVICE_PMR
Definition: tees_client_api.h:150