Kconfig 20 KB

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