35UINT64 mSuspendStartTime = 0;
36BOOLEAN mS3SuspendLockBoxSaved =
FALSE;
75 return EFI_UNSUPPORTED;
78 if ((Data !=
NULL) &&
CompareGuid (&Data->Type, &gEfiFirmwarePerformanceGuid)) {
79 DEBUG ((DEBUG_ERROR,
"FpdtStatusCodeListenerMm: Performance data reported through gEfiFirmwarePerformanceGuid will not be collected by FirmwarePerformanceDataTableMm\n"));
80 return EFI_UNSUPPORTED;
83 if ((Value !=
PcdGet32 (PcdProgressCodeS3SuspendStart)) &&
84 (Value !=
PcdGet32 (PcdProgressCodeS3SuspendEnd)))
86 return EFI_UNSUPPORTED;
94 if (Value ==
PcdGet32 (PcdProgressCodeS3SuspendStart)) {
98 mSuspendStartTime = CurrentTime;
111 if (!mS3SuspendLockBoxSaved) {
113 &gEfiFirmwarePerformanceGuid,
119 mS3SuspendLockBoxSaved =
TRUE;
122 &gEfiFirmwarePerformanceGuid,
150 Status = gMmst->MmLocateProtocol (
151 &gEfiMmRscHandlerProtocolGuid,
153 (VOID **)&mRscHandlerProtocol
UINT64 EFIAPI GetTimeInNanoSecond(IN UINT64 Ticks)
UINT64 EFIAPI GetPerformanceCounter(VOID)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
RETURN_STATUS EFIAPI UpdateLockBox(IN GUID *Guid, IN UINTN Offset, IN VOID *Buffer, IN UINTN Length)
RETURN_STATUS EFIAPI SaveLockBox(IN GUID *Guid, IN VOID *Buffer, IN UINTN Length)
#define ASSERT_EFI_ERROR(StatusParameter)
#define DEBUG(Expression)
#define PcdGet32(TokenName)
UINT32 EFI_STATUS_CODE_VALUE
#define EFI_PROGRESS_CODE
UINT32 EFI_STATUS_CODE_TYPE
#define EFI_STATUS_CODE_TYPE_MASK