Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Character device configuration
  4. #
  5. menu "Character devices"
  6. source "drivers/tty/Kconfig"
  7. config TTY_PRINTK
  8. tristate "TTY driver to output user messages via printk"
  9. depends on EXPERT && TTY
  10. default n
  11. help
  12. If you say Y here, the support for writing user messages (i.e.
  13. console messages) via printk is available.
  14. The feature is useful to inline user messages with kernel
  15. messages.
  16. In order to use this feature, you should output user messages
  17. to /dev/ttyprintk or redirect console to this TTY, or boot
  18. the kernel with console=ttyprintk.
  19. If unsure, say N.
  20. config TTY_PRINTK_LEVEL
  21. depends on TTY_PRINTK
  22. int "ttyprintk log level (1-7)"
  23. range 1 7
  24. default "6"
  25. help
  26. Printk log level to use for ttyprintk messages.
  27. config PRINTER
  28. tristate "Parallel printer support"
  29. depends on PARPORT
  30. depends on HAS_IOPORT || PARPORT_NOT_PC
  31. help
  32. If you intend to attach a printer to the parallel port of your Linux
  33. box (as opposed to using a serial printer; if the connector at the
  34. printer has 9 or 25 holes ["female"], then it's serial), say Y.
  35. Also read the Printing-HOWTO, available from
  36. <https://www.tldp.org/docs.html#howto>.
  37. It is possible to share one parallel port among several devices
  38. (e.g. printer and ZIP drive) and it is safe to compile the
  39. corresponding drivers into the kernel.
  40. To compile this driver as a module, choose M here and read
  41. <file:Documentation/admin-guide/parport.rst>. The module will be called lp.
  42. If you have several parallel ports, you can specify which ports to
  43. use with the "lp" kernel command line option. (Try "man bootparam"
  44. or see the documentation of your boot loader (lilo or loadlin) about
  45. how to pass options to the kernel at boot time.) The syntax of the
  46. "lp" command line option can be found in <file:drivers/char/lp.c>.
  47. If you have more than 8 printers, you need to increase the LP_NO
  48. macro in lp.c and the PARPORT_MAX macro in parport.h.
  49. config LP_CONSOLE
  50. bool "Support for console on line printer"
  51. depends on PRINTER
  52. help
  53. If you want kernel messages to be printed out as they occur, you
  54. can have a console on the printer. This option adds support for
  55. doing that; to actually get it to happen you need to pass the
  56. option "console=lp0" to the kernel at boot time.
  57. If the printer is out of paper (or off, or unplugged, or too
  58. busy..) the kernel will stall until the printer is ready again.
  59. By defining CONSOLE_LP_STRICT to 0 (at your own risk) you
  60. can make the kernel continue when this happens,
  61. but it'll lose the kernel messages.
  62. If unsure, say N.
  63. config PPDEV
  64. tristate "Support for user-space parallel port device drivers"
  65. depends on PARPORT
  66. help
  67. Saying Y to this adds support for /dev/parport device nodes. This
  68. is needed for programs that want portable access to the parallel
  69. port, for instance deviceid (which displays Plug-and-Play device
  70. IDs).
  71. This is the parallel port equivalent of SCSI generic support (sg).
  72. It is safe to say N to this -- it is not needed for normal printing
  73. or parallel port CD-ROM/disk support.
  74. To compile this driver as a module, choose M here: the
  75. module will be called ppdev.
  76. If unsure, say N.
  77. config VIRTIO_CONSOLE
  78. tristate "Virtio console"
  79. depends on TTY
  80. select HVC_DRIVER
  81. select VIRTIO
  82. help
  83. Virtio console for use with hypervisors.
  84. Also serves as a general-purpose serial device for data
  85. transfer between the guest and host. Character devices at
  86. /dev/vportNpn will be created when corresponding ports are
  87. found, where N is the device number and n is the port number
  88. within that device. If specified by the host, a sysfs
  89. attribute called 'name' will be populated with a name for
  90. the port which can be used by udev scripts to create a
  91. symlink to the device.
  92. config IBM_BSR
  93. tristate "IBM POWER Barrier Synchronization Register support"
  94. depends on PPC_PSERIES
  95. help
  96. This devices exposes a hardware mechanism for fast synchronization
  97. of threads across a large system which avoids bouncing a cacheline
  98. between several cores on a system
  99. config POWERNV_OP_PANEL
  100. tristate "IBM POWERNV Operator Panel Display support"
  101. depends on PPC_POWERNV
  102. default m
  103. help
  104. If you say Y here, a special character device node, /dev/op_panel,
  105. will be created which exposes the operator panel display on IBM
  106. Power Systems machines with FSPs.
  107. If you don't require access to the operator panel display from user
  108. space, say N.
  109. If unsure, say M here to build it as a module called powernv-op-panel.
  110. source "drivers/char/ipmi/Kconfig"
  111. config DS1620
  112. tristate "NetWinder thermometer support"
  113. depends on ARCH_NETWINDER
  114. help
  115. Say Y here to include support for the thermal management hardware
  116. found in the NetWinder. This driver allows the user to control the
  117. temperature set points and to read the current temperature.
  118. It is also possible to say M here to build it as a module (ds1620)
  119. It is recommended to be used on a NetWinder, but it is not a
  120. necessity.
  121. config NWBUTTON
  122. tristate "NetWinder Button"
  123. depends on ARCH_NETWINDER
  124. help
  125. If you say Y here and create a character device node /dev/nwbutton
  126. with major and minor numbers 10 and 158 ("man mknod"), then every
  127. time the orange button is pressed a number of times, the number of
  128. times the button was pressed will be written to that device.
  129. This is most useful for applications, as yet unwritten, which
  130. perform actions based on how many times the button is pressed in a
  131. row.
  132. Do not hold the button down for too long, as the driver does not
  133. alter the behaviour of the hardware reset circuitry attached to the
  134. button; it will still execute a hard reset if the button is held
  135. down for longer than approximately five seconds.
  136. To compile this driver as a module, choose M here: the
  137. module will be called nwbutton.
  138. Most people will answer Y to this question and "Reboot Using Button"
  139. below to be able to initiate a system shutdown from the button.
  140. config NWBUTTON_REBOOT
  141. bool "Reboot Using Button"
  142. depends on NWBUTTON
  143. help
  144. If you say Y here, then you will be able to initiate a system
  145. shutdown and reboot by pressing the orange button a number of times.
  146. The number of presses to initiate the shutdown is two by default,
  147. but this can be altered by modifying the value of NUM_PRESSES_REBOOT
  148. in nwbutton.h and recompiling the driver or, if you compile the
  149. driver as a module, you can specify the number of presses at load
  150. time with "insmod button reboot_count=<something>".
  151. config NWFLASH
  152. tristate "NetWinder flash support"
  153. depends on ARCH_NETWINDER
  154. help
  155. If you say Y here and create a character device /dev/flash with
  156. major 10 and minor 160 you can manipulate the flash ROM containing
  157. the NetWinder firmware. Be careful as accidentally overwriting the
  158. flash contents can render your computer unbootable. On no account
  159. allow random users access to this device. :-)
  160. To compile this driver as a module, choose M here: the
  161. module will be called nwflash.
  162. If you're not sure, say N.
  163. source "drivers/char/hw_random/Kconfig"
  164. config DTLK
  165. tristate "Double Talk PC internal speech card support"
  166. depends on ISA
  167. help
  168. This driver is for the DoubleTalk PC, a speech synthesizer
  169. manufactured by RC Systems (<https://www.rcsys.com/>). It is also
  170. called the `internal DoubleTalk'.
  171. To compile this driver as a module, choose M here: the
  172. module will be called dtlk.
  173. config XILINX_HWICAP
  174. tristate "Xilinx HWICAP Support"
  175. depends on MICROBLAZE
  176. help
  177. This option enables support for Xilinx Internal Configuration
  178. Access Port (ICAP) driver. The ICAP is used on Xilinx Virtex
  179. FPGA platforms to partially reconfigure the FPGA at runtime.
  180. If unsure, say N.
  181. config APPLICOM
  182. tristate "Applicom intelligent fieldbus card support"
  183. depends on PCI
  184. help
  185. This driver provides the kernel-side support for the intelligent
  186. fieldbus cards made by Applicom International. More information
  187. about these cards can be found on the WWW at the address
  188. <https://www.applicom-int.com/>, or by email from David Woodhouse
  189. <dwmw2@infradead.org>.
  190. To compile this driver as a module, choose M here: the
  191. module will be called applicom.
  192. If unsure, say N.
  193. config SONYPI
  194. tristate "Sony Vaio Programmable I/O Control Device support"
  195. depends on X86_32 && PCI && INPUT && HAS_IOPORT
  196. depends on ACPI_EC || !ACPI
  197. help
  198. This driver enables access to the Sony Programmable I/O Control
  199. Device which can be found in many (all ?) Sony Vaio laptops.
  200. If you have one of those laptops, read
  201. <file:Documentation/admin-guide/laptops/sonypi.rst>, and say Y or M here.
  202. To compile this driver as a module, choose M here: the
  203. module will be called sonypi.
  204. config SCx200_GPIO
  205. tristate "NatSemi SCx200 GPIO Support"
  206. depends on SCx200
  207. select NSC_GPIO
  208. help
  209. Give userspace access to the GPIO pins on the National
  210. Semiconductor SCx200 processors.
  211. If compiled as a module, it will be called scx200_gpio.
  212. config PC8736x_GPIO
  213. tristate "NatSemi PC8736x GPIO Support"
  214. depends on X86_32 && !UML
  215. default SCx200_GPIO # mostly N
  216. select NSC_GPIO # needed for support routines
  217. help
  218. Give userspace access to the GPIO pins on the National
  219. Semiconductor PC-8736x (x=[03456]) SuperIO chip. The chip
  220. has multiple functional units, inc several managed by
  221. hwmon/pc87360 driver. Tested with PC-87366
  222. If compiled as a module, it will be called pc8736x_gpio.
  223. config NSC_GPIO
  224. tristate "NatSemi Base GPIO Support"
  225. depends on X86_32
  226. # selected by SCx200_GPIO and PC8736x_GPIO
  227. # what about 2 selectors differing: m != y
  228. help
  229. Common support used (and needed) by scx200_gpio and
  230. pc8736x_gpio drivers. If those drivers are built as
  231. modules, this one will be too, named nsc_gpio
  232. config DEVMEM
  233. bool "/dev/mem virtual device support"
  234. default y
  235. help
  236. Say Y here if you want to support the /dev/mem device.
  237. The /dev/mem device is used to access areas of physical
  238. memory.
  239. When in doubt, say "Y".
  240. config NVRAM
  241. tristate "/dev/nvram support"
  242. depends on X86 || HAVE_ARCH_NVRAM_OPS
  243. default M68K || PPC
  244. help
  245. If you say Y here and create a character special file /dev/nvram
  246. with major number 10 and minor number 144 using mknod ("man mknod"),
  247. you get read and write access to the non-volatile memory.
  248. /dev/nvram may be used to view settings in NVRAM or to change them
  249. (with some utility). It could also be used to frequently
  250. save a few bits of very important data that may not be lost over
  251. power-off and for which writing to disk is too insecure. Note
  252. however that most NVRAM space in a PC belongs to the BIOS and you
  253. should NEVER idly tamper with it. See Ralf Brown's interrupt list
  254. for a guide to the use of CMOS bytes by your BIOS.
  255. This memory is conventionally called "NVRAM" on PowerPC machines,
  256. "CMOS RAM" on PCs, "NVRAM" on Ataris and "PRAM" on Macintoshes.
  257. To compile this driver as a module, choose M here: the
  258. module will be called nvram.
  259. config DEVPORT
  260. bool "/dev/port character device"
  261. depends on HAS_IOPORT
  262. default y
  263. help
  264. Say Y here if you want to support the /dev/port device. The /dev/port
  265. device is similar to /dev/mem, but for I/O ports.
  266. config HPET
  267. bool "HPET - High Precision Event Timer" if X86
  268. default n
  269. depends on ACPI
  270. help
  271. If you say Y here, you will have a miscdevice named "/dev/hpet/". Each
  272. open selects one of the timers supported by the HPET. The timers are
  273. non-periodic and/or periodic.
  274. config HPET_MMAP
  275. bool "Allow mmap of HPET"
  276. default y
  277. depends on HPET
  278. help
  279. If you say Y here, user applications will be able to mmap
  280. the HPET registers.
  281. config HPET_MMAP_DEFAULT
  282. bool "Enable HPET MMAP access by default"
  283. default y
  284. depends on HPET_MMAP
  285. help
  286. In some hardware implementations, the page containing HPET
  287. registers may also contain other things that shouldn't be
  288. exposed to the user. This option selects the default (if
  289. kernel parameter hpet_mmap is not set) user access to the
  290. registers for applications that require it.
  291. config HANGCHECK_TIMER
  292. tristate "Hangcheck timer"
  293. depends on X86 || PPC64 || S390
  294. help
  295. The hangcheck-timer module detects when the system has gone
  296. out to lunch past a certain margin. It can reboot the system
  297. or merely print a warning.
  298. config UV_MMTIMER
  299. tristate "UV_MMTIMER Memory mapped RTC for SGI UV"
  300. depends on X86_UV
  301. default m
  302. help
  303. The uv_mmtimer device allows direct userspace access to the
  304. UV system timer.
  305. source "drivers/char/tpm/Kconfig"
  306. config TELCLOCK
  307. tristate "Telecom clock driver for ATCA SBC"
  308. depends on X86
  309. default n
  310. help
  311. The telecom clock device is specific to the MPCBL0010 and MPCBL0050
  312. ATCA computers and allows direct userspace access to the
  313. configuration of the telecom clock configuration settings. This
  314. device is used for hardware synchronization across the ATCA backplane
  315. fabric. Upon loading, the driver exports a sysfs directory,
  316. /sys/devices/faux/telco_clock, with a number of files for
  317. controlling the behavior of this hardware.
  318. source "drivers/s390/char/Kconfig"
  319. source "drivers/char/xillybus/Kconfig"
  320. config ADI
  321. tristate "SPARC Privileged ADI driver"
  322. depends on SPARC64
  323. default m
  324. help
  325. SPARC M7 and newer processors utilize ADI (Application Data
  326. Integrity) to version and protect memory. This driver provides
  327. read/write access to the ADI versions for privileged processes.
  328. This feature is also known as MCD (Memory Corruption Detection)
  329. and SSM (Silicon Secured Memory). Intended consumers of this
  330. driver include crash and makedumpfile.
  331. endmenu