1 /* 2 * Copyright (c) 2020-2021, 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 enum 17 { 18 TS_RPC_CALL_ACCEPTED = 0, 19 TS_RPC_ERROR_EP_DOES_NOT_EXIT = -1, 20 TS_RPC_ERROR_INVALID_OPCODE = -2, 21 TS_RPC_ERROR_SERIALIZATION_NOT_SUPPORTED = -3, 22 TS_RPC_ERROR_INVALID_REQ_BODY = -4, 23 TS_RPC_ERROR_INVALID_RESP_BODY = -5, 24 TS_RPC_ERROR_RESOURCE_FAILURE = -6, 25 TS_RPC_ERROR_NOT_READY = -7, 26 TS_RPC_ERROR_INVALID_TRANSACTION = -8, 27 TS_RPC_ERROR_INTERNAL = -9, 28 TS_RPC_ERROR_INVALID_PARAMETER = -10, 29 TS_RPC_ERROR_INTERFACE_DOES_NOT_EXIST = -11, 30 TS_RPC_ERROR_ACCESS_DENIED = -12 31 }; 32 33 #endif /* PROTOCOLS_RPC_COMMON_STATUS_H */ 34