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 65c0a2450SGreg Kroah-Hartman 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 29373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 30373bac4cSAlan Cox sysfs rather than via ioctls. 31373bac4cSAlan Cox 32373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/type 33373bac4cSAlan CoxDate: October 2012 34373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 35373bac4cSAlan CoxDescription: 36373bac4cSAlan Cox Shows the current tty type for this port. 37373bac4cSAlan Cox 38373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 39373bac4cSAlan Cox sysfs rather than via ioctls. 40373bac4cSAlan Cox 41373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/line 42373bac4cSAlan CoxDate: October 2012 43373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 44373bac4cSAlan CoxDescription: 45373bac4cSAlan Cox Shows the current tty line number for this port. 46373bac4cSAlan Cox 47373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 48373bac4cSAlan Cox sysfs rather than via ioctls. 49373bac4cSAlan Cox 50373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/port 51373bac4cSAlan CoxDate: October 2012 52373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 53373bac4cSAlan CoxDescription: 54373bac4cSAlan Cox Shows the current tty port I/O address for this port. 55373bac4cSAlan Cox 56373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 57373bac4cSAlan Cox sysfs rather than via ioctls. 58373bac4cSAlan Cox 59373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/irq 60373bac4cSAlan CoxDate: October 2012 61373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 62373bac4cSAlan CoxDescription: 63373bac4cSAlan Cox Shows the current primary interrupt for this port. 64373bac4cSAlan Cox 65373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 66373bac4cSAlan Cox sysfs rather than via ioctls. 67373bac4cSAlan Cox 68373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/flags 69373bac4cSAlan CoxDate: October 2012 70373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 71373bac4cSAlan CoxDescription: 72373bac4cSAlan Cox Show the tty port status flags for this port. 73373bac4cSAlan Cox 74373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 75373bac4cSAlan Cox sysfs rather than via ioctls. 76373bac4cSAlan Cox 77373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/xmit_fifo_size 78373bac4cSAlan CoxDate: October 2012 79373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 80373bac4cSAlan CoxDescription: 81373bac4cSAlan Cox Show the transmit FIFO size for this port. 82373bac4cSAlan Cox 83373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 84373bac4cSAlan Cox sysfs rather than via ioctls. 85373bac4cSAlan Cox 86373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/close_delay 87373bac4cSAlan CoxDate: October 2012 88373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 89373bac4cSAlan CoxDescription: 90373bac4cSAlan Cox Show the closing delay time for this port in ms. 91373bac4cSAlan Cox 92373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 93373bac4cSAlan Cox sysfs rather than via ioctls. 94373bac4cSAlan Cox 95373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/closing_wait 96373bac4cSAlan CoxDate: October 2012 97373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 98373bac4cSAlan CoxDescription: 99373bac4cSAlan Cox Show the close wait time for this port in ms. 100373bac4cSAlan Cox 101373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 102373bac4cSAlan Cox sysfs rather than via ioctls. 103373bac4cSAlan Cox 104373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/custom_divisor 105373bac4cSAlan CoxDate: October 2012 106373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 107373bac4cSAlan CoxDescription: 108373bac4cSAlan Cox Show the custom divisor if any that is set on this port. 109373bac4cSAlan Cox 110373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 111373bac4cSAlan Cox sysfs rather than via ioctls. 112373bac4cSAlan Cox 113373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/io_type 114373bac4cSAlan CoxDate: October 2012 115373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 116373bac4cSAlan CoxDescription: 117373bac4cSAlan Cox Show the I/O type that is to be used with the iomem base 118373bac4cSAlan Cox address. 119373bac4cSAlan Cox 120373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 121373bac4cSAlan Cox sysfs rather than via ioctls. 122373bac4cSAlan Cox 123373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/iomem_base 124373bac4cSAlan CoxDate: October 2012 125373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 126373bac4cSAlan CoxDescription: 127373bac4cSAlan Cox The I/O memory base for this port. 128373bac4cSAlan Cox 129373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 130373bac4cSAlan Cox sysfs rather than via ioctls. 131373bac4cSAlan Cox 132373bac4cSAlan CoxWhat: /sys/class/tty/ttyS0/iomem_reg_shift 133373bac4cSAlan CoxDate: October 2012 134373bac4cSAlan CoxContact: Alan Cox <alan@linux.intel.com> 135373bac4cSAlan CoxDescription: 136373bac4cSAlan Cox Show the register shift indicating the spacing to be used 137373bac4cSAlan Cox for accesses on this iomem address. 138373bac4cSAlan Cox 139373bac4cSAlan Cox These sysfs values expose the TIOCGSERIAL interface via 140373bac4cSAlan Cox sysfs rather than via ioctls. 141