blob: f0f892c81532e29dc04c3ae75ad8863adbe716de [file] [log] [blame]
Pascal Brandc639ac82015-07-02 08:53:34 +02001/*
2 * Copyright (c) 2014, STMicroelectronics International N.V.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27
Jens Wiklanderff1be9e2018-02-01 14:16:57 +010028#ifndef __TA_STORAGE_H
29#define __TA_STORAGE_H
Pascal Brandc639ac82015-07-02 08:53:34 +020030
31#define TA_STORAGE_UUID { 0xb689f2a7, 0x8adf, 0x477a, \
32 { 0x9f, 0x99, 0x32, 0xe9, 0x0c, 0x0a, 0xd0, 0xa2 } }
Jerome Forissiere3854162016-08-12 12:40:12 +020033#define TA_STORAGE2_UUID { 0x731e279e, 0xaafb, 0x4575, \
34 { 0xa7, 0x71, 0x38, 0xca, 0xa6, 0xf0, 0xcc, 0xa6 } }
Pascal Brandc639ac82015-07-02 08:53:34 +020035
Pascal Brand29ee18f2016-05-23 14:13:56 +020036#define TA_STORAGE_CMD_OPEN 0
37#define TA_STORAGE_CMD_CLOSE 1
38#define TA_STORAGE_CMD_READ 2
39#define TA_STORAGE_CMD_WRITE 3
40#define TA_STORAGE_CMD_CREATE 4
41#define TA_STORAGE_CMD_SEEK 5
42#define TA_STORAGE_CMD_UNLINK 6
43#define TA_STORAGE_CMD_RENAME 7
44#define TA_STORAGE_CMD_TRUNC 8
45#define TA_STORAGE_CMD_ALLOC_ENUM 9
46#define TA_STORAGE_CMD_FREE_ENUM 10
47#define TA_STORAGE_CMD_RESET_ENUM 11
48#define TA_STORAGE_CMD_START_ENUM 12
49#define TA_STORAGE_CMD_NEXT_ENUM 13
50#define TA_STORAGE_CMD_CREATE_OVERWRITE 14
51#define TA_STORAGE_CMD_KEY_IN_PERSISTENT 15
52#define TA_STORAGE_CMD_LOOP 16
Jens Wiklandere6d4ddd2016-09-14 15:50:48 +020053#define TA_STORAGE_CMD_RESTRICT_USAGE 17
54#define TA_STORAGE_CMD_ALLOC_OBJ 18
55#define TA_STORAGE_CMD_FREE_OBJ 19
56#define TA_STORAGE_CMD_RESET_OBJ 20
Guanchao Liang31a9cbf2016-12-20 00:35:26 +080057#define TA_STORAGE_CMD_GET_OBJ_INFO 21
Etienne Carriere294ffbd2018-04-26 14:20:35 +020058#define TA_STORAGE_CMD_OPEN_ID_IN_SHM 22
59#define TA_STORAGE_CMD_CREATE_ID_IN_SHM 23
60#define TA_STORAGE_CMD_CREATEOVER_ID_IN_SHM 24
61#define TA_STORAGE_CMD_RENAME_ID_IN_SHM 25
Pascal Brandc639ac82015-07-02 08:53:34 +020062
Jens Wiklanderff1be9e2018-02-01 14:16:57 +010063#endif /*__TA_STORAGE_H*/