aboutsummaryrefslogtreecommitdiffstats
path: root/include/services/secure_partition.h
diff options
context:
space:
mode:
authorPaul Beesley <paul.beesley@arm.com>2019-10-15 10:57:42 +0000
committerManish Pandey <manish.pandey2@arm.com>2019-12-20 16:03:41 +0000
commitaeaa225cbe24d63539261210e5aa901454de2a5b (patch)
tree1b9c2122cffc009f261eb95ae3cb640ea66eb030 /include/services/secure_partition.h
parent538b002046b567ed3c431633623f335b90476e40 (diff)
downloadplatform_external_arm-trusted-firmware-aeaa225cbe24d63539261210e5aa901454de2a5b.tar.gz
platform_external_arm-trusted-firmware-aeaa225cbe24d63539261210e5aa901454de2a5b.tar.bz2
platform_external_arm-trusted-firmware-aeaa225cbe24d63539261210e5aa901454de2a5b.zip
spm-mm: Refactor secure_partition.h and its contents
Before adding any new SPM-related components we should first do some cleanup around the existing SPM-MM implementation. The aim is to make sure that any SPM-MM components have names that clearly indicate that they are MM-related. Otherwise, when adding new SPM code, it could quickly become confusing as it would be unclear to which component the code belongs. The secure_partition.h header is a clear example of this, as the name is generic so it could easily apply to any SPM-related code, when it is in fact SPM-MM specific. This patch renames the file and the two structures defined within it, and then modifies any references in files that use the header. Change-Id: I44bd95fab774c358178b3e81262a16da500fda26 Signed-off-by: Paul Beesley <paul.beesley@arm.com>
Diffstat (limited to 'include/services/secure_partition.h')
-rw-r--r--include/services/secure_partition.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h
deleted file mode 100644
index 0510f80ec..000000000
--- a/include/services/secure_partition.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#ifndef SECURE_PARTITION_H
-#define SECURE_PARTITION_H
-
-#if SPM_MM
-
-#include <stdint.h>
-
-#include <lib/utils_def.h>
-
-/*
- * Flags used by the secure_partition_mp_info structure to describe the
- * characteristics of a cpu. Only a single flag is defined at the moment to
- * indicate the primary cpu.
- */
-#define MP_INFO_FLAG_PRIMARY_CPU U(0x00000001)
-
-/*
- * This structure is used to provide information required to initialise a S-EL0
- * partition.
- */
-typedef struct secure_partition_mp_info {
- uint64_t mpidr;
- uint32_t linear_id;
- uint32_t flags;
-} secure_partition_mp_info_t;
-
-typedef struct secure_partition_boot_info {
- param_header_t h;
- uint64_t sp_mem_base;
- uint64_t sp_mem_limit;
- uint64_t sp_image_base;
- uint64_t sp_stack_base;
- uint64_t sp_heap_base;
- uint64_t sp_ns_comm_buf_base;
- uint64_t sp_shared_buf_base;
- uint64_t sp_image_size;
- uint64_t sp_pcpu_stack_size;
- uint64_t sp_heap_size;
- uint64_t sp_ns_comm_buf_size;
- uint64_t sp_shared_buf_size;
- uint32_t num_sp_mem_regions;
- uint32_t num_cpus;
- secure_partition_mp_info_t *mp_info;
-} secure_partition_boot_info_t;
-
-#endif /* SPM_MM */
-
-#endif /* SECURE_PARTITION_H */