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