xref: /linux/Documentation/ABI/testing/sysfs-tty (revision 373bac4cf4c3198cc6d6b9aec7c5d576a06f1f1c)
1fbc92a34SKay SieversWhat:		/sys/class/tty/console/active
2fbc92a34SKay SieversDate:		Nov 2010
3fbc92a34SKay SieversContact:	Kay Sievers <kay.sievers@vrfy.org>
4fbc92a34SKay SieversDescription:
5fbc92a34SKay Sievers		 Shows the list of currently configured
6fbc92a34SKay Sievers		 console devices, like 'tty1 ttyS0'.
7fbc92a34SKay Sievers		 The last entry in the file is the active
8fbc92a34SKay Sievers		 device connected to /dev/console.
9fbc92a34SKay Sievers		 The file supports poll() to detect virtual
10fbc92a34SKay Sievers		 console switches.
11fbc92a34SKay Sievers
12fbc92a34SKay SieversWhat:		/sys/class/tty/tty0/active
13fbc92a34SKay SieversDate:		Nov 2010
14fbc92a34SKay SieversContact:	Kay Sievers <kay.sievers@vrfy.org>
15fbc92a34SKay SieversDescription:
16fbc92a34SKay Sievers		 Shows the currently active virtual console
17fbc92a34SKay Sievers		 device, like 'tty1'.
18fbc92a34SKay Sievers		 The file supports poll() to detect virtual
19fbc92a34SKay Sievers		 console switches.
206915c0e4STomas Hlavacek
216915c0e4STomas HlavacekWhat:		/sys/class/tty/ttyS0/uartclk
226915c0e4STomas HlavacekDate:		Sep 2012
236915c0e4STomas HlavacekContact:	Tomas Hlavacek <tmshlvck@gmail.com>
246915c0e4STomas HlavacekDescription:
256915c0e4STomas Hlavacek		 Shows the current uartclk value associated with the
266915c0e4STomas Hlavacek		 UART port in serial_core, that is bound to TTY like ttyS0.
276915c0e4STomas Hlavacek		 uartclk = 16 * baud_base
286915c0e4STomas Hlavacek
29*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
30*373bac4cSAlan Cox		 sysfs rather than via ioctls.
31*373bac4cSAlan Cox
32*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/type
33*373bac4cSAlan CoxDate:		October 2012
34*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
35*373bac4cSAlan CoxDescription:
36*373bac4cSAlan Cox		 Shows the current tty type for this port.
37*373bac4cSAlan Cox
38*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
39*373bac4cSAlan Cox		 sysfs rather than via ioctls.
40*373bac4cSAlan Cox
41*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/line
42*373bac4cSAlan CoxDate:		October 2012
43*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
44*373bac4cSAlan CoxDescription:
45*373bac4cSAlan Cox		 Shows the current tty line number for this port.
46*373bac4cSAlan Cox
47*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
48*373bac4cSAlan Cox		 sysfs rather than via ioctls.
49*373bac4cSAlan Cox
50*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/port
51*373bac4cSAlan CoxDate:		October 2012
52*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
53*373bac4cSAlan CoxDescription:
54*373bac4cSAlan Cox		 Shows the current tty port I/O address for this port.
55*373bac4cSAlan Cox
56*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
57*373bac4cSAlan Cox		 sysfs rather than via ioctls.
58*373bac4cSAlan Cox
59*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/irq
60*373bac4cSAlan CoxDate:		October 2012
61*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
62*373bac4cSAlan CoxDescription:
63*373bac4cSAlan Cox		 Shows the current primary interrupt for this port.
64*373bac4cSAlan Cox
65*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
66*373bac4cSAlan Cox		 sysfs rather than via ioctls.
67*373bac4cSAlan Cox
68*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/flags
69*373bac4cSAlan CoxDate:		October 2012
70*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
71*373bac4cSAlan CoxDescription:
72*373bac4cSAlan Cox		 Show the tty port status flags for this port.
73*373bac4cSAlan Cox
74*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
75*373bac4cSAlan Cox		 sysfs rather than via ioctls.
76*373bac4cSAlan Cox
77*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/xmit_fifo_size
78*373bac4cSAlan CoxDate:		October 2012
79*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
80*373bac4cSAlan CoxDescription:
81*373bac4cSAlan Cox		 Show the transmit FIFO size for this port.
82*373bac4cSAlan Cox
83*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
84*373bac4cSAlan Cox		 sysfs rather than via ioctls.
85*373bac4cSAlan Cox
86*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/close_delay
87*373bac4cSAlan CoxDate:		October 2012
88*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
89*373bac4cSAlan CoxDescription:
90*373bac4cSAlan Cox		 Show the closing delay time for this port in ms.
91*373bac4cSAlan Cox
92*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
93*373bac4cSAlan Cox		 sysfs rather than via ioctls.
94*373bac4cSAlan Cox
95*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/closing_wait
96*373bac4cSAlan CoxDate:		October 2012
97*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
98*373bac4cSAlan CoxDescription:
99*373bac4cSAlan Cox		 Show the close wait time for this port in ms.
100*373bac4cSAlan Cox
101*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
102*373bac4cSAlan Cox		 sysfs rather than via ioctls.
103*373bac4cSAlan Cox
104*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/custom_divisor
105*373bac4cSAlan CoxDate:		October 2012
106*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
107*373bac4cSAlan CoxDescription:
108*373bac4cSAlan Cox		 Show the custom divisor if any that is set on this port.
109*373bac4cSAlan Cox
110*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
111*373bac4cSAlan Cox		 sysfs rather than via ioctls.
112*373bac4cSAlan Cox
113*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/io_type
114*373bac4cSAlan CoxDate:		October 2012
115*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
116*373bac4cSAlan CoxDescription:
117*373bac4cSAlan Cox		 Show the I/O type that is to be used with the iomem base
118*373bac4cSAlan Cox		 address.
119*373bac4cSAlan Cox
120*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
121*373bac4cSAlan Cox		 sysfs rather than via ioctls.
122*373bac4cSAlan Cox
123*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/iomem_base
124*373bac4cSAlan CoxDate:		October 2012
125*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
126*373bac4cSAlan CoxDescription:
127*373bac4cSAlan Cox		 The I/O memory base for this port.
128*373bac4cSAlan Cox
129*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
130*373bac4cSAlan Cox		 sysfs rather than via ioctls.
131*373bac4cSAlan Cox
132*373bac4cSAlan CoxWhat:		/sys/class/tty/ttyS0/iomem_reg_shift
133*373bac4cSAlan CoxDate:		October 2012
134*373bac4cSAlan CoxContact:	Alan Cox <alan@linux.intel.com>
135*373bac4cSAlan CoxDescription:
136*373bac4cSAlan Cox		 Show the register shift indicating the spacing to be used
137*373bac4cSAlan Cox		 for accesses on this iomem address.
138*373bac4cSAlan Cox
139*373bac4cSAlan Cox		 These sysfs values expose the TIOCGSERIAL interface via
140*373bac4cSAlan Cox		 sysfs rather than via ioctls.
141