1/*
2 * Copyright (c) 2019-2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8/***********{{utilities.donotedit_warning}}***********/
9
10#ifndef __PSA_MANIFEST_{{manifest_out_basename.upper()}}_H__
11#define __PSA_MANIFEST_{{manifest_out_basename.upper()}}_H__
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17{% if manifest.model == "SFN" %}
18#define {{"%-55s"|format(manifest.name + "_MODEL_IPC")}} 0
19#define {{"%-55s"|format(manifest.name + "_MODEL_SFN")}} 1
20{% else %}
21#define {{"%-55s"|format(manifest.name + "_MODEL_IPC")}} 1
22#define {{"%-55s"|format(manifest.name + "_MODEL_SFN")}} 0
23{% endif %}
24
25{% if manifest.services %}
26    {% for service in manifest.services %}
27        {% if manifest.model == "SFN" %}
28psa_status_t {{service.name|lower}}_sfn(const psa_msg_t* msg);
29        {% else %}
30#define {{"%-55s"|format(service.name + "_SIGNAL")}} ({{"0x%x"|format(service.signal_value)}})
31        {% endif %}
32    {% endfor %}
33{% endif %}
34
35{% if manifest.irqs %}
36    {% for irq in manifest.irqs %}
37        {% if manifest.psa_framework_version == 1.0 %}
38#define {{"%-55s"|format(irq.signal)}} ({{"0x%x"|format(irq.signal_value)}})
39        {% else %}
40#define {{"%-55s"|format(irq.name + "_SIGNAL")}} ({{"0x%x"|format(irq.signal_value)}})
41            {% if irq.handling == "FLIH" %}
42psa_flih_result_t {{irq.name|lower}}_flih(void);
43            {% endif %}
44        {% endif %}
45    {% endfor %}
46{% endif %}
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* __PSA_MANIFEST_{{manifest_out_basename.upper()}}_H__ */
53