TianoCore EDK2 master
Loading...
Searching...
No Matches
StandaloneMmTcg2PhysicalPresenceLib.c
Go to the documentation of this file.
1
19#include <PiMm.h>
20
21#include <Library/HobLib.h>
22
24
37EFIAPI
39 IN EFI_HANDLE ImageHandle,
40 IN EFI_MM_SYSTEM_TABLE *SystemTable
41 )
42{
44}
45
52BOOLEAN
54 VOID
55 )
56{
57 VOID *GuidHob;
58
59 GuidHob = GetFirstGuidHob (&gEdkiiTcgPhysicalPresenceInterfaceVerHobGuid);
60 ASSERT (GuidHob != NULL);
61
62 if (AsciiStrnCmp (PP_INF_VERSION_1_2, (CHAR8 *)GET_GUID_HOB_DATA (GuidHob), sizeof (PP_INF_VERSION_1_2) - 1) >= 0) {
63 return TRUE;
64 }
65
66 return FALSE;
67}
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
Definition: HobLib.c:215
INTN EFIAPI AsciiStrnCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString, IN UINTN Length)
Definition: String.c:872
#define NULL
Definition: Base.h:319
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
EFI_STATUS Tcg2PhysicalPresenceLibCommonConstructor(VOID)
BOOLEAN IsTcg2PPVerLowerThan_1_3(VOID)
EFI_STATUS EFIAPI Tcg2PhysicalPresenceLibStandaloneMmConstructor(IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33