1 # SPDX-License-Identifier: GPL-2.0
3 bool "Enable TTY" if EXPERT
6 Allows you to remove TTY support which can save space, and
7 blocks features that require TTY from inclusion in the kernel.
8 TTY is required for any text terminals or serial port
9 communication. Most users should leave this enabled.
14 bool "Virtual terminal" if EXPERT
19 If you say Y here, you will get support for terminal devices with
20 display and keyboard devices. These are called "virtual" because you
21 can run several virtual terminals (also called virtual consoles) on
22 one physical terminal. This is rather useful, for example one
23 virtual terminal can collect system messages and warnings, another
24 one can be used for a text-mode user session, and a third could run
25 an X session, all in parallel. Switching between virtual terminals
26 is done with certain key combinations, usually Alt-<function key>.
28 The setterm command ("man setterm") can be used to change the
29 properties (such as colors or beeping) of a virtual terminal. The
30 man page console_codes(4) ("man console_codes") contains the special
31 character sequences that can be used to change those properties
32 directly. The fonts used on virtual terminals can be changed with
33 the setfont ("man setfont") command and the key bindings are defined
34 with the loadkeys ("man loadkeys") command.
36 You need at least one virtual terminal device in order to make use
37 of your keyboard and monitor. Therefore, only people configuring an
38 embedded system would want to say N here in order to save some
39 memory; the only way to log into such a system is then via a serial
40 or network connection.
42 If unsure, say Y, or else you won't be able to do much with your new
43 shiny Linux system :-)
45 config CONSOLE_TRANSLATIONS
48 bool "Enable character translations in console" if EXPERT
50 This enables support for font mapping and Unicode translation
54 bool "Support for console on virtual terminal" if EXPERT
58 The system console is the device which receives all kernel messages
59 and warnings and which allows logins in single user mode. If you
60 answer Y here, a virtual terminal (the device used to interact with
61 a physical terminal) can be used as system console. This is the most
62 common mode of operations, so you should say Y here unless you want
63 the kernel messages be output only to a serial port (in which case
64 you should say Y to "Console on serial port", below).
66 If you do say Y here, by default the currently visible virtual
67 terminal (/dev/tty0) will be used as system console. You can change
68 that with a kernel command line option such as "console=tty3" which
69 would use the third virtual terminal as system console. (Try "man
70 bootparam" or see the documentation of your boot loader (lilo or
71 loadlin) about how to pass options to the kernel at boot time.)
75 config VT_CONSOLE_SLEEP
77 depends on VT_CONSOLE && PM_SLEEP
84 config VT_HW_CONSOLE_BINDING
85 bool "Support for binding and unbinding console drivers"
88 The virtual terminal is the device that interacts with the physical
89 terminal through console drivers. On these systems, at least one
90 console driver is loaded. In other configurations, additional console
91 drivers may be enabled, such as the framebuffer console. If more than
92 1 console driver is enabled, setting this to 'y' will allow you to
93 select the console driver that will serve as the backend for the
96 See <file:Documentation/driver-api/console.rst> for more
97 information. For framebuffer console users, please refer to
98 <file:Documentation/fb/fbcon.rst>.
101 bool "Unix98 PTY support" if EXPERT
104 A pseudo terminal (PTY) is a software device consisting of two
105 halves: a master and a slave. The slave device behaves identical to
106 a physical terminal; the master device is used by a process to
107 read data from and write data to the slave, thereby emulating a
108 terminal. Typical programs for the master side are telnet servers
111 Linux has traditionally used the BSD-like names /dev/ptyxx for
112 masters and /dev/ttyxx for slaves of pseudo terminals. This scheme
113 has a number of problems. The GNU C library glibc 2.1 and later,
114 however, supports the Unix98 naming standard: in order to acquire a
115 pseudo terminal, a process opens /dev/ptmx; the number of the pseudo
116 terminal is then made available to the process and the pseudo
117 terminal slave can be accessed as /dev/pts/<number>. What was
118 traditionally /dev/ttyp2 will then be /dev/pts/2, for example.
120 All modern Linux systems use the Unix98 ptys. Say Y unless
121 you're on an embedded system and want to conserve memory.
124 bool "Legacy (BSD) PTY support"
127 A pseudo terminal (PTY) is a software device consisting of two
128 halves: a master and a slave. The slave device behaves identical to
129 a physical terminal; the master device is used by a process to
130 read data from and write data to the slave, thereby emulating a
131 terminal. Typical programs for the master side are telnet servers
134 Linux has traditionally used the BSD-like names /dev/ptyxx
135 for masters and /dev/ttyxx for slaves of pseudo
136 terminals. This scheme has a number of problems, including
137 security. This option enables these legacy devices; on most
138 systems, it is safe to say N.
140 config LEGACY_PTY_COUNT
141 int "Maximum number of legacy PTY in use"
142 depends on LEGACY_PTYS
146 The maximum number of legacy PTYs that can be used at any one time.
147 The default is 256, and should be more than enough. Embedded
148 systems may want to reduce this to save memory.
150 When not in use, each legacy PTY occupies 12 bytes on 32-bit
151 architectures and 24 bytes on 64-bit architectures.
153 config LDISC_AUTOLOAD
154 bool "Automatically load TTY Line Disciplines"
157 Historically the kernel has always automatically loaded any
158 line discipline that is in a kernel module when a user asks
159 for it to be loaded with the TIOCSETD ioctl, or through other
160 means. This is not always the best thing to do on systems
161 where you know you will not be using some of the more
162 "ancient" line disciplines, so prevent the kernel from doing
163 this unless the request is coming from a process with the
164 CAP_SYS_MODULE permissions.
166 Say 'Y' here if you trust your userspace users to do the right
167 thing, or if you have only provided the line disciplines that
168 you know you will be using, or if you wish to continue to use
169 the traditional method of on-demand loading of these modules
172 This functionality can be changed at runtime with the
173 dev.tty.ldisc_autoload sysctl, this configuration option will
174 only set the default value of this functionality.
176 source "drivers/tty/serial/Kconfig"
178 config SERIAL_NONSTANDARD
179 bool "Non-standard serial port support"
182 Say Y here if you have any non-standard serial boards -- boards
183 which aren't supported using the standard "dumb" serial driver.
184 This includes intelligent serial boards such as Cyclades,
185 Digiboards, etc. These are usually used for systems that need many
186 serial ports because they serve many terminals or dial-in
189 Note that the answer to this question won't directly affect the
190 kernel: saying N will just cause the configurator to skip all
191 the questions about non-standard serial boards.
193 Most people can say N here.
196 tristate "Comtrol RocketPort support"
197 depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
199 This driver supports Comtrol RocketPort and RocketModem PCI boards.
200 These boards provide 2, 4, 8, 16, or 32 high-speed serial ports or
201 modems. For information about the RocketPort/RocketModem boards
202 and this driver read <file:Documentation/driver-api/serial/rocket.rst>.
204 To compile this driver as a module, choose M here: the
205 module will be called rocket.
207 If you want to compile this driver into the kernel, say Y here. If
208 you don't have a Comtrol RocketPort/RocketModem card installed, say N.
211 tristate "Cyclades async mux support"
212 depends on SERIAL_NONSTANDARD && (PCI || ISA)
215 This driver supports Cyclades Z and Y multiserial boards.
216 You would need something like this to connect more than two modems to
217 your Linux box, for instance in order to become a dial-in server.
219 For information about the Cyclades-Z card, read
220 <file:Documentation/driver-api/serial/cyclades_z.rst>.
222 To compile this driver as a module, choose M here: the
223 module will be called cyclades.
225 If you haven't heard about it, it's safe to say N.
228 bool "Cyclades-Z interrupt mode operation"
229 depends on CYCLADES && PCI
231 The Cyclades-Z family of multiport cards allows 2 (two) driver op
232 modes: polling and interrupt. In polling mode, the driver will check
233 the status of the Cyclades-Z ports every certain amount of time
234 (which is called polling cycle and is configurable). In interrupt
235 mode, it will use an interrupt line (IRQ) in order to check the
236 status of the Cyclades-Z ports. The default op mode is polling. If
240 tristate "Moxa Intellio support"
241 depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
244 Say Y here if you have a Moxa Intellio multiport serial card.
246 To compile this driver as a module, choose M here: the
247 module will be called moxa.
250 tristate "Moxa SmartIO support v. 2.0"
251 depends on SERIAL_NONSTANDARD && (PCI || EISA || ISA)
253 Say Y here if you have a Moxa SmartIO multiport serial card and/or
254 want to help develop a new version of this driver.
256 This is upgraded (1.9.1) driver from original Moxa drivers with
257 changes finally resulting in PCI probing.
259 This driver can also be built as a module. The module will be called
260 mxser. If you want to do that, say M here.
263 tristate "SyncLink GT/AC support"
264 depends on SERIAL_NONSTANDARD && PCI
266 Support for SyncLink GT and SyncLink AC families of
267 synchronous and asynchronous serial adapters
268 manufactured by Microgate Systems, Ltd. (www.microgate.com)
271 tristate "Multi-Tech multiport card support"
272 depends on SERIAL_NONSTANDARD && PCI
275 This is a driver for the Multi-Tech cards which provide several
276 serial ports. The driver is experimental and can currently only be
277 built as a module. The module will be called isicom.
278 If you want to do that, choose M here.
281 tristate "HDLC line discipline support"
282 depends on SERIAL_NONSTANDARD
284 Allows synchronous HDLC communications with tty device drivers that
285 support synchronous HDLC such as the Microgate SyncLink adapter.
287 This driver can be built as a module ( = code which can be
288 inserted in and removed from the running kernel whenever you want).
289 The module will be called n_hdlc. If you want to do that, say M
292 config PPC_EPAPR_HV_BYTECHAN
293 bool "ePAPR hypervisor byte channel driver"
295 select EPAPR_PARAVIRT
297 This driver creates /dev entries for each ePAPR hypervisor byte
298 channel, thereby allowing applications to communicate with byte
299 channels as if they were serial ports.
301 config PPC_EARLY_DEBUG_EHV_BC
302 bool "Early console (udbg) support for ePAPR hypervisors"
303 depends on PPC_EPAPR_HV_BYTECHAN=y
305 Select this option to enable early console (a.k.a. "udbg") support
306 via an ePAPR byte channel. You also need to choose the byte channel
309 config PPC_EARLY_DEBUG_EHV_BC_HANDLE
310 int "Byte channel handle for early console (udbg)"
311 depends on PPC_EARLY_DEBUG_EHV_BC
314 If you want early console (udbg) output through a byte channel,
315 specify the handle of the byte channel to use.
317 For this to work, the byte channel driver must be compiled
318 in-kernel, not as a module.
320 Note that only one early console driver can be enabled, so don't
321 enable any others if you enable this one.
323 If the number you specify is not a valid byte channel handle, then
324 there simply will be no early console output. This is true also
325 if you don't boot under a hypervisor at all.
328 tristate "Goldfish TTY Driver"
331 select SERIAL_CORE_CONSOLE
333 Console and system TTY driver for the Goldfish virtual platform.
335 config GOLDFISH_TTY_EARLY_CONSOLE
337 default y if GOLDFISH_TTY=y
338 select SERIAL_EARLYCON
341 tristate "GSM MUX line discipline support (EXPERIMENTAL)"
344 This line discipline provides support for the GSM MUX protocol and
345 presents the mux as a set of 61 individual tty devices.
348 tristate "HSDPA Broadband Wireless Data Card - Globe Trotter"
351 If you have a HSDPA driver Broadband Wireless Data Card -
352 Globe Trotter PCMCIA card, say Y here.
354 To compile this driver as a module, choose M here, the module
355 will be called nozomi.
357 config MIPS_EJTAG_FDC_TTY
358 bool "MIPS EJTAG Fast Debug Channel TTY"
361 This enables a TTY and console on the MIPS EJTAG Fast Debug Channels,
362 if they are present. This can be useful when working with an EJTAG
363 probe which supports it, to get console output and a login prompt via
364 EJTAG without needing to connect a serial cable.
366 TTY devices are named e.g. ttyFDC3c2 (for FDC channel 2 of the FDC on
369 The console can be enabled with console=fdc1 (for FDC channel 1 on all
370 CPUs). Do not use the console unless there is a debug probe attached
371 to drain the FDC TX FIFO.
375 config MIPS_EJTAG_FDC_EARLYCON
376 bool "Early FDC console"
377 depends on MIPS_EJTAG_FDC_TTY
379 This registers a console on FDC channel 1 very early during boot (from
380 MIPS arch code). This is useful for bring-up and debugging early boot
383 Do not enable unless there is a debug probe attached to drain the FDC
388 config MIPS_EJTAG_FDC_KGDB
389 bool "Use KGDB over an FDC channel"
390 depends on MIPS_EJTAG_FDC_TTY && KGDB
393 This enables the use of KGDB over an FDC channel, allowing KGDB to be
394 used remotely or when a serial port isn't available.
396 config MIPS_EJTAG_FDC_KGDB_CHAN
397 int "KGDB FDC channel"
398 depends on MIPS_EJTAG_FDC_KGDB
402 FDC channel number to use for KGDB.
405 tristate "NULL TTY driver"
407 Say Y here if you want a NULL TTY which simply discards messages.
409 This is useful to allow userspace applications which expect a console
410 device to work without modifications even when no console is
411 available or desired.
413 In order to use this driver, you should redirect the console to this
414 TTY, or boot the kernel with console=ttynull.
419 tristate "Trace data router for MIPI P1149.7 cJTAG standard"
420 depends on TRACE_SINK
422 The trace router uses the Linux tty line discipline framework to
423 route trace data coming from a tty port (say UART for example) to
424 the trace sink line discipline driver and to another tty port (say
425 USB). This is part of a solution for the MIPI P1149.7, compact JTAG,
426 standard, which is for debugging mobile devices. The PTI driver in
427 drivers/misc/pti.c defines the majority of this MIPI solution.
429 You should select this driver if the target kernel is meant for
430 a mobile device containing a modem. Then you will need to select
431 "Trace data sink for MIPI P1149.7 cJTAG standard" line discipline
435 tristate "Trace data sink for MIPI P1149.7 cJTAG standard"
437 The trace sink uses the Linux line discipline framework to receive
438 trace data coming from the trace router line discipline driver
439 to a user-defined tty port target, like USB.
440 This is to provide a way to extract modem trace data on
441 devices that do not have a PTI HW module, or just need modem
442 trace data to come out of a different HW output port.
443 This is part of a solution for the P1149.7, compact JTAG, standard.
445 If you select this option, you need to select
446 "Trace data router for MIPI P1149.7 cJTAG standard".
449 tristate "Sun Virtual Console Concentrator"
452 Support for Sun logical domain consoles.
454 source "drivers/tty/hvc/Kconfig"
458 source "drivers/tty/serdev/Kconfig"