From 962c44e77cc14ca6a9d4316e53a72348f94d4657 Mon Sep 17 00:00:00 2001 From: Paul Beesley Date: Tue, 15 Oct 2019 14:11:41 +0000 Subject: [PATCH] spm-mm: Remove mm_svc.h header The contents of this header have been merged into the spm_mm_svc.h header file. Change-Id: I01530b2e4ec1b4c091ce339758025e2216e740a4 Signed-off-by: Paul Beesley --- include/services/mm_svc.h | 35 ------------------------------ include/services/spm_mm_svc.h | 26 ++++++++++++++++++++++ plat/arm/css/sgi/sgi_ras.c | 1 - services/std_svc/spm_mm/spm_main.c | 1 - 4 files changed, 26 insertions(+), 37 deletions(-) delete mode 100644 include/services/mm_svc.h diff --git a/include/services/mm_svc.h b/include/services/mm_svc.h deleted file mode 100644 index c11132696..000000000 --- a/include/services/mm_svc.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#ifndef MM_SVC_H -#define MM_SVC_H - -#if SPM_MM - -#include - -#define MM_VERSION_MAJOR U(1) -#define MM_VERSION_MAJOR_SHIFT 16 -#define MM_VERSION_MAJOR_MASK U(0x7FFF) -#define MM_VERSION_MINOR U(0) -#define MM_VERSION_MINOR_SHIFT 0 -#define MM_VERSION_MINOR_MASK U(0xFFFF) -#define MM_VERSION_FORM(major, minor) ((major << MM_VERSION_MAJOR_SHIFT) | (minor)) -#define MM_VERSION_COMPILED MM_VERSION_FORM(MM_VERSION_MAJOR, MM_VERSION_MINOR) - -/* - * SMC IDs defined in [1] for accessing MM services from the Non-secure world. - * These FIDs occupy the range 0x40 - 0x5f. - * [1] DEN0060A_ARM_MM_Interface_Specification.pdf - */ -#define MM_VERSION_AARCH32 U(0x84000040) - -#define MM_COMMUNICATE_AARCH64 U(0xC4000041) -#define MM_COMMUNICATE_AARCH32 U(0x84000041) - -#endif /* SPM_MM */ - -#endif /* MM_SVC_H */ diff --git a/include/services/spm_mm_svc.h b/include/services/spm_mm_svc.h index 89fb2b45d..3148beb80 100644 --- a/include/services/spm_mm_svc.h +++ b/include/services/spm_mm_svc.h @@ -9,6 +9,23 @@ #include +/* + * The MM_VERSION_XXX definitions are used when responding to the + * MM_VERSION_AARCH32 service request. The version returned is different between + * this request and the SPM_MM_VERSION_AARCH32 request - both have been retained + * for compatibility. + */ +#define MM_VERSION_MAJOR U(1) +#define MM_VERSION_MAJOR_SHIFT 16 +#define MM_VERSION_MAJOR_MASK U(0x7FFF) +#define MM_VERSION_MINOR U(0) +#define MM_VERSION_MINOR_SHIFT 0 +#define MM_VERSION_MINOR_MASK U(0xFFFF) +#define MM_VERSION_FORM(major, minor) ((major << MM_VERSION_MAJOR_SHIFT) | \ + (minor)) +#define MM_VERSION_COMPILED MM_VERSION_FORM(MM_VERSION_MAJOR, \ + MM_VERSION_MINOR) + #define SPM_MM_VERSION_MAJOR U(0) #define SPM_MM_VERSION_MAJOR_SHIFT 16 #define SPM_MM_VERSION_MAJOR_MASK U(0x7FFF) @@ -29,6 +46,15 @@ ((((_fid) & SPM_MM_FID_MASK) >= SPM_MM_FID_MIN_VALUE) && \ (((_fid) & SPM_MM_FID_MASK) <= SPM_MM_FID_MAX_VALUE)) +/* + * SMC IDs defined in [1] for accessing MM services from the Non-secure world. + * These FIDs occupy the range 0x40 - 0x5f. + * [1] DEN0060A_ARM_MM_Interface_Specification.pdf + */ +#define MM_VERSION_AARCH32 U(0x84000040) +#define MM_COMMUNICATE_AARCH64 U(0xC4000041) +#define MM_COMMUNICATE_AARCH32 U(0x84000041) + /* * SMC IDs defined for accessing services implemented by the Secure Partition * Manager from the Secure Partition(s). These services enable a partition to diff --git a/plat/arm/css/sgi/sgi_ras.c b/plat/arm/css/sgi/sgi_ras.c index de05a0737..f56544e72 100644 --- a/plat/arm/css/sgi/sgi_ras.c +++ b/plat/arm/css/sgi/sgi_ras.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include diff --git a/services/std_svc/spm_mm/spm_main.c b/services/std_svc/spm_mm/spm_main.c index ff0d0014d..433e3351f 100644 --- a/services/std_svc/spm_mm/spm_main.c +++ b/services/std_svc/spm_mm/spm_main.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include