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;
40 struct tty_struct *tty;
46 struct work_struct task;
47 struct line_driver *driver;
51 #define LINE_INIT(str, d) \
53 init_pri : INIT_STATIC, \
70 #define LINES_INIT(n) { num : n }
72 extern void line_close(struct line *lines, struct tty_struct *tty);
73 extern int line_open(struct line *lines, struct tty_struct *tty,
74 struct chan_opts *opts);
75 extern int line_setup(struct line *lines, int num, char *init,
77 extern int line_write(struct line *line, struct tty_struct *tty, const char *buf, int len);
78 extern int line_write_room(struct tty_struct *tty);
79 extern char *add_xterm_umid(char *base);
80 extern int line_setup_irq(int fd, int input, int output, void *data);
81 extern void line_close_chan(struct line *line);
82 extern void line_disable(struct line *line, int current_irq);
83 extern struct tty_driver * line_register_devfs(struct lines *set,
84 struct line_driver *line_driver,
85 struct tty_operations *driver,
88 extern void lines_init(struct line *lines, int nlines);
89 extern void close_lines(struct line *lines, int nlines);
90 extern int line_config(struct line *lines, int num, char *str);
91 extern int line_remove(struct line *lines, int num, char *str);
92 extern int line_get_config(char *dev, struct line *lines, int num, char *str,
93 int size, char **error_out);
98 * Overrides for Emacs so that we follow Linus's tabbing style.
99 * Emacs will notice this stuff at the end of the file and automatically
100 * adjust the settings for this buffer only. This must remain at the end
102 * ---------------------------------------------------------------------------
104 * c-file-style: "linux"