# SPDX-License-Identifier: GPL-2.0
#
# Character device configuration
#
menu "Character devices"
source "drivers/tty/Kconfig"
config [31mCONFIG_DEVMEM[0m
bool "/dev/mem virtual device support"
default y
help
Say Y here if you want to support the /dev/mem device.
The /dev/mem device is used to access areas of physical
memory.
When in doubt, say "Y".
config [31mCONFIG_DEVKMEM[0m
bool "/dev/kmem virtual device support"
# On arm64, VMALLOC_START < [31mCONFIG_PAGE_OFFSET[0m, which confuses kmem read/write
depends on ![31mCONFIG_ARM64[0m
help
Say Y here if you want to support the /dev/kmem device. The
/dev/kmem device is rarely used, but can be used for certain
kind of kernel debugging operations.
When in doubt, say "N".
source "drivers/tty/serial/Kconfig"
source "drivers/tty/serdev/Kconfig"
config [31mCONFIG_TTY_PRINTK[0m
tristate "TTY driver to output user messages via printk"
depends on [31mCONFIG_EXPERT[0m && [31mCONFIG_TTY[0m
default n
---help---
If you say Y here, the support for writing user messages (i.e.
console messages) via printk is available.
The feature is useful to inline user messages with kernel
messages.
In order to use this feature, you should output user messages
to /dev/ttyprintk or redirect console to this [31mCONFIG_TTY[0m.
If unsure, say N.
config [31mCONFIG_TTY_PRINTK_LEVEL[0m
depends on [31mCONFIG_TTY_PRINTK[0m
int "ttyprintk log level (1-7)"
range 1 7
default "6"
help
Printk log level to use for ttyprintk messages.
config [31mCONFIG_PRINTER[0m
tristate "Parallel printer support"
depends on [31mCONFIG_PARPORT[0m
---help---
If you intend to attach a printer to the parallel port of your Linux
box (as opposed to using a serial printer; if the connector at the
printer has 9 or 25 holes ["female"], then it's serial), say Y.
Also read the Printing-HOWTO, available from
<http://www.tldp.org/docs.html#howto>.
It is possible to share one parallel port among several devices
(e.g. printer and ZIP drive) and it is safe to compile the
corresponding drivers into the kernel.
To compile this driver as a module, choose [31mCONFIG_M[0m here and read
<file:Documentation/admin-guide/parport.rst>. The module will be called lp.
If you have several parallel ports, you can specify which ports to
use with the "lp" kernel command line option. (Try "man bootparam"
or see the documentation of your boot loader (lilo or loadlin) about
how to pass options to the kernel at boot time.) The syntax of the
"lp" command line option can be found in <file:drivers/char/lp.c>.
If you have more than 8 printers, you need to increase the LP_NO
macro in lp.c and the PARPORT_MAX macro in parport.h.
config [31mCONFIG_LP_CONSOLE[0m
bool "Support for console on line printer"
depends on [31mCONFIG_PRINTER[0m
---help---
If you want kernel messages to be printed out as they occur, you
can have a console on the printer. This option adds support for
doing that; to actually get it to happen you need to pass the
option "console=lp0" to the kernel at boot time.
If the printer is out of paper (or off, or unplugged, or too
busy..) the kernel will stall until the printer is ready again.
By defining CONSOLE_LP_STRICT to 0 (at your own risk) you
can make the kernel continue when this happens,
but it'll lose the kernel messages.
If unsure, say N.
config [31mCONFIG_PPDEV[0m
tristate "Support for user-space parallel port device drivers"
depends on [31mCONFIG_PARPORT[0m
---help---
Saying Y to this adds support for /dev/parport device nodes. This
is needed for programs that want portable access to the parallel
port, for instance deviceid (which displays Plug-and-Play device
IDs).
This is the parallel port equivalent of [31mCONFIG_SCSI[0m generic support (sg).
It is safe to say N to this -- it is not needed for normal printing
or parallel port CD-[31mCONFIG_ROM[0m/disk support.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called ppdev.
If unsure, say N.
source "drivers/tty/hvc/Kconfig"
config [31mCONFIG_VIRTIO_CONSOLE[0m
tristate "Virtio console"
depends on [31mCONFIG_VIRTIO[0m && [31mCONFIG_TTY[0m
select [31mCONFIG_HVC_DRIVER[0m
help
Virtio console for use with hypervisors.
Also serves as a general-purpose serial device for data
transfer between the guest and host. Character devices at
/dev/vportNpn will be created when corresponding ports are
found, where N is the device number and n is the port number
within that device. If specified by the host, a sysfs
attribute called 'name' will be populated with a name for
the port which can be used by udev scripts to create a
symlink to the device.
config [31mCONFIG_IBM_BSR[0m
tristate "IBM POWER Barrier Synchronization Register support"
depends on [31mCONFIG_PPC_PSERIES[0m
help
This devices exposes a hardware mechanism for fast synchronization
of threads across a large system which avoids bouncing a cacheline
between several cores on a system
config [31mCONFIG_POWERNV_OP_PANEL[0m
tristate "IBM POWERNV Operator Panel Display support"
depends on [31mCONFIG_PPC_POWERNV[0m
default m
help
If you say Y here, a special character device node, /dev/op_panel,
will be created which exposes the operator panel display on IBM
Power Systems machines with FSPs.
If you don't require access to the operator panel display from user
space, say N.
If unsure, say [31mCONFIG_M[0m here to build it as a module called powernv-op-panel.
source "drivers/char/ipmi/Kconfig"
config [31mCONFIG_DS1620[0m
tristate "NetWinder thermometer support"
depends on [31mCONFIG_ARCH_NETWINDER[0m
help
Say Y here to include support for the thermal management hardware
found in the NetWinder. This driver allows the user to control the
temperature set points and to read the current temperature.
It is also possible to say [31mCONFIG_M[0m here to build it as a module (ds1620)
It is recommended to be used on a NetWinder, but it is not a
necessity.
config [31mCONFIG_NWBUTTON[0m
tristate "NetWinder Button"
depends on [31mCONFIG_ARCH_NETWINDER[0m
---help---
If you say Y here and create a character device node /dev/nwbutton
with major and minor numbers 10 and 158 ("man mknod"), then every
time the orange button is pressed a number of times, the number of
times the button was pressed will be written to that device.
This is most useful for applications, as yet unwritten, which
perform actions based on how many times the button is pressed in a
row.
Do not hold the button down for too long, as the driver does not
alter the behaviour of the hardware reset circuitry attached to the
button; it will still execute a hard reset if the button is held
down for longer than approximately five seconds.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called nwbutton.
Most people will answer Y to this question and "Reboot Using Button"
below to be able to initiate a system shutdown from the button.
config [31mCONFIG_NWBUTTON_REBOOT[0m
bool "Reboot Using Button"
depends on [31mCONFIG_NWBUTTON[0m
help
If you say Y here, then you will be able to initiate a system
shutdown and reboot by pressing the orange button a number of times.
The number of presses to initiate the shutdown is two by default,
but this can be altered by modifying the value of NUM_PRESSES_REBOOT
in nwbutton.h and recompiling the driver or, if you compile the
driver as a module, you can specify the number of presses at load
time with "insmod button reboot_count=<something>".
config [31mCONFIG_NWFLASH[0m
tristate "NetWinder flash support"
depends on [31mCONFIG_ARCH_NETWINDER[0m
---help---
If you say Y here and create a character device /dev/flash with
major 10 and minor 160 you can manipulate the flash [31mCONFIG_ROM[0m containing
the NetWinder firmware. Be careful as accidentally overwriting the
flash contents can render your computer unbootable. On no account
allow random users access to this device. :-)
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called nwflash.
If you're not sure, say N.
source "drivers/char/hw_random/Kconfig"
config [31mCONFIG_NVRAM[0m
tristate "/dev/nvram support"
depends on [31mCONFIG_X86[0m || [31mCONFIG_HAVE_ARCH_NVRAM_OPS[0m
default [31mCONFIG_M68K[0m || [31mCONFIG_PPC[0m
---help---
If you say Y here and create a character special file /dev/nvram
with major number 10 and minor number 144 using mknod ("man mknod"),
you get read and write access to the non-volatile memory.
/dev/nvram may be used to view settings in [31mCONFIG_NVRAM[0m or to change them
(with some utility). It could also be used to frequently
save a few bits of very important data that may not be lost over
power-off and for which writing to disk is too insecure. Note
however that most [31mCONFIG_NVRAM[0m space in a PC belongs to the BIOS and you
should NEVER idly tamper with it. See Ralf Brown's interrupt list
for a guide to the use of CMOS bytes by your BIOS.
This memory is conventionally called "NVRAM" on PowerPC machines,
"CMOS RAM" on PCs, "NVRAM" on Ataris and "PRAM" on Macintoshes.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called nvram.
#
# These legacy [31mCONFIG_RTC[0m drivers just cause too many conflicts with the generic
# [31mCONFIG_RTC[0m framework ... let's not even try to coexist any more.
#
if [31mCONFIG_RTC_LIB[0m=n
config [31mCONFIG_RTC[0m
tristate "Enhanced Real Time Clock Support (legacy PC RTC driver)"
depends on [31mCONFIG_ALPHA[0m
---help---
If you say Y here and create a character special file /dev/rtc with
major number 10 and minor number 135 using mknod ("man mknod"), you
will get access to the real time clock (or hardware clock) built
into your computer.
Every PC has such a clock built in. It can be used to generate
signals from as low as 1Hz up to 8192Hz, and can also be used
as a 24 hour alarm. It reports status information via the file
/proc/driver/rtc and its behaviour is set by various ioctls on
/dev/rtc.
If you run Linux on a multiprocessor machine and said Y to
"Symmetric Multi Processing" above, you should say Y here to read
and set the [31mCONFIG_RTC[0m in an [31mCONFIG_SMP[0m compatible fashion.
If you think you have a use for such a device (such as periodic data
sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
for details.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called rtc.
config [31mCONFIG_JS_RTC[0m
tristate "Enhanced Real Time Clock Support"
depends on [31mCONFIG_SPARC32[0m && [31mCONFIG_PCI[0m
---help---
If you say Y here and create a character special file /dev/rtc with
major number 10 and minor number 135 using mknod ("man mknod"), you
will get access to the real time clock (or hardware clock) built
into your computer.
Every PC has such a clock built in. It can be used to generate
signals from as low as 1Hz up to 8192Hz, and can also be used
as a 24 hour alarm. It reports status information via the file
/proc/driver/rtc and its behaviour is set by various ioctls on
/dev/rtc.
If you think you have a use for such a device (such as periodic data
sampling), then say Y here, and read <file:Documentation/admin-guide/rtc.rst>
for details.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called js-rtc.
config [31mCONFIG_EFI_RTC[0m
bool "EFI Real Time Clock Services"
depends on [31mCONFIG_IA64[0m
endif # [31mCONFIG_RTC_LIB[0m
config [31mCONFIG_DTLK[0m
tristate "Double Talk PC internal speech card support"
depends on [31mCONFIG_ISA[0m
help
This driver is for the DoubleTalk PC, a speech synthesizer
manufactured by RC Systems (<http://www.rcsys.com/>). It is also
called the `internal DoubleTalk'.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called dtlk.
config [31mCONFIG_XILINX_HWICAP[0m
tristate "Xilinx HWICAP Support"
depends on [31mCONFIG_XILINX_VIRTEX[0m || [31mCONFIG_MICROBLAZE[0m
help
This option enables support for Xilinx Internal Configuration
Access Port (ICAP) driver. The ICAP is used on Xilinx Virtex
[31mCONFIG_FPGA[0m platforms to partially reconfigure the [31mCONFIG_FPGA[0m at runtime.
If unsure, say N.
config [31mCONFIG_R3964[0m
tristate "Siemens R3964 line discipline"
depends on [31mCONFIG_TTY[0m && [31mCONFIG_BROKEN[0m
---help---
This driver allows synchronous communication with devices using the
Siemens [31mCONFIG_R3964[0m packet protocol. Unless you are dealing with special
hardware like PLCs, you are unlikely to need this.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called n_r3964.
If unsure, say N.
config [31mCONFIG_APPLICOM[0m
tristate "Applicom intelligent fieldbus card support"
depends on [31mCONFIG_PCI[0m
---help---
This driver provides the kernel-side support for the intelligent
fieldbus cards made by Applicom International. More information
about these cards can be found on the WWW at the address
<http://www.applicom-int.com/>, or by email from David Woodhouse
<dwmw2@infradead.org>.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called applicom.
If unsure, say N.
config [31mCONFIG_SONYPI[0m
tristate "Sony Vaio Programmable I/O Control Device support"
depends on [31mCONFIG_X86_32[0m && [31mCONFIG_PCI[0m && [31mCONFIG_INPUT[0m
---help---
This driver enables access to the Sony Programmable I/O Control
Device which can be found in many (all ?) Sony Vaio laptops.
If you have one of those laptops, read
<file:Documentation/admin-guide/laptops/sonypi.rst>, and say Y or [31mCONFIG_M[0m here.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called sonypi.
config [31mCONFIG_GPIO_TB0219[0m
tristate "TANBAC TB0219 GPIO support"
depends on [31mCONFIG_TANBAC_TB022X[0m
select [31mCONFIG_GPIO_VR41XX[0m
source "drivers/char/pcmcia/Kconfig"
config [31mCONFIG_MWAVE[0m
tristate "ACP Modem (Mwave) support"
depends on [31mCONFIG_X86[0m && [31mCONFIG_TTY[0m
select [31mCONFIG_SERIAL_8250[0m
---help---
The ACP modem (Mwave) for Linux is a WinModem. It is composed of a
kernel driver and a user level application. Together these components
support direct attachment to public switched telephone networks (PSTNs)
and support selected world wide countries.
This version of the ACP Modem driver supports the IBM Thinkpad 600E,
600, and 770 that include on board ACP modem hardware.
The modem also supports the standard communications port interface
(ttySx) and is compatible with the Hayes AT Command Set.
The user level application needed to use this driver can be found at
the IBM Linux Technology Center (LTC) web site:
<http://www.ibm.com/linux/ltc/>.
If you own one of the above IBM Thinkpads which has the Mwave chipset
in it, say Y.
To compile this driver as a module, choose [31mCONFIG_M[0m here: the
module will be called mwave.
config [31mCONFIG_SCx200_GPIO[0m
tristate "NatSemi SCx200 GPIO Support"
depends on [31mCONFIG_SCx200[0m
select [31mCONFIG_NSC_GPIO[0m
help
Give userspace access to the GPIO pins on the National
Semiconductor [31mCONFIG_SCx200[0m processors.
If compiled as a module, it will be called scx200_gpio.
config [31mCONFIG_PC8736x_GPIO[0m
tristate "NatSemi PC8736x GPIO Support"
depends on [31mCONFIG_X86_32[0m && ![31mCONFIG_UML[0m
default [31mCONFIG_SCx200_GPIO[0m # mostly N
select [31mCONFIG_NSC_GPIO[0m # needed for support routines
help
Give userspace access to the GPIO pins on the National
Semiconductor PC-8736x (x=[03456]) SuperIO chip. The chip
has multiple functional units, inc several managed by
hwmon/pc87360 driver. Tested with PC-87366
If compiled as a module, it will be called pc8736x_gpio.
config [31mCONFIG_NSC_GPIO[0m
tristate "NatSemi Base GPIO Support"
depends on [31mCONFIG_X86_32[0m
# selected by [31mCONFIG_SCx200_GPIO[0m and [31mCONFIG_PC8736x_GPIO[0m
# what about 2 selectors differing: m != y
help
Common support used (and needed) by scx200_gpio and
pc8736x_gpio drivers. If those drivers are built as
modules, this one will be too, named nsc_gpio
config [31mCONFIG_RAW_DRIVER[0m
tristate "RAW driver (/dev/raw/rawN)"
depends on [31mCONFIG_BLOCK[0m
help
The raw driver permits block devices to be bound to /dev/raw/rawN.
Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O.
See the raw(8) manpage for more details.
Applications should preferably open the device (eg /dev/hda1)
with the O_DIRECT flag.
config [31mCONFIG_MAX_RAW_DEVS[0m
int "Maximum number of RAW devices to support (1-65536)"
depends on [31mCONFIG_RAW_DRIVER[0m
range 1 65536
default "256"
help
The maximum number of RAW devices that are supported.
Default is 256. Increase this number in case you need lots of
raw devices.
config [31mCONFIG_HPET[0m
bool "HPET - High Precision Event Timer" if ([31mCONFIG_X86[0m || [31mCONFIG_IA64[0m)
default n
depends on [31mCONFIG_ACPI[0m
help
If you say Y here, you will have a miscdevice named "/dev/hpet/". Each
open selects one of the timers supported by the [31mCONFIG_HPET[0m. The timers are
non-periodic and/or periodic.
config [31mCONFIG_HPET_MMAP[0m
bool "Allow mmap of HPET"
default y
depends on [31mCONFIG_HPET[0m
help
If you say Y here, user applications will be able to mmap
the [31mCONFIG_HPET[0m registers.
config [31mCONFIG_HPET_MMAP_DEFAULT[0m
bool "Enable HPET MMAP access by default"
default y
depends on [31mCONFIG_HPET_MMAP[0m
help
In some hardware implementations, the page containing [31mCONFIG_HPET[0m
registers may also contain other things that shouldn't be
exposed to the user. This option selects the default (if
kernel parameter hpet_mmap is not set) user access to the
registers for applications that require it.
config [31mCONFIG_HANGCHECK_TIMER[0m
tristate "Hangcheck timer"
depends on [31mCONFIG_X86[0m || [31mCONFIG_IA64[0m || [31mCONFIG_PPC64[0m || [31mCONFIG_S390[0m
help
The hangcheck-timer module detects when the system has gone
out to lunch past a certain margin. It can reboot the system
or merely print a warning.
config [31mCONFIG_UV_MMTIMER[0m
tristate "UV_MMTIMER Memory mapped RTC for SGI UV"
depends on [31mCONFIG_X86_UV[0m
default m
help
The uv_mmtimer device allows direct userspace access to the
UV system timer.
source "drivers/char/tpm/Kconfig"
config [31mCONFIG_TELCLOCK[0m
tristate "Telecom clock driver for ATCA SBC"
depends on [31mCONFIG_X86[0m
default n
help
The telecom clock device is specific to the MPCBL0010 and MPCBL0050
ATCA computers and allows direct userspace access to the
configuration of the telecom clock configuration settings. This
device is used for hardware synchronization across the ATCA backplane
fabric. Upon loading, the driver exports a sysfs directory,
/sys/devices/platform/telco_clock, with a number of files for
controlling the behavior of this hardware.
config [31mCONFIG_DEVPORT[0m
bool "/dev/port character device"
depends on [31mCONFIG_ISA[0m || [31mCONFIG_PCI[0m
default y
help
Say Y here if you want to support the /dev/port device. The /dev/port
device is similar to /dev/mem, but for I/O ports.
source "drivers/s390/char/Kconfig"
source "drivers/char/xillybus/Kconfig"
config [31mCONFIG_ADI[0m
tristate "SPARC Privileged ADI driver"
depends on [31mCONFIG_SPARC64[0m
default m
help
[31mCONFIG_SPARC[0m M7 and newer processors utilize [31mCONFIG_ADI[0m (Application Data
Integrity) to version and protect memory. This driver provides
read/write access to the [31mCONFIG_ADI[0m versions for privileged processes.
This feature is also known as MCD (Memory Corruption Detection)
and SSM (Silicon Secured Memory). Intended consumers of this
driver include crash and makedumpfile.
endmenu
config [31mCONFIG_RANDOM_TRUST_CPU[0m
bool "Trust the CPU manufacturer to initialize Linux's CRNG"
depends on [31mCONFIG_X86[0m || [31mCONFIG_S390[0m || [31mCONFIG_PPC[0m
default n
help
Assume that CPU manufacturer (e.g., Intel or AMD for RDSEED or
RDRAND, IBM for the [31mCONFIG_S390[0m and Power PC architectures) is trustworthy
for the purposes of initializing Linux's CRNG. Since this is not
something that can be independently audited, this amounts to trusting
that CPU manufacturer (perhaps with the insistence or mandate
of a Nation State's intelligence or law enforcement agencies)
has not installed a hidden back door to compromise the CPU's
random number generation facilities. This can also be configured
at boot with "random.trust_cpu=on/off".
config [31mCONFIG_RANDOM_TRUST_BOOTLOADER[0m
bool "Trust the bootloader to initialize Linux's CRNG"
help
Some bootloaders can provide entropy to increase the kernel's initial
device randomness. Say Y here to assume the entropy provided by the
booloader is trustworthy so it will be added to the kernel's entropy
pool. Otherwise, say N here so it will be regarded as device input that
only mixes the entropy pool.