11UINT64 mTimeoutTicker = 0;
13UINT64 mTimeoutTicker2 = 0;
33 UINT64 TimerFrequency;
101 if (CurrentTimer <= Timer) {
102 Delta = Timer - CurrentTimer;
107 Delta = mCycle - (CurrentTimer - Timer) + 1;
113 if (CurrentTimer >= Timer) {
114 Delta = CurrentTimer - Timer;
119 Delta = mCycle - (Timer - CurrentTimer) + 1;
123 return (BOOLEAN)(Delta >= Timeout);
UINT64 EFIAPI GetPerformanceCounterProperties(OUT UINT64 *StartValue OPTIONAL, OUT UINT64 *EndValue OPTIONAL)
UINT64 EFIAPI GetPerformanceCounter(VOID)
UINT64 EFIAPI DivU64x32(IN UINT64 Dividend, IN UINT32 Divisor)
UINT64 EFIAPI MultU64x64(IN UINT64 Multiplicand, IN UINT64 Multiplier)
VOID GetSmmCpuSyncConfigData(IN OUT BOOLEAN *RelaxedMode, OPTIONAL IN OUT UINT64 *SyncTimeout, OPTIONAL IN OUT UINT64 *SyncTimeout2 OPTIONAL)
UINT64 EFIAPI StartSyncTimer(VOID)
VOID InitializeSmmTimer(VOID)
BOOLEAN EFIAPI IsSyncTimerTimeout(IN UINT64 Timer, IN UINT64 Timeout)