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
23
#include "
MmTcg2PhysicalPresenceLibCommon.h
"
24
36
EFI_STATUS
37
EFIAPI
38
Tcg2PhysicalPresenceLibStandaloneMmConstructor
(
39
IN
EFI_HANDLE
ImageHandle,
40
IN
EFI_MM_SYSTEM_TABLE
*SystemTable
41
)
42
{
43
return
Tcg2PhysicalPresenceLibCommonConstructor
();
44
}
45
52
BOOLEAN
53
IsTcg2PPVerLowerThan_1_3
(
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
}
GetFirstGuidHob
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
Definition:
HobLib.c:215
AsciiStrnCmp
INTN EFIAPI AsciiStrnCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString, IN UINTN Length)
Definition:
String.c:872
HobLib.h
NULL
#define NULL
Definition:
Base.h:319
TRUE
#define TRUE
Definition:
Base.h:301
FALSE
#define FALSE
Definition:
Base.h:307
IN
#define IN
Definition:
Base.h:279
Tcg2PhysicalPresenceLibCommonConstructor
EFI_STATUS Tcg2PhysicalPresenceLibCommonConstructor(VOID)
Definition:
MmTcg2PhysicalPresenceLibCommon.c:377
MmTcg2PhysicalPresenceLibCommon.h
PiMm.h
IsTcg2PPVerLowerThan_1_3
BOOLEAN IsTcg2PPVerLowerThan_1_3(VOID)
Definition:
StandaloneMmTcg2PhysicalPresenceLib.c:53
Tcg2PhysicalPresenceLibStandaloneMmConstructor
EFI_STATUS EFIAPI Tcg2PhysicalPresenceLibStandaloneMmConstructor(IN EFI_HANDLE ImageHandle, IN EFI_MM_SYSTEM_TABLE *SystemTable)
Definition:
StandaloneMmTcg2PhysicalPresenceLib.c:38
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
_EFI_MM_SYSTEM_TABLE
Definition:
PiMmCis.h:249
SecurityPkg
Library
SmmTcg2PhysicalPresenceLib
StandaloneMmTcg2PhysicalPresenceLib.c
Generated on Fri Nov 15 2024 18:01:23 for TianoCore EDK2 by
1.9.6