ReactOS 0.4.16-dev-976-g18fc5a1
|
#include "ntvdm.h"
#include <debug.h>
#include "emulator.h"
#include "clock.h"
#include "cpu/cpu.h"
#include "hardware/cmos.h"
#include "hardware/ps2.h"
#include "hardware/pit.h"
#include "hardware/video/svga.h"
#include "hardware/mouse.h"
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | STEPS_PER_CYCLE 1024 |
Functions | |
static VOID FASTCALL | IpsCallback (ULONGLONG ElapsedTime) |
VOID | ClockUpdate (VOID) |
PHARDWARE_TIMER | CreateHardwareTimer (ULONG Flags, ULONGLONG Delay, PHARDWARE_TIMER_PROC Callback) |
VOID | EnableHardwareTimer (PHARDWARE_TIMER Timer) |
VOID | DisableHardwareTimer (PHARDWARE_TIMER Timer) |
VOID | SetHardwareTimerDelay (PHARDWARE_TIMER Timer, ULONGLONG NewDelay) |
VOID | DestroyHardwareTimer (PHARDWARE_TIMER Timer) |
BOOLEAN | ClockInitialize (VOID) |
Variables | |
static LIST_ENTRY | Timers |
static LARGE_INTEGER | StartPerfCount |
static LARGE_INTEGER | Frequency |
static LARGE_INTEGER | Counter |
static ULONG | CurrentTickCount |
static ULONGLONG | LastCycles = 0ULL |
static PHARDWARE_TIMER | IpsTimer |
ULONGLONG | CurrentCycleCount = 0ULL |
ULONGLONG | CurrentIps = 20000000ULL |
Definition at line 219 of file clock.c.
Referenced by EmulatorInitialize().
DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0);
SetThreadAffinityMask(GetCurrentThread(), oldmask);
Definition at line 76 of file clock.c.
Referenced by CpuSimulate().
PHARDWARE_TIMER CreateHardwareTimer | ( | ULONG | Flags, |
ULONGLONG | Delay, | ||
PHARDWARE_TIMER_PROC | Callback | ||
) |
Definition at line 144 of file clock.c.
Referenced by ClockInitialize(), CmosInitialize(), MouseInit(), PitInitialize(), PS2Initialize(), and VgaInitialize().
VOID DestroyHardwareTimer | ( | PHARDWARE_TIMER | Timer | ) |
Definition at line 210 of file clock.c.
Referenced by CmosCleanup(), PS2Cleanup(), and VgaCleanup().
VOID DisableHardwareTimer | ( | PHARDWARE_TIMER | Timer | ) |
Definition at line 183 of file clock.c.
Referenced by ClockUpdate(), and RtcUpdatePeriodicTimer().
VOID EnableHardwareTimer | ( | PHARDWARE_TIMER | Timer | ) |
Definition at line 161 of file clock.c.
Referenced by CreateHardwareTimer(), PS2QueuePush(), and RtcUpdatePeriodicTimer().
Definition at line 53 of file clock.c.
Referenced by ClockInitialize().
VOID SetHardwareTimerDelay | ( | PHARDWARE_TIMER | Timer, |
ULONGLONG | NewDelay | ||
) |
Definition at line 197 of file clock.c.
Referenced by CreateHardwareTimer(), and RtcUpdatePeriodicTimer().
|
static |
Definition at line 43 of file clock.c.
Referenced by bar1(), bar2(), ClockUpdate(), CountThread(), DcQueryStatisticCounter(), dojump(), DoWaitForReaders(), eret(), except1(), except2(), except3(), ExpAllocateUuids(), fret(), GetSecondsQPC(), GetTickCountQPC(), i8042DetectMouse(), i8042KbdInterruptService(), i8042MouInterruptService(), i8042ReadDataWait(), i8042Write(), IntAsciiFromInput(), IoMapTransfer(), KsDecrementCountedWorker(), KsIncrementCountedWorker(), LdrpInitSecurityCookie(), main(), Main_DirectDraw_Release(), MiEthernetCrc(), NvNetClearStatisticsCounters(), NvNetQueryHwCounter(), NvNetQuerySoftwareCounter(), PciIdeXFdoQueryDeviceUsageNotification(), PciIdeXPdoQueryDeviceUsageNotification(), PulseSample(), Test79(), Test82(), Test84(), Test85(), Test86(), Test87(), Test88(), TestEventScheduling(), tfAccessViolation(), tfRaiseExcpt(), and VidBiosVideoService().
ULONGLONG CurrentCycleCount = 0ULL |
Definition at line 48 of file clock.c.
Referenced by ClockUpdate(), IpsCallback(), VgaHorizontalRetrace(), and VgaReadPort().
ULONGLONG CurrentIps = 20000000ULL |
Definition at line 49 of file clock.c.
Referenced by IpsCallback(), VgaHorizontalRetrace(), and VgaReadPort().
|
static |
Definition at line 44 of file clock.c.
Referenced by ClockUpdate().
|
static |
Definition at line 41 of file clock.c.
Referenced by BlImgLoadBootApplication(), BlTimeQueryPerformanceCounter(), ClockInitialize(), EngQueryPerformanceFrequency(), ExpAllocateUuids(), GetSecondsQPC(), GetTickCountQPC(), HalMakeBeep(), MakeBeep(), CScanningTunner::performDVBTTune(), QueryPerformanceCounter(), RtcClockRateToPreciseIncrement(), CScanningTunner::SetFrequency(), SetHardwareTimerDelay(), Sound(), and SpeakerChange().
|
static |
Definition at line 46 of file clock.c.
Referenced by ClockInitialize().
|
static |
Definition at line 45 of file clock.c.
Referenced by IpsCallback().
|
static |
Definition at line 41 of file clock.c.
Referenced by ClockInitialize().
|
static |
Definition at line 40 of file clock.c.
Referenced by ClockInitialize(), ClockUpdate(), EnableHardwareTimer(), and KiTimerExpiration().