xref: /OK3568_Linux_fs/kernel/drivers/pnp/pnpbios/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Plug and Play BIOS configuration
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyunconfig PNPBIOS
6*4882a593Smuzhiyun	bool "Plug and Play BIOS support"
7*4882a593Smuzhiyun	depends on ISA && X86_32
8*4882a593Smuzhiyun	default n
9*4882a593Smuzhiyun	help
10*4882a593Smuzhiyun	  Linux uses the PNPBIOS as defined in "Plug and Play BIOS
11*4882a593Smuzhiyun	  Specification Version 1.0A May 5, 1994" to autodetect built-in
12*4882a593Smuzhiyun	  mainboard resources (e.g. parallel port resources).
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun	  Some features (e.g. event notification, docking station information,
15*4882a593Smuzhiyun	  ISAPNP services) are not currently implemented.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun	  If you would like the kernel to detect and allocate resources to
18*4882a593Smuzhiyun	  your mainboard devices (on some systems they are disabled by the
19*4882a593Smuzhiyun	  BIOS) say Y here.  Also the PNPBIOS can help prevent resource
20*4882a593Smuzhiyun	  conflicts between mainboard devices and other bus devices.
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun	  Note: ACPI is expected to supersede PNPBIOS some day, currently it
23*4882a593Smuzhiyun	  co-exists nicely.  If you have a non-ISA system that supports ACPI,
24*4882a593Smuzhiyun	  you probably don't need PNPBIOS support.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunconfig PNPBIOS_PROC_FS
27*4882a593Smuzhiyun	bool "Plug and Play BIOS /proc interface"
28*4882a593Smuzhiyun	depends on PNPBIOS && PROC_FS
29*4882a593Smuzhiyun	help
30*4882a593Smuzhiyun	  If you say Y here and to "/proc file system support", you will be
31*4882a593Smuzhiyun	  able to directly access the PNPBIOS.  This includes resource
32*4882a593Smuzhiyun	  allocation, ESCD, and other PNPBIOS services.  Using this
33*4882a593Smuzhiyun	  interface is potentially dangerous because the PNPBIOS driver will
34*4882a593Smuzhiyun	  not be notified of any resource changes made by writing directly.
35*4882a593Smuzhiyun	  Also some buggy systems will fault when accessing certain features
36*4882a593Smuzhiyun	  in the PNPBIOS /proc interface (e.g. "boot" configs).
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun	  See the latest pcmcia-cs (stand-alone package) for a nice set of
39*4882a593Smuzhiyun	  PNPBIOS /proc interface tools (lspnp and setpnp).
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	  Unless you are debugging or have other specific reasons, it is
42*4882a593Smuzhiyun	  recommended that you say N here.
43*4882a593Smuzhiyun
44