Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 1 | /* |
Joel Hutton | 5cc3bc8 | 2018-03-21 11:40:57 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef SECURE_PARTITION_H |
| 8 | #define SECURE_PARTITION_H |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 11 | #include <utils_def.h> |
| 12 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 13 | /* |
| 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 | */ |
| 24 | typedef struct secure_partition_mp_info { |
Sughosh Ganu | 8539aa3 | 2017-12-11 19:03:19 +0530 | [diff] [blame] | 25 | uint64_t mpidr; |
| 26 | uint32_t linear_id; |
| 27 | uint32_t flags; |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 28 | } secure_partition_mp_info_t; |
| 29 | |
| 30 | typedef struct secure_partition_boot_info { |
| 31 | param_header_t h; |
Sughosh Ganu | 8539aa3 | 2017-12-11 19:03:19 +0530 | [diff] [blame] | 32 | 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 Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 46 | secure_partition_mp_info_t *mp_info; |
| 47 | } secure_partition_boot_info_t; |
| 48 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 49 | #endif /* SECURE_PARTITION_H */ |