1 What: /sys/class/tty/console/active
3 Contact: Kay Sievers <kay.sievers@vrfy.org>
5 Shows the list of currently configured
6 console devices, like 'tty1 ttyS0'.
7 The last entry in the file is the active
8 device connected to /dev/console.
9 The file supports poll() to detect virtual
12 What: /sys/class/tty/tty0/active
14 Contact: Kay Sievers <kay.sievers@vrfy.org>
16 Shows the currently active virtual console
18 The file supports poll() to detect virtual
21 What: /sys/class/tty/ttyS0/uartclk
23 Contact: Tomas Hlavacek <tmshlvck@gmail.com>
25 Shows the current uartclk value associated with the
26 UART port in serial_core, that is bound to TTY like ttyS0.
27 uartclk = 16 * baud_base
29 These sysfs values expose the TIOCGSERIAL interface via
30 sysfs rather than via ioctls.
32 What: /sys/class/tty/ttyS0/type
34 Contact: Alan Cox <alan@linux.intel.com>
36 Shows the current tty type for this port.
38 These sysfs values expose the TIOCGSERIAL interface via
39 sysfs rather than via ioctls.
41 What: /sys/class/tty/ttyS0/line
43 Contact: Alan Cox <alan@linux.intel.com>
45 Shows the current tty line number for this port.
47 These sysfs values expose the TIOCGSERIAL interface via
48 sysfs rather than via ioctls.
50 What: /sys/class/tty/ttyS0/port
52 Contact: Alan Cox <alan@linux.intel.com>
54 Shows the current tty port I/O address for this port.
56 These sysfs values expose the TIOCGSERIAL interface via
57 sysfs rather than via ioctls.
59 What: /sys/class/tty/ttyS0/irq
61 Contact: Alan Cox <alan@linux.intel.com>
63 Shows the current primary interrupt for this port.
65 These sysfs values expose the TIOCGSERIAL interface via
66 sysfs rather than via ioctls.
68 What: /sys/class/tty/ttyS0/flags
70 Contact: Alan Cox <alan@linux.intel.com>
72 Show the tty port status flags for this port.
74 These sysfs values expose the TIOCGSERIAL interface via
75 sysfs rather than via ioctls.
77 What: /sys/class/tty/ttyS0/xmit_fifo_size
79 Contact: Alan Cox <alan@linux.intel.com>
81 Show the transmit FIFO size for this port.
83 These sysfs values expose the TIOCGSERIAL interface via
84 sysfs rather than via ioctls.
86 What: /sys/class/tty/ttyS0/close_delay
88 Contact: Alan Cox <alan@linux.intel.com>
90 Show the closing delay time for this port in ms.
92 These sysfs values expose the TIOCGSERIAL interface via
93 sysfs rather than via ioctls.
95 What: /sys/class/tty/ttyS0/closing_wait
97 Contact: Alan Cox <alan@linux.intel.com>
99 Show the close wait time for this port in ms.
101 These sysfs values expose the TIOCGSERIAL interface via
102 sysfs rather than via ioctls.
104 What: /sys/class/tty/ttyS0/custom_divisor
106 Contact: Alan Cox <alan@linux.intel.com>
108 Show the custom divisor if any that is set on this port.
110 These sysfs values expose the TIOCGSERIAL interface via
111 sysfs rather than via ioctls.
113 What: /sys/class/tty/ttyS0/io_type
115 Contact: Alan Cox <alan@linux.intel.com>
117 Show the I/O type that is to be used with the iomem base
120 These sysfs values expose the TIOCGSERIAL interface via
121 sysfs rather than via ioctls.
123 What: /sys/class/tty/ttyS0/iomem_base
125 Contact: Alan Cox <alan@linux.intel.com>
127 The I/O memory base for this port.
129 These sysfs values expose the TIOCGSERIAL interface via
130 sysfs rather than via ioctls.
132 What: /sys/class/tty/ttyS0/iomem_reg_shift
134 Contact: Alan Cox <alan@linux.intel.com>
136 Show the register shift indicating the spacing to be used
137 for accesses on this iomem address.
139 These sysfs values expose the TIOCGSERIAL interface via
140 sysfs rather than via ioctls.
142 What: /sys/class/tty/ttyS0/rx_trig_bytes
144 Contact: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com>
146 Shows current RX interrupt trigger bytes or sets the
147 user specified value to change it for the FIFO buffer.
148 Users can show or set this value regardless of opening the
149 serial device file or not.
151 The RX trigger can be set one of four kinds of values for UART
152 serials. When users input a meaning less value to this I/F,
153 the RX trigger is changed to the nearest lower value for the
154 device specification. For example, when user sets 7bytes on
155 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is
156 automatically changed to 4 bytes.
158 What: /sys/class/tty/ttyS0/console
160 Contact: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
162 Allows user to detach or attach back the given device as
163 kernel console. It shows and accepts a boolean variable.