blob: 8b0adc80b82cfeab9d5823b58f763b1dec30f408 [file] [log] [blame]
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01001/*
Joel Hutton5cc3bc82018-03-21 11:40:57 +00002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __SECURE_PARTITION_H__
8#define __SECURE_PARTITION_H__
9
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <stdint.h>
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010011#include <utils_def.h>
12
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010013/*
14 * Flags used by the secure_partition_mp_info structure to describe the
15 * characteristics of a cpu. Only a single flag is defined at the moment to
16 * indicate the primary cpu.
17 */
18#define MP_INFO_FLAG_PRIMARY_CPU U(0x00000001)
19
20/*
21 * This structure is used to provide information required to initialise a S-EL0
22 * partition.
23 */
24typedef struct secure_partition_mp_info {
Sughosh Ganu8539aa32017-12-11 19:03:19 +053025 uint64_t mpidr;
26 uint32_t linear_id;
27 uint32_t flags;
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010028} secure_partition_mp_info_t;
29
30typedef struct secure_partition_boot_info {
31 param_header_t h;
Sughosh Ganu8539aa32017-12-11 19:03:19 +053032 uint64_t sp_mem_base;
33 uint64_t sp_mem_limit;
34 uint64_t sp_image_base;
35 uint64_t sp_stack_base;
36 uint64_t sp_heap_base;
37 uint64_t sp_ns_comm_buf_base;
38 uint64_t sp_shared_buf_base;
39 uint64_t sp_image_size;
40 uint64_t sp_pcpu_stack_size;
41 uint64_t sp_heap_size;
42 uint64_t sp_ns_comm_buf_size;
43 uint64_t sp_shared_buf_size;
44 uint32_t num_sp_mem_regions;
45 uint32_t num_cpus;
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010046 secure_partition_mp_info_t *mp_info;
47} secure_partition_boot_info_t;
48
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010049#endif /* __SECURE_PARTITION_H__ */