blob: 3f14fc7d35f9ecd0e31ed4f7c9aab89d24790605 [file] [log] [blame]
Balint Dobszay3bd6ae92020-11-23 17:57:50 +01001/*
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
11extern "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 */