1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright (c) 2018-2020, Linaro Limited 4 */ 5 6 #include <compiler.h> 7 #include <tee_internal_api.h> 8 9 TEE_Result TA_CreateEntryPoint(void) 10 { 11 return TEE_SUCCESS; 12 } 13 14 void TA_DestroyEntryPoint(void) 15 { 16 } 17 18 TEE_Result TA_OpenSessionEntryPoint(uint32_t __unused param_types, 19 TEE_Param __unused params[4], 20 void **session) 21 { 22 *session = NULL; 23 24 return TEE_SUCCESS; 25 } 26 27 void TA_CloseSessionEntryPoint(void *session __unused) 28 { 29 } 30 31 /* 32 * Entry point for PKCS11 TA commands 33 */ 34 TEE_Result TA_InvokeCommandEntryPoint(void *tee_session __unused, uint32_t cmd, 35 uint32_t ptypes __unused, 36 TEE_Param params[TEE_NUM_PARAMS] __unused) 37 { 38 EMSG("Command 0x%"PRIx32" is not supported", cmd); 39 40 return TEE_ERROR_NOT_SUPPORTED; 41 } 42