Skip to main content

Module hpet

Module hpet 

Source

Structsยง

HpetInfo

Constantsยง

GAS_ADDR_SPACE_MEMORY ๐Ÿ”’
HPET_CAP_COUNTER_CLK_PERIOD_SHIFT ๐Ÿ”’
HPET_CAP_COUNTER_SIZE ๐Ÿ”’
HPET_CAP_NUM_TIMERS_MASK ๐Ÿ”’
HPET_CONFIG_ENABLE ๐Ÿ”’
HPET_GENERAL_CAP_ID ๐Ÿ”’
HPET_GENERAL_CONFIG ๐Ÿ”’
HPET_MAIN_COUNTER ๐Ÿ”’
HPET_MMIO_MAP_SIZE ๐Ÿ”’
HPET MMIO register page size (minimum 1 KiB, map one full page).

Staticsยง

HPET_INFO ๐Ÿ”’
HPET_INITIALIZED ๐Ÿ”’

Functionsยง

delay_ms
High-precision delay in milliseconds
delay_us
High-precision delay in microseconds
frequency_hz
Get HPET frequency in Hz
hpet_read ๐Ÿ”’ โš 
Performs the hpet read operation.
hpet_write ๐Ÿ”’ โš 
Performs the hpet write operation.
init
Initialize HPET using the already-discovered ACPI table.
is_available
Check if HPET is initialized
num_timers
Get number of timers
read_counter
Read main counter value
tick_period_ns
Get tick period in nanoseconds
uptime_ms
Get elapsed time since boot in milliseconds
uptime_secs
Get elapsed time since boot in seconds