aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/line.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/line.h')
-rw-r--r--arch/um/drivers/line.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h
index 63df3ca02ac2..0c4dadf5e03e 100644
--- a/arch/um/drivers/line.h
+++ b/arch/um/drivers/line.h
@@ -37,7 +37,6 @@ struct line {
37 int valid; 37 int valid;
38 38
39 char *init_str; 39 char *init_str;
40 int init_pri;
41 struct list_head chan_list; 40 struct list_head chan_list;
42 41
43 /*This lock is actually, mostly, local to*/ 42 /*This lock is actually, mostly, local to*/
@@ -58,18 +57,10 @@ struct line {
58 int have_irq; 57 int have_irq;
59}; 58};
60 59
61#define LINE_INIT(str, d) \
62 { .count_lock = __SPIN_LOCK_UNLOCKED((str).count_lock), \
63 .init_str = str, \
64 .init_pri = INIT_STATIC, \
65 .valid = 1, \
66 .lock = __SPIN_LOCK_UNLOCKED((str).lock), \
67 .driver = d }
68
69extern void line_close(struct tty_struct *tty, struct file * filp); 60extern void line_close(struct tty_struct *tty, struct file * filp);
70extern int line_open(struct line *lines, struct tty_struct *tty); 61extern int line_open(struct line *lines, struct tty_struct *tty);
71extern int line_setup(struct line *lines, unsigned int sizeof_lines, 62extern int line_setup(char **conf, unsigned nlines, char **def,
72 char *init, char **error_out); 63 char *init, char *name);
73extern int line_write(struct tty_struct *tty, const unsigned char *buf, 64extern int line_write(struct tty_struct *tty, const unsigned char *buf,
74 int len); 65 int len);
75extern int line_put_char(struct tty_struct *tty, unsigned char ch); 66extern int line_put_char(struct tty_struct *tty, unsigned char ch);