blob: b5b3bfa612239de07b512ccc7f77782e12298307 [file] [log] [blame]
Joe Millenbach4f73bc42013-01-17 22:44:22 -08001config TTY
2 bool "Enable TTY" if EXPERT
3 default y
4 ---help---
5 Allows you to remove TTY support which can save space, and
6 blocks features that require TTY from inclusion in the kernel.
7 TTY is required for any text terminals or serial port
8 communication. Most users should leave this enabled.
9
10if TTY
11
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -080012config VT
13 bool "Virtual terminal" if EXPERT
Al Viro33694652011-08-18 20:11:59 +010014 depends on !S390 && !UML
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -080015 select INPUT
16 default y
17 ---help---
18 If you say Y here, you will get support for terminal devices with
19 display and keyboard devices. These are called "virtual" because you
20 can run several virtual terminals (also called virtual consoles) on
21 one physical terminal. This is rather useful, for example one
22 virtual terminal can collect system messages and warnings, another
23 one can be used for a text-mode user session, and a third could run
24 an X session, all in parallel. Switching between virtual terminals
25 is done with certain key combinations, usually Alt-<function key>.
26
27 The setterm command ("man setterm") can be used to change the
28 properties (such as colors or beeping) of a virtual terminal. The
29 man page console_codes(4) ("man console_codes") contains the special
30 character sequences that can be used to change those properties
31 directly. The fonts used on virtual terminals can be changed with
32 the setfont ("man setfont") command and the key bindings are defined
33 with the loadkeys ("man loadkeys") command.
34
35 You need at least one virtual terminal device in order to make use
36 of your keyboard and monitor. Therefore, only people configuring an
37 embedded system would want to say N here in order to save some
38 memory; the only way to log into such a system is then via a serial
39 or network connection.
40
41 If unsure, say Y, or else you won't be able to do much with your new
42 shiny Linux system :-)
43
Carl van Schaikb38f1742018-07-03 12:02:30 +100044config TTY_FLUSH_LOCAL_ECHO
45 bool
46
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -080047config CONSOLE_TRANSLATIONS
48 depends on VT
49 default y
50 bool "Enable character translations in console" if EXPERT
51 ---help---
52 This enables support for font mapping and Unicode translation
53 on virtual consoles.
54
55config VT_CONSOLE
56 bool "Support for console on virtual terminal" if EXPERT
57 depends on VT
58 default y
59 ---help---
60 The system console is the device which receives all kernel messages
61 and warnings and which allows logins in single user mode. If you
62 answer Y here, a virtual terminal (the device used to interact with
63 a physical terminal) can be used as system console. This is the most
64 common mode of operations, so you should say Y here unless you want
65 the kernel messages be output only to a serial port (in which case
66 you should say Y to "Console on serial port", below).
67
68 If you do say Y here, by default the currently visible virtual
69 terminal (/dev/tty0) will be used as system console. You can change
70 that with a kernel command line option such as "console=tty3" which
71 would use the third virtual terminal as system console. (Try "man
72 bootparam" or see the documentation of your boot loader (lilo or
73 loadlin) about how to pass options to the kernel at boot time.)
74
75 If unsure, say Y.
76
H Hartley Sweeten37cce262011-09-21 22:47:55 +020077config VT_CONSOLE_SLEEP
78 def_bool y
79 depends on VT_CONSOLE && PM_SLEEP
80
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -080081config HW_CONSOLE
82 bool
Paul Bolle24b59222011-10-12 14:40:02 +020083 depends on VT && !UML
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -080084 default y
85
86config VT_HW_CONSOLE_BINDING
87 bool "Support for binding and unbinding console drivers"
88 depends on HW_CONSOLE
89 default n
90 ---help---
91 The virtual terminal is the device that interacts with the physical
92 terminal through console drivers. On these systems, at least one
93 console driver is loaded. In other configurations, additional console
94 drivers may be enabled, such as the framebuffer console. If more than
95 1 console driver is enabled, setting this to 'y' will allow you to
96 select the console driver that will serve as the backend for the
97 virtual terminals.
98
99 See <file:Documentation/console/console.txt> for more
100 information. For framebuffer console users, please refer to
101 <file:Documentation/fb/fbcon.txt>.
102
103config UNIX98_PTYS
104 bool "Unix98 PTY support" if EXPERT
105 default y
106 ---help---
107 A pseudo terminal (PTY) is a software device consisting of two
108 halves: a master and a slave. The slave device behaves identical to
109 a physical terminal; the master device is used by a process to
110 read data from and write data to the slave, thereby emulating a
111 terminal. Typical programs for the master side are telnet servers
112 and xterms.
113
114 Linux has traditionally used the BSD-like names /dev/ptyxx for
115 masters and /dev/ttyxx for slaves of pseudo terminals. This scheme
116 has a number of problems. The GNU C library glibc 2.1 and later,
117 however, supports the Unix98 naming standard: in order to acquire a
118 pseudo terminal, a process opens /dev/ptmx; the number of the pseudo
119 terminal is then made available to the process and the pseudo
120 terminal slave can be accessed as /dev/pts/<number>. What was
121 traditionally /dev/ttyp2 will then be /dev/pts/2, for example.
122
123 All modern Linux systems use the Unix98 ptys. Say Y unless
124 you're on an embedded system and want to conserve memory.
125
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -0800126config LEGACY_PTYS
127 bool "Legacy (BSD) PTY support"
128 default y
129 ---help---
130 A pseudo terminal (PTY) is a software device consisting of two
131 halves: a master and a slave. The slave device behaves identical to
132 a physical terminal; the master device is used by a process to
133 read data from and write data to the slave, thereby emulating a
134 terminal. Typical programs for the master side are telnet servers
135 and xterms.
136
137 Linux has traditionally used the BSD-like names /dev/ptyxx
138 for masters and /dev/ttyxx for slaves of pseudo
139 terminals. This scheme has a number of problems, including
140 security. This option enables these legacy devices; on most
141 systems, it is safe to say N.
142
143
144config LEGACY_PTY_COUNT
145 int "Maximum number of legacy PTY in use"
146 depends on LEGACY_PTYS
147 range 0 256
148 default "256"
149 ---help---
150 The maximum number of legacy PTYs that can be used at any one time.
151 The default is 256, and should be more than enough. Embedded
152 systems may want to reduce this to save memory.
153
154 When not in use, each legacy PTY occupies 12 bytes on 32-bit
155 architectures and 24 bytes on 64-bit architectures.
156
Greg Kroah-Hartmana6afd9f2011-02-22 16:14:56 -0800157config BFIN_JTAG_COMM
158 tristate "Blackfin JTAG Communication"
159 depends on BLACKFIN
160 help
161 Add support for emulating a TTY device over the Blackfin JTAG.
162
163 To compile this driver as a module, choose M here: the
164 module will be called bfin_jtag_comm.
165
166config BFIN_JTAG_COMM_CONSOLE
167 bool "Console on Blackfin JTAG"
168 depends on BFIN_JTAG_COMM=y
169
170config SERIAL_NONSTANDARD
171 bool "Non-standard serial port support"
172 depends on HAS_IOMEM
173 ---help---
174 Say Y here if you have any non-standard serial boards -- boards
175 which aren't supported using the standard "dumb" serial driver.
176 This includes intelligent serial boards such as Cyclades,
177 Digiboards, etc. These are usually used for systems that need many
178 serial ports because they serve many terminals or dial-in
179 connections.
180
181 Note that the answer to this question won't directly affect the
182 kernel: saying N will just cause the configurator to skip all
183 the questions about non-standard serial boards.
184
185 Most people can say N here.
186
187config ROCKETPORT
188 tristate "Comtrol RocketPort support"
189 depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
190 help
191 This driver supports Comtrol RocketPort and RocketModem PCI boards.
192 These boards provide 2, 4, 8, 16, or 32 high-speed serial ports or
193 modems. For information about the RocketPort/RocketModem boards
194 and this driver read <file:Documentation/serial/rocket.txt>.
195
196 To compile this driver as a module, choose M here: the
197 module will be called rocket.
198
199 If you want to compile this driver into the kernel, say Y here. If
200 you don't have a Comtrol RocketPort/RocketModem card installed, say N.
201
202config CYCLADES
203 tristate "Cyclades async mux support"
204 depends on SERIAL_NONSTANDARD && (PCI || ISA)
205 select FW_LOADER
206 ---help---
207 This driver supports Cyclades Z and Y multiserial boards.
208 You would need something like this to connect more than two modems to
209 your Linux box, for instance in order to become a dial-in server.
210
211 For information about the Cyclades-Z card, read
212 <file:Documentation/serial/README.cycladesZ>.
213
214 To compile this driver as a module, choose M here: the
215 module will be called cyclades.
216
217 If you haven't heard about it, it's safe to say N.
218
219config CYZ_INTR
Greg Kroah-Hartman8b775622012-09-18 16:19:27 +0100220 bool "Cyclades-Z interrupt mode operation"
Arnd Bergmann05ead492016-01-25 22:54:57 +0100221 depends on CYCLADES && PCI
Greg Kroah-Hartmana6afd9f2011-02-22 16:14:56 -0800222 help
223 The Cyclades-Z family of multiport cards allows 2 (two) driver op
224 modes: polling and interrupt. In polling mode, the driver will check
225 the status of the Cyclades-Z ports every certain amount of time
226 (which is called polling cycle and is configurable). In interrupt
227 mode, it will use an interrupt line (IRQ) in order to check the
228 status of the Cyclades-Z ports. The default op mode is polling. If
229 unsure, say N.
230
231config MOXA_INTELLIO
232 tristate "Moxa Intellio support"
233 depends on SERIAL_NONSTANDARD && (ISA || EISA || PCI)
234 select FW_LOADER
235 help
236 Say Y here if you have a Moxa Intellio multiport serial card.
237
238 To compile this driver as a module, choose M here: the
239 module will be called moxa.
240
241config MOXA_SMARTIO
242 tristate "Moxa SmartIO support v. 2.0"
243 depends on SERIAL_NONSTANDARD && (PCI || EISA || ISA)
244 help
245 Say Y here if you have a Moxa SmartIO multiport serial card and/or
246 want to help develop a new version of this driver.
247
248 This is upgraded (1.9.1) driver from original Moxa drivers with
249 changes finally resulting in PCI probing.
250
251 This driver can also be built as a module. The module will be called
252 mxser. If you want to do that, say M here.
253
254config SYNCLINK
255 tristate "Microgate SyncLink card support"
256 depends on SERIAL_NONSTANDARD && PCI && ISA_DMA_API
257 help
258 Provides support for the SyncLink ISA and PCI multiprotocol serial
259 adapters. These adapters support asynchronous and HDLC bit
260 synchronous communication up to 10Mbps (PCI adapter).
261
262 This driver can only be built as a module ( = code which can be
263 inserted in and removed from the running kernel whenever you want).
264 The module will be called synclink. If you want to do that, say M
265 here.
266
267config SYNCLINKMP
268 tristate "SyncLink Multiport support"
269 depends on SERIAL_NONSTANDARD && PCI
270 help
271 Enable support for the SyncLink Multiport (2 or 4 ports)
272 serial adapter, running asynchronous and HDLC communications up
273 to 2.048Mbps. Each ports is independently selectable for
274 RS-232, V.35, RS-449, RS-530, and X.21
275
276 This driver may be built as a module ( = code which can be
277 inserted in and removed from the running kernel whenever you want).
278 The module will be called synclinkmp. If you want to do that, say M
279 here.
280
281config SYNCLINK_GT
282 tristate "SyncLink GT/AC support"
283 depends on SERIAL_NONSTANDARD && PCI
284 help
285 Support for SyncLink GT and SyncLink AC families of
286 synchronous and asynchronous serial adapters
287 manufactured by Microgate Systems, Ltd. (www.microgate.com)
288
289config NOZOMI
290 tristate "HSDPA Broadband Wireless Data Card - Globe Trotter"
Greg Kroah-Hartman8b775622012-09-18 16:19:27 +0100291 depends on PCI
Greg Kroah-Hartmana6afd9f2011-02-22 16:14:56 -0800292 help
293 If you have a HSDPA driver Broadband Wireless Data Card -
294 Globe Trotter PCMCIA card, say Y here.
295
296 To compile this driver as a module, choose M here, the module
297 will be called nozomi.
298
299config ISI
Greg Kroah-Hartman8b775622012-09-18 16:19:27 +0100300 tristate "Multi-Tech multiport card support"
Greg Kroah-Hartmana6afd9f2011-02-22 16:14:56 -0800301 depends on SERIAL_NONSTANDARD && PCI
302 select FW_LOADER
303 help
304 This is a driver for the Multi-Tech cards which provide several
305 serial ports. The driver is experimental and can currently only be
306 built as a module. The module will be called isicom.
307 If you want to do that, choose M here.
308
309config N_HDLC
310 tristate "HDLC line discipline support"
311 depends on SERIAL_NONSTANDARD
312 help
313 Allows synchronous HDLC communications with tty device drivers that
314 support synchronous HDLC such as the Microgate SyncLink adapter.
315
316 This driver can be built as a module ( = code which can be
317 inserted in and removed from the running kernel whenever you want).
318 The module will be called n_hdlc. If you want to do that, say M
319 here.
320
321config N_GSM
Greg Kroah-Hartman5de69342012-09-18 17:17:56 +0100322 tristate "GSM MUX line discipline support (EXPERIMENTAL)"
Greg Kroah-Hartmana6afd9f2011-02-22 16:14:56 -0800323 depends on NET
324 help
325 This line discipline provides support for the GSM MUX protocol and
326 presents the mux as a set of 61 individual tty devices.
Greg Kroah-Hartmanbdcffc52011-02-22 15:41:47 -0800327
J Freyenseeee4f6b42011-05-06 16:56:50 -0700328config TRACE_ROUTER
329 tristate "Trace data router for MIPI P1149.7 cJTAG standard"
330 depends on TRACE_SINK
331 default n
332 help
333 The trace router uses the Linux tty line discipline framework to
334 route trace data coming from a tty port (say UART for example) to
335 the trace sink line discipline driver and to another tty port (say
336 USB). This is part of a solution for the MIPI P1149.7, compact JTAG,
337 standard, which is for debugging mobile devices. The PTI driver in
338 drivers/misc/pti.c defines the majority of this MIPI solution.
339
340 You should select this driver if the target kernel is meant for
341 a mobile device containing a modem. Then you will need to select
342 "Trace data sink for MIPI P1149.7 cJTAG standard" line discipline
343 driver.
344
345config TRACE_SINK
346 tristate "Trace data sink for MIPI P1149.7 cJTAG standard"
347 default n
348 help
349 The trace sink uses the Linux line discipline framework to receive
350 trace data coming from the trace router line discipline driver
351 to a user-defined tty port target, like USB.
352 This is to provide a way to extract modem trace data on
353 devices that do not have a PTI HW module, or just need modem
354 trace data to come out of a different HW output port.
355 This is part of a solution for the P1149.7, compact JTAG, standard.
356
357 If you select this option, you need to select
358 "Trace data router for MIPI P1149.7 cJTAG standard".
Timur Tabidcd83aa2011-07-08 19:06:12 -0500359
360config PPC_EPAPR_HV_BYTECHAN
Anton Blancharda183d3a2013-12-09 16:03:10 +1100361 bool "ePAPR hypervisor byte channel driver"
Timur Tabidcd83aa2011-07-08 19:06:12 -0500362 depends on PPC
Stuart Yoder40656392012-07-03 05:48:54 +0000363 select EPAPR_PARAVIRT
Timur Tabidcd83aa2011-07-08 19:06:12 -0500364 help
365 This driver creates /dev entries for each ePAPR hypervisor byte
366 channel, thereby allowing applications to communicate with byte
367 channels as if they were serial ports.
368
369config PPC_EARLY_DEBUG_EHV_BC
370 bool "Early console (udbg) support for ePAPR hypervisors"
Stephen Rothwellf21c6d42012-02-20 07:22:38 +1100371 depends on PPC_EPAPR_HV_BYTECHAN=y
Timur Tabidcd83aa2011-07-08 19:06:12 -0500372 help
373 Select this option to enable early console (a.k.a. "udbg") support
374 via an ePAPR byte channel. You also need to choose the byte channel
375 handle below.
376
377config PPC_EARLY_DEBUG_EHV_BC_HANDLE
378 int "Byte channel handle for early console (udbg)"
379 depends on PPC_EARLY_DEBUG_EHV_BC
380 default 0
381 help
382 If you want early console (udbg) output through a byte channel,
383 specify the handle of the byte channel to use.
384
385 For this to work, the byte channel driver must be compiled
386 in-kernel, not as a module.
387
388 Note that only one early console driver can be enabled, so don't
389 enable any others if you enable this one.
390
391 If the number you specify is not a valid byte channel handle, then
392 there simply will be no early console output. This is true also
393 if you don't boot under a hypervisor at all.
Joe Millenbach4f73bc42013-01-17 22:44:22 -0800394
Arve Hjønnevåg666b7792013-01-21 23:38:47 +0000395config GOLDFISH_TTY
396 tristate "Goldfish TTY Driver"
397 depends on GOLDFISH
398 help
399 Console and system TTY driver for the Goldfish virtual platform.
400
James Hogan8200e382013-02-06 14:45:01 +0000401config DA_TTY
402 bool "DA TTY"
403 depends on METAG_DA
404 select SERIAL_NONSTANDARD
405 help
406 This enables a TTY on a Dash channel.
407
408config DA_CONSOLE
409 bool "DA Console"
410 depends on DA_TTY
411 help
412 This enables a console on a Dash channel.
413
James Hogan4cebec62015-01-29 11:14:12 +0000414config MIPS_EJTAG_FDC_TTY
415 bool "MIPS EJTAG Fast Debug Channel TTY"
416 depends on MIPS_CDMM
417 help
418 This enables a TTY and console on the MIPS EJTAG Fast Debug Channels,
419 if they are present. This can be useful when working with an EJTAG
420 probe which supports it, to get console output and a login prompt via
421 EJTAG without needing to connect a serial cable.
422
423 TTY devices are named e.g. ttyFDC3c2 (for FDC channel 2 of the FDC on
424 CPU3).
425
426 The console can be enabled with console=fdc1 (for FDC channel 1 on all
427 CPUs). Do not use the console unless there is a debug probe attached
428 to drain the FDC TX FIFO.
429
430 If unsure, say N.
431
James Hogane9349452015-01-29 11:14:13 +0000432config MIPS_EJTAG_FDC_EARLYCON
433 bool "Early FDC console"
434 depends on MIPS_EJTAG_FDC_TTY
435 help
436 This registers a console on FDC channel 1 very early during boot (from
437 MIPS arch code). This is useful for bring-up and debugging early boot
438 issues.
439
440 Do not enable unless there is a debug probe attached to drain the FDC
441 TX FIFO.
442
443 If unsure, say N.
444
James Hoganc2d7ef52015-01-29 11:14:14 +0000445config MIPS_EJTAG_FDC_KGDB
446 bool "Use KGDB over an FDC channel"
447 depends on MIPS_EJTAG_FDC_TTY && KGDB
448 default y
449 help
450 This enables the use of KGDB over an FDC channel, allowing KGDB to be
451 used remotely or when a serial port isn't available.
452
453config MIPS_EJTAG_FDC_KGDB_CHAN
454 int "KGDB FDC channel"
455 depends on MIPS_EJTAG_FDC_KGDB
456 range 2 15
457 default 3
458 help
459 FDC channel number to use for KGDB.
460
Carl van Schaikfde8e2e2018-07-03 12:23:26 +1000461config OKL4_VTTY
462 bool "Virtual TTY on the OKL4 Microvisor"
463 depends on OKL4_GUEST
464 select TTY_FLUSH_LOCAL_ECHO
465 default y
466 ---help---
467 This device provides character-level read-write access
468 to the virtual console, usually connected to a serial-server which
469 multiplexes output on a physical UART.
470
471config OKL4_VTTY_CONSOLE
472 bool "Console on OKL4 VTTY"
473 depends on OKL4_VTTY
474 default y
475 help
476 Console support for OKL4 Microvisor virtual ttys.
477
Greg Kroah-Hartman9b7984e2019-01-21 17:26:42 +0100478config LDISC_AUTOLOAD
479 bool "Automatically load TTY Line Disciplines"
480 default y
481 help
482 Historically the kernel has always automatically loaded any
483 line discipline that is in a kernel module when a user asks
484 for it to be loaded with the TIOCSETD ioctl, or through other
485 means. This is not always the best thing to do on systems
486 where you know you will not be using some of the more
487 "ancient" line disciplines, so prevent the kernel from doing
488 this unless the request is coming from a process with the
489 CAP_SYS_MODULE permissions.
490
491 Say 'Y' here if you trust your userspace users to do the right
492 thing, or if you have only provided the line disciplines that
493 you know you will be using, or if you wish to continue to use
494 the traditional method of on-demand loading of these modules
495 by any user.
496
497 This functionality can be changed at runtime with the
498 dev.tty.ldisc_autoload sysctl, this configuration option will
499 only set the default value of this functionality.
500
Joe Millenbach4f73bc42013-01-17 22:44:22 -0800501endif # TTY