Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 1 | /* |
| 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 Wiklander | ff1be9e | 2018-02-01 14:16:57 +0100 | [diff] [blame] | 28 | #ifndef __TA_STORAGE_H |
| 29 | #define __TA_STORAGE_H |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 30 | |
| 31 | #define TA_STORAGE_UUID { 0xb689f2a7, 0x8adf, 0x477a, \ |
| 32 | { 0x9f, 0x99, 0x32, 0xe9, 0x0c, 0x0a, 0xd0, 0xa2 } } |
Jerome Forissier | e385416 | 2016-08-12 12:40:12 +0200 | [diff] [blame] | 33 | #define TA_STORAGE2_UUID { 0x731e279e, 0xaafb, 0x4575, \ |
| 34 | { 0xa7, 0x71, 0x38, 0xca, 0xa6, 0xf0, 0xcc, 0xa6 } } |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 35 | |
Pascal Brand | 29ee18f | 2016-05-23 14:13:56 +0200 | [diff] [blame] | 36 | #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 Wiklander | e6d4ddd | 2016-09-14 15:50:48 +0200 | [diff] [blame] | 53 | #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 Liang | 31a9cbf | 2016-12-20 00:35:26 +0800 | [diff] [blame] | 57 | #define TA_STORAGE_CMD_GET_OBJ_INFO 21 |
Etienne Carriere | 294ffbd | 2018-04-26 14:20:35 +0200 | [diff] [blame^] | 58 | #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 Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 62 | |
Jens Wiklander | ff1be9e | 2018-02-01 14:16:57 +0100 | [diff] [blame] | 63 | #endif /*__TA_STORAGE_H*/ |