Mistake on this page?
Report an issue in GitHub or email us
mbed_spm_partitions.h
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 /*******************************************************************************
19  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20  * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT.
21  * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22  * Template Version 1.0
23  * Generated by tools/psa/generate_partition_code.py Version 1.1
24  ******************************************************************************/
25 
26 #ifndef __MBED_SPM_PARTITIONS_H___
27 #define __MBED_SPM_PARTITIONS_H___
28 
29 
30 /****************** Common definitions ****************************************/
31 
32 /* PSA reserved event flags */
33 #define PSA_RESERVED1_POS (1UL)
34 #define PSA_RESERVED1_MSK (1UL << PSA_RESERVED1_POS)
35 
36 #define PSA_RESERVED2_POS (2UL)
37 #define PSA_RESERVED2_MSK (1UL << PSA_RESERVED2_POS)
38 
39 /****************** Service Partitions ****************************************/
40 
41 /* -----------------------------------------------------------------------------
42  * ATTEST_SRV defines
43  * -------------------------------------------------------------------------- */
44 #define ATTEST_SRV_ID 37
45 
46 #define ATTEST_SRV_ROT_SRV_COUNT (3UL)
47 #define ATTEST_SRV_EXT_ROT_SRV_COUNT (7UL)
48 
49 
50 #define ATTEST_SRV_WAIT_ANY_IRQ_MSK (0)
51 
52 #define PSA_ATTEST_GET_TOKEN_POS (4UL)
53 #define PSA_ATTEST_GET_TOKEN (1UL << PSA_ATTEST_GET_TOKEN_POS)
54 #define PSA_ATTEST_GET_TOKEN_SIZE_POS (5UL)
55 #define PSA_ATTEST_GET_TOKEN_SIZE (1UL << PSA_ATTEST_GET_TOKEN_SIZE_POS)
56 #define PSA_ATTEST_INJECT_KEY_POS (6UL)
57 #define PSA_ATTEST_INJECT_KEY (1UL << PSA_ATTEST_INJECT_KEY_POS)
58 
59 #define ATTEST_SRV_WAIT_ANY_SID_MSK (\
60  PSA_ATTEST_GET_TOKEN | \
61  PSA_ATTEST_GET_TOKEN_SIZE | \
62  PSA_ATTEST_INJECT_KEY)
63 
64 
65 /* -----------------------------------------------------------------------------
66  * CRYPTO_SRV defines
67  * -------------------------------------------------------------------------- */
68 #define CRYPTO_SRV_ID 35
69 
70 #define CRYPTO_SRV_ROT_SRV_COUNT (11UL)
71 #define CRYPTO_SRV_EXT_ROT_SRV_COUNT (4UL)
72 
73 
74 #define CRYPTO_SRV_WAIT_ANY_IRQ_MSK (0)
75 
76 #define PSA_CRYPTO_INIT_POS (4UL)
77 #define PSA_CRYPTO_INIT (1UL << PSA_CRYPTO_INIT_POS)
78 #define PSA_MAC_POS (5UL)
79 #define PSA_MAC (1UL << PSA_MAC_POS)
80 #define PSA_HASH_POS (6UL)
81 #define PSA_HASH (1UL << PSA_HASH_POS)
82 #define PSA_ASYMMETRIC_POS (7UL)
83 #define PSA_ASYMMETRIC (1UL << PSA_ASYMMETRIC_POS)
84 #define PSA_SYMMETRIC_POS (8UL)
85 #define PSA_SYMMETRIC (1UL << PSA_SYMMETRIC_POS)
86 #define PSA_AEAD_POS (9UL)
87 #define PSA_AEAD (1UL << PSA_AEAD_POS)
88 #define PSA_KEY_MNG_POS (10UL)
89 #define PSA_KEY_MNG (1UL << PSA_KEY_MNG_POS)
90 #define PSA_RNG_POS (11UL)
91 #define PSA_RNG (1UL << PSA_RNG_POS)
92 #define PSA_CRYPTO_FREE_POS (12UL)
93 #define PSA_CRYPTO_FREE (1UL << PSA_CRYPTO_FREE_POS)
94 #define PSA_KEY_DERIVATION_POS (13UL)
95 #define PSA_KEY_DERIVATION (1UL << PSA_KEY_DERIVATION_POS)
96 #define PSA_ENTROPY_INJECT_POS (14UL)
97 #define PSA_ENTROPY_INJECT (1UL << PSA_ENTROPY_INJECT_POS)
98 
99 #define CRYPTO_SRV_WAIT_ANY_SID_MSK (\
100  PSA_CRYPTO_INIT | \
101  PSA_MAC | \
102  PSA_HASH | \
103  PSA_ASYMMETRIC | \
104  PSA_SYMMETRIC | \
105  PSA_AEAD | \
106  PSA_KEY_MNG | \
107  PSA_RNG | \
108  PSA_CRYPTO_FREE | \
109  PSA_KEY_DERIVATION | \
110  PSA_ENTROPY_INJECT)
111 
112 
113 /* -----------------------------------------------------------------------------
114  * PLATFORM defines
115  * -------------------------------------------------------------------------- */
116 #define PLATFORM_ID 8
117 
118 #define PLATFORM_ROT_SRV_COUNT (3UL)
119 #define PLATFORM_EXT_ROT_SRV_COUNT (1UL)
120 
121 
122 #define PLATFORM_WAIT_ANY_IRQ_MSK (0)
123 
124 #define PSA_PLATFORM_LC_GET_MSK_POS (4UL)
125 #define PSA_PLATFORM_LC_GET_MSK (1UL << PSA_PLATFORM_LC_GET_MSK_POS)
126 #define PSA_PLATFORM_LC_SET_MSK_POS (5UL)
127 #define PSA_PLATFORM_LC_SET_MSK (1UL << PSA_PLATFORM_LC_SET_MSK_POS)
128 #define PSA_PLATFORM_SYSTEM_RESET_MSK_POS (6UL)
129 #define PSA_PLATFORM_SYSTEM_RESET_MSK (1UL << PSA_PLATFORM_SYSTEM_RESET_MSK_POS)
130 
131 #define PLATFORM_WAIT_ANY_SID_MSK (\
132  PSA_PLATFORM_LC_GET_MSK | \
133  PSA_PLATFORM_LC_SET_MSK | \
134  PSA_PLATFORM_SYSTEM_RESET_MSK)
135 
136 
137 /* -----------------------------------------------------------------------------
138  * ITS defines
139  * -------------------------------------------------------------------------- */
140 #define ITS_ID 10
141 
142 #define ITS_ROT_SRV_COUNT (5UL)
143 #define ITS_EXT_ROT_SRV_COUNT (0UL)
144 
145 
146 #define ITS_WAIT_ANY_IRQ_MSK (0)
147 
148 #define PSA_ITS_GET_MSK_POS (4UL)
149 #define PSA_ITS_GET_MSK (1UL << PSA_ITS_GET_MSK_POS)
150 #define PSA_ITS_SET_MSK_POS (5UL)
151 #define PSA_ITS_SET_MSK (1UL << PSA_ITS_SET_MSK_POS)
152 #define PSA_ITS_INFO_MSK_POS (6UL)
153 #define PSA_ITS_INFO_MSK (1UL << PSA_ITS_INFO_MSK_POS)
154 #define PSA_ITS_REMOVE_MSK_POS (7UL)
155 #define PSA_ITS_REMOVE_MSK (1UL << PSA_ITS_REMOVE_MSK_POS)
156 #define PSA_ITS_RESET_MSK_POS (8UL)
157 #define PSA_ITS_RESET_MSK (1UL << PSA_ITS_RESET_MSK_POS)
158 
159 #define ITS_WAIT_ANY_SID_MSK (\
160  PSA_ITS_GET_MSK | \
161  PSA_ITS_SET_MSK | \
162  PSA_ITS_INFO_MSK | \
163  PSA_ITS_REMOVE_MSK | \
164  PSA_ITS_RESET_MSK)
165 
166 
167 
168 /****************** Test Partitions *******************************************/
169 
170 #ifdef USE_PSA_TEST_PARTITIONS
171 
172 #ifdef USE_CRYPTO_ACL_TEST
173 /* -----------------------------------------------------------------------------
174  * CRYPTO_ACL_TEST defines
175  * -------------------------------------------------------------------------- */
176 #define CRYPTO_ACL_TEST_ID 128
177 
178 #define CRYPTO_ACL_TEST_ROT_SRV_COUNT (6UL)
179 #define CRYPTO_ACL_TEST_EXT_ROT_SRV_COUNT (1UL)
180 
181 
182 #define CRYPTO_ACL_TEST_WAIT_ANY_IRQ_MSK (0)
183 
184 #define CRYPTO_GENERATE_KEY_MSK_POS (4UL)
185 #define CRYPTO_GENERATE_KEY_MSK (1UL << CRYPTO_GENERATE_KEY_MSK_POS)
186 #define CRYPTO_OPEN_KEY_MSK_POS (5UL)
187 #define CRYPTO_OPEN_KEY_MSK (1UL << CRYPTO_OPEN_KEY_MSK_POS)
188 #define CRYPTO_CLOSE_KEY_MSK_POS (6UL)
189 #define CRYPTO_CLOSE_KEY_MSK (1UL << CRYPTO_CLOSE_KEY_MSK_POS)
190 #define CRYPTO_DESTROY_KEY_MSK_POS (7UL)
191 #define CRYPTO_DESTROY_KEY_MSK (1UL << CRYPTO_DESTROY_KEY_MSK_POS)
192 #define CRYPTO_GET_KEY_ATTRIBUTES_MSK_POS (8UL)
193 #define CRYPTO_GET_KEY_ATTRIBUTES_MSK (1UL << CRYPTO_GET_KEY_ATTRIBUTES_MSK_POS)
194 #define CRYPTO_IMPORT_KEY_MSK_POS (9UL)
195 #define CRYPTO_IMPORT_KEY_MSK (1UL << CRYPTO_IMPORT_KEY_MSK_POS)
196 
197 #define CRYPTO_ACL_TEST_WAIT_ANY_SID_MSK (\
198  CRYPTO_GENERATE_KEY_MSK | \
199  CRYPTO_OPEN_KEY_MSK | \
200  CRYPTO_CLOSE_KEY_MSK | \
201  CRYPTO_DESTROY_KEY_MSK | \
202  CRYPTO_GET_KEY_ATTRIBUTES_MSK | \
203  CRYPTO_IMPORT_KEY_MSK)
204 
205 
206 #endif // USE_CRYPTO_ACL_TEST
207 
208 #ifdef USE_CLIENT_TESTS_PART1
209 /* -----------------------------------------------------------------------------
210  * CLIENT_TESTS_PART1 defines
211  * -------------------------------------------------------------------------- */
212 #define CLIENT_TESTS_PART1_ID 1
213 
214 #define CLIENT_TESTS_PART1_ROT_SRV_COUNT (3UL)
215 #define CLIENT_TESTS_PART1_EXT_ROT_SRV_COUNT (0UL)
216 
217 
218 #define CLIENT_TESTS_PART1_WAIT_ANY_IRQ_MSK (0)
219 
220 #define PART1_ROT_SRV1_MSK_POS (4UL)
221 #define PART1_ROT_SRV1_MSK (1UL << PART1_ROT_SRV1_MSK_POS)
222 #define DROP_CONN_MSK_POS (5UL)
223 #define DROP_CONN_MSK (1UL << DROP_CONN_MSK_POS)
224 #define SECURE_CLIENTS_ONLY_MSK_POS (6UL)
225 #define SECURE_CLIENTS_ONLY_MSK (1UL << SECURE_CLIENTS_ONLY_MSK_POS)
226 
227 #define CLIENT_TESTS_PART1_WAIT_ANY_SID_MSK (\
228  PART1_ROT_SRV1_MSK | \
229  DROP_CONN_MSK | \
230  SECURE_CLIENTS_ONLY_MSK)
231 
232 
233 #endif // USE_CLIENT_TESTS_PART1
234 
235 #ifdef USE_SERVER_TESTS_PART1
236 /* -----------------------------------------------------------------------------
237  * SERVER_TESTS_PART1 defines
238  * -------------------------------------------------------------------------- */
239 #define SERVER_TESTS_PART1_ID 2
240 
241 #define SERVER_TESTS_PART1_ROT_SRV_COUNT (2UL)
242 #define SERVER_TESTS_PART1_EXT_ROT_SRV_COUNT (2UL)
243 
244 
245 #define SERVER_TESTS_PART1_WAIT_ANY_IRQ_MSK (0)
246 
247 #define CONTROL_MSK_POS (4UL)
248 #define CONTROL_MSK (1UL << CONTROL_MSK_POS)
249 #define TEST_MSK_POS (5UL)
250 #define TEST_MSK (1UL << TEST_MSK_POS)
251 
252 #define SERVER_TESTS_PART1_WAIT_ANY_SID_MSK (\
253  CONTROL_MSK | \
254  TEST_MSK)
255 
256 
257 #endif // USE_SERVER_TESTS_PART1
258 
259 #ifdef USE_SERVER_TESTS_PART2
260 /* -----------------------------------------------------------------------------
261  * SERVER_TESTS_PART2 defines
262  * -------------------------------------------------------------------------- */
263 #define SERVER_TESTS_PART2_ID 3
264 
265 #define SERVER_TESTS_PART2_ROT_SRV_COUNT (2UL)
266 #define SERVER_TESTS_PART2_EXT_ROT_SRV_COUNT (0UL)
267 
268 
269 #define SERVER_TESTS_PART2_WAIT_ANY_IRQ_MSK (0)
270 
271 #define ROT_SRV_REVERSE_MSK_POS (4UL)
272 #define ROT_SRV_REVERSE_MSK (1UL << ROT_SRV_REVERSE_MSK_POS)
273 #define ROT_SRV_DB_TST_MSK_POS (5UL)
274 #define ROT_SRV_DB_TST_MSK (1UL << ROT_SRV_DB_TST_MSK_POS)
275 
276 #define SERVER_TESTS_PART2_WAIT_ANY_SID_MSK (\
277  ROT_SRV_REVERSE_MSK | \
278  ROT_SRV_DB_TST_MSK)
279 
280 
281 #endif // USE_SERVER_TESTS_PART2
282 
283 #ifdef USE_SMOKE_TESTS_PART1
284 /* -----------------------------------------------------------------------------
285  * SMOKE_TESTS_PART1 defines
286  * -------------------------------------------------------------------------- */
287 #define SMOKE_TESTS_PART1_ID 4
288 
289 #define SMOKE_TESTS_PART1_ROT_SRV_COUNT (1UL)
290 #define SMOKE_TESTS_PART1_EXT_ROT_SRV_COUNT (0UL)
291 
292 
293 #define SMOKE_TESTS_PART1_WAIT_ANY_IRQ_MSK (0)
294 
295 #define ROT_SRV1_MSK_POS (4UL)
296 #define ROT_SRV1_MSK (1UL << ROT_SRV1_MSK_POS)
297 
298 #define SMOKE_TESTS_PART1_WAIT_ANY_SID_MSK (\
299  ROT_SRV1_MSK)
300 
301 
302 #endif // USE_SMOKE_TESTS_PART1
303 
304 
305 #endif // USE_PSA_TEST_PARTITIONS
306 
307 #endif // __MBED_SPM_PARTITIONS_H___
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.