]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-flip-serial5.05.patch
- obsolete
[packages/kernel.git] / kernel-flip-serial5.05.patch
1 diff -r -u serial-5.05/serial.c sernew-5.05/serial.c\r
2 --- serial-5.05/serial.c        Thu Sep 14 18:40:26 2000\r
3 +++ sernew-5.05/serial.c        Tue Oct 10 14:28:08 2000\r
4 @@ -565,7 +565,7 @@\r
5         icount = &info->state->icount;\r
6         do {\r
7                 ch = serial_inp(info, UART_RX);\r
8 -               if (tty->flip.count >= TTY_FLIPBUF_SIZE)\r
9 +               if (tty->flip.count >= tty->flip.flipbuf_size)\r
10                         goto ignore_char;\r
11                 *tty->flip.char_buf_ptr = ch;\r
12                 icount->rx++;\r
13 @@ -645,7 +645,7 @@\r
14                         tty->flip.count++;\r
15                 }\r
16                 if ((*status & UART_LSR_OE) &&\r
17 -                   (tty->flip.count < TTY_FLIPBUF_SIZE)) {\r
18 +                   (tty->flip.count < tty->flip.flipbuf_size)) {\r
19                         /*\r
20                          * Overrun is special, since it's reported\r
21                          * immediately, and doesn't affect the current\r
22 @@ -5171,7 +5171,8 @@\r
23         serial_driver.init_termios = tty_std_termios;\r
24         serial_driver.init_termios.c_cflag =\r
25                 B9600 | CS8 | CREAD | HUPCL | CLOCAL;\r
26 -       serial_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS;\r
27 +       serial_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS | TTY_DRIVER_SPECIAL_FLIPSIZE;\r
28 +       serial_driver.flip_size = 15000; /* use 60004 bytes */\r
29         serial_driver.refcount = &serial_refcount;\r
30         serial_driver.table = serial_table;\r
31         serial_driver.termios = serial_termios;\r
This page took 0.036185 seconds and 3 git commands to generate.