426 lines · plain
1# SPDX-License-Identifier: GPL-2.02#3# Character device configuration4#5 6menu "Character devices"7 8source "drivers/tty/Kconfig"9 10config TTY_PRINTK11 tristate "TTY driver to output user messages via printk"12 depends on EXPERT && TTY13 default n14 help15 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 kernel19 messages.20 In order to use this feature, you should output user messages21 to /dev/ttyprintk or redirect console to this TTY, or boot22 the kernel with console=ttyprintk.23 24 If unsure, say N.25 26config TTY_PRINTK_LEVEL27 depends on TTY_PRINTK28 int "ttyprintk log level (1-7)"29 range 1 730 default "6"31 help32 Printk log level to use for ttyprintk messages.33 34config PRINTER35 tristate "Parallel printer support"36 depends on PARPORT37 depends on HAS_IOPORT || PARPORT_NOT_PC38 help39 If you intend to attach a printer to the parallel port of your Linux40 box (as opposed to using a serial printer; if the connector at the41 printer has 9 or 25 holes ["female"], then it's serial), say Y.42 Also read the Printing-HOWTO, available from43 <https://www.tldp.org/docs.html#howto>.44 45 It is possible to share one parallel port among several devices46 (e.g. printer and ZIP drive) and it is safe to compile the47 corresponding drivers into the kernel.48 49 To compile this driver as a module, choose M here and read50 <file:Documentation/admin-guide/parport.rst>. The module will be called lp.51 52 If you have several parallel ports, you can specify which ports to53 use with the "lp" kernel command line option. (Try "man bootparam"54 or see the documentation of your boot loader (lilo or loadlin) about55 how to pass options to the kernel at boot time.) The syntax of the56 "lp" command line option can be found in <file:drivers/char/lp.c>.57 58 If you have more than 8 printers, you need to increase the LP_NO59 macro in lp.c and the PARPORT_MAX macro in parport.h.60 61config LP_CONSOLE62 bool "Support for console on line printer"63 depends on PRINTER64 help65 If you want kernel messages to be printed out as they occur, you66 can have a console on the printer. This option adds support for67 doing that; to actually get it to happen you need to pass the68 option "console=lp0" to the kernel at boot time.69 70 If the printer is out of paper (or off, or unplugged, or too71 busy..) the kernel will stall until the printer is ready again.72 By defining CONSOLE_LP_STRICT to 0 (at your own risk) you73 can make the kernel continue when this happens,74 but it'll lose the kernel messages.75 76 If unsure, say N.77 78config PPDEV79 tristate "Support for user-space parallel port device drivers"80 depends on PARPORT81 help82 Saying Y to this adds support for /dev/parport device nodes. This83 is needed for programs that want portable access to the parallel84 port, for instance deviceid (which displays Plug-and-Play device85 IDs).86 87 This is the parallel port equivalent of SCSI generic support (sg).88 It is safe to say N to this -- it is not needed for normal printing89 or parallel port CD-ROM/disk support.90 91 To compile this driver as a module, choose M here: the92 module will be called ppdev.93 94 If unsure, say N.95 96config VIRTIO_CONSOLE97 tristate "Virtio console"98 depends on TTY99 select HVC_DRIVER100 select VIRTIO101 help102 Virtio console for use with hypervisors.103 104 Also serves as a general-purpose serial device for data105 transfer between the guest and host. Character devices at106 /dev/vportNpn will be created when corresponding ports are107 found, where N is the device number and n is the port number108 within that device. If specified by the host, a sysfs109 attribute called 'name' will be populated with a name for110 the port which can be used by udev scripts to create a111 symlink to the device.112 113config IBM_BSR114 tristate "IBM POWER Barrier Synchronization Register support"115 depends on PPC_PSERIES116 help117 This devices exposes a hardware mechanism for fast synchronization118 of threads across a large system which avoids bouncing a cacheline119 between several cores on a system120 121config POWERNV_OP_PANEL122 tristate "IBM POWERNV Operator Panel Display support"123 depends on PPC_POWERNV124 default m125 help126 If you say Y here, a special character device node, /dev/op_panel,127 will be created which exposes the operator panel display on IBM128 Power Systems machines with FSPs.129 130 If you don't require access to the operator panel display from user131 space, say N.132 133 If unsure, say M here to build it as a module called powernv-op-panel.134 135source "drivers/char/ipmi/Kconfig"136 137config DS1620138 tristate "NetWinder thermometer support"139 depends on ARCH_NETWINDER140 help141 Say Y here to include support for the thermal management hardware142 found in the NetWinder. This driver allows the user to control the143 temperature set points and to read the current temperature.144 145 It is also possible to say M here to build it as a module (ds1620)146 It is recommended to be used on a NetWinder, but it is not a147 necessity.148 149config NWBUTTON150 tristate "NetWinder Button"151 depends on ARCH_NETWINDER152 help153 If you say Y here and create a character device node /dev/nwbutton154 with major and minor numbers 10 and 158 ("man mknod"), then every155 time the orange button is pressed a number of times, the number of156 times the button was pressed will be written to that device.157 158 This is most useful for applications, as yet unwritten, which159 perform actions based on how many times the button is pressed in a160 row.161 162 Do not hold the button down for too long, as the driver does not163 alter the behaviour of the hardware reset circuitry attached to the164 button; it will still execute a hard reset if the button is held165 down for longer than approximately five seconds.166 167 To compile this driver as a module, choose M here: the168 module will be called nwbutton.169 170 Most people will answer Y to this question and "Reboot Using Button"171 below to be able to initiate a system shutdown from the button.172 173config NWBUTTON_REBOOT174 bool "Reboot Using Button"175 depends on NWBUTTON176 help177 If you say Y here, then you will be able to initiate a system178 shutdown and reboot by pressing the orange button a number of times.179 The number of presses to initiate the shutdown is two by default,180 but this can be altered by modifying the value of NUM_PRESSES_REBOOT181 in nwbutton.h and recompiling the driver or, if you compile the182 driver as a module, you can specify the number of presses at load183 time with "insmod button reboot_count=<something>".184 185config NWFLASH186 tristate "NetWinder flash support"187 depends on ARCH_NETWINDER188 help189 If you say Y here and create a character device /dev/flash with190 major 10 and minor 160 you can manipulate the flash ROM containing191 the NetWinder firmware. Be careful as accidentally overwriting the192 flash contents can render your computer unbootable. On no account193 allow random users access to this device. :-)194 195 To compile this driver as a module, choose M here: the196 module will be called nwflash.197 198 If you're not sure, say N.199 200source "drivers/char/hw_random/Kconfig"201 202config DTLK203 tristate "Double Talk PC internal speech card support"204 depends on ISA205 help206 This driver is for the DoubleTalk PC, a speech synthesizer207 manufactured by RC Systems (<https://www.rcsys.com/>). It is also208 called the `internal DoubleTalk'.209 210 To compile this driver as a module, choose M here: the211 module will be called dtlk.212 213config XILINX_HWICAP214 tristate "Xilinx HWICAP Support"215 depends on MICROBLAZE216 help217 This option enables support for Xilinx Internal Configuration218 Access Port (ICAP) driver. The ICAP is used on Xilinx Virtex219 FPGA platforms to partially reconfigure the FPGA at runtime.220 221 If unsure, say N.222 223config APPLICOM224 tristate "Applicom intelligent fieldbus card support"225 depends on PCI226 help227 This driver provides the kernel-side support for the intelligent228 fieldbus cards made by Applicom International. More information229 about these cards can be found on the WWW at the address230 <https://www.applicom-int.com/>, or by email from David Woodhouse231 <dwmw2@infradead.org>.232 233 To compile this driver as a module, choose M here: the234 module will be called applicom.235 236 If unsure, say N.237 238config SONYPI239 tristate "Sony Vaio Programmable I/O Control Device support"240 depends on X86_32 && PCI && INPUT241 help242 This driver enables access to the Sony Programmable I/O Control243 Device which can be found in many (all ?) Sony Vaio laptops.244 245 If you have one of those laptops, read246 <file:Documentation/admin-guide/laptops/sonypi.rst>, and say Y or M here.247 248 To compile this driver as a module, choose M here: the249 module will be called sonypi.250 251config MWAVE252 tristate "ACP Modem (Mwave) support"253 depends on X86 && TTY254 select SERIAL_8250255 help256 The ACP modem (Mwave) for Linux is a WinModem. It is composed of a257 kernel driver and a user level application. Together these components258 support direct attachment to public switched telephone networks (PSTNs)259 and support selected world wide countries.260 261 This version of the ACP Modem driver supports the IBM Thinkpad 600E,262 600, and 770 that include on board ACP modem hardware.263 264 The modem also supports the standard communications port interface265 (ttySx) and is compatible with the Hayes AT Command Set.266 267 The user level application needed to use this driver can be found at268 the IBM Linux Technology Center (LTC) web site:269 <http://www.ibm.com/linux/ltc/>.270 271 If you own one of the above IBM Thinkpads which has the Mwave chipset272 in it, say Y.273 274 To compile this driver as a module, choose M here: the275 module will be called mwave.276 277config SCx200_GPIO278 tristate "NatSemi SCx200 GPIO Support"279 depends on SCx200280 select NSC_GPIO281 help282 Give userspace access to the GPIO pins on the National283 Semiconductor SCx200 processors.284 285 If compiled as a module, it will be called scx200_gpio.286 287config PC8736x_GPIO288 tristate "NatSemi PC8736x GPIO Support"289 depends on X86_32 && !UML290 default SCx200_GPIO # mostly N291 select NSC_GPIO # needed for support routines292 help293 Give userspace access to the GPIO pins on the National294 Semiconductor PC-8736x (x=[03456]) SuperIO chip. The chip295 has multiple functional units, inc several managed by296 hwmon/pc87360 driver. Tested with PC-87366297 298 If compiled as a module, it will be called pc8736x_gpio.299 300config NSC_GPIO301 tristate "NatSemi Base GPIO Support"302 depends on X86_32303 # selected by SCx200_GPIO and PC8736x_GPIO304 # what about 2 selectors differing: m != y305 help306 Common support used (and needed) by scx200_gpio and307 pc8736x_gpio drivers. If those drivers are built as308 modules, this one will be too, named nsc_gpio309 310config DEVMEM311 bool "/dev/mem virtual device support"312 default y313 help314 Say Y here if you want to support the /dev/mem device.315 The /dev/mem device is used to access areas of physical316 memory.317 When in doubt, say "Y".318 319config NVRAM320 tristate "/dev/nvram support"321 depends on X86 || HAVE_ARCH_NVRAM_OPS322 default M68K || PPC323 help324 If you say Y here and create a character special file /dev/nvram325 with major number 10 and minor number 144 using mknod ("man mknod"),326 you get read and write access to the non-volatile memory.327 328 /dev/nvram may be used to view settings in NVRAM or to change them329 (with some utility). It could also be used to frequently330 save a few bits of very important data that may not be lost over331 power-off and for which writing to disk is too insecure. Note332 however that most NVRAM space in a PC belongs to the BIOS and you333 should NEVER idly tamper with it. See Ralf Brown's interrupt list334 for a guide to the use of CMOS bytes by your BIOS.335 336 This memory is conventionally called "NVRAM" on PowerPC machines,337 "CMOS RAM" on PCs, "NVRAM" on Ataris and "PRAM" on Macintoshes.338 339 To compile this driver as a module, choose M here: the340 module will be called nvram.341 342config DEVPORT343 bool "/dev/port character device"344 depends on HAS_IOPORT345 default y346 help347 Say Y here if you want to support the /dev/port device. The /dev/port348 device is similar to /dev/mem, but for I/O ports.349 350config HPET351 bool "HPET - High Precision Event Timer" if X86352 default n353 depends on ACPI354 help355 If you say Y here, you will have a miscdevice named "/dev/hpet/". Each356 open selects one of the timers supported by the HPET. The timers are357 non-periodic and/or periodic.358 359config HPET_MMAP360 bool "Allow mmap of HPET"361 default y362 depends on HPET363 help364 If you say Y here, user applications will be able to mmap365 the HPET registers.366 367config HPET_MMAP_DEFAULT368 bool "Enable HPET MMAP access by default"369 default y370 depends on HPET_MMAP371 help372 In some hardware implementations, the page containing HPET373 registers may also contain other things that shouldn't be374 exposed to the user. This option selects the default (if375 kernel parameter hpet_mmap is not set) user access to the376 registers for applications that require it.377 378config HANGCHECK_TIMER379 tristate "Hangcheck timer"380 depends on X86 || PPC64 || S390381 help382 The hangcheck-timer module detects when the system has gone383 out to lunch past a certain margin. It can reboot the system384 or merely print a warning.385 386config UV_MMTIMER387 tristate "UV_MMTIMER Memory mapped RTC for SGI UV"388 depends on X86_UV389 default m390 help391 The uv_mmtimer device allows direct userspace access to the392 UV system timer.393 394source "drivers/char/tpm/Kconfig"395 396config TELCLOCK397 tristate "Telecom clock driver for ATCA SBC"398 depends on X86399 default n400 help401 The telecom clock device is specific to the MPCBL0010 and MPCBL0050402 ATCA computers and allows direct userspace access to the403 configuration of the telecom clock configuration settings. This404 device is used for hardware synchronization across the ATCA backplane405 fabric. Upon loading, the driver exports a sysfs directory,406 /sys/devices/platform/telco_clock, with a number of files for407 controlling the behavior of this hardware.408 409source "drivers/s390/char/Kconfig"410 411source "drivers/char/xillybus/Kconfig"412 413config ADI414 tristate "SPARC Privileged ADI driver"415 depends on SPARC64416 default m417 help418 SPARC M7 and newer processors utilize ADI (Application Data419 Integrity) to version and protect memory. This driver provides420 read/write access to the ADI versions for privileged processes.421 This feature is also known as MCD (Memory Corruption Detection)422 and SSM (Silicon Secured Memory). Intended consumers of this423 driver include crash and makedumpfile.424 425endmenu426