TianoCore EDK2 master
Loading...
Searching...
No Matches
Tcg2TraditionalMm.c
Go to the documentation of this file.
1
18#include "Tcg2Smm.h"
20#include <Library/SmmMemLib.h>
21
25VOID
27 VOID
28 )
29{
30 EFI_STATUS Status;
31 EFI_HANDLE Handle;
32
33 Handle = NULL;
34 Status = gBS->InstallProtocolInterface (
35 &Handle,
36 &gTcg2MmSwSmiRegisteredGuid,
38 NULL
39 );
40 ASSERT_EFI_ERROR (Status);
41}
42
54BOOLEAN
57 IN UINT64 Length
58 )
59{
60 return SmmIsBufferOutsideSmmValid (Buffer, Length);
61}
62
74BOOLEAN
77 IN UINT64 Length
78 )
79{
80 return SmmIsBufferOutsideSmmValid (Buffer, Length);
81}
82
89BOOLEAN
91 VOID
92 )
93{
94 return CompareGuid (PcdGetPtr (PcdTpmInstanceGuid), &gEfiTpmDeviceInstanceTpm20DtpmGuid);
95}
96
111EFIAPI
113 IN EFI_HANDLE ImageHandle,
114 IN EFI_SYSTEM_TABLE *SystemTable
115 )
116{
117 return InitializeTcgCommon ();
118}
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
Definition: MemLibGuid.c:73
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
#define PcdGetPtr(TokenName)
Definition: PcdLib.h:388
BOOLEAN EFIAPI SmmIsBufferOutsideSmmValid(IN EFI_PHYSICAL_ADDRESS Buffer, IN UINT64 Length)
Definition: SmmMemLib.c:114
EFI_STATUS InitializeTcgCommon(VOID)
Definition: Tcg2Smm.c:214
BOOLEAN IsTpm20Dtpm(VOID)
BOOLEAN Tcg2IsNonPrimaryBufferValid(IN EFI_PHYSICAL_ADDRESS Buffer, IN UINT64 Length)
VOID Tcg2NotifyMmReady(VOID)
BOOLEAN Tcg2IsPrimaryBufferValid(IN EFI_PHYSICAL_ADDRESS Buffer, IN UINT64 Length)
EFI_STATUS EFIAPI InitializeTcgSmm(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS
@ EFI_NATIVE_INTERFACE
Definition: UefiSpec.h:1193