/* This function is the entry point of the Fault Tolerant Write driver. */
EFI_STATUS EFIAPI FaultTolerantWriteInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* This function is the entry point of the Fault Tolerant Write driver. */
EFI_STATUS EFIAPI FaultTolerantWriteInitialize(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  EFI_STATUS      Status;
  EFI_FTW_DEVICE  *FtwDevice;
  FtwDevice = NULL;
  Status = InitFtwDevice (&FtwDevice);
  if (EFI_ERROR (Status)) {
    return Status;
  }
  EfiCreateProtocolNotifyEvent (
    &gEfiFirmwareVolumeBlockProtocolGuid,
    TPL_CALLBACK,
    FvbNotificationEvent,
    (VOID *)FtwDevice,
    &mFvbRegistration
    );
  return EFI_SUCCESS;
}