diff options
Diffstat (limited to 'arch/um/include/chan_kern.h')
-rw-r--r-- | arch/um/include/chan_kern.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/um/include/chan_kern.h b/arch/um/include/chan_kern.h index 22bf3a73437c..84d1f64f9795 100644 --- a/arch/um/include/chan_kern.h +++ b/arch/um/include/chan_kern.h | |||
@@ -14,11 +14,14 @@ | |||
14 | 14 | ||
15 | struct chan { | 15 | struct chan { |
16 | struct list_head list; | 16 | struct list_head list; |
17 | struct list_head free_list; | ||
18 | struct line *line; | ||
17 | char *dev; | 19 | char *dev; |
18 | unsigned int primary:1; | 20 | unsigned int primary:1; |
19 | unsigned int input:1; | 21 | unsigned int input:1; |
20 | unsigned int output:1; | 22 | unsigned int output:1; |
21 | unsigned int opened:1; | 23 | unsigned int opened:1; |
24 | unsigned int enabled:1; | ||
22 | int fd; | 25 | int fd; |
23 | struct chan_ops *ops; | 26 | struct chan_ops *ops; |
24 | void *data; | 27 | void *data; |
@@ -26,7 +29,7 @@ struct chan { | |||
26 | 29 | ||
27 | extern void chan_interrupt(struct list_head *chans, struct work_struct *task, | 30 | extern void chan_interrupt(struct list_head *chans, struct work_struct *task, |
28 | struct tty_struct *tty, int irq); | 31 | struct tty_struct *tty, int irq); |
29 | extern int parse_chan_pair(char *str, struct list_head *chans, int device, | 32 | extern int parse_chan_pair(char *str, struct line *line, int device, |
30 | struct chan_opts *opts); | 33 | struct chan_opts *opts); |
31 | extern int open_chan(struct list_head *chans); | 34 | extern int open_chan(struct list_head *chans); |
32 | extern int write_chan(struct list_head *chans, const char *buf, int len, | 35 | extern int write_chan(struct list_head *chans, const char *buf, int len, |
@@ -35,9 +38,9 @@ extern int console_write_chan(struct list_head *chans, const char *buf, | |||
35 | int len); | 38 | int len); |
36 | extern int console_open_chan(struct line *line, struct console *co, | 39 | extern int console_open_chan(struct line *line, struct console *co, |
37 | struct chan_opts *opts); | 40 | struct chan_opts *opts); |
38 | extern void close_chan(struct list_head *chans); | ||
39 | extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty); | 41 | extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty); |
40 | extern void enable_chan(struct list_head *chans, struct tty_struct *tty); | 42 | extern void enable_chan(struct line *line); |
43 | extern void close_chan(struct list_head *chans, int delay_free_irq); | ||
41 | extern int chan_window_size(struct list_head *chans, | 44 | extern int chan_window_size(struct list_head *chans, |
42 | unsigned short *rows_out, | 45 | unsigned short *rows_out, |
43 | unsigned short *cols_out); | 46 | unsigned short *cols_out); |