2 * Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #ifndef __OTE_TYPES_H__
20 #define __OTE_TYPES_H__
27 OTE_SUCCESS = 0x00000000,
28 OTE_ERROR_NO_ERROR = OTE_SUCCESS,
29 /* Non-specific cause */
30 OTE_ERROR_GENERIC = 0xFFFF0000,
31 /* Access priviledge not sufficient */
32 OTE_ERROR_ACCESS_DENIED = 0xFFFF0001,
33 /* The operation was cancelled */
34 OTE_ERROR_CANCEL = 0xFFFF0002,
35 /* Concurrent accesses conflict */
36 OTE_ERROR_ACCESS_CONFLICT = 0xFFFF0003,
37 /* Too much data for req was passed */
38 OTE_ERROR_EXCESS_DATA = 0xFFFF0004,
39 /* Input data was of invalid format */
40 OTE_ERROR_BAD_FORMAT = 0xFFFF0005,
41 /* Input parameters were invalid */
42 OTE_ERROR_BAD_PARAMETERS = 0xFFFF0006,
43 /* Oper invalid in current state */
44 OTE_ERROR_BAD_STATE = 0xFFFF0007,
45 /* The req data item not found */
46 OTE_ERROR_ITEM_NOT_FOUND = 0xFFFF0008,
47 /* The req oper not implemented */
48 OTE_ERROR_NOT_IMPLEMENTED = 0xFFFF0009,
49 /* The req oper not supported */
50 OTE_ERROR_NOT_SUPPORTED = 0xFFFF000A,
51 /* Expected data was missing */
52 OTE_ERROR_NO_DATA = 0xFFFF000B,
53 /* System ran out of resources */
54 OTE_ERROR_OUT_OF_MEMORY = 0xFFFF000C,
55 /* The system is busy */
56 OTE_ERROR_BUSY = 0xFFFF000D,
57 /* Communication failed */
58 OTE_ERROR_COMMUNICATION = 0xFFFF000E,
59 /* A security fault was detected */
60 OTE_ERROR_SECURITY = 0xFFFF000F,
61 /* The supplied buffer is too short */
62 OTE_ERROR_SHORT_BUFFER = 0xFFFF0010,
69 /* Originated from OTE Client API */
70 OTE_RESULT_ORIGIN_API = 1,
71 /* Originated from Underlying Communication Stack */
72 OTE_RESULT_ORIGIN_COMMS = 2,
73 /* Originated from Common OTE Code */
74 OTE_RESULT_ORIGIN_KERNEL = 3,
75 /* Originated from Trusted APP Code */
76 OTE_RESULT_ORIGIN_TRUSTED_APP = 4,