Lines Matching full:caps

89 	uint32_t		caps;  member
107 uint32_t caps; member
226 t->caps |= HPET_TCNF_INT_ENB; in hpet_start()
230 if (t->mode == TIMER_PERIODIC && (t->caps & HPET_TCAP_PER_INT)) { in hpet_start()
231 t->caps |= HPET_TCNF_TYPE; in hpet_start()
233 t->caps | HPET_TCNF_VAL_SET); in hpet_start()
239 t->caps &= ~HPET_TCNF_TYPE; in hpet_start()
241 t->caps); in hpet_start()
262 t->caps &= ~(HPET_TCNF_INT_ENB | HPET_TCNF_TYPE); in hpet_stop()
263 bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(t->num), t->caps); in hpet_stop()
290 (t->caps & HPET_TCAP_PER_INT) == 0) || in hpet_intr_single()
300 (t->caps & HPET_TCAP_PER_INT) == 0) { in hpet_intr_single()
516 sc->caps = bus_read_4(sc->mem_res, HPET_CAPABILITIES); in hpet_attach()
517 vendor = (sc->caps & HPET_CAP_VENDOR_ID) >> 16; in hpet_attach()
518 rev = sc->caps & HPET_CAP_REV_ID; in hpet_attach()
519 num_timers = 1 + ((sc->caps & HPET_CAP_NUM_TIM) >> 8); in hpet_attach()
545 (sc->caps & HPET_CAP_COUNT_SIZE) ? " 64bit" : "", in hpet_attach()
547 (sc->caps & HPET_CAP_LEG_RT) ? " legacy route" : ""); in hpet_attach()
559 t->caps = bus_read_4(sc->mem_res, HPET_TIMER_CAP_CNF(i)); in hpet_attach()
564 t->vectors, (t->caps & HPET_TCNF_INT_ROUTE) >> 9, in hpet_attach()
565 (t->caps & HPET_TCAP_FSB_INT_DEL) ? ", MSI" : "", in hpet_attach()
566 (t->caps & HPET_TCAP_SIZE) ? ", 64bit" : "", in hpet_attach()
567 (t->caps & HPET_TCAP_PER_INT) ? ", periodic" : ""); in hpet_attach()
608 if ((sc->caps & HPET_CAP_LEG_RT) == 0) in hpet_attach()
669 else if (t->caps & HPET_TCAP_FSB_INT_DEL) { in hpet_attach()
756 t->caps &= ~(HPET_TCNF_FSB_EN | HPET_TCNF_INT_ROUTE); in hpet_attach()
757 t->caps &= ~(HPET_TCNF_VAL_SET | HPET_TCNF_INT_ENB); in hpet_attach()
758 t->caps &= ~(HPET_TCNF_INT_TYPE); in hpet_attach()
759 t->caps |= HPET_TCNF_32MODE; in hpet_attach()
764 if ((t->caps & HPET_TCAP_FSB_INT_DEL) && t->irq >= 0) { in hpet_attach()
775 t->caps |= HPET_TCNF_FSB_EN; in hpet_attach()
781 t->caps |= (t->irq << 9); in hpet_attach()
783 t->caps |= (sc->irq << 9) | HPET_TCNF_INT_TYPE; in hpet_attach()
784 bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(i), t->caps); in hpet_attach()
803 if ((t->caps & HPET_TCAP_PER_INT) == 0) in hpet_attach()
908 (t->caps & HPET_TCAP_PER_INT) != 0) { in hpet_resume()
909 t->caps |= HPET_TCNF_TYPE; in hpet_resume()
912 t->caps | HPET_TCNF_VAL_SET); in hpet_resume()
924 bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(t->num), t->caps); in hpet_resume()