18c2ecf20Sopenharmony_ciWhat: /sys/class/tty/console/active 28c2ecf20Sopenharmony_ciDate: Nov 2010 38c2ecf20Sopenharmony_ciContact: Kay Sievers <kay.sievers@vrfy.org> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci Shows the list of currently configured 68c2ecf20Sopenharmony_ci console devices, like 'tty1 ttyS0'. 78c2ecf20Sopenharmony_ci The last entry in the file is the active 88c2ecf20Sopenharmony_ci device connected to /dev/console. 98c2ecf20Sopenharmony_ci The file supports poll() to detect virtual 108c2ecf20Sopenharmony_ci console switches. 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciWhat: /sys/class/tty/tty0/active 138c2ecf20Sopenharmony_ciDate: Nov 2010 148c2ecf20Sopenharmony_ciContact: Kay Sievers <kay.sievers@vrfy.org> 158c2ecf20Sopenharmony_ciDescription: 168c2ecf20Sopenharmony_ci Shows the currently active virtual console 178c2ecf20Sopenharmony_ci device, like 'tty1'. 188c2ecf20Sopenharmony_ci The file supports poll() to detect virtual 198c2ecf20Sopenharmony_ci console switches. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/uartclk 228c2ecf20Sopenharmony_ciDate: Sep 2012 238c2ecf20Sopenharmony_ciContact: Tomas Hlavacek <tmshlvck@gmail.com> 248c2ecf20Sopenharmony_ciDescription: 258c2ecf20Sopenharmony_ci Shows the current uartclk value associated with the 268c2ecf20Sopenharmony_ci UART port in serial_core, that is bound to TTY like ttyS0. 278c2ecf20Sopenharmony_ci uartclk = 16 * baud_base 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 308c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/type 338c2ecf20Sopenharmony_ciDate: October 2012 348c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 358c2ecf20Sopenharmony_ciDescription: 368c2ecf20Sopenharmony_ci Shows the current tty type for this port. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 398c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/line 428c2ecf20Sopenharmony_ciDate: October 2012 438c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 448c2ecf20Sopenharmony_ciDescription: 458c2ecf20Sopenharmony_ci Shows the current tty line number for this port. 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 488c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/port 518c2ecf20Sopenharmony_ciDate: October 2012 528c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 538c2ecf20Sopenharmony_ciDescription: 548c2ecf20Sopenharmony_ci Shows the current tty port I/O address for this port. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 578c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/irq 608c2ecf20Sopenharmony_ciDate: October 2012 618c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 628c2ecf20Sopenharmony_ciDescription: 638c2ecf20Sopenharmony_ci Shows the current primary interrupt for this port. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 668c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/flags 698c2ecf20Sopenharmony_ciDate: October 2012 708c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 718c2ecf20Sopenharmony_ciDescription: 728c2ecf20Sopenharmony_ci Show the tty port status flags for this port. 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 758c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/xmit_fifo_size 788c2ecf20Sopenharmony_ciDate: October 2012 798c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 808c2ecf20Sopenharmony_ciDescription: 818c2ecf20Sopenharmony_ci Show the transmit FIFO size for this port. 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 848c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/close_delay 878c2ecf20Sopenharmony_ciDate: October 2012 888c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 898c2ecf20Sopenharmony_ciDescription: 908c2ecf20Sopenharmony_ci Show the closing delay time for this port in ms. 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 938c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/closing_wait 968c2ecf20Sopenharmony_ciDate: October 2012 978c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 988c2ecf20Sopenharmony_ciDescription: 998c2ecf20Sopenharmony_ci Show the close wait time for this port in ms. 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 1028c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/custom_divisor 1058c2ecf20Sopenharmony_ciDate: October 2012 1068c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 1078c2ecf20Sopenharmony_ciDescription: 1088c2ecf20Sopenharmony_ci Show the custom divisor if any that is set on this port. 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 1118c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/io_type 1148c2ecf20Sopenharmony_ciDate: October 2012 1158c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 1168c2ecf20Sopenharmony_ciDescription: 1178c2ecf20Sopenharmony_ci Show the I/O type that is to be used with the iomem base 1188c2ecf20Sopenharmony_ci address. 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 1218c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/iomem_base 1248c2ecf20Sopenharmony_ciDate: October 2012 1258c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 1268c2ecf20Sopenharmony_ciDescription: 1278c2ecf20Sopenharmony_ci The I/O memory base for this port. 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 1308c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/iomem_reg_shift 1338c2ecf20Sopenharmony_ciDate: October 2012 1348c2ecf20Sopenharmony_ciContact: Alan Cox <alan@linux.intel.com> 1358c2ecf20Sopenharmony_ciDescription: 1368c2ecf20Sopenharmony_ci Show the register shift indicating the spacing to be used 1378c2ecf20Sopenharmony_ci for accesses on this iomem address. 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ci These sysfs values expose the TIOCGSERIAL interface via 1408c2ecf20Sopenharmony_ci sysfs rather than via ioctls. 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/rx_trig_bytes 1438c2ecf20Sopenharmony_ciDate: May 2014 1448c2ecf20Sopenharmony_ciContact: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com> 1458c2ecf20Sopenharmony_ciDescription: 1468c2ecf20Sopenharmony_ci Shows current RX interrupt trigger bytes or sets the 1478c2ecf20Sopenharmony_ci user specified value to change it for the FIFO buffer. 1488c2ecf20Sopenharmony_ci Users can show or set this value regardless of opening the 1498c2ecf20Sopenharmony_ci serial device file or not. 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci The RX trigger can be set one of four kinds of values for UART 1528c2ecf20Sopenharmony_ci serials. When users input a meaning less value to this I/F, 1538c2ecf20Sopenharmony_ci the RX trigger is changed to the nearest lower value for the 1548c2ecf20Sopenharmony_ci device specification. For example, when user sets 7bytes on 1558c2ecf20Sopenharmony_ci 16550A, which has 1/4/8/14 bytes trigger, the RX trigger is 1568c2ecf20Sopenharmony_ci automatically changed to 4 bytes. 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_ciWhat: /sys/class/tty/ttyS0/console 1598c2ecf20Sopenharmony_ciDate: February 2020 1608c2ecf20Sopenharmony_ciContact: Andy Shevchenko <andriy.shevchenko@linux.intel.com> 1618c2ecf20Sopenharmony_ciDescription: 1628c2ecf20Sopenharmony_ci Allows user to detach or attach back the given device as 1638c2ecf20Sopenharmony_ci kernel console. It shows and accepts a boolean variable. 164