blob: d565e0c57ebbd7dc4654205ff15be6feb160ace6 [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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef SECURE_PARTITION_H
8#define SECURE_PARTITION_H
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01009
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 Diaz5eb88372018-11-08 10:20:19 +000049#endif /* SECURE_PARTITION_H */