tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge master.kernel.org:/home/rmk/linux-2.6-serial
Linus Torvalds
20 years ago
b3e112bc
f647a274
+20
-20
4 changed files
expand all
collapse all
unified
split
drivers
serial
8250.c
au1x00_uart.c
m32r_sio.c
pxa.c
+5
-5
drivers/serial/8250.c
···
1682
1682
1683
1683
switch (termios->c_cflag & CSIZE) {
1684
1684
case CS5:
1685
1685
-
cval = 0x00;
1685
1685
+
cval = UART_LCR_WLEN5;
1686
1686
break;
1687
1687
case CS6:
1688
1688
-
cval = 0x01;
1688
1688
+
cval = UART_LCR_WLEN6;
1689
1689
break;
1690
1690
case CS7:
1691
1691
-
cval = 0x02;
1691
1691
+
cval = UART_LCR_WLEN7;
1692
1692
break;
1693
1693
default:
1694
1694
case CS8:
1695
1695
-
cval = 0x03;
1695
1695
+
cval = UART_LCR_WLEN8;
1696
1696
break;
1697
1697
}
1698
1698
1699
1699
if (termios->c_cflag & CSTOPB)
1700
1700
-
cval |= 0x04;
1700
1700
+
cval |= UART_LCR_STOP;
1701
1701
if (termios->c_cflag & PARENB)
1702
1702
cval |= UART_LCR_PARITY;
1703
1703
if (!(termios->c_cflag & PARODD))
+5
-5
drivers/serial/au1x00_uart.c
···
773
773
774
774
switch (termios->c_cflag & CSIZE) {
775
775
case CS5:
776
776
-
cval = 0x00;
776
776
+
cval = UART_LCR_WLEN5;
777
777
break;
778
778
case CS6:
779
779
-
cval = 0x01;
779
779
+
cval = UART_LCR_WLEN6;
780
780
break;
781
781
case CS7:
782
782
-
cval = 0x02;
782
782
+
cval = UART_LCR_WLEN7;
783
783
break;
784
784
default:
785
785
case CS8:
786
786
-
cval = 0x03;
786
786
+
cval = UART_LCR_WLEN8;
787
787
break;
788
788
}
789
789
790
790
if (termios->c_cflag & CSTOPB)
791
791
-
cval |= 0x04;
791
791
+
cval |= UART_LCR_STOP;
792
792
if (termios->c_cflag & PARENB)
793
793
cval |= UART_LCR_PARITY;
794
794
if (!(termios->c_cflag & PARODD))
+5
-5
drivers/serial/m32r_sio.c
···
724
724
725
725
switch (termios->c_cflag & CSIZE) {
726
726
case CS5:
727
727
-
cval = 0x00;
727
727
+
cval = UART_LCR_WLEN5;
728
728
break;
729
729
case CS6:
730
730
-
cval = 0x01;
730
730
+
cval = UART_LCR_WLEN6;
731
731
break;
732
732
case CS7:
733
733
-
cval = 0x02;
733
733
+
cval = UART_LCR_WLEN7;
734
734
break;
735
735
default:
736
736
case CS8:
737
737
-
cval = 0x03;
737
737
+
cval = UART_LCR_WLEN8;
738
738
break;
739
739
}
740
740
741
741
if (termios->c_cflag & CSTOPB)
742
742
-
cval |= 0x04;
742
742
+
cval |= UART_LCR_STOP;
743
743
if (termios->c_cflag & PARENB)
744
744
cval |= UART_LCR_PARITY;
745
745
if (!(termios->c_cflag & PARODD))
+5
-5
drivers/serial/pxa.c
···
455
455
456
456
switch (termios->c_cflag & CSIZE) {
457
457
case CS5:
458
458
-
cval = 0x00;
458
458
+
cval = UART_LCR_WLEN5;
459
459
break;
460
460
case CS6:
461
461
-
cval = 0x01;
461
461
+
cval = UART_LCR_WLEN6;
462
462
break;
463
463
case CS7:
464
464
-
cval = 0x02;
464
464
+
cval = UART_LCR_WLEN7;
465
465
break;
466
466
default:
467
467
case CS8:
468
468
-
cval = 0x03;
468
468
+
cval = UART_LCR_WLEN8;
469
469
break;
470
470
}
471
471
472
472
if (termios->c_cflag & CSTOPB)
473
473
-
cval |= 0x04;
473
473
+
cval |= UART_LCR_STOP;
474
474
if (termios->c_cflag & PARENB)
475
475
cval |= UART_LCR_PARITY;
476
476
if (!(termios->c_cflag & PARODD))