blob: 223ab78fe14efbcacc7d651963a7a8d9a3fbc560 [file] [log] [blame]
Edison Ai387663f2019-10-11 17:55:37 +08001/*
Kevin Peng578a8492020-12-31 10:22:59 +08002 * Copyright (c) 2019-2021, Arm Limited. All rights reserved.
Edison Ai387663f2019-10-11 17:55:37 +08003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8{{utilities.donotedit_warning}}
9
10#ifndef __PSA_MANIFEST_PID_H__
11#define __PSA_MANIFEST_PID_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.pid - 256 < 0 %}
19#error "Partition ID for '{{partition.manifest.name}}' have to be at least TFM_SP_BASE"
Edison Ai387663f2019-10-11 17:55:37 +080020 {% else %}
Kevin Peng578a8492020-12-31 10:22:59 +080021#define {{"%-62s"|format(partition.manifest.name)}} ({{partition.attr.pid}})
Edison Ai387663f2019-10-11 17:55:37 +080022 {% endif %}
23{% endfor %}
24
Kevin Peng578a8492020-12-31 10:22:59 +080025#define {{"%-62s"|format("TFM_MAX_USER_PARTITIONS")}} ({{partitions | length()}})
Edison Ai387663f2019-10-11 17:55:37 +080026
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* __PSA_MANIFEST_PID_H__ */