From b51436c2ca4f1ceb2145dc752584df6ab1b77670 Mon Sep 17 00:00:00 2001 From: Levi Yun Date: Wed, 20 Nov 2024 19:47:11 +0000 Subject: [PATCH] feat(spm_mm): move mm_communication header define to general header To support TPM start method with SIP, SIP handler dispatch request to secure partition via MM_COMMUNICATE abi. That means spm_mm sip handler should generate mm communication header. Move mm_communication header's definition to spm_mm_svc header. Change-Id: I40567c16e67b068ee83a39eff050d6578aecfb2c Signed-off-by: Levi Yun --- include/services/spm_mm_svc.h | 11 +++++++++++ plat/arm/board/neoverse_rd/common/include/nrd_ras.h | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/include/services/spm_mm_svc.h b/include/services/spm_mm_svc.h index 3148beb80..b4ed1ab26 100644 --- a/include/services/spm_mm_svc.h +++ b/include/services/spm_mm_svc.h @@ -91,6 +91,17 @@ #ifndef __ASSEMBLER__ #include +#include + +/* + * MM Communicate information structure. Required to generate MM Communicate + * payload to be shared with Standalone MM. + */ +typedef struct mm_communicate_header { + struct efi_guid header_guid; + size_t message_len; + uint8_t data[1]; +} mm_communicate_header_t; int32_t spm_mm_setup(void); diff --git a/plat/arm/board/neoverse_rd/common/include/nrd_ras.h b/plat/arm/board/neoverse_rd/common/include/nrd_ras.h index 768689c08..d55e0fe51 100644 --- a/plat/arm/board/neoverse_rd/common/include/nrd_ras.h +++ b/plat/arm/board/neoverse_rd/common/include/nrd_ras.h @@ -18,16 +18,6 @@ #define NRD_RAS_INTR_TYPE_SPI 0 #define NRD_RAS_INTR_TYPE_PPI 1 -/* - * MM Communicate information structure. Required to generate MM Communicate - * payload to be shared with Standalone MM. - */ -typedef struct mm_communicate_header { - struct efi_guid header_guid; - size_t message_len; - uint8_t data[1]; -} mm_communicate_header_t; - /* RAS error info data structure. */ struct nrd_ras_ev_map { int sdei_ev_num; /* SDEI Event number */