Skip to content

Commit c855263

Browse files
author
Michael Schwarcz
committed
Generate partition files
1 parent 35cfbb1 commit c855263

File tree

4 files changed

+170
-0
lines changed

4 files changed

+170
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* Copyright (c) 2017-2019 ARM Limited
2+
*
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
19+
20+
#ifndef __TFM_PARTITION_DEFS_INC__
21+
#define __TFM_PARTITION_DEFS_INC__
22+
23+
#ifdef TFM_PSA_API
24+
#define ITS_ID (TFM_SP_BASE + 0)
25+
#endif
26+
27+
#ifdef TFM_PSA_API
28+
#define PLATFORM_ID (TFM_SP_BASE + 1)
29+
#endif
30+
31+
#ifdef TFM_PSA_API
32+
#define CRYPTO_SRV_ID (TFM_SP_BASE + 2)
33+
#endif
34+
35+
#define TFM_MAX_USER_PARTITIONS (3)
36+
37+
#endif /* __TFM_PARTITION_DEFS_INC__ */
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2018-2019, Arm Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*
6+
*/
7+
8+
/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
9+
10+
#ifndef __TFM_PARTITION_LIST_INC__
11+
#define __TFM_PARTITION_LIST_INC__
12+
13+
#ifdef TFM_PSA_API
14+
/******** ITS ********/
15+
PARTITION_DECLARE(ITS, 0
16+
| SPM_PART_FLAG_IPC
17+
, "APPLICATION-ROT", 10, NORMAL, 2048);
18+
PARTITION_ADD_INIT_FUNC(ITS, its_entry);
19+
#endif /* TFM_PSA_API */
20+
21+
#ifdef TFM_PSA_API
22+
/******** PLATFORM ********/
23+
PARTITION_DECLARE(PLATFORM, 0
24+
| SPM_PART_FLAG_IPC
25+
, "APPLICATION-ROT", 8, NORMAL, 1024);
26+
PARTITION_ADD_INIT_FUNC(PLATFORM, platform_partition_entry);
27+
#endif /* TFM_PSA_API */
28+
29+
#ifdef TFM_PSA_API
30+
/******** CRYPTO_SRV ********/
31+
PARTITION_DECLARE(CRYPTO_SRV, 0
32+
| SPM_PART_FLAG_IPC
33+
, "APPLICATION-ROT", 35, NORMAL, 16384);
34+
PARTITION_ADD_INIT_FUNC(CRYPTO_SRV, crypto_main);
35+
#endif /* TFM_PSA_API */
36+
37+
#endif /* __TFM_PARTITION_LIST_INC__ */
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 2018-2019, Arm Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*
6+
*/
7+
8+
/*********** WARNING: This is an auto-generated file. Do not edit! ***********/
9+
10+
#ifndef __TFM_SERVICE_LIST_INC__
11+
#define __TFM_SERVICE_LIST_INC__
12+
13+
#ifdef TFM_PSA_API
14+
/******** ITS ********/
15+
{"PSA_ITS_GET", ITS_ID, PSA_ITS_GET_MSK, 0x00011A00, true, 1, TFM_VERSION_POLICY_RELAXED},
16+
{"PSA_ITS_SET", ITS_ID, PSA_ITS_SET_MSK, 0x00011A01, true, 1, TFM_VERSION_POLICY_RELAXED},
17+
{"PSA_ITS_INFO", ITS_ID, PSA_ITS_INFO_MSK, 0x00011A02, true, 1, TFM_VERSION_POLICY_RELAXED},
18+
{"PSA_ITS_REMOVE", ITS_ID, PSA_ITS_REMOVE_MSK, 0x00011A03, true, 1, TFM_VERSION_POLICY_RELAXED},
19+
{"PSA_ITS_RESET", ITS_ID, PSA_ITS_RESET_MSK, 0x00011A04, false, 1, TFM_VERSION_POLICY_RELAXED},
20+
#endif /* TFM_PSA_API */
21+
22+
#ifdef TFM_PSA_API
23+
/******** PLATFORM ********/
24+
{"PSA_PLATFORM_LC_GET", PLATFORM_ID, PSA_PLATFORM_LC_GET_MSK, 0x00011000, true, 1, TFM_VERSION_POLICY_RELAXED},
25+
{"PSA_PLATFORM_LC_SET", PLATFORM_ID, PSA_PLATFORM_LC_SET_MSK, 0x00011001, true, 1, TFM_VERSION_POLICY_RELAXED},
26+
{"PSA_PLATFORM_SYSTEM_RESET", PLATFORM_ID, PSA_PLATFORM_SYSTEM_RESET_MSK, 0x00011002, true, 1, TFM_VERSION_POLICY_RELAXED},
27+
#endif /* TFM_PSA_API */
28+
29+
#ifdef TFM_PSA_API
30+
/******** CRYPTO_SRV ********/
31+
{"PSA_CRYPTO_INIT_ID", CRYPTO_SRV_ID, PSA_CRYPTO_INIT, 0x00000F00, true, 1, TFM_VERSION_POLICY_STRICT},
32+
{"PSA_MAC_ID", CRYPTO_SRV_ID, PSA_MAC, 0x00000F01, true, 1, TFM_VERSION_POLICY_STRICT},
33+
{"PSA_HASH_ID", CRYPTO_SRV_ID, PSA_HASH, 0x00000F02, true, 1, TFM_VERSION_POLICY_STRICT},
34+
{"PSA_ASYMMETRIC_ID", CRYPTO_SRV_ID, PSA_ASYMMETRIC, 0x00000F03, true, 1, TFM_VERSION_POLICY_STRICT},
35+
{"PSA_SYMMETRIC_ID", CRYPTO_SRV_ID, PSA_SYMMETRIC, 0x00000F04, true, 1, TFM_VERSION_POLICY_STRICT},
36+
{"PSA_AEAD_ID", CRYPTO_SRV_ID, PSA_AEAD, 0x00000F05, true, 1, TFM_VERSION_POLICY_STRICT},
37+
{"PSA_KEY_MNG_ID", CRYPTO_SRV_ID, PSA_KEY_MNG, 0x00000F06, true, 1, TFM_VERSION_POLICY_STRICT},
38+
{"PSA_RNG_ID", CRYPTO_SRV_ID, PSA_RNG, 0x00000F07, true, 1, TFM_VERSION_POLICY_STRICT},
39+
{"PSA_CRYPTO_FREE_ID", CRYPTO_SRV_ID, PSA_CRYPTO_FREE, 0x00000F08, true, 1, TFM_VERSION_POLICY_STRICT},
40+
{"PSA_GENERATOR_ID", CRYPTO_SRV_ID, PSA_GENERATOR, 0x00000F09, true, 1, TFM_VERSION_POLICY_STRICT},
41+
{"PSA_ENTROPY_ID", CRYPTO_SRV_ID, PSA_ENTROPY_INJECT, 0x00000F0A, true, 1, TFM_VERSION_POLICY_STRICT},
42+
#endif /* TFM_PSA_API */
43+
44+
#endif /* __TFM_SERVICE_LIST_INC__ */
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright (c) 2018, Arm Limited. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*
6+
*/
7+
#ifndef __TFM_SPM_SIGNAL_DEFS_H__
8+
#define __TFM_SPM_SIGNAL_DEFS_H__
9+
10+
#define PSA_ITS_GET_MSK_POS (4UL)
11+
#define PSA_ITS_GET_MSK (1UL << PSA_ITS_GET_MSK_POS)
12+
#define PSA_ITS_SET_MSK_POS (5UL)
13+
#define PSA_ITS_SET_MSK (1UL << PSA_ITS_SET_MSK_POS)
14+
#define PSA_ITS_INFO_MSK_POS (6UL)
15+
#define PSA_ITS_INFO_MSK (1UL << PSA_ITS_INFO_MSK_POS)
16+
#define PSA_ITS_REMOVE_MSK_POS (7UL)
17+
#define PSA_ITS_REMOVE_MSK (1UL << PSA_ITS_REMOVE_MSK_POS)
18+
#define PSA_ITS_RESET_MSK_POS (8UL)
19+
#define PSA_ITS_RESET_MSK (1UL << PSA_ITS_RESET_MSK_POS)
20+
21+
#define PSA_PLATFORM_LC_GET_MSK_POS (4UL)
22+
#define PSA_PLATFORM_LC_GET_MSK (1UL << PSA_PLATFORM_LC_GET_MSK_POS)
23+
#define PSA_PLATFORM_LC_SET_MSK_POS (5UL)
24+
#define PSA_PLATFORM_LC_SET_MSK (1UL << PSA_PLATFORM_LC_SET_MSK_POS)
25+
#define PSA_PLATFORM_SYSTEM_RESET_MSK_POS (6UL)
26+
#define PSA_PLATFORM_SYSTEM_RESET_MSK (1UL << PSA_PLATFORM_SYSTEM_RESET_MSK_POS)
27+
28+
#define PSA_CRYPTO_INIT_POS (4UL)
29+
#define PSA_CRYPTO_INIT (1UL << PSA_CRYPTO_INIT_POS)
30+
#define PSA_MAC_POS (5UL)
31+
#define PSA_MAC (1UL << PSA_MAC_POS)
32+
#define PSA_HASH_POS (6UL)
33+
#define PSA_HASH (1UL << PSA_HASH_POS)
34+
#define PSA_ASYMMETRIC_POS (7UL)
35+
#define PSA_ASYMMETRIC (1UL << PSA_ASYMMETRIC_POS)
36+
#define PSA_SYMMETRIC_POS (8UL)
37+
#define PSA_SYMMETRIC (1UL << PSA_SYMMETRIC_POS)
38+
#define PSA_AEAD_POS (9UL)
39+
#define PSA_AEAD (1UL << PSA_AEAD_POS)
40+
#define PSA_KEY_MNG_POS (10UL)
41+
#define PSA_KEY_MNG (1UL << PSA_KEY_MNG_POS)
42+
#define PSA_RNG_POS (11UL)
43+
#define PSA_RNG (1UL << PSA_RNG_POS)
44+
#define PSA_CRYPTO_FREE_POS (12UL)
45+
#define PSA_CRYPTO_FREE (1UL << PSA_CRYPTO_FREE_POS)
46+
#define PSA_GENERATOR_POS (13UL)
47+
#define PSA_GENERATOR (1UL << PSA_GENERATOR_POS)
48+
#define PSA_ENTROPY_INJECT_POS (14UL)
49+
#define PSA_ENTROPY_INJECT (1UL << PSA_ENTROPY_INJECT_POS)
50+
51+
52+
#endif

0 commit comments

Comments
 (0)