13 #include <linux/module.h>
14 #include <linux/kernel.h>
16 #include <linux/tty.h>
17 #include <linux/errno.h>
18 #include <linux/string.h>
19 #include <linux/serial_core.h>
26 static int sunserial_current_minor = 64;
32 drv->
minor = sunserial_current_minor;
38 sunserial_current_minor +=
count;
48 sunserial_current_minor -=
count;
73 if ((line & 1) != off)
88 char mode_prop[] =
"ttyX-mode";
96 "ssp-console-modes",
NULL);
98 mode =
"115200,8,n,1,-";
99 }
else if (!
strcmp(uart_dp->
name,
"lom-console")) {
100 mode =
"9600,8,n,1,-";
114 mode =
"9600,8,n,1,-";
131 case 150: cflag |=
B150;
break;
132 case 300: cflag |=
B300;
break;
133 case 600: cflag |=
B600;
break;
134 case 1200: cflag |=
B1200;
break;
135 case 2400: cflag |=
B2400;
break;
136 case 4800: cflag |=
B4800;
break;
137 case 9600: cflag |=
B9600;
break;
138 case 19200: cflag |=
B19200;
break;
139 case 38400: cflag |=
B38400;
break;
140 case 57600: cflag |=
B57600;
break;
141 case 115200: cflag |=
B115200;
break;
142 case 230400: cflag |=
B230400;
break;
143 case 460800: cflag |=
B460800;
break;
144 default: baud = 9600; cflag |=
B9600;
break;
148 case 5: cflag |=
CS5;
break;
149 case 6: cflag |=
CS6;
break;
150 case 7: cflag |=
CS7;
break;
151 case 8: cflag |=
CS8;
break;
152 default: cflag |=
CS8;
break;
157 case 'e': cflag |=
PARENB;
break;
158 case 'n':
default:
break;
162 case 2: cflag |=
CSTOPB;
break;
163 case 1:
default:
break;
170 static struct mouse_baud_cflag {
173 } mouse_baud_table[] = {
186 for (i = 0; mouse_baud_table[
i].baud != -1; i++)
187 if (mouse_baud_table[i].cflag == (cflag &
CBAUD))
191 if (mouse_baud_table[i].
baud == -1)
194 *new_baud = mouse_baud_table[
i].baud;
195 return mouse_baud_table[
i].cflag;
205 static int mouse_got_break = 0;
212 if (mouse_got_break && ctr < 8)
220 if (mouse_got_break) {
233 static int __init suncore_init(
void)
238 static void __exit suncore_exit(
void)