2 * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __CHAN_KERN_H__
7 #define __CHAN_KERN_H__
10 #include "linux/list.h"
11 #include "linux/console.h"
12 #include "chan_user.h"
16 struct list_head list
;
18 unsigned int primary
:1;
20 unsigned int output
:1;
21 unsigned int opened
:1;
23 enum chan_init_pri pri
;
28 extern void chan_interrupt(struct list_head
*chans
, struct work_struct
*task
,
29 struct tty_struct
*tty
, int irq
);
30 extern int parse_chan_pair(char *str
, struct list_head
*chans
, int pri
,
31 int device
, struct chan_opts
*opts
);
32 extern int open_chan(struct list_head
*chans
);
33 extern int write_chan(struct list_head
*chans
, const char *buf
, int len
,
35 extern int console_write_chan(struct list_head
*chans
, const char *buf
,
37 extern int console_open_chan(struct line
*line
, struct console
*co
,
38 struct chan_opts
*opts
);
39 extern void close_chan(struct list_head
*chans
);
40 extern void chan_enable_winch(struct list_head
*chans
, struct tty_struct
*tty
);
41 extern void enable_chan(struct list_head
*chans
, struct tty_struct
*tty
);
42 extern int chan_window_size(struct list_head
*chans
,
43 unsigned short *rows_out
,
44 unsigned short *cols_out
);
45 extern int chan_out_fd(struct list_head
*chans
);
46 extern int chan_config_string(struct list_head
*chans
, char *str
, int size
,
52 * Overrides for Emacs so that we follow Linus's tabbing style.
53 * Emacs will notice this stuff at the end of the file and automatically
54 * adjust the settings for this buffer only. This must remain at the end
56 * ---------------------------------------------------------------------------
58 * c-file-style: "linux"