blob: 0e9e9933a32d21da301739cc2b56289c13fd2f70 [file] [log] [blame]
Miklos Balintbf25a402018-06-14 17:43:54 +02001/*
Kevin Peng578a8492020-12-31 10:22:59 +08002 * Copyright (c) 2018-2021, Arm Limited. All rights reserved.
Miklos Balintbf25a402018-06-14 17:43:54 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
Mate Toth-Pal36f21842018-11-08 16:12:51 +01008{{utilities.donotedit_warning}}
Miklos Balintbf25a402018-06-14 17:43:54 +02009
10#ifndef __TFM_VENEERS_H__
11#define __TFM_VENEERS_H__
12
13#include "tfm_api.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
Kevin Peng578a8492020-12-31 10:22:59 +080019{% for partition in partitions %}
Kevin Peng578a8492020-12-31 10:22:59 +080020/******** {{partition.manifest.name}} ********/
21 {% for function in partition.manifest.secure_functions%}
David Hu7c2a7442021-04-01 16:34:30 +080022 {% if function.signal.lower().startswith('tfm_') %}
23 {# If signal already contains tfm_ prefix, avoid adding a duplicated one
24 in veneer function name.
25 #}
26psa_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 Aifeb0f0c2019-04-16 14:49:05 +080028psa_status_t tfm_{{function.signal.lower()}}_veneer(psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len);
David Hu7c2a7442021-04-01 16:34:30 +080029 {% endif %}
Mate Toth-Pal36f21842018-11-08 16:12:51 +010030 {% endfor %}
Miklos Balintbf25a402018-06-14 17:43:54 +020031
Mate Toth-Pal36f21842018-11-08 16:12:51 +010032{% endfor %}
Miklos Balintbf25a402018-06-14 17:43:54 +020033#ifdef __cplusplus
34}
35#endif
36
37#endif /* __TFM_VENEERS_H__ */