usb: gadget: android: fix compilation on 2.6.37
[firefly-linux-kernel-4.4.55.git] / drivers / char / Kconfig
1 #
2 # Character device configuration
3 #
4
5 menu "Character devices"
6
7 source "drivers/tty/Kconfig"
8
9 config DEVMEM
10         bool "Memory device driver"
11         default y
12         help
13           The memory driver provides two character devices, mem and kmem, which
14           provide access to the system's memory. The mem device is a view of
15           physical memory, and each byte in the device corresponds to the
16           matching physical address. The kmem device is the same as mem, but
17           the addresses correspond to the kernel's virtual address space rather
18           than physical memory. These devices are standard parts of a Linux
19           system and most users should say Y here. You might say N if very
20           security conscience or memory is tight.
21
22 config DEVKMEM
23         bool "/dev/kmem virtual device support"
24         default y
25         help
26           Say Y here if you want to support the /dev/kmem device. The
27           /dev/kmem device is rarely used, but can be used for certain
28           kind of kernel debugging operations.
29           When in doubt, say "N".
30
31 config STALDRV
32         bool "Stallion multiport serial support"
33         depends on SERIAL_NONSTANDARD
34         help
35           Stallion cards give you many serial ports.  You would need something
36           like this to connect more than two modems to your Linux box, for
37           instance in order to become a dial-in server.  If you say Y here,
38           you will be asked for your specific card model in the next
39           questions.  Make sure to read <file:Documentation/serial/stallion.txt>
40           in this case.  If you have never heard about all this, it's safe to
41           say N.
42
43 config SGI_SNSC
44         bool "SGI Altix system controller communication support"
45         depends on (IA64_SGI_SN2 || IA64_GENERIC)
46         help
47           If you have an SGI Altix and you want to enable system
48           controller communication from user space (you want this!),
49           say Y.  Otherwise, say N.
50
51 config SGI_TIOCX
52        bool "SGI TIO CX driver support"
53        depends on (IA64_SGI_SN2 || IA64_GENERIC)
54        help
55          If you have an SGI Altix and you have fpga devices attached
56          to your TIO, say Y here, otherwise say N.
57
58 config SGI_MBCS
59        tristate "SGI FPGA Core Services driver support"
60        depends on SGI_TIOCX
61        help
62          If you have an SGI Altix with an attached SABrick
63          say Y or M here, otherwise say N.
64
65 source "drivers/tty/serial/Kconfig"
66
67 config TTY_PRINTK
68         bool "TTY driver to output user messages via printk"
69         depends on EXPERT
70         default n
71         ---help---
72           If you say Y here, the support for writing user messages (i.e.
73           console messages) via printk is available.
74
75           The feature is useful to inline user messages with kernel
76           messages.
77           In order to use this feature, you should output user messages
78           to /dev/ttyprintk or redirect console to this TTY.
79
80           If unsure, say N.
81
82 config BRIQ_PANEL
83         tristate 'Total Impact briQ front panel driver'
84         depends on PPC_CHRP
85         ---help---
86           The briQ is a small footprint CHRP computer with a frontpanel VFD, a
87           tristate led and two switches. It is the size of a CDROM drive.
88
89           If you have such one and want anything showing on the VFD then you
90           must answer Y here.
91
92           To compile this driver as a module, choose M here: the
93           module will be called briq_panel.
94
95           It's safe to say N here.
96
97 config BFIN_OTP
98         tristate "Blackfin On-Chip OTP Memory Support"
99         depends on BLACKFIN && (BF51x || BF52x || BF54x)
100         default y
101         help
102           If you say Y here, you will get support for a character device
103           interface into the One Time Programmable memory pages that are
104           stored on the Blackfin processor.  This will not get you access
105           to the secure memory pages however.  You will need to write your
106           own secure code and reader for that.
107
108           To compile this driver as a module, choose M here: the module
109           will be called bfin-otp.
110
111           If unsure, it is safe to say Y.
112
113 config BFIN_OTP_WRITE_ENABLE
114         bool "Enable writing support of OTP pages"
115         depends on BFIN_OTP
116         default n
117         help
118           If you say Y here, you will enable support for writing of the
119           OTP pages.  This is dangerous by nature as you can only program
120           the pages once, so only enable this option when you actually
121           need it so as to not inadvertently clobber data.
122
123           If unsure, say N.
124
125 config PRINTER
126         tristate "Parallel printer support"
127         depends on PARPORT
128         ---help---
129           If you intend to attach a printer to the parallel port of your Linux
130           box (as opposed to using a serial printer; if the connector at the
131           printer has 9 or 25 holes ["female"], then it's serial), say Y.
132           Also read the Printing-HOWTO, available from
133           <http://www.tldp.org/docs.html#howto>.
134
135           It is possible to share one parallel port among several devices
136           (e.g. printer and ZIP drive) and it is safe to compile the
137           corresponding drivers into the kernel.
138
139           To compile this driver as a module, choose M here and read
140           <file:Documentation/parport.txt>.  The module will be called lp.
141
142           If you have several parallel ports, you can specify which ports to
143           use with the "lp" kernel command line option.  (Try "man bootparam"
144           or see the documentation of your boot loader (lilo or loadlin) about
145           how to pass options to the kernel at boot time.)  The syntax of the
146           "lp" command line option can be found in <file:drivers/char/lp.c>.
147
148           If you have more than 8 printers, you need to increase the LP_NO
149           macro in lp.c and the PARPORT_MAX macro in parport.h.
150
151 config LP_CONSOLE
152         bool "Support for console on line printer"
153         depends on PRINTER
154         ---help---
155           If you want kernel messages to be printed out as they occur, you
156           can have a console on the printer. This option adds support for
157           doing that; to actually get it to happen you need to pass the
158           option "console=lp0" to the kernel at boot time.
159
160           If the printer is out of paper (or off, or unplugged, or too
161           busy..) the kernel will stall until the printer is ready again.
162           By defining CONSOLE_LP_STRICT to 0 (at your own risk) you
163           can make the kernel continue when this happens,
164           but it'll lose the kernel messages.
165
166           If unsure, say N.
167
168 config PPDEV
169         tristate "Support for user-space parallel port device drivers"
170         depends on PARPORT
171         ---help---
172           Saying Y to this adds support for /dev/parport device nodes.  This
173           is needed for programs that want portable access to the parallel
174           port, for instance deviceid (which displays Plug-and-Play device
175           IDs).
176
177           This is the parallel port equivalent of SCSI generic support (sg).
178           It is safe to say N to this -- it is not needed for normal printing
179           or parallel port CD-ROM/disk support.
180
181           To compile this driver as a module, choose M here: the
182           module will be called ppdev.
183
184           If unsure, say N.
185
186 source "drivers/tty/hvc/Kconfig"
187
188 config VIRTIO_CONSOLE
189         tristate "Virtio console"
190         depends on VIRTIO
191         select HVC_DRIVER
192         help
193           Virtio console for use with lguest and other hypervisors.
194
195           Also serves as a general-purpose serial device for data
196           transfer between the guest and host.  Character devices at
197           /dev/vportNpn will be created when corresponding ports are
198           found, where N is the device number and n is the port number
199           within that device.  If specified by the host, a sysfs
200           attribute called 'name' will be populated with a name for
201           the port which can be used by udev scripts to create a
202           symlink to the device.
203
204 config IBM_BSR
205         tristate "IBM POWER Barrier Synchronization Register support"
206         depends on PPC_PSERIES
207         help
208           This devices exposes a hardware mechanism for fast synchronization
209           of threads across a large system which avoids bouncing a cacheline
210           between several cores on a system
211
212 source "drivers/char/ipmi/Kconfig"
213
214 config DS1620
215         tristate "NetWinder thermometer support"
216         depends on ARCH_NETWINDER
217         help
218           Say Y here to include support for the thermal management hardware
219           found in the NetWinder. This driver allows the user to control the
220           temperature set points and to read the current temperature.
221
222           It is also possible to say M here to build it as a module (ds1620)
223           It is recommended to be used on a NetWinder, but it is not a
224           necessity.
225
226 config NWBUTTON
227         tristate "NetWinder Button"
228         depends on ARCH_NETWINDER
229         ---help---
230           If you say Y here and create a character device node /dev/nwbutton
231           with major and minor numbers 10 and 158 ("man mknod"), then every
232           time the orange button is pressed a number of times, the number of
233           times the button was pressed will be written to that device.
234
235           This is most useful for applications, as yet unwritten, which
236           perform actions based on how many times the button is pressed in a
237           row.
238
239           Do not hold the button down for too long, as the driver does not
240           alter the behaviour of the hardware reset circuitry attached to the
241           button; it will still execute a hard reset if the button is held
242           down for longer than approximately five seconds.
243
244           To compile this driver as a module, choose M here: the
245           module will be called nwbutton.
246
247           Most people will answer Y to this question and "Reboot Using Button"
248           below to be able to initiate a system shutdown from the button.
249
250 config NWBUTTON_REBOOT
251         bool "Reboot Using Button"
252         depends on NWBUTTON
253         help
254           If you say Y here, then you will be able to initiate a system
255           shutdown and reboot by pressing the orange button a number of times.
256           The number of presses to initiate the shutdown is two by default,
257           but this can be altered by modifying the value of NUM_PRESSES_REBOOT
258           in nwbutton.h and recompiling the driver or, if you compile the
259           driver as a module, you can specify the number of presses at load
260           time with "insmod button reboot_count=<something>".
261
262 config NWFLASH
263         tristate "NetWinder flash support"
264         depends on ARCH_NETWINDER
265         ---help---
266           If you say Y here and create a character device /dev/flash with
267           major 10 and minor 160 you can manipulate the flash ROM containing
268           the NetWinder firmware. Be careful as accidentally overwriting the
269           flash contents can render your computer unbootable. On no account
270           allow random users access to this device. :-)
271
272           To compile this driver as a module, choose M here: the
273           module will be called nwflash.
274
275           If you're not sure, say N.
276
277 source "drivers/char/hw_random/Kconfig"
278
279 config NVRAM
280         tristate "/dev/nvram support"
281         depends on ATARI || X86 || (ARM && RTC_DRV_CMOS) || GENERIC_NVRAM
282         ---help---
283           If you say Y here and create a character special file /dev/nvram
284           with major number 10 and minor number 144 using mknod ("man mknod"),
285           you get read and write access to the extra bytes of non-volatile
286           memory in the real time clock (RTC), which is contained in every PC
287           and most Ataris.  The actual number of bytes varies, depending on the
288           nvram in the system, but is usually 114 (128-14 for the RTC).
289
290           This memory is conventionally called "CMOS RAM" on PCs and "NVRAM"
291           on Ataris. /dev/nvram may be used to view settings there, or to
292           change them (with some utility). It could also be used to frequently
293           save a few bits of very important data that may not be lost over
294           power-off and for which writing to disk is too insecure. Note
295           however that most NVRAM space in a PC belongs to the BIOS and you
296           should NEVER idly tamper with it. See Ralf Brown's interrupt list
297           for a guide to the use of CMOS bytes by your BIOS.
298
299           On Atari machines, /dev/nvram is always configured and does not need
300           to be selected.
301
302           To compile this driver as a module, choose M here: the
303           module will be called nvram.
304
305 #
306 # These legacy RTC drivers just cause too many conflicts with the generic
307 # RTC framework ... let's not even try to coexist any more.
308 #
309 if RTC_LIB=n
310
311 config RTC
312         tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
313         depends on !PPC && !PARISC && !IA64 && !M68K && !SPARC && !FRV \
314                         && !ARM && !SUPERH && !S390 && !AVR32 && !BLACKFIN
315         ---help---
316           If you say Y here and create a character special file /dev/rtc with
317           major number 10 and minor number 135 using mknod ("man mknod"), you
318           will get access to the real time clock (or hardware clock) built
319           into your computer.
320
321           Every PC has such a clock built in. It can be used to generate
322           signals from as low as 1Hz up to 8192Hz, and can also be used
323           as a 24 hour alarm. It reports status information via the file
324           /proc/driver/rtc and its behaviour is set by various ioctls on
325           /dev/rtc.
326
327           If you run Linux on a multiprocessor machine and said Y to
328           "Symmetric Multi Processing" above, you should say Y here to read
329           and set the RTC in an SMP compatible fashion.
330
331           If you think you have a use for such a device (such as periodic data
332           sampling), then say Y here, and read <file:Documentation/rtc.txt>
333           for details.
334
335           To compile this driver as a module, choose M here: the
336           module will be called rtc.
337
338 config JS_RTC
339         tristate "Enhanced Real Time Clock Support"
340         depends on SPARC32 && PCI
341         ---help---
342           If you say Y here and create a character special file /dev/rtc with
343           major number 10 and minor number 135 using mknod ("man mknod"), you
344           will get access to the real time clock (or hardware clock) built
345           into your computer.
346
347           Every PC has such a clock built in. It can be used to generate
348           signals from as low as 1Hz up to 8192Hz, and can also be used
349           as a 24 hour alarm. It reports status information via the file
350           /proc/driver/rtc and its behaviour is set by various ioctls on
351           /dev/rtc.
352
353           If you think you have a use for such a device (such as periodic data
354           sampling), then say Y here, and read <file:Documentation/rtc.txt>
355           for details.
356
357           To compile this driver as a module, choose M here: the
358           module will be called js-rtc.
359
360 config GEN_RTC
361         tristate "Generic /dev/rtc emulation"
362         depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN
363         ---help---
364           If you say Y here and create a character special file /dev/rtc with
365           major number 10 and minor number 135 using mknod ("man mknod"), you
366           will get access to the real time clock (or hardware clock) built
367           into your computer.
368
369           It reports status information via the file /proc/driver/rtc and its
370           behaviour is set by various ioctls on /dev/rtc. If you enable the
371           "extended RTC operation" below it will also provide an emulation
372           for RTC_UIE which is required by some programs and may improve
373           precision in some cases.
374
375           To compile this driver as a module, choose M here: the
376           module will be called genrtc.
377
378 config GEN_RTC_X
379         bool "Extended RTC operation"
380         depends on GEN_RTC
381         help
382           Provides an emulation for RTC_UIE which is required by some programs
383           and may improve precision of the generic RTC support in some cases.
384
385 config EFI_RTC
386         bool "EFI Real Time Clock Services"
387         depends on IA64
388
389 config DS1302
390         tristate "DS1302 RTC support"
391         depends on M32R && (PLAT_M32700UT || PLAT_OPSPUT)
392         help
393           If you say Y here and create a character special file /dev/rtc with
394           major number 121 and minor number 0 using mknod ("man mknod"), you
395           will get access to the real time clock (or hardware clock) built
396           into your computer.
397
398 endif # RTC_LIB
399
400 config DTLK
401         tristate "Double Talk PC internal speech card support"
402         depends on ISA
403         help
404           This driver is for the DoubleTalk PC, a speech synthesizer
405           manufactured by RC Systems (<http://www.rcsys.com/>).  It is also
406           called the `internal DoubleTalk'.
407
408           To compile this driver as a module, choose M here: the
409           module will be called dtlk.
410
411 config XILINX_HWICAP
412         tristate "Xilinx HWICAP Support"
413         depends on XILINX_VIRTEX || MICROBLAZE
414         help
415           This option enables support for Xilinx Internal Configuration
416           Access Port (ICAP) driver.  The ICAP is used on Xilinx Virtex
417           FPGA platforms to partially reconfigure the FPGA at runtime.
418
419           If unsure, say N.
420
421 config R3964
422         tristate "Siemens R3964 line discipline"
423         ---help---
424           This driver allows synchronous communication with devices using the
425           Siemens R3964 packet protocol. Unless you are dealing with special
426           hardware like PLCs, you are unlikely to need this.
427
428           To compile this driver as a module, choose M here: the
429           module will be called n_r3964.
430
431           If unsure, say N.
432
433 config APPLICOM
434         tristate "Applicom intelligent fieldbus card support"
435         depends on PCI
436         ---help---
437           This driver provides the kernel-side support for the intelligent
438           fieldbus cards made by Applicom International. More information
439           about these cards can be found on the WWW at the address
440           <http://www.applicom-int.com/>, or by email from David Woodhouse
441           <dwmw2@infradead.org>.
442
443           To compile this driver as a module, choose M here: the
444           module will be called applicom.
445
446           If unsure, say N.
447
448 config SONYPI
449         tristate "Sony Vaio Programmable I/O Control Device support (EXPERIMENTAL)"
450         depends on EXPERIMENTAL && X86 && PCI && INPUT && !64BIT
451         ---help---
452           This driver enables access to the Sony Programmable I/O Control
453           Device which can be found in many (all ?) Sony Vaio laptops.
454
455           If you have one of those laptops, read
456           <file:Documentation/laptops/sonypi.txt>, and say Y or M here.
457
458           To compile this driver as a module, choose M here: the
459           module will be called sonypi.
460
461 config GPIO_TB0219
462         tristate "TANBAC TB0219 GPIO support"
463         depends on TANBAC_TB022X
464         select GPIO_VR41XX
465
466 source "drivers/char/pcmcia/Kconfig"
467
468 config MWAVE
469         tristate "ACP Modem (Mwave) support"
470         depends on X86
471         select SERIAL_8250
472         ---help---
473           The ACP modem (Mwave) for Linux is a WinModem. It is composed of a
474           kernel driver and a user level application. Together these components
475           support direct attachment to public switched telephone networks (PSTNs)
476           and support selected world wide countries.
477
478           This version of the ACP Modem driver supports the IBM Thinkpad 600E,
479           600, and 770 that include on board ACP modem hardware.
480
481           The modem also supports the standard communications port interface
482           (ttySx) and is compatible with the Hayes AT Command Set.
483
484           The user level application needed to use this driver can be found at
485           the IBM Linux Technology Center (LTC) web site:
486           <http://www.ibm.com/linux/ltc/>.
487
488           If you own one of the above IBM Thinkpads which has the Mwave chipset
489           in it, say Y.
490
491           To compile this driver as a module, choose M here: the
492           module will be called mwave.
493
494 config SCx200_GPIO
495         tristate "NatSemi SCx200 GPIO Support"
496         depends on SCx200
497         select NSC_GPIO
498         help
499           Give userspace access to the GPIO pins on the National
500           Semiconductor SCx200 processors.
501
502           If compiled as a module, it will be called scx200_gpio.
503
504 config PC8736x_GPIO
505         tristate "NatSemi PC8736x GPIO Support"
506         depends on X86_32
507         default SCx200_GPIO     # mostly N
508         select NSC_GPIO         # needed for support routines
509         help
510           Give userspace access to the GPIO pins on the National
511           Semiconductor PC-8736x (x=[03456]) SuperIO chip.  The chip
512           has multiple functional units, inc several managed by
513           hwmon/pc87360 driver.  Tested with PC-87366
514
515           If compiled as a module, it will be called pc8736x_gpio.
516
517 config NSC_GPIO
518         tristate "NatSemi Base GPIO Support"
519         depends on X86_32
520         # selected by SCx200_GPIO and PC8736x_GPIO
521         # what about 2 selectors differing: m != y
522         help
523           Common support used (and needed) by scx200_gpio and
524           pc8736x_gpio drivers.  If those drivers are built as
525           modules, this one will be too, named nsc_gpio
526
527 config RAW_DRIVER
528         tristate "RAW driver (/dev/raw/rawN)"
529         depends on BLOCK
530         help
531           The raw driver permits block devices to be bound to /dev/raw/rawN.
532           Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
533           See the raw(8) manpage for more details.
534
535           Applications should preferably open the device (eg /dev/hda1)
536           with the O_DIRECT flag.
537
538 config MAX_RAW_DEVS
539         int "Maximum number of RAW devices to support (1-65536)"
540         depends on RAW_DRIVER
541         default "256"
542         help
543           The maximum number of RAW devices that are supported.
544           Default is 256. Increase this number in case you need lots of
545           raw devices.
546
547 config HPET
548         bool "HPET - High Precision Event Timer" if (X86 || IA64)
549         default n
550         depends on ACPI
551         help
552           If you say Y here, you will have a miscdevice named "/dev/hpet/".  Each
553           open selects one of the timers supported by the HPET.  The timers are
554           non-periodic and/or periodic.
555
556 config HPET_MMAP
557         bool "Allow mmap of HPET"
558         default y
559         depends on HPET
560         help
561           If you say Y here, user applications will be able to mmap
562           the HPET registers.
563
564           In some hardware implementations, the page containing HPET
565           registers may also contain other things that shouldn't be
566           exposed to the user.  If this applies to your hardware,
567           say N here.
568
569 config HANGCHECK_TIMER
570         tristate "Hangcheck timer"
571         depends on X86 || IA64 || PPC64 || S390
572         help
573           The hangcheck-timer module detects when the system has gone
574           out to lunch past a certain margin.  It can reboot the system
575           or merely print a warning.
576
577 config MMTIMER
578         tristate "MMTIMER Memory mapped RTC for SGI Altix"
579         depends on IA64_GENERIC || IA64_SGI_SN2
580         default y
581         help
582           The mmtimer device allows direct userspace access to the
583           Altix system timer.
584
585 config UV_MMTIMER
586         tristate "UV_MMTIMER Memory mapped RTC for SGI UV"
587         depends on X86_UV
588         default m
589         help
590           The uv_mmtimer device allows direct userspace access to the
591           UV system timer.
592
593 source "drivers/char/tpm/Kconfig"
594
595 config TELCLOCK
596         tristate "Telecom clock driver for ATCA SBC"
597         depends on EXPERIMENTAL && X86
598         default n
599         help
600           The telecom clock device is specific to the MPCBL0010 and MPCBL0050
601           ATCA computers and allows direct userspace access to the
602           configuration of the telecom clock configuration settings.  This
603           device is used for hardware synchronization across the ATCA backplane
604           fabric.  Upon loading, the driver exports a sysfs directory,
605           /sys/devices/platform/telco_clock, with a number of files for
606           controlling the behavior of this hardware.
607
608 config DEVPORT
609         bool
610         depends on !M68K
611         depends on ISA || PCI
612         default y
613
614 config DCC_TTY
615         tristate "DCC tty driver"
616         depends on ARM
617
618 source "drivers/s390/char/Kconfig"
619
620 config RAMOOPS
621         tristate "Log panic/oops to a RAM buffer"
622         depends on HAS_IOMEM
623         default n
624         help
625           This enables panic and oops messages to be logged to a circular
626           buffer in RAM where it can be read back at some later point.
627
628 config MSM_SMD_PKT
629         bool "Enable device interface for some SMD packet ports"
630         default n
631         depends on MSM_SMD
632         help
633           Enables userspace clients to read and write to some packet SMD
634           ports via device interface for MSM chipset.
635
636 endmenu
637