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