summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
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 /sys/kern/tty.c
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.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c28
1 files changed, 27 insertions, 1 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;
OpenPOWER on IntegriCloud