aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/tty.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-07-22 16:45:22 +0000
committerBruce Evans <bde@FreeBSD.org>1995-07-22 16:45:22 +0000
commitabe8bea4709d58aea76a71839948d0c955ec2624 (patch)
tree8394b2b46acc5c94b577982d2fdb4c9fa0e24167 /sys/sys/tty.h
parent3ec9b35e8aea233d0fd6e103a73d41e2b2ab5a7e (diff)
downloadsrc-abe8bea4709d58aea76a71839948d0c955ec2624.tar.gz
src-abe8bea4709d58aea76a71839948d0c955ec2624.zip
Obtained from: partly from ancient patches of mine via 1.1.5
Give names to the magic tty i/o sleep addresses and use them. This makes it easier to remember what the addresses are for and to keep them unique.
Notes
Notes: svn path=/head/; revision=9639
Diffstat (limited to 'sys/sys/tty.h')
-rw-r--r--sys/sys/tty.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index 032db54aed8d..fb6a2783778b 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.22 1995/07/21 22:52:01 bde Exp $
+ * $Id: tty.h,v 1.23 1995/07/22 01:30:45 bde Exp $
*/
#ifndef _SYS_TTY_H_
@@ -199,6 +199,13 @@ struct speedtab {
#define isbackground(p, tp) \
(isctty((p), (tp)) && (p)->p_pgrp != (tp)->t_pgrp)
+/* Unique sleep addresses. */
+#define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq) /* XXX overloaded */
+#define TSA_OLOWAT(tp) ((void *)&(tp)->t_outq) /* XXX overloaded */
+#define TSA_PTC_READ(tp) ((void *)&(tp)->t_outq.c_cf)
+#define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_cl)
+#define TSA_PTS_READ(tp) ((void *)&(tp)->t_canq)
+
#ifdef KERNEL
extern struct tty *constty; /* Temporary virtual console. */