00001 #ifndef _LINUX_TTY_FLIP_H
00002 #define _LINUX_TTY_FLIP_H
00003
00004 #ifdef INCLUDE_INLINE_FUNCS
00005 #define _INLINE_ extern
00006 #else
00007 #define _INLINE_ extern __inline__
00008 #endif
00009
00010 _INLINE_ void tty_insert_flip_char(struct tty_struct *tty,
00011 unsigned char ch, char flag)
00012 {
00013 if (tty->flip.count < TTY_FLIPBUF_SIZE) {
00014 tty->flip.count++;
00015 *tty->flip.flag_buf_ptr++ = flag;
00016 *tty->flip.char_buf_ptr++ = ch;
00017 }
00018 }
00019
00020 _INLINE_ void tty_schedule_flip(struct tty_struct *tty)
00021 {
00022 queue_task(&tty->flip.tqueue, &tq_timer);
00023 }
00024
00025 #undef _INLINE_
00026
00027
00028 #endif
00029
00030
00031
00032
00033
00034
00035