1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  * All rights reserved.
5  */
6 
7 #ifndef STORAGE_H
8 #define STORAGE_H
9 
10 #include <tee_api.h>
11 
12 TEE_Result ta_storage_cmd_open(uint32_t command, uint32_t param_types,
13 						 TEE_Param params[4]);
14 TEE_Result ta_storage_cmd_create(uint32_t command, uint32_t param_types,
15 						   TEE_Param params[4]);
16 TEE_Result ta_storage_cmd_create_overwrite(uint32_t command,
17 					   uint32_t param_types,
18 					   TEE_Param params[4]);
19 TEE_Result ta_storage_cmd_close(uint32_t param_types, TEE_Param params[4]);
20 TEE_Result ta_storage_cmd_read(uint32_t param_types, TEE_Param params[4]);
21 TEE_Result ta_storage_cmd_write(uint32_t param_types, TEE_Param params[4]);
22 TEE_Result ta_storage_cmd_seek(uint32_t param_types, TEE_Param params[4]);
23 TEE_Result ta_storage_cmd_unlink(uint32_t param_types, TEE_Param params[4]);
24 TEE_Result ta_storage_cmd_rename(uint32_t command, uint32_t param_types,
25 						   TEE_Param params[4]);
26 TEE_Result ta_storage_cmd_trunc(uint32_t param_types, TEE_Param params[4]);
27 TEE_Result ta_storage_cmd_alloc_enum(uint32_t param_types, TEE_Param params[4]);
28 TEE_Result ta_storage_cmd_free_enum(uint32_t param_types, TEE_Param params[4]);
29 TEE_Result ta_storage_cmd_reset_enum(uint32_t param_types, TEE_Param params[4]);
30 TEE_Result ta_storage_cmd_start_enum(uint32_t param_types, TEE_Param params[4]);
31 TEE_Result ta_storage_cmd_next_enum(uint32_t param_types, TEE_Param params[4]);
32 TEE_Result ta_storage_cmd_key_in_persistent(uint32_t param_types,
33 					    TEE_Param params[4]);
34 TEE_Result ta_storage_cmd_loop(uint32_t param_types, TEE_Param params[4]);
35 TEE_Result ta_storage_cmd_restrict_usage(uint32_t param_types,
36 					 TEE_Param params[4]);
37 TEE_Result ta_storage_cmd_alloc_obj(uint32_t param_types, TEE_Param params[4]);
38 TEE_Result ta_storage_cmd_free_obj(uint32_t param_types, TEE_Param params[4]);
39 TEE_Result ta_storage_cmd_reset_obj(uint32_t param_types, TEE_Param params[4]);
40 TEE_Result ta_storage_cmd_get_obj_info(uint32_t param_types,
41 					    TEE_Param params[4]);
42 
43 #endif /*STORAGE_H */
44