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 <yeoreum.yun@arm.com>
This commit is contained in:
Levi Yun 2024-11-20 19:47:11 +00:00 committed by Manish Pandey
parent 0f38b9f87e
commit b51436c2ca
2 changed files with 11 additions and 10 deletions
include/services
plat/arm/board/neoverse_rd/common/include

View file

@ -91,6 +91,17 @@
#ifndef __ASSEMBLER__
#include <stdint.h>
#include <tools_share/uuid.h>
/*
* 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);

View file

@ -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 */