1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/** @file
MM Communication buffer data.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef MM_COMM_BUFFER_H_
#define MM_COMM_BUFFER_H_
///
/// The GUID of the MM Communication buffer HOB.
///
#define MM_COMM_BUFFER_HOB_GUID \
{ 0x6c2a2520, 0x0131, 0x4aee, { 0xa7, 0x50, 0xcc, 0x38, 0x4a, 0xac, 0xe8, 0xc6 }}
///
/// The MM communicate buffer facilitates data sharing between non-MM and MM code.
/// The MM IPL code allocates a "fixed" runtime type memory as the MM communication buffer,
/// and communicates its address and size to MM Core via MmCommBuffer GUIDed HOB.
/// Here, "fixed" implies that the buffer's location remains constant throughout the boot process.
/// Data is exchanged between the MM Communication PPI/Protocol and a software MMI handler
/// using this fixed MM communication buffer.
///
typedef struct {
///
/// The address of the 4-KiB aligned fixed MM communication buffer.
///
EFI_PHYSICAL_ADDRESS PhysicalStart;
///
/// Size of the fixed MM communication buffer, in 4KiB pages.
///
UINT64 NumberOfPages;
///
/// Point to MM_COMM_BUFFER_STATUS structure.
///
EFI_PHYSICAL_ADDRESS Status;
} MM_COMM_BUFFER;
typedef struct {
///
/// Whether the data in the fixed MM communication buffer is valid when entering from non-MM to MM.
///
BOOLEAN IsCommBufferValid;
/// For padding purpose
UINT8 Reserved[7];
///
/// The return status when returning from MM to non-MM.
///
UINT64 ReturnStatus;
///
/// The size in bytes of the output buffer when returning from MM to non-MM.
///
UINT64 ReturnBufferSize;
} MM_COMM_BUFFER_STATUS;
extern EFI_GUID gMmCommBufferHobGuid;
#endif
|