import exynos 7570 bsp
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos7580.git] / mobicore / tlcm / TlCm / tlCmError.h
CommitLineData
cd9434cc
T
1/*
2 * Copyright (c) 2013 TRUSTONIC LIMITED
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
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * 3. Neither the name of the TRUSTONIC LIMITED nor the names of its
16 * contributors may be used to endorse or promote products derived from
17 * this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31/** @addtogroup CMP_COMMON
32 * @{
33 *
34 * @file
35 * Content management trustlet (TlCm) error return code definitions.
36 * Definition of all possible TlCm error return codes.
37 */
38
39#ifndef TL_CM_ERROR_H_
40#define TL_CM_ERROR_H_
41
42/** No error. */
43#define SUCCESSFUL 0x00000000
44
45/** Error unknown command. */
46#define RET_ERR_EXT_UNKNOWN_COMMAND 0xE0000000
47/** Error security status not satified. */
48#define RET_ERR_EXT_SECURITY_STATUS_NOT_SATISFIED 0xE0000010
49/** Error secure messaging failed. */
50#define RET_ERR_EXT_SECURE_MESSAGING_FAILED 0xE0000020
51/** Error incorrect parameters. */
52#define RET_ERR_EXT_INCORRECT_PARAMETERS 0xE0000030
53/** Error referenced data invalid. */
54#define RET_ERR_EXT_REFERENCED_DATA_INVALID 0xE0000040
55/** Error referenced data not found. */
56#define RET_ERR_EXT_REFERENCED_DATA_NOT_FOUND 0xE0000050
57/** Error method blocked. */
58#define RET_ERR_EXT_METHOD_BLOCKED 0xE0000060
59/** Error conditions of use not satified. */
60#define RET_ERR_EXT_CONDITIONS_OF_USE_NOT_SATISFIED 0xE0000070
61/** Error container already registred error. */
62#define RET_ERR_EXT_ALREADY_REGISTERED 0xE0000090
63/** Error container already activated. */
64#define RET_ERR_EXT_ALREADY_ACTIVATED 0xE00000A0
65/** Error container not registred. */
66#define RET_ERR_EXT_NOT_REGISTERED 0xE00000B0
67/** Error container not activated. */
68#define RET_ERR_EXT_NOT_ACTIVATED 0xE00000C0
69/** Error container full. */
70#define RET_ERR_EXT_CONTAINER_FULL 0xE00000D0
71/** Error container not locked. */
72#define RET_ERR_EXT_NOT_LOCKED 0xE00000E0
73/** Error container locked. */
74#define RET_ERR_EXT_LOCKED 0xE00000F0
75/** Error container already locked. */
76#define RET_ERR_EXT_ALREADY_LOCKED 0xE0000100
77
78/** Internal error. */
79#define RET_ERR_EXT_INTERNAL_ERROR 0xE0001000
80/** Mapped allocation size error. */
81#define RET_ERR_EXT_SIZE 0xE0002000
82
83/** Unspecified error. */
84#define RET_ERR_EXT_UNSPECIFIED 0xEEEEEEEE
85
86#endif // TL_CM_ERROR_H_
87
88/** @} */