Blame view
arch/um/drivers/chan_user.h
1.61 KB
b4ac91a0e [PATCH] uml: chan... |
1 |
/* |
1da177e4c Linux-2.6.12-rc2 |
2 3 4 5 6 7 |
* Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com) * Licensed under the GPL */ #ifndef __CHAN_USER_H__ #define __CHAN_USER_H__ |
37185b332 um: get rid of po... |
8 |
#include <init.h> |
1da177e4c Linux-2.6.12-rc2 |
9 10 |
struct chan_opts { |
a52f362f8 [PATCH] uml: most... |
11 |
void (*const announce)(char *dev_name, int dev); |
1da177e4c Linux-2.6.12-rc2 |
12 |
char *xterm_title; |
a52f362f8 [PATCH] uml: most... |
13 |
const int raw; |
1da177e4c Linux-2.6.12-rc2 |
14 |
}; |
1da177e4c Linux-2.6.12-rc2 |
15 16 |
struct chan_ops { char *type; |
5e7672ec3 [PATCH] uml: cons... |
17 |
void *(*init)(char *, int, const struct chan_opts *); |
1da177e4c Linux-2.6.12-rc2 |
18 19 20 21 |
int (*open)(int, int, int, void *, char **); void (*close)(int, void *); int (*read)(int, char *, void *); int (*write)(int, const char *, int, void *); |
55c033c1f [PATCH] uml conso... |
22 |
int (*console_write)(int, const char *, int); |
1da177e4c Linux-2.6.12-rc2 |
23 24 25 26 |
int (*window_size)(int, void *, unsigned short *, unsigned short *); void (*free)(void *); int winch; }; |
5e7672ec3 [PATCH] uml: cons... |
27 28 |
extern const struct chan_ops fd_ops, null_ops, port_ops, pts_ops, pty_ops, tty_ops, xterm_ops; |
1da177e4c Linux-2.6.12-rc2 |
29 30 31 32 |
extern void generic_close(int fd, void *unused); extern int generic_read(int fd, char *c_out, void *unused); extern int generic_write(int fd, const char *buf, int n, void *unused); |
55c033c1f [PATCH] uml conso... |
33 |
extern int generic_console_write(int fd, const char *buf, int n); |
1da177e4c Linux-2.6.12-rc2 |
34 35 36 |
extern int generic_window_size(int fd, void *unused, unsigned short *rows_out, unsigned short *cols_out); extern void generic_free(void *data); |
2116bda6a um: Use tty_port ... |
37 38 |
struct tty_port; extern void register_winch(int fd, struct tty_port *port); |
42a359e31 uml: SIGIO suppor... |
39 |
extern void register_winch_irq(int fd, int tty_fd, int pid, |
2116bda6a um: Use tty_port ... |
40 |
struct tty_port *port, unsigned long stack); |
1da177e4c Linux-2.6.12-rc2 |
41 42 43 44 45 46 |
#define __channel_help(fn, prefix) \ __uml_help(fn, prefix "[0-9]*=<channel description> " \ " Attach a console or serial line to a host channel. See " \ |
0ba9d3f91 uml: fix URLs in ... |
47 48 |
" http://user-mode-linux.sourceforge.net/old/input.html for a complete " \ |
1da177e4c Linux-2.6.12-rc2 |
49 50 51 52 53 54 |
" description of this switch. " \ ); #endif |