StandaloneMmPkg: Add gMmStatusCodeUseSerialHobGuid HOB definition
PcdStatusCodeUseSerial can be the dynamic PCD, which can't be used in MM drivers. So, defines gMmStatusCodeUseSerialHobGuid HOB to indicate StatusCode is reported via serial port or not. The value shall match with the PcdStatusCodeUseSerial. Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
a7ab45ace2
commit
b7ef717177
|
@ -0,0 +1,35 @@
|
|||
/** @file
|
||||
This file defines STATUS_CODE_USE_SERIAL structure which indicates StatusCode is
|
||||
reported via serial port or not.
|
||||
|
||||
Copyright (c) 2025, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#ifndef MM_STATUS_CODE_USE_SERIAL_H_
|
||||
#define MM_STATUS_CODE_USE_SERIAL_H_
|
||||
|
||||
///
|
||||
/// The GUID of the StatusCodeUseSerial GUIDed HOB.
|
||||
///
|
||||
#define MM_STATUS_CODE_USE_SERIAL_HOB_GUID \
|
||||
{ \
|
||||
0xbb55aa97, 0xc7f2, 0x4f60, {0xac, 0xc3, 0x16, 0xf6, 0xe8, 0xb5, 0x07, 0x79} \
|
||||
}
|
||||
|
||||
///
|
||||
/// The structure defines the data layout of the StatusCodeUseSerial GUIDed HOB.
|
||||
///
|
||||
typedef struct {
|
||||
///
|
||||
/// Whether StatusCode is reported via serial port.
|
||||
/// The value shall match with the PcdStatusCodeUseSerial.
|
||||
///
|
||||
BOOLEAN StatusCodeUseSerial;
|
||||
} MM_STATUS_CODE_USE_SERIAL;
|
||||
|
||||
extern EFI_GUID gMmStatusCodeUseSerialHobGuid;
|
||||
|
||||
#endif
|
|
@ -43,6 +43,9 @@
|
|||
|
||||
gEventMmDispatchGuid = { 0x7e6efffa, 0x69b4, 0x4c1b, { 0xa4, 0xc7, 0xaf, 0xf9, 0xc9, 0x24, 0x4f, 0xee }}
|
||||
|
||||
# Include/Guid/MmStatusCodeUseSerial.h
|
||||
gMmStatusCodeUseSerialHobGuid = { 0xbb55aa97, 0xc7f2, 0x4f60, { 0xac, 0xc3, 0x16, 0xf6, 0xe8, 0xb5, 0x07, 0x79 }}
|
||||
|
||||
[Protocols]
|
||||
gEfiMmEntryNotifyProtocolGuid = { 0x9bfbcc5f, 0x6435, 0x46d3, { 0xb9, 0xa5, 0x70, 0xfb, 0xa4, 0x71, 0xe1, 0x26 }}
|
||||
gEfiMmExitNotifyProtocolGuid = { 0x0e265f48, 0x47c0, 0x471f, { 0x9c, 0x83, 0xc6, 0xd6, 0x57, 0x64, 0x21, 0xa4 }}
|
||||
|
|
Loading…
Reference in New Issue