| 296 | } |
| 297 | |
| 298 | static int |
| 299 | arm_tmr_intr(void *arg) |
| 300 | { |
| 301 | struct arm_tmr_softc *sc; |
| 302 | int ctrl; |
| 303 | |
| 304 | sc = (struct arm_tmr_softc *)arg; |
| 305 | ctrl = get_ctrl(sc->physical); |
| 306 | if (ctrl & GT_CTRL_INT_STAT) { |
| 307 | ctrl |= GT_CTRL_INT_MASK; |
| 308 | set_ctrl(ctrl, sc->physical); |
| 309 | } |
| 310 | |
| 311 | if (sc->et.et_active) |
| 312 | sc->et.et_event_cb(&sc->et, sc->et.et_arg); |
| 313 | |
| 314 | return (FILTER_HANDLED); |
| 315 | } |
| 316 | |
| 317 | #ifdef FDT |
| 318 | static int |