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