/* When the timer frequency is 1MHz, each tick corresponds to 1 microsecond. Therefore, the nanosecond delay will be rounded up to the nearest 1 microsecond. */
UINTN EFIAPI NanoSecondDelay(IN UINTN NanoSeconds)
/* When the timer frequency is 1MHz, each tick corresponds to 1 microsecond. Therefore, the nanosecond delay will be rounded up to the nearest 1 microsecond. */
UINTN EFIAPI NanoSecondDelay(IN UINTN NanoSeconds)
{
  UINTN  MicroSeconds;
  MicroSeconds  = NanoSeconds / 1000;
  MicroSeconds += ((NanoSeconds % 1000) == 0) ? 0 : 1;
  MicroSecondDelay (MicroSeconds);
  return NanoSeconds;
}