Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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
  196. help
  197. This driver enables access to the Sony Programmable I/O Control
  198. Device which can be found in many (all ?) Sony Vaio laptops.
  199. If you have one of those laptops, read
  200. <file:Documentation/admin-guide/laptops/sonypi.rst>, and say Y or M here.
  201. To compile this driver as a module, choose M here: the
  202. module will be called sonypi.
  203. config MWAVE
  204. tristate "ACP Modem (Mwave) support"
  205. depends on X86 && TTY
  206. select SERIAL_8250
  207. help
  208. The ACP modem (Mwave) for Linux is a WinModem. It is composed of a
  209. kernel driver and a user level application. Together these components
  210. support direct attachment to public switched telephone networks (PSTNs)
  211. and support selected world wide countries.
  212. This version of the ACP Modem driver supports the IBM Thinkpad 600E,
  213. 600, and 770 that include on board ACP modem hardware.
  214. The modem also supports the standard communications port interface
  215. (ttySx) and is compatible with the Hayes AT Command Set.
  216. The user level application needed to use this driver can be found at
  217. the IBM Linux Technology Center (LTC) web site:
  218. <http://www.ibm.com/linux/ltc/>.
  219. If you own one of the above IBM Thinkpads which has the Mwave chipset
  220. in it, say Y.
  221. To compile this driver as a module, choose M here: the
  222. module will be called mwave.
  223. config SCx200_GPIO
  224. tristate "NatSemi SCx200 GPIO Support"
  225. depends on SCx200
  226. select NSC_GPIO
  227. help
  228. Give userspace access to the GPIO pins on the National
  229. Semiconductor SCx200 processors.
  230. If compiled as a module, it will be called scx200_gpio.
  231. config PC8736x_GPIO
  232. tristate "NatSemi PC8736x GPIO Support"
  233. depends on X86_32 && !UML
  234. default SCx200_GPIO # mostly N
  235. select NSC_GPIO # needed for support routines
  236. help
  237. Give userspace access to the GPIO pins on the National
  238. Semiconductor PC-8736x (x=[03456]) SuperIO chip. The chip
  239. has multiple functional units, inc several managed by
  240. hwmon/pc87360 driver. Tested with PC-87366
  241. If compiled as a module, it will be called pc8736x_gpio.
  242. config NSC_GPIO
  243. tristate "NatSemi Base GPIO Support"
  244. depends on X86_32
  245. # selected by SCx200_GPIO and PC8736x_GPIO
  246. # what about 2 selectors differing: m != y
  247. help
  248. Common support used (and needed) by scx200_gpio and
  249. pc8736x_gpio drivers. If those drivers are built as
  250. modules, this one will be too, named nsc_gpio
  251. config DEVMEM
  252. bool "/dev/mem virtual device support"
  253. default y
  254. help
  255. Say Y here if you want to support the /dev/mem device.
  256. The /dev/mem device is used to access areas of physical
  257. memory.
  258. When in doubt, say "Y".
  259. config NVRAM
  260. tristate "/dev/nvram support"
  261. depends on X86 || HAVE_ARCH_NVRAM_OPS
  262. default M68K || PPC
  263. help
  264. If you say Y here and create a character special file /dev/nvram
  265. with major number 10 and minor number 144 using mknod ("man mknod"),
  266. you get read and write access to the non-volatile memory.
  267. /dev/nvram may be used to view settings in NVRAM or to change them
  268. (with some utility). It could also be used to frequently
  269. save a few bits of very important data that may not be lost over
  270. power-off and for which writing to disk is too insecure. Note
  271. however that most NVRAM space in a PC belongs to the BIOS and you
  272. should NEVER idly tamper with it. See Ralf Brown's interrupt list
  273. for a guide to the use of CMOS bytes by your BIOS.
  274. This memory is conventionally called "NVRAM" on PowerPC machines,
  275. "CMOS RAM" on PCs, "NVRAM" on Ataris and "PRAM" on Macintoshes.
  276. To compile this driver as a module, choose M here: the
  277. module will be called nvram.
  278. config DEVPORT
  279. bool "/dev/port character device"
  280. depends on HAS_IOPORT
  281. default y
  282. help
  283. Say Y here if you want to support the /dev/port device. The /dev/port
  284. device is similar to /dev/mem, but for I/O ports.
  285. config HPET
  286. bool "HPET - High Precision Event Timer" if X86
  287. default n
  288. depends on ACPI
  289. help
  290. If you say Y here, you will have a miscdevice named "/dev/hpet/". Each
  291. open selects one of the timers supported by the HPET. The timers are
  292. non-periodic and/or periodic.
  293. config HPET_MMAP
  294. bool "Allow mmap of HPET"
  295. default y
  296. depends on HPET
  297. help
  298. If you say Y here, user applications will be able to mmap
  299. the HPET registers.
  300. config HPET_MMAP_DEFAULT
  301. bool "Enable HPET MMAP access by default"
  302. default y
  303. depends on HPET_MMAP
  304. help
  305. In some hardware implementations, the page containing HPET
  306. registers may also contain other things that shouldn't be
  307. exposed to the user. This option selects the default (if
  308. kernel parameter hpet_mmap is not set) user access to the
  309. registers for applications that require it.
  310. config HANGCHECK_TIMER
  311. tristate "Hangcheck timer"
  312. depends on X86 || PPC64 || S390
  313. help
  314. The hangcheck-timer module detects when the system has gone
  315. out to lunch past a certain margin. It can reboot the system
  316. or merely print a warning.
  317. config UV_MMTIMER
  318. tristate "UV_MMTIMER Memory mapped RTC for SGI UV"
  319. depends on X86_UV
  320. default m
  321. help
  322. The uv_mmtimer device allows direct userspace access to the
  323. UV system timer.
  324. source "drivers/char/tpm/Kconfig"
  325. config TELCLOCK
  326. tristate "Telecom clock driver for ATCA SBC"
  327. depends on X86
  328. default n
  329. help
  330. The telecom clock device is specific to the MPCBL0010 and MPCBL0050
  331. ATCA computers and allows direct userspace access to the
  332. configuration of the telecom clock configuration settings. This
  333. device is used for hardware synchronization across the ATCA backplane
  334. fabric. Upon loading, the driver exports a sysfs directory,
  335. /sys/devices/platform/telco_clock, with a number of files for
  336. controlling the behavior of this hardware.
  337. source "drivers/s390/char/Kconfig"
  338. source "drivers/char/xillybus/Kconfig"
  339. config ADI
  340. tristate "SPARC Privileged ADI driver"
  341. depends on SPARC64
  342. default m
  343. help
  344. SPARC M7 and newer processors utilize ADI (Application Data
  345. Integrity) to version and protect memory. This driver provides
  346. read/write access to the ADI versions for privileged processes.
  347. This feature is also known as MCD (Memory Corruption Detection)
  348. and SSM (Silicon Secured Memory). Intended consumers of this
  349. driver include crash and makedumpfile.
  350. endmenu