0ae6cf9919c16dc9424be016b8fd1776f8f57e0d
[project/bcm63xx/atf.git] / include / services / secure_partition.h
1 /*
2 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #ifndef SECURE_PARTITION_H
8 #define SECURE_PARTITION_H
9
10 #if SPM_DEPRECATED
11
12 #include <stdint.h>
13 #include <utils_def.h>
14
15 /*
16 * Flags used by the secure_partition_mp_info structure to describe the
17 * characteristics of a cpu. Only a single flag is defined at the moment to
18 * indicate the primary cpu.
19 */
20 #define MP_INFO_FLAG_PRIMARY_CPU U(0x00000001)
21
22 /*
23 * This structure is used to provide information required to initialise a S-EL0
24 * partition.
25 */
26 typedef struct secure_partition_mp_info {
27 uint64_t mpidr;
28 uint32_t linear_id;
29 uint32_t flags;
30 } secure_partition_mp_info_t;
31
32 typedef struct secure_partition_boot_info {
33 param_header_t h;
34 uint64_t sp_mem_base;
35 uint64_t sp_mem_limit;
36 uint64_t sp_image_base;
37 uint64_t sp_stack_base;
38 uint64_t sp_heap_base;
39 uint64_t sp_ns_comm_buf_base;
40 uint64_t sp_shared_buf_base;
41 uint64_t sp_image_size;
42 uint64_t sp_pcpu_stack_size;
43 uint64_t sp_heap_size;
44 uint64_t sp_ns_comm_buf_size;
45 uint64_t sp_shared_buf_size;
46 uint32_t num_sp_mem_regions;
47 uint32_t num_cpus;
48 secure_partition_mp_info_t *mp_info;
49 } secure_partition_boot_info_t;
50
51 #endif /* SPM_DEPRECATED */
52
53 #endif /* SECURE_PARTITION_H */