2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 #include "linux/list.h"
10 #include "linux/workqueue.h"
11 #include "linux/tty.h"
12 #include "linux/interrupt.h"
13 #include "asm/semaphore.h"
14 #include "chan_user.h"
15 #include "mconsole_kern.h"
37 struct list_head chan_list;
45 struct work_struct task;
46 struct line_driver *driver;
50 #define LINE_INIT(str, d) \
52 init_pri : INIT_STATIC, \
67 #define LINES_INIT(n) { num : n }
69 extern void line_close(struct tty_struct *tty, struct file * filp);
70 extern int line_open(struct line *lines, struct tty_struct *tty,
71 struct chan_opts *opts);
72 extern int line_setup(struct line *lines, int num, char *init,
74 extern int line_write(struct tty_struct *tty, const unsigned char *buf, int len);
75 extern void line_put_char(struct tty_struct *tty, unsigned char ch);
76 extern void line_set_termios(struct tty_struct *tty, struct termios * old);
77 extern int line_chars_in_buffer(struct tty_struct *tty);
78 extern int line_write_room(struct tty_struct *tty);
79 extern int line_ioctl(struct tty_struct *tty, struct file * file,
80 unsigned int cmd, unsigned long arg);
81 extern char *add_xterm_umid(char *base);
82 extern int line_setup_irq(int fd, int input, int output, struct tty_struct *tty);
83 extern void line_close_chan(struct line *line);
84 extern void line_disable(struct tty_struct *tty, int current_irq);
85 extern struct tty_driver * line_register_devfs(struct lines *set,
86 struct line_driver *line_driver,
87 struct tty_operations *driver,
90 extern void lines_init(struct line *lines, int nlines);
91 extern void close_lines(struct line *lines, int nlines);
92 extern int line_config(struct line *lines, int num, char *str);
93 extern int line_remove(struct line *lines, int num, char *str);
94 extern int line_get_config(char *dev, struct line *lines, int num, char *str,
95 int size, char **error_out);
100 * Overrides for Emacs so that we follow Linus's tabbing style.
101 * Emacs will notice this stuff at the end of the file and automatically
102 * adjust the settings for this buffer only. This must remain at the end
104 * ---------------------------------------------------------------------------
106 * c-file-style: "linux"