Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/pseries/phyp_console.c
Show First 20 Lines • Show All 441 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
uart_phyp_intr(void *v) | uart_phyp_intr(void *v) | ||||
{ | { | ||||
struct uart_phyp_softc *sc = v; | struct uart_phyp_softc *sc = v; | ||||
struct tty *tp = sc->tp; | struct tty *tp = sc->tp; | ||||
unsigned char c; | unsigned char c; | ||||
int len; | int len; | ||||
tty_lock(tp); | ttydisc_lock(tp); | ||||
while ((len = uart_phyp_get(sc, &c, 1)) > 0) | while ((len = uart_phyp_get(sc, &c, 1)) > 0) | ||||
ttydisc_rint(tp, c, 0); | ttydisc_rint(tp, c, 0); | ||||
ttydisc_rint_done(tp); | ttydisc_rint_done(tp); | ||||
tty_unlock(tp); | ttydisc_unlock(tp); | ||||
if (sc->irqres == NULL) | if (sc->irqres == NULL) | ||||
callout_reset(&sc->callout, sc->polltime, uart_phyp_intr, sc); | callout_reset(&sc->callout, sc->polltime, uart_phyp_intr, sc); | ||||
} | } |