/* Convert the poll rate to the maximum 2^n that is smaller than Interval. */
UINTN UhciConvertPollRate(IN UINTN Interval)
/* Convert the poll rate to the maximum 2^n that is smaller than Interval. */
UINTN UhciConvertPollRate(IN UINTN Interval)
{
  UINTN  BitCount;
  ASSERT (Interval != 0);
  if (Interval == 0) {
    Interval = 1;
  }
  BitCount = 0;
  while (Interval != 0) {
    Interval >>= 1;
    BitCount++;
  }
  return (UINTN)1 << (BitCount - 1);
}