Add RPC caller and endpoint for FF-A

Adds RPC caller and endpoint using FF-A messaging: using direct requests
and shared memory buffers for communication.

The endpoint is only for running in SPs. The caller is implemented in
two flavours: for Linux and for SPs. The Linux version relies on the
FF-A user space interface described in external/ffa_tool/buf_common.h

Change-Id: I3b51bcaf114d06bbf3dad2d63529fa59d8977e19
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
diff --git a/components/rpc/ffarpc/endpoint/ffarpc_call_ops.h b/components/rpc/ffarpc/endpoint/ffarpc_call_ops.h
new file mode 100644
index 0000000..3f14fc7
--- /dev/null
+++ b/components/rpc/ffarpc/endpoint/ffarpc_call_ops.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef FFA_CALL_OPS_H
+#define FFA_CALL_OPS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Common opcodes used by the FFA based RPC layer for management operations */
+#define FFA_CALL_OPCODE_BASE		(0x10)
+#define FFA_CALL_OPCODE_SHARE_BUF	(FFA_CALL_OPCODE_BASE + 0)
+#define FFA_CALL_OPCODE_UNSHARE_BUF	(FFA_CALL_OPCODE_BASE + 1)
+#define FFA_CALL_OPCODE_LIMIT		(FFA_CALL_OPCODE_BASE + 2)
+
+#define FFA_CALL_OPCODE_IS_MGMT(opcode) \
+	((opcode >= FFA_CALL_OPCODE_BASE) && (opcode < FFA_CALL_OPCODE_LIMIT))
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* FFA_CALL_OPS_H */