summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/termios.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-31 21:42:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-01-31 21:42:36 +0000
commit5ec6f09189a6f8e284198801b6320add24bf5810 (patch)
treec8915715a73102cef71244941cce33416d22abfe /c/src/lib/libc/termios.c
parent2001-01-31 Mike Siers <mikes@poliac.com> (diff)
downloadrtems-5ec6f09189a6f8e284198801b6320add24bf5810.tar.bz2
2001-01-31 Mike Siers <mikes@poliac.com>
* Nice Update of PPPD support which eliminates the requiremetn that drivers be in the termios TASK_DRIVEN mode. Mike did significant testing and reports that it seems to be more stable and handle larger packets better. This patch replaces the termios tasks with more general pppd network driver tasks. The functions pppinput() and pppstart() get called from the interrupt service routine. * libc/termios.c: Added PPCDISC.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libc/termios.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/c/src/lib/libc/termios.c b/c/src/lib/libc/termios.c
index 0a04783648..25b8f00c9a 100644
--- a/c/src/lib/libc/termios.c
+++ b/c/src/lib/libc/termios.c
@@ -1412,6 +1412,15 @@ rtems_termios_dequeue_characters (void *ttyp, int len)
rtems_fatal_error_occurred (sc);
return 0; /* nothing to output in IRQ... */
}
+ else if (tty->t_line == PPPDISC ) {
+ /*
+ * call any line discipline start function
+ */
+ if (linesw[tty->t_line].l_start != NULL) {
+ linesw[tty->t_line].l_start(tty);
+ }
+ return 0; /* nothing to output in IRQ... */
+ }
else {
return rtems_termios_refill_transmitter(tty);
}