static void cuda_adb_poll(void *cookie) { struct cuda_softc *sc = cookie; int s; s = splhigh(); cuda_intr(sc); splx(s); }
static u_int cuda_poll(device_t dev) { struct cuda_softc *sc = device_get_softc(dev); if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) && !sc->sc_waiting) return (0); cuda_intr(dev); return (0); }
static void cuda_poll(void *cookie) { struct cuda_softc *sc = cookie; int s; DPRINTF("polling\n"); while ((sc->sc_state != CUDA_IDLE) || (cuda_intr_state(sc)) || (sc->sc_waiting == 1)) { if ((cuda_read_reg(sc, vIFR) & vSR_INT) == vSR_INT) { s = splhigh(); cuda_intr(sc); splx(s); } } }