aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/chan_kern.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/um/include/chan_kern.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/um/include/chan_kern.h')
-rw-r--r--arch/um/include/chan_kern.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/um/include/chan_kern.h b/arch/um/include/chan_kern.h
new file mode 100644
index 000000000000..da9a6717e7a4
--- /dev/null
+++ b/arch/um/include/chan_kern.h
@@ -0,0 +1,60 @@
1/*
2 * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __CHAN_KERN_H__
7#define __CHAN_KERN_H__
8
9#include "linux/tty.h"
10#include "linux/list.h"
11#include "linux/console.h"
12#include "chan_user.h"
13#include "line.h"
14
15struct chan {
16 struct list_head list;
17 char *dev;
18 unsigned int primary:1;
19 unsigned int input:1;
20 unsigned int output:1;
21 unsigned int opened:1;
22 int fd;
23 enum chan_init_pri pri;
24 struct chan_ops *ops;
25 void *data;
26};
27
28extern void chan_interrupt(struct list_head *chans, struct work_struct *task,
29 struct tty_struct *tty, int irq);
30extern int parse_chan_pair(char *str, struct list_head *chans, int pri,
31 int device, struct chan_opts *opts);
32extern int open_chan(struct list_head *chans);
33extern int write_chan(struct list_head *chans, const char *buf, int len,
34 int write_irq);
35extern int console_write_chan(struct list_head *chans, const char *buf,
36 int len);
37extern int console_open_chan(struct line *line, struct console *co,
38 struct chan_opts *opts);
39extern void close_chan(struct list_head *chans);
40extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty);
41extern void enable_chan(struct list_head *chans, struct tty_struct *tty);
42extern int chan_window_size(struct list_head *chans,
43 unsigned short *rows_out,
44 unsigned short *cols_out);
45extern int chan_out_fd(struct list_head *chans);
46extern int chan_config_string(struct list_head *chans, char *str, int size,
47 char **error_out);
48
49#endif
50
51/*
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
55 * of the file.
56 * ---------------------------------------------------------------------------
57 * Local variables:
58 * c-file-style: "linux"
59 * End:
60 */