blob: e950027df2a9935d4631131f0208ed2652c45ed0 [file] [log] [blame]
Mate Toth-Pal52674ab2018-02-26 09:47:56 +01001/*
2 * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __SPM_PARTITION_DEFS_H__
9#define __SPM_PARTITION_DEFS_H__
10
11/* FixMe: allocations to be settled.
12 * 8 bits reserved by TFM for secure partition Id in this prototype
13 */
14#define TFM_SP_BASE 256
15
16/* A reserved partition ID that is used for uninitialised data */
17#define INVALID_PARTITION_ID (~0U)
18
19/* ***** partition ID-s internal to the TFM ***** */
20/* From the SPM point of view the non secure processing environment is handled
21 * as a special secure partition. This simplifies the context switch
22 * operations.
23 */
24#define TFM_SP_NON_SECURE_ID (0)
25/* A dummy partition for TFM_SP_CORE is created to handle secure partition
26 * calls done directly from the core, before NS execution started.
27 */
28#define TFM_SP_CORE_ID (1)
29
30#ifdef TFM_PARTITION_TEST_CORE
31#define TFM_SP_CORE_TEST_ID (2)
32#define TFM_SP_CORE_TEST_2_ID (3)
33#endif /* TFM_PARTITION_TEST_CORE */
34
35/* Give SST test service next ID after core test services */
36#ifdef TFM_PARTITION_TEST_SST
37#define TFM_SP_SST_TEST_PARTITION_ID (4)
38#endif /* TFM_PARTITION_TEST_SST */
39
40/* ***** Normal partition ID-s ***** */
41#define TFM_SP_STORAGE_ID (TFM_SP_BASE)
Antonio de Angelis4f48b732018-02-05 15:36:42 +000042#define TFM_SP_AUDIT_LOG_ID (TFM_SP_BASE + 1)
Mate Toth-Pal52674ab2018-02-26 09:47:56 +010043
44#endif /* __SPM_PARTITION_DEFS_H__ */