Lines Matching refs:HPET_REG_BASE

18 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()
242 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + 0xfed00000; in HPET_init()
245 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + 0xfed01000; in HPET_init()
248 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + 0xfed02000; in HPET_init()
251 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + 0xfed03000; in HPET_init()
263 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + 0xfed00000; in HPET_init()
273 HPET_REG_BASE = SPECIAL_MEMOEY_MAPPING_VIRT_ADDR_BASE + hpet_table->address; in HPET_init()
276 kdebug("HPET_REG_BASE=%#018lx", HPET_REG_BASE); in HPET_init()
280 tmp = __read8b(HPET_REG_BASE + GCAP_ID); in HPET_init()