My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
otz_tee_api.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Header file for global platform TEE API
25  */
26 
27 #ifndef OTZ_TEE_API_H
28 #define OTZ_TEE_API_H
29 #include <sw_common_types.h>
30 //#include <otz_tee_arith_api.h>
31 #ifndef TYPE_UINT_DEFINED
32 typedef unsigned int uint32_t;
33 typedef unsigned short uint16_t;
34 #ifndef ARM_ARCH_ARMV7
35 typedef unsigned long long uint64_t;
36 #endif
37 #ifndef _STDINT_H
38 typedef char uint8_t;
39 #endif
40 #endif
41 
42 
48 #define TEEC_SUCCESS 0x0
49 
50 #define TEEC_ERROR_GENERIC 0xFFFF0000
51 
52 #define TEEC_ERROR_ACCESS_DENIED 0xFFFF0001
53 
54 #define TEEC_ERROR_CANCEL 0xFFFF0002
55 
56 #define TEEC_ERROR_ACCESS_CONFLICT 0xFFFF0003
57 
58 #define TEEC_ERROR_EXCESS_DATA 0xFFFF0004
59 
60 #define TEEC_ERROR_BAD_FORMAT 0xFFFF0005
61 
62 #define TEEC_ERROR_BAD_PARAMETERS 0xFFFF0006
63 
64 #define TEEC_ERROR_BAD_STATE 0xFFFF0007
65 
66 #define TEEC_ERROR_ITEM_NOT_FOUND 0xFFFF0008
67 
68 #define TEEC_ERROR_NOT_IMPLEMENTED 0xFFFF0009
69 
71 #define TEEC_ERROR_NOT_SUPPORTED 0xFFFF000A
72 
73 #define TEEC_ERROR_NO_DATA 0xFFFF000B
74 
75 #define TEEC_ERROR_OUT_OF_MEMORY 0xFFFF000C
76 
77 #define TEEC_ERROR_BUSY 0xFFFF000D
78 
79 #define TEEC_ERROR_COMMUNICATION 0xFFFF000E
80 
81 #define TEEC_ERROR_SECURITY 0xFFFF000F
82 
83 #define TEEC_ERROR_SHORT_BUFFER 0xFFFF0010
84 
85 #define TEEC_ERROR_MAC_INVALID 0xFFFF3071
86 
89 
90 
91 
92 #endif
unsigned int uint32_t
Definition: otz_api.h:35
TEE_Result TEEC_Result
Definition: otz_tee_api.h:88
char uint8_t
Definition: otz_tee_api.h:38
unsigned short uint16_t
Definition: otz_tee_api.h:33
unsigned int uint32_t
Definition: otz_tee_api.h:32
unsigned long long uint64_t
Definition: otz_tee_api.h:35
uint32_t TEE_Result
Definition: otz_tee_api.h:87