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_OPS_H |
| 8 | #define FFA_CALL_OPS_H |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | /* Common opcodes used by the FFA based RPC layer for management operations */ |
| 15 | #define FFA_CALL_OPCODE_BASE (0x10) |
| 16 | #define FFA_CALL_OPCODE_SHARE_BUF (FFA_CALL_OPCODE_BASE + 0) |
| 17 | #define FFA_CALL_OPCODE_UNSHARE_BUF (FFA_CALL_OPCODE_BASE + 1) |
| 18 | #define FFA_CALL_OPCODE_LIMIT (FFA_CALL_OPCODE_BASE + 2) |
| 19 | |
| 20 | #define FFA_CALL_OPCODE_IS_MGMT(opcode) \ |
| 21 | ((opcode >= FFA_CALL_OPCODE_BASE) && (opcode < FFA_CALL_OPCODE_LIMIT)) |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | } |
| 25 | #endif |
| 26 | |
| 27 | #endif /* FFA_CALL_OPS_H */ |