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, int from_user,
78 const char *buf, int len);
79 extern int line_write_room(struct tty_struct *tty);
80 extern char *add_xterm_umid(char *base);
81 extern int line_setup_irq(int fd, int input, int output, void *data);
82 extern void line_close_chan(struct line *line);
83 extern void line_disable(struct line *line, int current_irq);
84 extern struct tty_driver * line_register_devfs(struct lines *set,
85 struct line_driver *line_driver,
86 struct tty_operations *driver,
89 extern void lines_init(struct line *lines, int nlines);
90 extern void close_lines(struct line *lines, int nlines);
91 extern int line_config(struct line *lines, int num, char *str);
92 extern int line_remove(struct line *lines, int num, char *str);
93 extern int line_get_config(char *dev, struct line *lines, int num, char *str,
94 int size, char **error_out);
99 * Overrides for Emacs so that we follow Linus's tabbing style.
100 * Emacs will notice this stuff at the end of the file and automatically
101 * adjust the settings for this buffer only. This must remain at the end
103 * ---------------------------------------------------------------------------
105 * c-file-style: "linux"