13 #include <asm/termbits.h>
21 static const int ssl_version = 1;
25 static void ssl_announce(
char *dev_name,
int dev)
33 .announce = ssl_announce,
34 .xterm_title =
"Serial Line #%d",
38 static int ssl_config(
char *
str,
char **error_out);
39 static int ssl_get_config(
char *
dev,
char *
str,
int size,
char **error_out);
40 static int ssl_remove(
int n,
char **error_out);
45 .name =
"UML serial line",
46 .device_name =
"ttyS",
52 .read_irq_name =
"ssl",
54 .write_irq_name =
"ssl-write",
59 .get_config = ssl_get_config,
69 static char *def_conf = CONFIG_SSL_CHAN;
72 static int ssl_config(
char *
str,
char **error_out)
78 static int ssl_get_config(
char *
dev,
char *str,
int size,
char **error_out)
84 static int ssl_remove(
int n,
char **error_out)
107 .install = ssl_install,
115 static int ssl_init_done = 0;
117 static void ssl_console_write(
struct console *
c,
const char *
string,
125 spin_unlock_irqrestore(&line->
lock, flags);
142 static struct console ssl_cons = {
144 .write = ssl_console_write,
145 .device = ssl_console_device,
146 .setup = ssl_console_setup,
151 static int ssl_init(
void)
166 if (new_title !=
NULL)
176 "device %d : %s\n", i, error);
185 static void ssl_exit(
void)
193 static int ssl_chan_setup(
char *str)
195 line_setup(conf, NR_PORTS, &def_conf, str,
"serial line");
199 __setup(
"ssl", ssl_chan_setup);