blob: 16247470340c1e141f464967939288598a2427ed [file] [log] [blame]
Miklos Balintbf25a402018-06-14 17:43:54 +02001/*
2 * Copyright (c) 2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8@!GENERATOR_DONOTEDIT_WARNING!@
9
10#include "tfm_secure_api.h"
11#include "tfm_api.h"
12#include "secure_fw/spm/spm_partition_defs.h"
13
14@!GENERATOR_BLOCK_START!@
15@!GENERATOR_CONDITIONAL_START!@ @@attr.conditional@@
16#ifdef @@attr.conditional@@
17@!GENERATOR_CONDITIONAL_END!@
18/******** @@manifest.tfm_partition_name@@ ********/
19int32_t @@manifest.secure_functions.tfm_symbol@@(struct psa_invec *, size_t, struct psa_outvec *, size_t);
20@!GENERATOR_CONDITIONAL_START!@ @@attr.conditional@@
21#endif /* @@attr.conditional@@ */
22@!GENERATOR_CONDITIONAL_END!@
23
24@!GENERATOR_BLOCK_END!@
25
26#define TFM_VENEER_FUNCTION(partition_name, sfn_name) \
27 __tfm_secure_gateway_attributes__ \
28 int32_t tfm_##sfn_name##_veneer(struct psa_invec *in_vec, \
29 size_t in_len, \
30 struct psa_outvec *out_vec, \
31 size_t out_len) \
32 { \
33 TFM_CORE_SFN_REQUEST(partition_name##_ID, \
34 sfn_name, \
35 in_vec, in_len, out_vec, out_len); \
36 }
37
38@!GENERATOR_BLOCK_START!@
39@!GENERATOR_CONDITIONAL_START!@ @@attr.conditional@@
40#ifdef @@attr.conditional@@
41@!GENERATOR_CONDITIONAL_END!@
42/******** @@manifest.tfm_partition_name@@ ********/
43TFM_VENEER_FUNCTION(@@manifest.tfm_partition_name@@, @@manifest.secure_functions.tfm_symbol@@)
44@!GENERATOR_CONDITIONAL_START!@ @@attr.conditional@@
45#endif /* @@attr.conditional@@ */
46@!GENERATOR_CONDITIONAL_END!@
47
48@!GENERATOR_BLOCK_END!@