blob: 66704019674dca87f1356376196de4d247eb126f [file] [log] [blame]
Edison Ai387663f2019-10-11 17:55:37 +08001/*
Kevin Pengc6d74502020-03-04 16:55:37 +08002 * Copyright (c) 2019-2020, 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
17{% for manifest in manifests %}
18 {% if manifest.attr.pid - 256 < 0 %}
19#error "Partition ID for '{{manifest.manifest.name}}' have to be at least TFM_SP_BASE"
20 {% else %}
21#define {{"%-62s"|format(manifest.manifest.name)}} ({{manifest.attr.pid}})
22 {% endif %}
23{% endfor %}
24
25#define {{"%-62s"|format("TFM_MAX_USER_PARTITIONS")}} ({{manifests | length()}})
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* __PSA_MANIFEST_PID_H__ */