Skip to content

Commit 73ecf3a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (49 commits) serial8250: ratelimit "too much work" error serial: bfin_sport_uart: speed up sport RX sample rate to be 3% faster serial: abstraction for 8250 legacy ports serial/imx: check that the buffer is non-empty before sending it out serial: mfd: add more baud rates support jsm: Remove the uart port on errors Alchemy: Add UART PM methods. 8250: allow platforms to override PM hook. altera_uart: Don't use plain integer as NULL pointer altera_uart: Fix missing prototype for registering an early console altera_uart: Fixup type usage of port flags altera_uart: Make it possible to use Altera UART and 8250 ports together altera_uart: Add support for different address strides altera_uart: Add support for getting mapbase and IRQ from resources altera_uart: Add support for polling mode (IRQ-less) serial: Factor out uart_poll_timeout() from 8250 driver serial: mark the 8250 driver as maintained serial: 8250: Don't delay after transmitter is ready. tty: MAINTAINERS: add drivers/serial/jsm/ as maintained driver vcs: invoke the vt update callback when /dev/vcs* is written to ...
2 parents b9da057 + cd3ecad commit 73ecf3a

66 files changed

Lines changed: 1757 additions & 1533 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devices.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Your cooperation is appreciated.
239239
0 = /dev/tty Current TTY device
240240
1 = /dev/console System console
241241
2 = /dev/ptmx PTY master multiplex
242+
3 = /dev/ttyprintk User messages via printk TTY device
242243
64 = /dev/cua0 Callout device for ttyS0
243244
...
244245
255 = /dev/cua191 Callout device for ttyS191

‎Documentation/filesystems/proc.txt‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ Table 1-11: Files in /proc/tty
10751075
drivers list of drivers and their usage
10761076
ldiscs registered line disciplines
10771077
driver/serial usage statistic and status of single tty lines
1078+
consoles registered system console lines
10781079
..............................................................................
10791080

10801081
To see which tty's are currently in use, you can simply look into the file
@@ -1093,6 +1094,37 @@ To see which tty's are currently in use, you can simply look into the file
10931094
/dev/tty /dev/tty 5 0 system:/dev/tty
10941095
unknown /dev/tty 4 1-63 console
10951096

1097+
To see which character device lines are currently used for the system console
1098+
/dev/console, you may simply look into the file /proc/tty/consoles:
1099+
1100+
> cat /proc/tty/consoles
1101+
tty0 -WU (ECp) 4:7
1102+
ttyS0 -W- (Ep) 4:64
1103+
1104+
The columns are:
1105+
1106+
device name of the device
1107+
operations R = can do read operations
1108+
W = can do write operations
1109+
U = can do unblank
1110+
flags E = it is enabled
1111+
C = it is prefered console
1112+
B = it is primary boot console
1113+
p = it is used for printk buffer
1114+
b = it is not a TTY but a Braille device
1115+
a = it is safe to use when cpu is offline
1116+
* = it is standard input of the reading process
1117+
major:minor major and minor number of the device separated by a colon
1118+
1119+
If the reading process holds /dev/console open at the regular standard input
1120+
stream the active device will be marked by an asterisk:
1121+
1122+
> cat /proc/tty/consoles < /dev/console
1123+
tty0 -WU (ECp*) 4:7
1124+
ttyS0 -W- (Ep) 4:64
1125+
> tty
1126+
/dev/pts/3
1127+
10961128

10971129
1.8 Miscellaneous kernel statistics in /proc/stat
10981130
-------------------------------------------------

‎MAINTAINERS‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ S: Maintained
157157
F: drivers/net/r8169.c
158158

159159
8250/16?50 (AND CLONE UARTS) SERIAL DRIVER
160+
M: Greg Kroah-Hartman <gregkh@suse.de>
160161
L: linux-serial@vger.kernel.org
161162
W: http://serial.sourceforge.net
162-
S: Orphan
163+
S: Maintained
164+
T: quilt kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/
163165
F: drivers/serial/8250*
164166
F: include/linux/serial_8250.h
165167

@@ -3353,6 +3355,12 @@ F: fs/jbd*/
33533355
F: include/linux/ext*jbd*.h
33543356
F: include/linux/jbd*.h
33553357

3358+
JSM Neo PCI based serial card
3359+
M: Breno Leitao <leitao@linux.vnet.ibm.com>
3360+
L: linux-serial@vger.kernel.org
3361+
S: Maintained
3362+
F: drivers/serial/jsm/
3363+
33563364
K8TEMP HARDWARE MONITORING DRIVER
33573365
M: Rudolf Marek <r.marek@assembler.cz>
33583366
L: lm-sensors@lm-sensors.org

‎arch/arm/include/asm/ioctls.h‎

Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,8 @@
11
#ifndef __ASM_ARM_IOCTLS_H
22
#define __ASM_ARM_IOCTLS_H
33

4-
#include <asm/ioctl.h>
5-
6-
/* 0x54 is just a magic number to make these relatively unique ('T') */
7-
8-
#define TCGETS 0x5401
9-
#define TCSETS 0x5402
10-
#define TCSETSW 0x5403
11-
#define TCSETSF 0x5404
12-
#define TCGETA 0x5405
13-
#define TCSETA 0x5406
14-
#define TCSETAW 0x5407
15-
#define TCSETAF 0x5408
16-
#define TCSBRK 0x5409
17-
#define TCXONC 0x540A
18-
#define TCFLSH 0x540B
19-
#define TIOCEXCL 0x540C
20-
#define TIOCNXCL 0x540D
21-
#define TIOCSCTTY 0x540E
22-
#define TIOCGPGRP 0x540F
23-
#define TIOCSPGRP 0x5410
24-
#define TIOCOUTQ 0x5411
25-
#define TIOCSTI 0x5412
26-
#define TIOCGWINSZ 0x5413
27-
#define TIOCSWINSZ 0x5414
28-
#define TIOCMGET 0x5415
29-
#define TIOCMBIS 0x5416
30-
#define TIOCMBIC 0x5417
31-
#define TIOCMSET 0x5418
32-
#define TIOCGSOFTCAR 0x5419
33-
#define TIOCSSOFTCAR 0x541A
34-
#define FIONREAD 0x541B
35-
#define TIOCINQ FIONREAD
36-
#define TIOCLINUX 0x541C
37-
#define TIOCCONS 0x541D
38-
#define TIOCGSERIAL 0x541E
39-
#define TIOCSSERIAL 0x541F
40-
#define TIOCPKT 0x5420
41-
#define FIONBIO 0x5421
42-
#define TIOCNOTTY 0x5422
43-
#define TIOCSETD 0x5423
44-
#define TIOCGETD 0x5424
45-
#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
46-
#define TIOCSBRK 0x5427 /* BSD compatibility */
47-
#define TIOCCBRK 0x5428 /* BSD compatibility */
48-
#define TIOCGSID 0x5429 /* Return the session ID of FD */
49-
#define TCGETS2 _IOR('T',0x2A, struct termios2)
50-
#define TCSETS2 _IOW('T',0x2B, struct termios2)
51-
#define TCSETSW2 _IOW('T',0x2C, struct termios2)
52-
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
53-
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
54-
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
55-
#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
56-
57-
#define TIOCGRS485 0x542E
58-
#define TIOCSRS485 0x542F
59-
60-
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
61-
#define FIOCLEX 0x5451
62-
#define FIOASYNC 0x5452
63-
#define TIOCSERCONFIG 0x5453
64-
#define TIOCSERGWILD 0x5454
65-
#define TIOCSERSWILD 0x5455
66-
#define TIOCGLCKTRMIOS 0x5456
67-
#define TIOCSLCKTRMIOS 0x5457
68-
#define TIOCSERGSTRUCT 0x5458 /* For debugging only */
69-
#define TIOCSERGETLSR 0x5459 /* Get line status register */
70-
#define TIOCSERGETMULTI 0x545A /* Get multiport config */
71-
#define TIOCSERSETMULTI 0x545B /* Set multiport config */
72-
73-
#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
74-
#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
754
#define FIOQSIZE 0x545E
765

77-
/* Used for packet mode */
78-
#define TIOCPKT_DATA 0
79-
#define TIOCPKT_FLUSHREAD 1
80-
#define TIOCPKT_FLUSHWRITE 2
81-
#define TIOCPKT_STOP 4
82-
#define TIOCPKT_START 8
83-
#define TIOCPKT_NOSTOP 16
84-
#define TIOCPKT_DOSTOP 32
85-
#define TIOCPKT_IOCTL 64
86-
87-
#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
6+
#include <asm-generic/ioctls.h>
887

898
#endif

‎arch/avr32/include/asm/ioctls.h‎

Lines changed: 1 addition & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,6 @@
11
#ifndef __ASM_AVR32_IOCTLS_H
22
#define __ASM_AVR32_IOCTLS_H
33

4-
#include <asm/ioctl.h>
5-
6-
/* 0x54 is just a magic number to make these relatively unique ('T') */
7-
8-
#define TCGETS 0x5401
9-
#define TCSETS 0x5402 /* Clashes with SNDCTL_TMR_START sound ioctl */
10-
#define TCSETSW 0x5403
11-
#define TCSETSF 0x5404
12-
#define TCGETA 0x5405
13-
#define TCSETA 0x5406
14-
#define TCSETAW 0x5407
15-
#define TCSETAF 0x5408
16-
#define TCSBRK 0x5409
17-
#define TCXONC 0x540A
18-
#define TCFLSH 0x540B
19-
#define TIOCEXCL 0x540C
20-
#define TIOCNXCL 0x540D
21-
#define TIOCSCTTY 0x540E
22-
#define TIOCGPGRP 0x540F
23-
#define TIOCSPGRP 0x5410
24-
#define TIOCOUTQ 0x5411
25-
#define TIOCSTI 0x5412
26-
#define TIOCGWINSZ 0x5413
27-
#define TIOCSWINSZ 0x5414
28-
#define TIOCMGET 0x5415
29-
#define TIOCMBIS 0x5416
30-
#define TIOCMBIC 0x5417
31-
#define TIOCMSET 0x5418
32-
#define TIOCGSOFTCAR 0x5419
33-
#define TIOCSSOFTCAR 0x541A
34-
#define FIONREAD 0x541B
35-
#define TIOCINQ FIONREAD
36-
#define TIOCLINUX 0x541C
37-
#define TIOCCONS 0x541D
38-
#define TIOCGSERIAL 0x541E
39-
#define TIOCSSERIAL 0x541F
40-
#define TIOCPKT 0x5420
41-
#define FIONBIO 0x5421
42-
#define TIOCNOTTY 0x5422
43-
#define TIOCSETD 0x5423
44-
#define TIOCGETD 0x5424
45-
#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
46-
/* #define TIOCTTYGSTRUCT 0x5426 - Former debugging-only ioctl */
47-
#define TIOCSBRK 0x5427 /* BSD compatibility */
48-
#define TIOCCBRK 0x5428 /* BSD compatibility */
49-
#define TIOCGSID 0x5429 /* Return the session ID of FD */
50-
#define TCGETS2 _IOR('T',0x2A, struct termios2)
51-
#define TCSETS2 _IOW('T',0x2B, struct termios2)
52-
#define TCSETSW2 _IOW('T',0x2C, struct termios2)
53-
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
54-
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
55-
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
56-
#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
57-
58-
#define TIOCGRS485 0x542E
59-
#define TIOCSRS485 0x542F
60-
61-
#define FIONCLEX 0x5450
62-
#define FIOCLEX 0x5451
63-
#define FIOASYNC 0x5452
64-
#define TIOCSERCONFIG 0x5453
65-
#define TIOCSERGWILD 0x5454
66-
#define TIOCSERSWILD 0x5455
67-
#define TIOCGLCKTRMIOS 0x5456
68-
#define TIOCSLCKTRMIOS 0x5457
69-
#define TIOCSERGSTRUCT 0x5458 /* For debugging only */
70-
#define TIOCSERGETLSR 0x5459 /* Get line status register */
71-
#define TIOCSERGETMULTI 0x545A /* Get multiport config */
72-
#define TIOCSERSETMULTI 0x545B /* Set multiport config */
73-
74-
#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
75-
#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
76-
#define FIOQSIZE 0x5460
77-
78-
/* Used for packet mode */
79-
#define TIOCPKT_DATA 0
80-
#define TIOCPKT_FLUSHREAD 1
81-
#define TIOCPKT_FLUSHWRITE 2
82-
#define TIOCPKT_STOP 4
83-
#define TIOCPKT_START 8
84-
#define TIOCPKT_NOSTOP 16
85-
#define TIOCPKT_DOSTOP 32
86-
#define TIOCPKT_IOCTL 64
87-
88-
#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
4+
#include <asm-generic/ioctls.h>
895

906
#endif /* __ASM_AVR32_IOCTLS_H */

‎arch/cris/include/asm/ioctls.h‎

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,11 @@
11
#ifndef __ARCH_CRIS_IOCTLS_H__
22
#define __ARCH_CRIS_IOCTLS_H__
33

4-
/* verbatim copy of asm-i386/ioctls.h */
5-
6-
#include <asm/ioctl.h>
7-
8-
/* 0x54 is just a magic number to make these relatively unique ('T') */
9-
10-
#define TCGETS 0x5401
11-
#define TCSETS 0x5402
12-
#define TCSETSW 0x5403
13-
#define TCSETSF 0x5404
14-
#define TCGETA 0x5405
15-
#define TCSETA 0x5406
16-
#define TCSETAW 0x5407
17-
#define TCSETAF 0x5408
18-
#define TCSBRK 0x5409
19-
#define TCXONC 0x540A
20-
#define TCFLSH 0x540B
21-
#define TIOCEXCL 0x540C
22-
#define TIOCNXCL 0x540D
23-
#define TIOCSCTTY 0x540E
24-
#define TIOCGPGRP 0x540F
25-
#define TIOCSPGRP 0x5410
26-
#define TIOCOUTQ 0x5411
27-
#define TIOCSTI 0x5412
28-
#define TIOCGWINSZ 0x5413
29-
#define TIOCSWINSZ 0x5414
30-
#define TIOCMGET 0x5415
31-
#define TIOCMBIS 0x5416
32-
#define TIOCMBIC 0x5417
33-
#define TIOCMSET 0x5418
34-
#define TIOCGSOFTCAR 0x5419
35-
#define TIOCSSOFTCAR 0x541A
36-
#define FIONREAD 0x541B
37-
#define TIOCINQ FIONREAD
38-
#define TIOCLINUX 0x541C
39-
#define TIOCCONS 0x541D
40-
#define TIOCGSERIAL 0x541E
41-
#define TIOCSSERIAL 0x541F
42-
#define TIOCPKT 0x5420
43-
#define FIONBIO 0x5421
44-
#define TIOCNOTTY 0x5422
45-
#define TIOCSETD 0x5423
46-
#define TIOCGETD 0x5424
47-
#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */
48-
#define TIOCSBRK 0x5427 /* BSD compatibility */
49-
#define TIOCCBRK 0x5428 /* BSD compatibility */
50-
#define TIOCGSID 0x5429 /* Return the session ID of FD */
51-
#define TCGETS2 _IOR('T',0x2A, struct termios2)
52-
#define TCSETS2 _IOW('T',0x2B, struct termios2)
53-
#define TCSETSW2 _IOW('T',0x2C, struct termios2)
54-
#define TCSETSF2 _IOW('T',0x2D, struct termios2)
55-
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
56-
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
57-
#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
58-
59-
#define FIONCLEX 0x5450 /* these numbers need to be adjusted. */
60-
#define FIOCLEX 0x5451
61-
#define FIOASYNC 0x5452
62-
#define TIOCSERCONFIG 0x5453
63-
#define TIOCSERGWILD 0x5454
64-
#define TIOCSERSWILD 0x5455
65-
#define TIOCGLCKTRMIOS 0x5456
66-
#define TIOCSLCKTRMIOS 0x5457
674
#define TIOCSERGSTRUCT 0x5458 /* For debugging only */
68-
#define TIOCSERGETLSR 0x5459 /* Get line status register */
69-
#define TIOCSERGETMULTI 0x545A /* Get multiport config */
70-
#define TIOCSERSETMULTI 0x545B /* Set multiport config */
71-
72-
#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */
73-
#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */
74-
#define FIOQSIZE 0x5460
75-
765
#define TIOCSERSETRS485 0x5461 /* enable rs-485 (deprecated) */
776
#define TIOCSERWRRS485 0x5462 /* write rs-485 */
787
#define TIOCSRS485 0x5463 /* enable rs-485 */
79-
#define TIOCGRS485 0x542E /* get rs-485 */
80-
81-
/* Used for packet mode */
82-
#define TIOCPKT_DATA 0
83-
#define TIOCPKT_FLUSHREAD 1
84-
#define TIOCPKT_FLUSHWRITE 2
85-
#define TIOCPKT_STOP 4
86-
#define TIOCPKT_START 8
87-
#define TIOCPKT_NOSTOP 16
88-
#define TIOCPKT_DOSTOP 32
89-
#define TIOCPKT_IOCTL 64
908

91-
#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
9+
#include <asm-generic/ioctls.h>
9210

9311
#endif

0 commit comments

Comments
 (0)