blob: 5bbacd2c7d9fab8cff8463feb3cf85992ef8e2f7 [file] [log] [blame]
Edison Ai5bf0bfc2019-06-10 13:42:43 +08001/*
Kevin Peng578a8492020-12-31 10:22:59 +08002 * Copyright (c) 2019-2021, Arm Limited. All rights reserved.
Edison Ai5bf0bfc2019-06-10 13:42:43 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8{{utilities.donotedit_warning}}
9
10#ifndef __PSA_MANIFEST_SID_H__
11#define __PSA_MANIFEST_SID_H__
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
Kevin Peng578a8492020-12-31 10:22:59 +080017{% for partition in partitions %}
18 {% if partition.attr.tfm_partition_ipc %}
19/******** {{partition.manifest.name}} ********/
20 {% if partition.manifest.services %}
21 {% for service in partition.manifest.services %}
Edison Ai5bf0bfc2019-06-10 13:42:43 +080022 {% set str = service.name + "_SID" %}
23#define {{"%-58s"|format(str)}} ({{"%10s"|format(service.sid)}}U)
24 {% set str = service.name + "_VERSION" %}
Jaykumar Pitambarbhai Pateldae9f932019-10-08 17:45:22 +053025 {% if service.version %}
Jaykumar Pitambarbhai Patel3a986022019-10-08 17:37:15 +053026#define {{"%-58s"|format(str)}} ({{"%d"|format(service.version)}}U)
Jaykumar Pitambarbhai Pateldae9f932019-10-08 17:45:22 +053027 {% else %}
28#define {{"%-58s"|format(str)}} (1U)
29 {% endif %}
Edison Ai5bf0bfc2019-06-10 13:42:43 +080030 {% endfor %}
31 {% endif %}
Edison Ai5bf0bfc2019-06-10 13:42:43 +080032
33 {% endif %}
34{% endfor %}
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* __PSA_MANIFEST_SID_H__ */