blob: f5381f6d73f28c12357e312995dc451fe7712aa3 [file] [log] [blame]
Edison Ai387663f2019-10-11 17:55:37 +08001/*
2 * Copyright (c) 2019, 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_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__ */