Miklos Balint | bf25a40 | 2018-06-14 17:43:54 +0200 | [diff] [blame] | 1 | /* |
Kevin Peng | 578a849 | 2020-12-31 10:22:59 +0800 | [diff] [blame] | 2 | * Copyright (c) 2018-2021, Arm Limited. All rights reserved. |
Miklos Balint | bf25a40 | 2018-06-14 17:43:54 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 8 | {{utilities.donotedit_warning}} |
Miklos Balint | bf25a40 | 2018-06-14 17:43:54 +0200 | [diff] [blame] | 9 | |
| 10 | #ifndef __TFM_VENEERS_H__ |
| 11 | #define __TFM_VENEERS_H__ |
| 12 | |
| 13 | #include "tfm_api.h" |
| 14 | |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
Kevin Peng | 578a849 | 2020-12-31 10:22:59 +0800 | [diff] [blame] | 19 | {% for partition in partitions %} |
Kevin Peng | 578a849 | 2020-12-31 10:22:59 +0800 | [diff] [blame] | 20 | /******** {{partition.manifest.name}} ********/ |
| 21 | {% for function in partition.manifest.secure_functions%} |
David Hu | 7c2a744 | 2021-04-01 16:34:30 +0800 | [diff] [blame] | 22 | {% if function.signal.lower().startswith('tfm_') %} |
| 23 | {# If signal already contains tfm_ prefix, avoid adding a duplicated one |
| 24 | in veneer function name. |
| 25 | #} |
| 26 | psa_status_t {{function.signal.lower()}}_veneer(psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len); |
| 27 | {% else %} |
Edison Ai | feb0f0c | 2019-04-16 14:49:05 +0800 | [diff] [blame] | 28 | psa_status_t tfm_{{function.signal.lower()}}_veneer(psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len); |
David Hu | 7c2a744 | 2021-04-01 16:34:30 +0800 | [diff] [blame] | 29 | {% endif %} |
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 30 | {% endfor %} |
Miklos Balint | bf25a40 | 2018-06-14 17:43:54 +0200 | [diff] [blame] | 31 | |
Mate Toth-Pal | 36f2184 | 2018-11-08 16:12:51 +0100 | [diff] [blame] | 32 | {% endfor %} |
Miklos Balint | bf25a40 | 2018-06-14 17:43:54 +0200 | [diff] [blame] | 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |
| 36 | |
| 37 | #endif /* __TFM_VENEERS_H__ */ |