Lines Matching refs:tty

5  * 'tty.h' defines some structures used by tty_io.c and some defines.
37 * This is the flip buffer used for the tty driver. The buffer is
38 * located in the tty structure, and is used as a high speed interface
39 * between the tty driver and the tty line discipline.
79 #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
80 #define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT])
81 #define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE])
82 #define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL])
83 #define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF])
84 #define TIME_CHAR(tty) ((tty)->termios->c_cc[VTIME])
85 #define MIN_CHAR(tty) ((tty)->termios->c_cc[VMIN])
86 #define SWTC_CHAR(tty) ((tty)->termios->c_cc[VSWTC])
87 #define START_CHAR(tty) ((tty)->termios->c_cc[VSTART])
88 #define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP])
89 #define SUSP_CHAR(tty) ((tty)->termios->c_cc[VSUSP])
90 #define EOL_CHAR(tty) ((tty)->termios->c_cc[VEOL])
91 #define REPRINT_CHAR(tty) ((tty)->termios->c_cc[VREPRINT])
92 #define DISCARD_CHAR(tty) ((tty)->termios->c_cc[VDISCARD])
93 #define WERASE_CHAR(tty) ((tty)->termios->c_cc[VWERASE])
94 #define LNEXT_CHAR(tty) ((tty)->termios->c_cc[VLNEXT])
95 #define EOL2_CHAR(tty) ((tty)->termios->c_cc[VEOL2])
97 #define _I_FLAG(tty,f) ((tty)->termios->c_iflag & (f))
98 #define _O_FLAG(tty,f) ((tty)->termios->c_oflag & (f))
99 #define _C_FLAG(tty,f) ((tty)->termios->c_cflag & (f))
100 #define _L_FLAG(tty,f) ((tty)->termios->c_lflag & (f))
102 #define I_IGNBRK(tty) _I_FLAG((tty),IGNBRK)
103 #define I_BRKINT(tty) _I_FLAG((tty),BRKINT)
104 #define I_IGNPAR(tty) _I_FLAG((tty),IGNPAR)
105 #define I_PARMRK(tty) _I_FLAG((tty),PARMRK)
106 #define I_INPCK(tty) _I_FLAG((tty),INPCK)
107 #define I_ISTRIP(tty) _I_FLAG((tty),ISTRIP)
108 #define I_INLCR(tty) _I_FLAG((tty),INLCR)
109 #define I_IGNCR(tty) _I_FLAG((tty),IGNCR)
110 #define I_ICRNL(tty) _I_FLAG((tty),ICRNL)
111 #define I_IUCLC(tty) _I_FLAG((tty),IUCLC)
112 #define I_IXON(tty) _I_FLAG((tty),IXON)
113 #define I_IXANY(tty) _I_FLAG((tty),IXANY)
114 #define I_IXOFF(tty) _I_FLAG((tty),IXOFF)
115 #define I_IMAXBEL(tty) _I_FLAG((tty),IMAXBEL)
116 #define I_IUTF8(tty) _I_FLAG((tty),IUTF8)
118 #define O_OPOST(tty) _O_FLAG((tty),OPOST)
119 #define O_OLCUC(tty) _O_FLAG((tty),OLCUC)
120 #define O_ONLCR(tty) _O_FLAG((tty),ONLCR)
121 #define O_OCRNL(tty) _O_FLAG((tty),OCRNL)
122 #define O_ONOCR(tty) _O_FLAG((tty),ONOCR)
123 #define O_ONLRET(tty) _O_FLAG((tty),ONLRET)
124 #define O_OFILL(tty) _O_FLAG((tty),OFILL)
125 #define O_OFDEL(tty) _O_FLAG((tty),OFDEL)
126 #define O_NLDLY(tty) _O_FLAG((tty),NLDLY)
127 #define O_CRDLY(tty) _O_FLAG((tty),CRDLY)
128 #define O_TABDLY(tty) _O_FLAG((tty),TABDLY)
129 #define O_BSDLY(tty) _O_FLAG((tty),BSDLY)
130 #define O_VTDLY(tty) _O_FLAG((tty),VTDLY)
131 #define O_FFDLY(tty) _O_FLAG((tty),FFDLY)
133 #define C_BAUD(tty) _C_FLAG((tty),CBAUD)
134 #define C_CSIZE(tty) _C_FLAG((tty),CSIZE)
135 #define C_CSTOPB(tty) _C_FLAG((tty),CSTOPB)
136 #define C_CREAD(tty) _C_FLAG((tty),CREAD)
137 #define C_PARENB(tty) _C_FLAG((tty),PARENB)
138 #define C_PARODD(tty) _C_FLAG((tty),PARODD)
139 #define C_HUPCL(tty) _C_FLAG((tty),HUPCL)
140 #define C_CLOCAL(tty) _C_FLAG((tty),CLOCAL)
141 #define C_CIBAUD(tty) _C_FLAG((tty),CIBAUD)
142 #define C_CRTSCTS(tty) _C_FLAG((tty),CRTSCTS)
144 #define L_ISIG(tty) _L_FLAG((tty),ISIG)
145 #define L_ICANON(tty) _L_FLAG((tty),ICANON)
146 #define L_XCASE(tty) _L_FLAG((tty),XCASE)
147 #define L_ECHO(tty) _L_FLAG((tty),ECHO)
148 #define L_ECHOE(tty) _L_FLAG((tty),ECHOE)
149 #define L_ECHOK(tty) _L_FLAG((tty),ECHOK)
150 #define L_ECHONL(tty) _L_FLAG((tty),ECHONL)
151 #define L_NOFLSH(tty) _L_FLAG((tty),NOFLSH)
152 #define L_TOSTOP(tty) _L_FLAG((tty),TOSTOP)
153 #define L_ECHOCTL(tty) _L_FLAG((tty),ECHOCTL)
154 #define L_ECHOPRT(tty) _L_FLAG((tty),ECHOPRT)
155 #define L_ECHOKE(tty) _L_FLAG((tty),ECHOKE)
156 #define L_FLUSHO(tty) _L_FLAG((tty),FLUSHO)
157 #define L_PENDIN(tty) _L_FLAG((tty),PENDIN)
158 #define L_IEXTEN(tty) _L_FLAG((tty),IEXTEN)
162 * Where all of the state associated with a tty is kept while the tty
163 * is open. Since the termios state should be kept even if the tty
206 * historical reasons, this is included in the tty structure.
228 /* If the tty has a pending do_SAK, queue it here - akpm */
232 /* tty magic number */
236 * These bits are used in the flags field of the tty structure.
240 * tty->write. Thus, you must use the inline functions set_bit() and
258 #define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
269 extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
271 extern char *tty_name(struct tty_struct *tty, char *buf);
272 extern void tty_wait_until_sent(struct tty_struct * tty, long timeout);
273 extern int tty_check_change(struct tty_struct * tty);
274 extern void stop_tty(struct tty_struct * tty);
275 extern void start_tty(struct tty_struct * tty);
284 extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
286 extern void tty_write_message(struct tty_struct *tty, char *msg);
290 extern int tty_signal(int sig, struct tty_struct *tty);
291 extern void tty_hangup(struct tty_struct * tty);
292 extern void tty_vhangup(struct tty_struct * tty);
295 extern void do_SAK(struct tty_struct *tty);
297 extern void tty_flip_buffer_push(struct tty_struct *tty);
298 extern int tty_get_baud_rate(struct tty_struct *tty);
308 extern void tty_wakeup(struct tty_struct *tty);
309 extern void tty_ldisc_flush(struct tty_struct *tty);
317 extern int n_tty_ioctl(struct tty_struct * tty, struct file * file,
326 extern int pcxe_open(struct tty_struct *tty, struct file *filp);
334 extern int vt_ioctl(struct tty_struct *tty, struct file * file,
337 static inline dev_t tty_devnum(struct tty_struct *tty)
339 return MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index;