NVIDIA DRIVE OS Linux SDK API Reference

5.2.6 Release
For Test and Development only
tee_client_functions.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010 GlobalPlatform Inc. All Rights Reserved.
3  * The technology provided or described herein is subject to updates, revisions,
4  * and extensions by GlobalPlatform. Use of this information is governed by the
5  * GlobalPlatform license agreement and any use inconsistent with that agreement
6  * is strictly prohibited
7  *
8  * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
9  */
10 
24 #ifndef TEE_CLIENT_FUNCTIONS_H
25 #define TEE_CLIENT_FUNCTIONS_H
26 
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30 
56 TEEC_Result TEEC_InitializeContext(const char* name, TEEC_Context* context);
57 
82 void TEEC_FinalizeContext(TEEC_Context* context);
83 
135  TEEC_Session* session,
136  const TEEC_UUID* destination,
137  uint32_t connectionMethod,
138  const void* connectionData,
139  TEEC_Operation* operation,
140  uint32_t* returnOrigin);
141 
165 void TEEC_CloseSession(TEEC_Session* session);
166 
200  uint32_t commandID,
201  TEEC_Operation* operation,
202  uint32_t* returnOrigin);
203 
207 #define TEEC_PARAM_TYPES(t0,t1,t2,t3) \
208  (((uint32_t)t0) | (((uint32_t)t1) << 4U) | (((uint32_t)t2) << 8U) | (((uint32_t)t3) << 12U))
209 
213 #define TEEC_PARAM_TYPE_GET(t, i) (((t) >> (i*4)) & 0xF)
214 
216 #if defined(__cplusplus)
217 }
218 #endif
219 
220 #endif /* TEE_CLIENT_FUNCTIONS_H */
TEEC_Context
This type denotes a TEE Context, the main logical container linking a Client Application with a parti...
Definition: tee_client_datatypes.h:73
TEEC_CloseSession
void TEEC_CloseSession(TEEC_Session *session)
closes a Session which has been opened with a Trusted Application
TEEC_Operation
This type defines the payload of either an open Session operation or an invoke Command operation.
Definition: tee_client_datatypes.h:145
TEEC_InitializeContext
TEEC_Result TEEC_InitializeContext(const char *name, TEEC_Context *context)
Initilize TEEC context This is Dummy function.
TEEC_FinalizeContext
void TEEC_FinalizeContext(TEEC_Context *context)
Finalize TEEC context This is Dummy function.
TEEC_OpenSession
TEEC_Result TEEC_OpenSession(TEEC_Context *context, TEEC_Session *session, const TEEC_UUID *destination, uint32_t connectionMethod, const void *connectionData, TEEC_Operation *operation, uint32_t *returnOrigin)
This function opens a new Session between the Client Application and the specified Trusted Applicatio...
TEEC_InvokeCommand
TEEC_Result TEEC_InvokeCommand(TEEC_Session *session, uint32_t commandID, TEEC_Operation *operation, uint32_t *returnOrigin)
invokes a Command within the specified Session
TEEC_Result
uint32_t TEEC_Result
This type is used to contain return codes which are the results of invoking TEE Client API functions.
Definition: tee_client_datatypes.h:44
TEEC_UUID
This type contains a Universally Unique Resource Identifier (UUID) type as defined in RFC4122.
Definition: tee_client_datatypes.h:53
TEEC_Session
This type denotes a TEE Session, the logical container linking a Client Application with a particular...
Definition: tee_client_datatypes.h:84