1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  * All rights reserved.
5  */
6 
7 #ifndef __TA_STORAGE_H
8 #define __TA_STORAGE_H
9 
10 #define TA_STORAGE_UUID { 0xb689f2a7, 0x8adf, 0x477a, \
11 	{ 0x9f, 0x99, 0x32, 0xe9, 0x0c, 0x0a, 0xd0, 0xa2 } }
12 #define TA_STORAGE2_UUID { 0x731e279e, 0xaafb, 0x4575, \
13 	{ 0xa7, 0x71, 0x38, 0xca, 0xa6, 0xf0, 0xcc, 0xa6 } }
14 
15 #define TA_STORAGE_CMD_OPEN			0
16 #define TA_STORAGE_CMD_CLOSE			1
17 #define TA_STORAGE_CMD_READ			2
18 #define TA_STORAGE_CMD_WRITE			3
19 #define TA_STORAGE_CMD_CREATE			4
20 #define TA_STORAGE_CMD_SEEK			5
21 #define TA_STORAGE_CMD_UNLINK			6
22 #define TA_STORAGE_CMD_RENAME			7
23 #define TA_STORAGE_CMD_TRUNC			8
24 #define TA_STORAGE_CMD_ALLOC_ENUM		9
25 #define TA_STORAGE_CMD_FREE_ENUM		10
26 #define TA_STORAGE_CMD_RESET_ENUM		11
27 #define TA_STORAGE_CMD_START_ENUM		12
28 #define TA_STORAGE_CMD_NEXT_ENUM		13
29 #define TA_STORAGE_CMD_CREATE_OVERWRITE		14
30 #define TA_STORAGE_CMD_KEY_IN_PERSISTENT	15
31 #define TA_STORAGE_CMD_LOOP			16
32 #define TA_STORAGE_CMD_RESTRICT_USAGE		17
33 #define TA_STORAGE_CMD_ALLOC_OBJ		18
34 #define TA_STORAGE_CMD_FREE_OBJ			19
35 #define TA_STORAGE_CMD_RESET_OBJ		20
36 #define TA_STORAGE_CMD_GET_OBJ_INFO		21
37 #define TA_STORAGE_CMD_OPEN_ID_IN_SHM		22
38 #define TA_STORAGE_CMD_CREATE_ID_IN_SHM		23
39 #define TA_STORAGE_CMD_CREATEOVER_ID_IN_SHM	24
40 #define TA_STORAGE_CMD_RENAME_ID_IN_SHM		25
41 
42 #endif /*__TA_STORAGE_H*/
43