14#define DEFAULT_DELAY_TIME_IN_MICROSECONDS 10
31 "Warning: This BaseRngTimerLib implementation will be deprecated. "
32 "Please use the MdeModulePkg implementation equivalent.\n"
57 ASSERT (CounterHz != 0);
58 return DEFAULT_DELAY_TIME_IN_MICROSECONDS;
86 UINT32 DelayInMicroSeconds;
95 RandPtr = (UINT8 *)
Rand;
97 for (Index = 0; Index <
sizeof (UINT16); Index++) {
126 UINT32 DelayInMicroSeconds;
134 RandPtr = (UINT8 *)
Rand;
137 for (Index = 0; Index <
sizeof (UINT32); Index++) {
166 UINT32 DelayInMicroSeconds;
174 RandPtr = (UINT8 *)
Rand;
177 for (Index = 0; Index <
sizeof (UINT64); Index++) {
UINT64 EFIAPI GetPerformanceCounterProperties(OUT UINT64 *StartValue OPTIONAL, OUT UINT64 *EndValue OPTIONAL)
UINT64 EFIAPI GetPerformanceCounter(VOID)
UINTN EFIAPI MicroSecondDelay(IN UINTN MicroSeconds)
UINT64 EFIAPI DivU64x64Remainder(IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL)
STATIC UINT32 CalculateMinimumDecentDelayInMicroseconds(VOID)
BOOLEAN EFIAPI GetRandomNumber16(OUT UINT16 *Rand)
EFI_STATUS EFIAPI GetRngGuid(GUID *RngGuid)
BOOLEAN EFIAPI GetRandomNumber32(OUT UINT32 *Rand)
BOOLEAN EFIAPI GetRandomNumber128(OUT UINT64 *Rand)
BOOLEAN EFIAPI GetRandomNumber64(OUT UINT64 *Rand)
#define RETURN_UNSUPPORTED
#define DEBUG(Expression)
RETURN_STATUS EFIAPI BaseRngLibTimerConstructor(VOID)