Home
last modified time | relevance | path

Searched refs:HPET_REG_BASE (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.2/kernel/src/driver/timers/HPET/
DHPET.c18 static uint64_t HPET_REG_BASE = 0; variable
137 __write8b(HPET_REG_BASE + MAIN_CNT, 0); in HPET_measure_freq()
139 __write8b((HPET_REG_BASE + TIM0_CONF), 0x0044); // 设置定时器0为非周期,边沿触发,默认投递到IO APIC的2号引脚 in HPET_measure_freq()
141 __write8b(HPET_REG_BASE + TIM0_COMP, clks_to_intr); in HPET_measure_freq()
160 __write8b(HPET_REG_BASE + GEN_CONF, 3); // 置位旧设备中断路由兼容标志位、定时器组使能标志位,开始计时 in HPET_measure_freq()
170 *(uint64_t *)(HPET_REG_BASE + GEN_CONF) = 0; // 停用HPET定时器 in HPET_measure_freq()
199 __write8b(HPET_REG_BASE + MAIN_CNT, 0); in HPET_enable()
201 …__write8b(HPET_REG_BASE + TIM0_CONF, 0x004c); // 设置定时器0为周期定时,边沿触发,默认投递到IO APIC的2号引脚(看conf寄存器的高32bi… in HPET_enable()
203 __write8b(HPET_REG_BASE + TIM0_COMP, clks_to_intr); in HPET_enable()
214 __write8b(HPET_REG_BASE + GEN_CONF, 3); // 置位旧设备中断路由兼容标志位、定时器组使能标志位 in HPET_enable()
[all …]