TianoCore EDK2 master
Loading...
Searching...
No Matches
Tcg2PlatformDxe.c
Go to the documentation of this file.
1
9#include <PiDxe.h>
10
11#include <Library/DebugLib.h>
13#include <Library/UefiLib.h>
16
26VOID
27EFIAPI
29 IN EFI_EVENT Event,
30 IN VOID *Context
31 )
32{
33 EFI_STATUS Status;
34 VOID *Interface;
35
36 //
37 // Try to locate it because EfiCreateProtocolNotifyEvent will trigger it once when registration.
38 // Just return if it is not found.
39 //
40 Status = gBS->LocateProtocol (
41 &gEfiDxeSmmReadyToLockProtocolGuid,
42 NULL,
43 &Interface
44 );
45 if (EFI_ERROR (Status)) {
46 return;
47 }
48
50
51 gBS->CloseEvent (Event);
52}
53
65EFIAPI
67 IN EFI_HANDLE ImageHandle,
68 IN EFI_SYSTEM_TABLE *SystemTable
69 )
70{
71 VOID *Registration;
72 EFI_EVENT Event;
73
75 &gEfiDxeSmmReadyToLockProtocolGuid,
76 TPL_CALLBACK,
78 NULL,
79 &Registration
80 );
81
82 ASSERT (Event != NULL);
83
84 return EFI_SUCCESS;
85}
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
VOID EFIAPI ConfigureTpmPlatformHierarchy()
EFI_STATUS EFIAPI Tcg2PlatformDxeEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI SmmReadyToLockEventCallBack(IN EFI_EVENT Event, IN VOID *Context)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_BOOT_SERVICES * gBS
EFI_EVENT EFIAPI EfiCreateProtocolNotifyEvent(IN EFI_GUID *ProtocolGuid, IN EFI_TPL NotifyTpl, IN EFI_EVENT_NOTIFY NotifyFunction, IN VOID *NotifyContext OPTIONAL, OUT VOID **Registration)
Definition: UefiLib.c:134