Balint Dobszay | 3bd6ae9 | 2020-11-23 17:57:50 +0100 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef FFA_CALL_ARGS_H |
| 8 | #define FFA_CALL_ARGS_H |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /* |
| 15 | * Defines convention for use of FFA direct call arguments by |
| 16 | * the SP service framework. This header file is used by the |
| 17 | * normal world RPC caller and the RPC listener in the SP. |
| 18 | */ |
| 19 | |
| 20 | /* Common req & resp arg offests into msg_args structure */ |
| 21 | #define FFA_CALL_ARGS_OPCODE (0) |
| 22 | |
| 23 | /* Req arg offsets */ |
| 24 | #define FFA_CALL_ARGS_REQ_DATA_LEN (1) |
| 25 | |
| 26 | /* Resp arg offsets */ |
| 27 | #define FFA_CALL_ARGS_RESP_DATA_LEN (1) |
| 28 | #define FFA_CALL_ARGS_RESP_RPC_STATUS (2) |
| 29 | #define FFA_CALL_ARGS_RESP_OP_STATUS (3) |
| 30 | |
| 31 | /* Share/unshare offsets */ |
| 32 | #define FFA_CALL_ARGS_SHARE_MEM_HANDLE_LSW (1) |
| 33 | #define FFA_CALL_ARGS_SHARE_MEM_HANDLE_MSW (2) |
| 34 | #define FFA_CALL_ARGS_SHARE_MEM_SIZE (3) |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | |
| 40 | #endif /* FFA_CALL_ARGS_H */ |