Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | cbccdbf | 2019-01-21 11:53:29 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2019, 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 | |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 7 | #ifndef SPM_MM_PARTITION_H |
| 8 | #define SPM_MM_PARTITION_H |
Antonio Nino Diaz | d6cf9a2 | 2018-10-30 11:52:45 +0000 | [diff] [blame] | 9 | |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 11 | |
| 12 | #include <lib/utils_def.h> |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 13 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 14 | /* |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 15 | * Flags used by the spm_mm_mp_info structure to describe the |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 16 | * characteristics of a cpu. Only a single flag is defined at the moment to |
| 17 | * indicate the primary cpu. |
| 18 | */ |
| 19 | #define MP_INFO_FLAG_PRIMARY_CPU U(0x00000001) |
| 20 | |
| 21 | /* |
| 22 | * This structure is used to provide information required to initialise a S-EL0 |
| 23 | * partition. |
| 24 | */ |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 25 | typedef struct spm_mm_mp_info { |
Sughosh Ganu | 8539aa3 | 2017-12-11 19:03:19 +0530 | [diff] [blame] | 26 | uint64_t mpidr; |
| 27 | uint32_t linear_id; |
| 28 | uint32_t flags; |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 29 | } spm_mm_mp_info_t; |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 30 | |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 31 | typedef struct spm_mm_boot_info { |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 32 | param_header_t h; |
Sughosh Ganu | 8539aa3 | 2017-12-11 19:03:19 +0530 | [diff] [blame] | 33 | uint64_t sp_mem_base; |
| 34 | uint64_t sp_mem_limit; |
| 35 | uint64_t sp_image_base; |
| 36 | uint64_t sp_stack_base; |
| 37 | uint64_t sp_heap_base; |
| 38 | uint64_t sp_ns_comm_buf_base; |
| 39 | uint64_t sp_shared_buf_base; |
| 40 | uint64_t sp_image_size; |
| 41 | uint64_t sp_pcpu_stack_size; |
| 42 | uint64_t sp_heap_size; |
| 43 | uint64_t sp_ns_comm_buf_size; |
| 44 | uint64_t sp_shared_buf_size; |
| 45 | uint32_t num_sp_mem_regions; |
| 46 | uint32_t num_cpus; |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 47 | spm_mm_mp_info_t *mp_info; |
| 48 | } spm_mm_boot_info_t; |
Antonio Nino Diaz | d6cf9a2 | 2018-10-30 11:52:45 +0000 | [diff] [blame] | 49 | |
Paul Beesley | 45f4028 | 2019-10-15 10:57:42 +0000 | [diff] [blame] | 50 | #endif /* SPM_MM_PARTITION_H */ |