blob: 7f784299599b09c58c470ed989b3582e58fa13a4 [file] [log] [blame]
Julian Hall6c59e4e2020-11-23 17:50:47 +01001/*
2 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef PROTOCOLS_RPC_COMMON_STATUS_H
8#define PROTOCOLS_RPC_COMMON_STATUS_H
9
10/* Common RPC status codes for C/C++
11 *
12 * Alignment of these definitions with other defintions for
13 * alternative languages is checked through a set of test cases.
14 * These status values are aligned to PSA definitions.
15 */
16#define TS_RPC_CALL_ACCEPTED (0)
17#define TS_RPC_ERROR_EP_DOES_NOT_EXIT (-1)
18#define TS_RPC_ERROR_INVALID_OPCODE (-2)
19#define TS_RPC_ERROR_SERIALIZATION_NOT_SUPPORTED (-3)
20#define TS_RPC_ERROR_INVALID_REQ_BODY (-4)
21#define TS_RPC_ERROR_INVALID_RESP_BODY (-5)
22#define TS_RPC_ERROR_RESOURCE_FAILURE (-6)
23#define TS_RPC_ERROR_NOT_READY (-7)
24#define TS_RPC_ERROR_INVALID_TRANSACTION (-8)
25#define TS_RPC_ERROR_INTERNAL (-9)
26#define TS_RPC_ERROR_INVALID_PARAMETER (-10)
27
28#endif /* PROTOCOLS_RPC_COMMON_STATUS_H */