[PATCH] uml: const more data
[deliverable/linux.git] / arch / um / include / chan_kern.h
CommitLineData
1da177e4
LT
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;
165dc591
JD
17 struct list_head free_list;
18 struct line *line;
1da177e4
LT
19 char *dev;
20 unsigned int primary:1;
21 unsigned int input:1;
22 unsigned int output:1;
23 unsigned int opened:1;
165dc591 24 unsigned int enabled:1;
1da177e4 25 int fd;
5e7672ec 26 const struct chan_ops *ops;
1da177e4
LT
27 void *data;
28};
29
30extern void chan_interrupt(struct list_head *chans, struct work_struct *task,
31 struct tty_struct *tty, int irq);
165dc591 32extern int parse_chan_pair(char *str, struct line *line, int device,
5e7672ec 33 const struct chan_opts *opts);
1da177e4
LT
34extern int open_chan(struct list_head *chans);
35extern int write_chan(struct list_head *chans, const char *buf, int len,
36 int write_irq);
37extern int console_write_chan(struct list_head *chans, const char *buf,
38 int len);
39extern int console_open_chan(struct line *line, struct console *co,
5e7672ec 40 const struct chan_opts *opts);
e4dcee80
JD
41extern void deactivate_chan(struct list_head *chans, int irq);
42extern void reactivate_chan(struct list_head *chans, int irq);
1da177e4 43extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty);
165dc591
JD
44extern void enable_chan(struct line *line);
45extern void close_chan(struct list_head *chans, int delay_free_irq);
1da177e4
LT
46extern int chan_window_size(struct list_head *chans,
47 unsigned short *rows_out,
48 unsigned short *cols_out);
49extern int chan_out_fd(struct list_head *chans);
50extern int chan_config_string(struct list_head *chans, char *str, int size,
51 char **error_out);
52
53#endif
This page took 0.20446 seconds and 5 git commands to generate.