summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-14 22:32:52 +0000
committerbde <bde@FreeBSD.org>1995-12-14 22:32:52 +0000
commit7f581e5cf4cbe9198f4711a4d60334f1c02e8de8 (patch)
tree1c3c927a0d3d49f3bbdca5b21ab9f5bb9fea6086
parent956b9c95d2207ac92e31e30c9df2462c12336c25 (diff)
downloadFreeBSD-src-7f581e5cf4cbe9198f4711a4d60334f1c02e8de8.zip
FreeBSD-src-7f581e5cf4cbe9198f4711a4d60334f1c02e8de8.tar.gz
Restored unused function ttrstrt(). It would be used if the low level
drivers supported inter-character delays.
-rw-r--r--sys/kern/tty.c28
-rw-r--r--sys/sys/tty.h3
2 files changed, 29 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 1684ede..d54f5f7 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.73 1995/12/13 15:13:11 julian Exp $
+ * $Id: tty.c,v 1.74 1995/12/14 08:31:56 phk Exp $
*/
/*-
@@ -1251,6 +1251,32 @@ ttyunblock(tp)
ttstart(tp);
}
+#ifdef notyet
+/* Not used by any current (i386) drivers. */
+/*
+ * Restart after an inter-char delay.
+ */
+void
+ttrstrt(tp_arg)
+ void *tp_arg;
+{
+ struct tty *tp;
+ int s;
+
+#ifdef DIAGNOSTIC
+ if (tp_arg == NULL)
+ panic("ttrstrt");
+#endif
+ tp = tp_arg;
+ s = spltty();
+
+ CLR(tp->t_state, TS_TIMEOUT);
+ ttstart(tp);
+
+ splx(s);
+}
+#endif
+
int
ttstart(tp)
struct tty *tp;
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 4ccc24d..f0ada35 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.h 8.6 (Berkeley) 1/21/94
- * $Id: tty.h,v 1.32 1995/12/08 11:19:32 julian Exp $
+ * $Id: tty.h,v 1.33 1995/12/14 08:32:37 phk Exp $
*/
#ifndef _SYS_TTY_H_
@@ -235,6 +235,7 @@ void termioschars __P((struct termios *t));
int tputchar __P((int c, struct tty *tp));
int ttioctl __P((struct tty *tp, int com, void *data, int flag));
int ttread __P((struct tty *tp, struct uio *uio, int flag));
+void ttrstrt __P((void *tp));
int ttyselect __P((struct tty *tp, int rw, struct proc *p));
int ttselect __P((dev_t dev, int rw, struct proc *p));
void ttsetwater __P((struct tty *tp));
OpenPOWER on IntegriCloud