40 #ifndef __OTE_COMMAND_H
41 #define __OTE_COMMAND_H
148 const void *base, uint32_t len);
159 void *base, uint32_t len);
170 const void *base, uint32_t len);
181 void *base, uint32_t len);
243 void **base, uint32_t *len);
258 const void **base, uint32_t *len);
273 void **base, uint32_t *len);
289 uint32_t index,
const void **base, uint32_t *len);
305 uint32_t index,
void **base, uint32_t *len);
void te_oper_set_param_mem_ro(te_operation_t *te_op, uint32_t index, const void *base, uint32_t len)
Adds a read-only buffer parameter to the operation object.
te_error_t te_launch_operation(te_session_t *session, te_operation_t *te_op)
Sends an existing TLK operation object.
Holds operation object information that is to be delivered to the TLK Secure Service.
void te_oper_set_param_int_rw(te_operation_t *te_op, uint32_t index, uint32_t Int)
Adds a read-write integer parameter to a TLK operation object.
void te_close_session(te_session_t *session)
Closes an existing open session to a TLK secure service.
void te_oper_set_param_persist_mem_rw(te_operation_t *te_op, uint32_t index, void *base, uint32_t len)
Adds a persistent read-write buffer parameter to the operation object.
uint32_t te_oper_get_command(te_operation_t *te_op)
Gets a TLK command from an operation object.
te_error_t te_oper_get_param_type(te_operation_t *te_op, uint32_t index, te_oper_param_type_t *type)
Gets the parameter type of a parameter.
te_error_t te_oper_get_param_mem_rw(te_operation_t *te_op, uint32_t index, void **base, uint32_t *len)
Get a mem parameter.
te_error_t te_oper_get_param_mem_ro(te_operation_t *te_op, uint32_t index, const void **base, uint32_t *len)
Get a mem parameter.
NVIDIA Trusted Little Kernel Interface: Common Declarations
te_oper_param_type_t
Specifies the operation object's parameter types.
NVIDIA Trusted Little Kernel Interface: Error Handling
void te_oper_set_param_mem_rw(te_operation_t *te_op, uint32_t index, void *base, uint32_t len)
Adds a read-write buffer parameter to the operation object.
void te_deinit_operation(te_operation_t *teOp)
Deinitializes an existing TLK operation object.
void te_oper_set_param_persist_mem_ro(te_operation_t *te_op, uint32_t index, const void *base, uint32_t len)
Adds a persistent read-only buffer parameter to the operation object.
Defines a unique 16-byte ID for each TLK service.
Holds session information.
te_error_t te_oper_get_param_mem(te_operation_t *te_op, uint32_t index, void **base, uint32_t *len)
Gets a memory buffer parameter from a given TLK operation object.
void te_oper_set_param_int_ro(te_operation_t *te_op, uint32_t index, uint32_t Int)
Adds a read-only integer parameter to a TLK operation object.
te_error_t te_open_session(te_session_t *session, te_service_id_t *service, te_operation_t *operation)
Opens a session to a TLK secure service.
void te_oper_set_command(te_operation_t *te_op, uint32_t command)
Sets a command to a TLK secure service operation object.
te_error_t
Defines Open Trusted Environment (OTE) error codes.
te_error_t te_oper_get_param_persist_mem_rw(te_operation_t *te_op, uint32_t index, void **base, uint32_t *len)
Get a mem parameter.
te_error_t te_oper_get_param_int(te_operation_t *te_op, uint32_t index, uint32_t *Int)
Gets an integer parameter from a given TLK operation object.
te_error_t te_oper_get_param_persist_mem_ro(te_operation_t *te_op, uint32_t index, const void **base, uint32_t *len)
Get a mem parameter.
void te_operation_reset(te_operation_t *te_op)
Resets the data in an operation object.
void te_init_operation(te_operation_t *te_op)
Initializes a TLK operation object.
te_operation_t * te_create_operation(void)
Dynamically creates a new TLK secure service operation object.
uint32_t te_oper_get_num_params(te_operation_t *te_op)
Gets the number of parameters from an operation object.