xref: /linux-6.15/drivers/char/Kconfig (revision 00e37543)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Character device configuration
4#
5
6menu "Character devices"
7
8source "drivers/tty/Kconfig"
9
10config TTY_PRINTK
11	tristate "TTY driver to output user messages via printk"
12	depends on EXPERT && TTY
13	default n
14	---help---
15	  If you say Y here, the support for writing user messages (i.e.
16	  console messages) via printk is available.
17
18	  The feature is useful to inline user messages with kernel
19	  messages.
20	  In order to use this feature, you should output user messages
21	  to /dev/ttyprintk or redirect console to this TTY.
22
23	  If unsure, say N.
24
25config TTY_PRINTK_LEVEL
26	depends on TTY_PRINTK
27	int "ttyprintk log level (1-7)"
28	range 1 7
29	default "6"
30	help
31	  Printk log level to use for ttyprintk messages.
32
33config PRINTER
34	tristate "Parallel printer support"
35	depends on PARPORT
36	---help---
37	  If you intend to attach a printer to the parallel port of your Linux
38	  box (as opposed to using a serial printer; if the connector at the
39	  printer has 9 or 25 holes ["female"], then it's serial), say Y.
40	  Also read the Printing-HOWTO, available from
41	  <http://www.tldp.org/docs.html#howto>.
42
43	  It is possible to share one parallel port among several devices
44	  (e.g. printer and ZIP drive) and it is safe to compile the
45	  corresponding drivers into the kernel.
46
47	  To compile this driver as a module, choose M here and read
48	  <file:Documentation/admin-guide/parport.rst>.  The module will be called lp.
49
50	  If you have several parallel ports, you can specify which ports to
51	  use with the "lp" kernel command line option.  (Try "man bootparam"
52	  or see the documentation of your boot loader (lilo or loadlin) about
53	  how to pass options to the kernel at boot time.)  The syntax of the
54	  "lp" command line option can be found in <file:drivers/char/lp.c>.
55
56	  If you have more than 8 printers, you need to increase the LP_NO
57	  macro in lp.c and the PARPORT_MAX macro in parport.h.
58
59config LP_CONSOLE
60	bool "Support for console on line printer"
61	depends on PRINTER
62	---help---
63	  If you want kernel messages to be printed out as they occur, you
64	  can have a console on the printer. This option adds support for
65	  doing that; to actually get it to happen you need to pass the
66	  option "console=lp0" to the kernel at boot time.
67
68	  If the printer is out of paper (or off, or unplugged, or too
69	  busy..) the kernel will stall until the printer is ready again.
70	  By defining CONSOLE_LP_STRICT to 0 (at your own risk) you
71	  can make the kernel continue when this happens,
72	  but it'll lose the kernel messages.
73
74	  If unsure, say N.
75
76config PPDEV
77	tristate "Support for user-space parallel port device drivers"
78	depends on PARPORT
79	---help---
80	  Saying Y to this adds support for /dev/parport device nodes.  This
81	  is needed for programs that want portable access to the parallel
82	  port, for instance deviceid (which displays Plug-and-Play device
83	  IDs).
84
85	  This is the parallel port equivalent of SCSI generic support (sg).
86	  It is safe to say N to this -- it is not needed for normal printing
87	  or parallel port CD-ROM/disk support.
88
89	  To compile this driver as a module, choose M here: the
90	  module will be called ppdev.
91
92	  If unsure, say N.
93
94config VIRTIO_CONSOLE
95	tristate "Virtio console"
96	depends on VIRTIO && TTY
97	select HVC_DRIVER
98	help
99	  Virtio console for use with hypervisors.
100
101	  Also serves as a general-purpose serial device for data
102	  transfer between the guest and host.  Character devices at
103	  /dev/vportNpn will be created when corresponding ports are
104	  found, where N is the device number and n is the port number
105	  within that device.  If specified by the host, a sysfs
106	  attribute called 'name' will be populated with a name for
107	  the port which can be used by udev scripts to create a
108	  symlink to the device.
109
110config IBM_BSR
111	tristate "IBM POWER Barrier Synchronization Register support"
112	depends on PPC_PSERIES
113	help
114	  This devices exposes a hardware mechanism for fast synchronization
115	  of threads across a large system which avoids bouncing a cacheline
116	  between several cores on a system
117
118config POWERNV_OP_PANEL
119	tristate "IBM POWERNV Operator Panel Display support"
120	depends on PPC_POWERNV
121	default m
122	help
123	  If you say Y here, a special character device node, /dev/op_panel,
124	  will be created which exposes the operator panel display on IBM
125	  Power Systems machines with FSPs.
126
127	  If you don't require access to the operator panel display from user
128	  space, say N.
129
130	  If unsure, say M here to build it as a module called powernv-op-panel.
131
132source "drivers/char/ipmi/Kconfig"
133
134config DS1620
135	tristate "NetWinder thermometer support"
136	depends on ARCH_NETWINDER
137	help
138	  Say Y here to include support for the thermal management hardware
139	  found in the NetWinder. This driver allows the user to control the
140	  temperature set points and to read the current temperature.
141
142	  It is also possible to say M here to build it as a module (ds1620)
143	  It is recommended to be used on a NetWinder, but it is not a
144	  necessity.
145
146config NWBUTTON
147	tristate "NetWinder Button"
148	depends on ARCH_NETWINDER
149	---help---
150	  If you say Y here and create a character device node /dev/nwbutton
151	  with major and minor numbers 10 and 158 ("man mknod"), then every
152	  time the orange button is pressed a number of times, the number of
153	  times the button was pressed will be written to that device.
154
155	  This is most useful for applications, as yet unwritten, which
156	  perform actions based on how many times the button is pressed in a
157	  row.
158
159	  Do not hold the button down for too long, as the driver does not
160	  alter the behaviour of the hardware reset circuitry attached to the
161	  button; it will still execute a hard reset if the button is held
162	  down for longer than approximately five seconds.
163
164	  To compile this driver as a module, choose M here: the
165	  module will be called nwbutton.
166
167	  Most people will answer Y to this question and "Reboot Using Button"
168	  below to be able to initiate a system shutdown from the button.
169
170config NWBUTTON_REBOOT
171	bool "Reboot Using Button"
172	depends on NWBUTTON
173	help
174	  If you say Y here, then you will be able to initiate a system
175	  shutdown and reboot by pressing the orange button a number of times.
176	  The number of presses to initiate the shutdown is two by default,
177	  but this can be altered by modifying the value of NUM_PRESSES_REBOOT
178	  in nwbutton.h and recompiling the driver or, if you compile the
179	  driver as a module, you can specify the number of presses at load
180	  time with "insmod button reboot_count=<something>".
181
182config NWFLASH
183	tristate "NetWinder flash support"
184	depends on ARCH_NETWINDER
185	---help---
186	  If you say Y here and create a character device /dev/flash with
187	  major 10 and minor 160 you can manipulate the flash ROM containing
188	  the NetWinder firmware. Be careful as accidentally overwriting the
189	  flash contents can render your computer unbootable. On no account
190	  allow random users access to this device. :-)
191
192	  To compile this driver as a module, choose M here: the
193	  module will be called nwflash.
194
195	  If you're not sure, say N.
196
197source "drivers/char/hw_random/Kconfig"
198
199#
200# These legacy RTC drivers just cause too many conflicts with the generic
201# RTC framework ... let's not even try to coexist any more.
202#
203if RTC_LIB=n
204
205config RTC
206	tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
207	depends on ALPHA
208	---help---
209	  If you say Y here and create a character special file /dev/rtc with
210	  major number 10 and minor number 135 using mknod ("man mknod"), you
211	  will get access to the real time clock (or hardware clock) built
212	  into your computer.
213
214	  Every PC has such a clock built in. It can be used to generate
215	  signals from as low as 1Hz up to 8192Hz, and can also be used
216	  as a 24 hour alarm. It reports status information via the file
217	  /proc/driver/rtc and its behaviour is set by various ioctls on
218	  /dev/rtc.
219
220	  If you run Linux on a multiprocessor machine and said Y to
221	  "Symmetric Multi Processing" above, you should say Y here to read
222	  and set the RTC in an SMP compatible fashion.
223
224	  If you think you have a use for such a device (such as periodic data
225	  sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
226	  for details.
227
228	  To compile this driver as a module, choose M here: the
229	  module will be called rtc.
230
231config JS_RTC
232	tristate "Enhanced Real Time Clock Support"
233	depends on SPARC32 && PCI
234	---help---
235	  If you say Y here and create a character special file /dev/rtc with
236	  major number 10 and minor number 135 using mknod ("man mknod"), you
237	  will get access to the real time clock (or hardware clock) built
238	  into your computer.
239
240	  Every PC has such a clock built in. It can be used to generate
241	  signals from as low as 1Hz up to 8192Hz, and can also be used
242	  as a 24 hour alarm. It reports status information via the file
243	  /proc/driver/rtc and its behaviour is set by various ioctls on
244	  /dev/rtc.
245
246	  If you think you have a use for such a device (such as periodic data
247	  sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
248	  for details.
249
250	  To compile this driver as a module, choose M here: the
251	  module will be called js-rtc.
252
253config EFI_RTC
254	bool "EFI Real Time Clock Services"
255	depends on IA64
256
257endif # RTC_LIB
258
259config DTLK
260	tristate "Double Talk PC internal speech card support"
261	depends on ISA
262	help
263	  This driver is for the DoubleTalk PC, a speech synthesizer
264	  manufactured by RC Systems (<http://www.rcsys.com/>).  It is also
265	  called the `internal DoubleTalk'.
266
267	  To compile this driver as a module, choose M here: the
268	  module will be called dtlk.
269
270config XILINX_HWICAP
271	tristate "Xilinx HWICAP Support"
272	depends on XILINX_VIRTEX || MICROBLAZE
273	help
274	  This option enables support for Xilinx Internal Configuration
275	  Access Port (ICAP) driver.  The ICAP is used on Xilinx Virtex
276	  FPGA platforms to partially reconfigure the FPGA at runtime.
277
278	  If unsure, say N.
279
280config R3964
281	tristate "Siemens R3964 line discipline"
282	depends on TTY && BROKEN
283	---help---
284	  This driver allows synchronous communication with devices using the
285	  Siemens R3964 packet protocol. Unless you are dealing with special
286	  hardware like PLCs, you are unlikely to need this.
287
288	  To compile this driver as a module, choose M here: the
289	  module will be called n_r3964.
290
291	  If unsure, say N.
292
293config APPLICOM
294	tristate "Applicom intelligent fieldbus card support"
295	depends on PCI
296	---help---
297	  This driver provides the kernel-side support for the intelligent
298	  fieldbus cards made by Applicom International. More information
299	  about these cards can be found on the WWW at the address
300	  <http://www.applicom-int.com/>, or by email from David Woodhouse
301	  <[email protected]>.
302
303	  To compile this driver as a module, choose M here: the
304	  module will be called applicom.
305
306	  If unsure, say N.
307
308config SONYPI
309	tristate "Sony Vaio Programmable I/O Control Device support"
310	depends on X86_32 && PCI && INPUT
311	---help---
312	  This driver enables access to the Sony Programmable I/O Control
313	  Device which can be found in many (all ?) Sony Vaio laptops.
314
315	  If you have one of those laptops, read
316	  <file:Documentation/admin-guide/laptops/sonypi.rst>, and say Y or M here.
317
318	  To compile this driver as a module, choose M here: the
319	  module will be called sonypi.
320
321config GPIO_TB0219
322	tristate "TANBAC TB0219 GPIO support"
323	depends on TANBAC_TB022X
324	select GPIO_VR41XX
325
326source "drivers/char/pcmcia/Kconfig"
327
328config MWAVE
329	tristate "ACP Modem (Mwave) support"
330	depends on X86 && TTY
331	select SERIAL_8250
332	---help---
333	  The ACP modem (Mwave) for Linux is a WinModem. It is composed of a
334	  kernel driver and a user level application. Together these components
335	  support direct attachment to public switched telephone networks (PSTNs)
336	  and support selected world wide countries.
337
338	  This version of the ACP Modem driver supports the IBM Thinkpad 600E,
339	  600, and 770 that include on board ACP modem hardware.
340
341	  The modem also supports the standard communications port interface
342	  (ttySx) and is compatible with the Hayes AT Command Set.
343
344	  The user level application needed to use this driver can be found at
345	  the IBM Linux Technology Center (LTC) web site:
346	  <http://www.ibm.com/linux/ltc/>.
347
348	  If you own one of the above IBM Thinkpads which has the Mwave chipset
349	  in it, say Y.
350
351	  To compile this driver as a module, choose M here: the
352	  module will be called mwave.
353
354config SCx200_GPIO
355	tristate "NatSemi SCx200 GPIO Support"
356	depends on SCx200
357	select NSC_GPIO
358	help
359	  Give userspace access to the GPIO pins on the National
360	  Semiconductor SCx200 processors.
361
362	  If compiled as a module, it will be called scx200_gpio.
363
364config PC8736x_GPIO
365	tristate "NatSemi PC8736x GPIO Support"
366	depends on X86_32 && !UML
367	default SCx200_GPIO	# mostly N
368	select NSC_GPIO		# needed for support routines
369	help
370	  Give userspace access to the GPIO pins on the National
371	  Semiconductor PC-8736x (x=[03456]) SuperIO chip.  The chip
372	  has multiple functional units, inc several managed by
373	  hwmon/pc87360 driver.  Tested with PC-87366
374
375	  If compiled as a module, it will be called pc8736x_gpio.
376
377config NSC_GPIO
378	tristate "NatSemi Base GPIO Support"
379	depends on X86_32
380	# selected by SCx200_GPIO and PC8736x_GPIO
381	# what about 2 selectors differing: m != y
382	help
383	  Common support used (and needed) by scx200_gpio and
384	  pc8736x_gpio drivers.  If those drivers are built as
385	  modules, this one will be too, named nsc_gpio
386
387config DEVMEM
388	bool "/dev/mem virtual device support"
389	default y
390	help
391	  Say Y here if you want to support the /dev/mem device.
392	  The /dev/mem device is used to access areas of physical
393	  memory.
394	  When in doubt, say "Y".
395
396config DEVKMEM
397	bool "/dev/kmem virtual device support"
398	# On arm64, VMALLOC_START < PAGE_OFFSET, which confuses kmem read/write
399	depends on !ARM64
400	help
401	  Say Y here if you want to support the /dev/kmem device. The
402	  /dev/kmem device is rarely used, but can be used for certain
403	  kind of kernel debugging operations.
404	  When in doubt, say "N".
405
406config NVRAM
407	tristate "/dev/nvram support"
408	depends on X86 || HAVE_ARCH_NVRAM_OPS
409	default M68K || PPC
410	---help---
411	  If you say Y here and create a character special file /dev/nvram
412	  with major number 10 and minor number 144 using mknod ("man mknod"),
413	  you get read and write access to the non-volatile memory.
414
415	  /dev/nvram may be used to view settings in NVRAM or to change them
416	  (with some utility). It could also be used to frequently
417	  save a few bits of very important data that may not be lost over
418	  power-off and for which writing to disk is too insecure. Note
419	  however that most NVRAM space in a PC belongs to the BIOS and you
420	  should NEVER idly tamper with it. See Ralf Brown's interrupt list
421	  for a guide to the use of CMOS bytes by your BIOS.
422
423	  This memory is conventionally called "NVRAM" on PowerPC machines,
424	  "CMOS RAM" on PCs, "NVRAM" on Ataris and "PRAM" on Macintoshes.
425
426	  To compile this driver as a module, choose M here: the
427	  module will be called nvram.
428
429config RAW_DRIVER
430	tristate "RAW driver (/dev/raw/rawN)"
431	depends on BLOCK
432	help
433	  The raw driver permits block devices to be bound to /dev/raw/rawN.
434	  Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
435	  See the raw(8) manpage for more details.
436
437	  Applications should preferably open the device (eg /dev/hda1)
438	  with the O_DIRECT flag.
439
440config MAX_RAW_DEVS
441	int "Maximum number of RAW devices to support (1-65536)"
442	depends on RAW_DRIVER
443	range 1 65536
444	default "256"
445	help
446	  The maximum number of RAW devices that are supported.
447	  Default is 256. Increase this number in case you need lots of
448	  raw devices.
449
450config DEVPORT
451	bool "/dev/port character device"
452	depends on ISA || PCI
453	default y
454	help
455	  Say Y here if you want to support the /dev/port device. The /dev/port
456	  device is similar to /dev/mem, but for I/O ports.
457
458config HPET
459	bool "HPET - High Precision Event Timer" if (X86 || IA64)
460	default n
461	depends on ACPI
462	help
463	  If you say Y here, you will have a miscdevice named "/dev/hpet/".  Each
464	  open selects one of the timers supported by the HPET.  The timers are
465	  non-periodic and/or periodic.
466
467config HPET_MMAP
468	bool "Allow mmap of HPET"
469	default y
470	depends on HPET
471	help
472	  If you say Y here, user applications will be able to mmap
473	  the HPET registers.
474
475config HPET_MMAP_DEFAULT
476	bool "Enable HPET MMAP access by default"
477	default y
478	depends on HPET_MMAP
479	help
480	  In some hardware implementations, the page containing HPET
481	  registers may also contain other things that shouldn't be
482	  exposed to the user.  This option selects the default (if
483	  kernel parameter hpet_mmap is not set) user access to the
484	  registers for applications that require it.
485
486config HANGCHECK_TIMER
487	tristate "Hangcheck timer"
488	depends on X86 || IA64 || PPC64 || S390
489	help
490	  The hangcheck-timer module detects when the system has gone
491	  out to lunch past a certain margin.  It can reboot the system
492	  or merely print a warning.
493
494config UV_MMTIMER
495	tristate "UV_MMTIMER Memory mapped RTC for SGI UV"
496	depends on X86_UV
497	default m
498	help
499	  The uv_mmtimer device allows direct userspace access to the
500	  UV system timer.
501
502source "drivers/char/tpm/Kconfig"
503
504config TELCLOCK
505	tristate "Telecom clock driver for ATCA SBC"
506	depends on X86
507	default n
508	help
509	  The telecom clock device is specific to the MPCBL0010 and MPCBL0050
510	  ATCA computers and allows direct userspace access to the
511	  configuration of the telecom clock configuration settings.  This
512	  device is used for hardware synchronization across the ATCA backplane
513	  fabric.  Upon loading, the driver exports a sysfs directory,
514	  /sys/devices/platform/telco_clock, with a number of files for
515	  controlling the behavior of this hardware.
516
517source "drivers/s390/char/Kconfig"
518
519source "drivers/char/xillybus/Kconfig"
520
521config ADI
522	tristate "SPARC Privileged ADI driver"
523	depends on SPARC64
524	default m
525	help
526	  SPARC M7 and newer processors utilize ADI (Application Data
527	  Integrity) to version and protect memory.  This driver provides
528	  read/write access to the ADI versions for privileged processes.
529	  This feature is also known as MCD (Memory Corruption Detection)
530	  and SSM (Silicon Secured Memory).  Intended consumers of this
531	  driver include crash and makedumpfile.
532
533endmenu
534
535config RANDOM_TRUST_CPU
536	bool "Trust the CPU manufacturer to initialize Linux's CRNG"
537	depends on X86 || S390 || PPC
538	default n
539	help
540	Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or
541	RDRAND, IBM for the S390 and Power PC architectures) is trustworthy
542	for the purposes of initializing Linux's CRNG.  Since this is not
543	something that can be independently audited, this amounts to trusting
544	that CPU manufacturer (perhaps with the insistence or mandate
545	of a Nation State's intelligence or law enforcement agencies)
546	has not installed a hidden back door to compromise the CPU's
547	random number generation facilities. This can also be configured
548	at boot with "random.trust_cpu=on/off".
549
550config RANDOM_TRUST_BOOTLOADER
551	bool "Trust the bootloader to initialize Linux's CRNG"
552	help
553	Some bootloaders can provide entropy to increase the kernel's initial
554	device randomness. Say Y here to assume the entropy provided by the
555	booloader is trustworthy so it will be added to the kernel's entropy
556	pool. Otherwise, say N here so it will be regarded as device input that
557	only mixes the entropy pool.
558