aboutsummaryrefslogtreecommitdiff
path: root/interface/include
diff options
context:
space:
mode:
authorJamie Fox <jamie.fox@arm.com>2021-08-12 22:40:16 +0100
committerDavid Hu <david.hu@arm.com>2022-07-12 04:27:46 +0200
commit94a9a2c00308bae57bd7ce8f257d681b9dce51f3 (patch)
tree18bd69051838308e555fd73b7201c3e4a1d3175f /interface/include
parent8ed3af7eb98150ae391394e0ab1258ccf7f17b23 (diff)
downloadtrusted-firmware-m-94a9a2c00308bae57bd7ce8f257d681b9dce51f3.tar.gz
RSS: Add RSS comms driver
Adds RSS communication driver for arm/rss platform. The RSS comms driver functions as the protocol layer in the inter-core communication and uses MHUs as the transfer layer. Change-Id: I52333b97e3b7a0ec5a5b011936af5492b9edda47 Signed-off-by: Jamie Fox <jamie.fox@arm.com> Signed-off-by: David Vincze <david.vincze@arm.com>
Diffstat (limited to 'interface/include')
-rw-r--r--interface/include/tfm_psa_call_pack.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/interface/include/tfm_psa_call_pack.h b/interface/include/tfm_psa_call_pack.h
index 3b14fbcfb2..2d4a370747 100644
--- a/interface/include/tfm_psa_call_pack.h
+++ b/interface/include/tfm_psa_call_pack.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -27,6 +27,15 @@ extern "C" {
((((uint32_t)in_len) << IN_LEN_OFFSET) & IN_LEN_MASK) | \
((((uint32_t)out_len) << OUT_LEN_OFFSET) & OUT_LEN_MASK))
+#define PARAM_UNPACK_TYPE(ctrl_param) \
+ ((int32_t)(((ctrl_param) & TYPE_MASK) >> TYPE_OFFSET))
+
+#define PARAM_UNPACK_IN_LEN(ctrl_param) \
+ ((size_t)(((ctrl_param) & IN_LEN_MASK) >> IN_LEN_OFFSET))
+
+#define PARAM_UNPACK_OUT_LEN(ctrl_param) \
+ ((size_t)(((ctrl_param) & OUT_LEN_MASK) >> OUT_LEN_OFFSET))
+
psa_status_t tfm_psa_call_pack(psa_handle_t handle,
uint32_t ctrl_param,
const psa_invec *in_vec,