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