/* The driver's entry point. Will register a function for callback during SmmReadyToLock event to configure the TPM's platform authorization. */
EFI_STATUS EFIAPI Tcg2PlatformDxeEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* The driver's entry point. Will register a function for callback during SmmReadyToLock event to configure the TPM's platform authorization. */
EFI_STATUS EFIAPI Tcg2PlatformDxeEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  VOID       *Registration;
  EFI_EVENT  Event;
  Event = EfiCreateProtocolNotifyEvent (
            &gEfiDxeSmmReadyToLockProtocolGuid,
            TPL_CALLBACK,
            SmmReadyToLockEventCallBack,
            NULL,
            &Registration
            );
  ASSERT (Event != NULL);
  return EFI_SUCCESS;
}