Newer
Older
AMI-Aptio-BIOS-Reversed / SmartTimer / README.md
@Ajax Dong Ajax Dong 2 days ago 786 bytes Init

SmartTimer, 0156, 6500 bytes, DXE

Implements the EFI_TIMER_ARCH_PROTOCOL for the Purley/LBG PCH platform. Uses the 8254 PIT counter 0 for periodic SMI generation and the ACPI PM timer (3.579545 MHz) for time measurement, with conversion to 100ns UEFI performance counter units. Installed as a UEFI runtime DXE driver.

Key Functions: TimerRegisterHandler, TimerSetTimerPeriod (programs PIT counter 0 mode 3), TimerGetTimerPeriod, TimerGenerateSoftInterrupt, ReadAcpiTimer (24-bit PM counter), GetElapsedTime (46869689 * delta >> 24 conversion).

Protocols/Dependencies: EFI_TIMER_ARCH_PROTOCOL, PCH_SMM_REGISTER_PROTOCOL, EFI_SMM_CONTROL_REGISTER_PROTOCOL, MM_PCI_BASE_PROTOCOL, ACPI PM Timer (PCH), 8254 PIT.

Platform: PurleySktPkg/SouthClusterLbg/SmartTimer/Dxe, VS2015 X64 DEBUG.