/* Enable the periodic schedule then wait EHC to actually enable it. */
EFI_STATUS EhcEnablePeriodSchd(IN PEI_USB2_HC_DEV *Ehc, IN UINT32 Timeout)
/* Enable the periodic schedule then wait EHC to actually enable it. */
EFI_STATUS EhcEnablePeriodSchd(IN PEI_USB2_HC_DEV *Ehc, IN UINT32 Timeout)
{
  EFI_STATUS  Status;
  EhcSetOpRegBit (Ehc, EHC_USBCMD_OFFSET, USBCMD_ENABLE_PERIOD);
  Status = EhcWaitOpRegBit (Ehc, EHC_USBSTS_OFFSET, USBSTS_PERIOD_ENABLED, TRUE, Timeout);
  return Status;
}