1# $FreeBSD: src/sys/conf/options,v 1.191.2.53 2003/06/04 17:56:58 sam Exp $ 2# $DragonFly: src/sys/conf/options,v 1.30 2005/02/11 22:25:56 joerg Exp $ 3# 4# On the handling of kernel options 5# 6# All kernel options should be listed in LINT, with suitable 7# descriptions. Negative options (options that make some code not 8# compile) should be commented out; LINT should compile as much code 9# as possible. Try to structure option-using code so that a single 10# option only switch code on, or only switch code off, to make it 11# possible to have a full compile-test. If necessary, you can include 12# "opt_lint.h" and check for COMPILING_LINT to get maximum code 13# coverage. 14# 15# All new options shall also be listed in either "conf/options" or 16# "<machine>/conf/options.<machine>". Options that affect a single 17# source-file <xxx>.[c|s] should be directed into "opt_<xxx>.h", while 18# options that affect multiple files should either go in 19# "opt_global.h" if this is a kernel-wide option (used just about 20# everywhere), or in "opt_<option-name-in-lower-case>.h" if it affect 21# only some files. Note that the effect of listing only an option 22# without a header-file-name in conf/options (and cousins) is that the 23# last convention is followed. 24# 25# This handling scheme is not yet fully implemented. 26# 27# 28# Format of this file: 29# Option name filename 30# 31# If filename is missing, the default is 32# opt_<name-of-option-in-lower-case>.h 33 34# Adaptec Array Controller driver options 35AAC_COMPAT_LINUX opt_aac.h # Enable the linux ioctl interface 36 37AAC_DEBUG opt_aac.h # Debugging levels: 38 # 0 - quiet, only emit warnings 39 # 1 - noisy, emit major function 40 # points and things done 41 # 2 - extremely noisy, emit trace 42 # items in loops, etc. 43 44# Adaptec aic7xxx SCSI controller options 45AHC_ALLOW_MEMIO opt_aic7xxx.h # Allow PCI devices to use memory 46 # mapped I/O 47 48AHC_TMODE_ENABLE opt_aic7xxx.h # Bitmap of units to enable 49 # targetmode operations. 50 51AHC_DUMP_EEPROM opt_aic7xxx.h # Dump the contents of our 52 # configuration prom. 53 54AHC_DEBUG opt_aic7xxx.h # Compile in Aic7xxx Debugging code. 55 56AHC_DEBUG_OPTS opt_aic7xxx.h # Aic7xxx driver debugging options. 57 # See sys/dev/aic7xxx/aic7xxx.h 58 59AHC_REG_PRETTY_PRINT opt_aic7xxx.h # Print register bitfields in debug 60 # output. Adds ~15k to driver. 61 62# Adaptec aic79xx SCSI controller options 63AHD_DEBUG opt_aic79xx.h # Compile in Aic79xx Debugging code. 64 65AHD_DEBUG_OPTS opt_aic79xx.h # Aic79xx driver debugging options. 66 # See sys/dev/aic7xxx/aic79xx.h 67 68AHD_TMODE_ENABLE opt_aic79xx.h # Bitmap of units to enable 69 # targetmode operations. 70 71AHD_REG_PRETTY_PRINT opt_aic79xx.h # Print register bitfields in debug 72 # output. Adds ~15k to driver. 73 74ADW_ALLOW_MEMIO opt_adw.h # Allow PCI devices to use memory 75 # mapped I/O 76TWA_DEBUG opt_twa.h 77TWA_FLASH_FIREWARE opt_twa.h 78 79#options for ACPI support 80ACPI_DEBUG opt_acpi.h 81ACPI_NO_SEMAPHORES opt_acpi.h 82ACPI_MAX_THREADS opt_acpi.h 83 84# Miscellaneous options. 85COMPAT_43 opt_compat.h 86COMPAT_SUNOS opt_compat.h 87COMPILING_LINT opt_lint.h 88CY_PCI_FASTINTR 89DDB 90DDB_TRACE 91DDB_UNATTENDED opt_ddb.h 92GDB_REMOTE_CHAT opt_ddb.h 93HW_WDOG 94KTRACE 95LIBICONV 96MD_NSECT opt_md.h 97MD_ROOT opt_md.h 98MD_ROOT_SIZE opt_md.h 99MFS_ROOT opt_mfs.h 100MFS_ROOT_SIZE opt_mfs.h 101NTIMECOUNTER opt_ntp.h 102NSWAPDEV opt_swap.h 103NSWBUF_MIN opt_swap.h 104PPS_SYNC opt_ntp.h 105QUOTA 106SPX_HACK 107SUIDDIR opt_suiddir.h 108SYSVMSG opt_sysvipc.h 109SYSVSEM opt_sysvipc.h 110SYSVSHM opt_sysvipc.h 111SHMALL opt_sysvipc.h 112SHMMAX opt_sysvipc.h 113SHMMAXPGS opt_sysvipc.h 114SHMMIN opt_sysvipc.h 115SHMMNI opt_sysvipc.h 116SHMSEG opt_sysvipc.h 117SEMMAP opt_sysvipc.h 118SEMMNI opt_sysvipc.h 119SEMMNS opt_sysvipc.h 120SEMMNU opt_sysvipc.h 121SEMMSL opt_sysvipc.h 122SEMOPM opt_sysvipc.h 123SEMUME opt_sysvipc.h 124MSGMNB opt_sysvipc.h 125MSGMNI opt_sysvipc.h 126MSGSEG opt_sysvipc.h 127MSGSSZ opt_sysvipc.h 128MSGTQL opt_sysvipc.h 129UCONSOLE 130ICMP_BANDLIM 131VFS_AIO 132DIRECTIO opt_directio.h 133 134# POSIX kernel options 135P1003_1B opt_posix.h 136_KPOSIX_PRIORITY_SCHEDULING opt_posix.h 137_KPOSIX_VERSION opt_posix.h 138 139# Do we want the config file compiled into the kernel? 140INCLUDE_CONFIG_FILE opt_config.h 141 142# Options for static file systems. These should only be used at config 143# time, since the corresponding lkms cannot work if there are any static 144# dependencies. Unusability is enforced by hiding the defines for the 145# options in a never-included header. 146EXT2FS opt_dontuse.h 147FDESC opt_dontuse.h 148KERNFS opt_dontuse.h 149MFS opt_dontuse.h 150MSDOSFS opt_dontuse.h 151NULLFS opt_dontuse.h 152PORTAL opt_dontuse.h 153PROCFS opt_dontuse.h 154UDF opt_dontuse.h 155UMAPFS opt_dontuse.h 156NTFS opt_dontuse.h 157 158# These static filesystems has one slightly bogus static dependency in 159# sys/i386/i386/autoconf.c. If any of these filesystems are 160# statically compiled into the kernel, code for mounting them as root 161# filesystems will be enabled - but look below. Boot-code is purposely 162# unavailable for the LKM-based versions. 163CODA 164CD9660 165FFS 166NFS 167NWFS 168 169# If you are following the conditions in the copyright, 170# you can enable soft-updates which will speed up a lot of thigs 171# and make the system safer from crashes at the same time. 172# otherwise a STUB module will be compiled in. 173SOFTUPDATES opt_ffs.h 174 175# Enable fast hash lookups for large directories on UFS-based filesystems. 176UFS_DIRHASH opt_ufs.h 177 178# The above static dependencies are planned removed, with a 179# <filesystem>_ROOT option to control if it usable as root. This list 180# allows these options to be present in config files already (though 181# they won't make any difference yet). 182CD9660_ROOT opt_cd9660.h 183FFS_ROOT opt_ffs.h 184NFS_ROOT opt_nfsroot.h 185 186# The union static file system has bogus static dependencies, so it isn't 187# hidden yet. 188UNION 189 190# Options used only in subr_param.c. 191HZ opt_param.h 192MAXFILES opt_param.h 193NBUF opt_param.h 194NMBCLUSTERS opt_param.h 195NMBUFS opt_param.h 196NSFBUFS opt_param.h 197VM_BCACHE_SIZE_MAX opt_param.h 198VM_SWZONE_SIZE_MAX opt_param.h 199MAXUSERS 200DFLDSIZ opt_param.h 201MAXDSIZ opt_param.h 202MAXSSIZ opt_param.h 203 204# Generic SCSI options. 205CAM_MAX_HIGHPOWER opt_cam.h 206CAMDEBUG opt_cam.h 207CAM_DEBUG_DELAY opt_cam.h 208CAM_DEBUG_BUS opt_cam.h 209CAM_DEBUG_TARGET opt_cam.h 210CAM_DEBUG_LUN opt_cam.h 211CAM_DEBUG_FLAGS opt_cam.h 212SCSI_DELAY opt_scsi.h 213SCSI_NO_SENSE_STRINGS opt_scsi.h 214SCSI_NO_OP_STRINGS opt_scsi.h 215 216# Options used only in cam/scsi/scsi_cd.c 217CHANGER_MIN_BUSY_SECONDS opt_cd.h 218CHANGER_MAX_BUSY_SECONDS opt_cd.h 219 220# Options used only in cam/scsi/scsi_sa.c. 221SA_IO_TIMEOUT opt_sa.h 222SA_SPACE_TIMEOUT opt_sa.h 223SA_REWIND_TIMEOUT opt_sa.h 224SA_ERASE_TIMEOUT opt_sa.h 225SA_1FM_AT_EOD opt_sa.h 226 227# Options used only in cam/scsi/scsi_pt.c 228SCSI_PT_DEFAULT_TIMEOUT opt_pt.h 229 230# Options used only in cam/scsi/scsi_ses.c 231SES_ENABLE_PASSTHROUGH opt_ses.h 232 233# Options used in dev/sym/ (Symbios SCSI driver). 234SYM_SETUP_LP_PROBE_MAP opt_sym.h #-Low Priority Probe Map (bits) 235 # Allows the ncr to take precedence 236 # 1 (1<<0) -> 810a, 860 237 # 2 (1<<1) -> 825a, 875, 885, 895 238 # 4 (1<<2) -> 895a, 896, 1510d 239SYM_SETUP_SCSI_DIFF opt_sym.h #-HVD support for 825a, 875, 885 240 # disabled:0 (default), enabled:1 241SYM_SETUP_PCI_PARITY opt_sym.h #-PCI parity checking 242 # disabled:0, enabled:1 (default) 243SYM_SETUP_MAX_LUN opt_sym.h #-Number of LUNs supported 244 # default:8, range:[1..64] 245 246# Options used only in pci/ncr.c 247SCSI_NCR_DEBUG opt_ncr.h 248SCSI_NCR_MAX_SYNC opt_ncr.h 249SCSI_NCR_MAX_WIDE opt_ncr.h 250SCSI_NCR_MYADDR opt_ncr.h 251 252# Options used only in pci/isp_pci.c 253ISP_TARGET_MODE opt_isp.h 254 255# Options used in the 'ata' ATA/ATAPI driver 256ATA_STATIC_ID opt_ata.h 257 258# Net stuff. 259# altq stuff 260ALTQ opt_global.h 261ALTQ_CBQ opt_altq.h 262ALTQ_RED opt_altq.h 263ALTQ_RIO opt_altq.h 264ALTQ_HFSC opt_altq.h 265ALTQ_PRIQ opt_altq.h 266ALTQ_NOPCC opt_altq.h 267ALTQ_DEBUG opt_altq.h 268 269ACCEPT_FILTER_DATA 270ACCEPT_FILTER_HTTP 271BOOTP opt_bootp.h 272BOOTP_COMPAT opt_bootp.h 273BOOTP_NFSROOT opt_bootp.h 274BOOTP_NFSV3 opt_bootp.h 275BOOTP_WIRED_TO opt_bootp.h 276BRIDGE opt_bdg.h 277ETHER_II opt_ef.h 278ETHER_8023 opt_ef.h 279ETHER_8022 opt_ef.h 280ETHER_SNAP opt_ef.h 281MROUTING opt_mrouting.h 282PIM opt_mrouting.h 283INET opt_inet.h 284INET6 opt_inet6.h 285IPSEC opt_ipsec.h 286IPSEC_ESP opt_ipsec.h 287IPSEC_DEBUG opt_ipsec.h 288IPSEC_FILTERGIF opt_ipsec.h 289FAST_IPSEC opt_ipsec.h 290IPDIVERT 291DUMMYNET opt_ipdn.h 292IPFILTER opt_ipfilter.h 293IPFILTER_LOG opt_ipfilter.h 294IPFILTER_DEFAULT_BLOCK opt_ipfilter.h 295IPFIREWALL opt_ipfw.h 296IPFW2 opt_ipfw.h 297IPFIREWALL_VERBOSE opt_ipfw.h 298IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h 299IPFIREWALL_DEFAULT_TO_ACCEPT opt_ipfw.h 300IPFIREWALL_FORWARD opt_ipfw.h 301IPV6FIREWALL opt_ip6fw.h 302IPV6FIREWALL_VERBOSE opt_ip6fw.h 303IPV6FIREWALL_VERBOSE_LIMIT opt_ip6fw.h 304IPV6FIREWALL_DEFAULT_TO_ACCEPT opt_ip6fw.h 305IPSTEALTH 306IPX opt_ipx.h 307IPXIP opt_ipx.h 308IPTUNNEL opt_ipx.h 309LIBMCHAIN 310NCP opt_ncp.h 311NETATALK opt_atalk.h 312NS opt_ns.h 313PPP_BSDCOMP opt_ppp.h 314PPP_DEFLATE opt_ppp.h 315PPP_FILTER opt_ppp.h 316RANDOM_IP_ID 317SLIP_IFF_OPTS opt_slip.h 318TCPDEBUG 319TCP_DROP_SYNFIN opt_tcp_input.h 320 321XBONEHACK 322MBUF_STRESS_TEST opt_mbuf_stress_test.h 323 324# Netgraph(4). Use option NETGRAPH to enable the base netgraph code. 325# Each netgraph node type can be either be compiled into the kernel 326# or loaded dynamically. To get the former, include the corresponding 327# option below. Each type has its own man page, e.g. ng_async(8). 328NETGRAPH 329NETGRAPH_ASYNC opt_netgraph.h 330NETGRAPH_BPF opt_netgraph.h 331NETGRAPH_BRIDGE opt_netgraph.h 332NETGRAPH_CISCO opt_netgraph.h 333NETGRAPH_ECHO opt_netgraph.h 334NETGRAPH_ETHER opt_netgraph.h 335NETGRAPH_FRAME_RELAY opt_netgraph.h 336NETGRAPH_HOLE opt_netgraph.h 337NETGRAPH_IFACE opt_netgraph.h 338NETGRAPH_KSOCKET opt_netgraph.h 339NETGRAPH_LMI opt_netgraph.h 340NETGRAPH_L2TP opt_netgraph.h 341# MPPC compression requires proprietary files (not included) 342NETGRAPH_MPPC_COMPRESSION opt_netgraph.h 343NETGRAPH_MPPC_ENCRYPTION opt_netgraph.h 344NETGRAPH_ONE2MANY opt_netgraph.h 345NETGRAPH_PPP opt_netgraph.h 346NETGRAPH_PPPOE opt_netgraph.h 347NETGRAPH_PPTPGRE opt_netgraph.h 348NETGRAPH_RFC1490 opt_netgraph.h 349NETGRAPH_SOCKET opt_netgraph.h 350NETGRAPH_TEE opt_netgraph.h 351NETGRAPH_TTY opt_netgraph.h 352NETGRAPH_UI opt_netgraph.h 353NETGRAPH_VJC opt_netgraph.h 354 355# DRM options 356DRM_DEBUG opt_drm.h 357 358# ATM (HARP version) 359ATM_CORE opt_atm.h 360ATM_IP opt_atm.h 361ATM_SIGPVC opt_atm.h 362ATM_SPANS opt_atm.h 363ATM_UNI opt_atm.h 364 365# XXX Conflict: # of devices vs network protocol (Native ATM). 366# This makes "atm.h" unusable. 367NATM opt_natm.h 368 369DPT_ALLOW_MEMIO opt_dpt.h # Allow PCI devices to use memory 370 # mapped I/O 371# DPT driver debug flags 372DPT_MEASURE_PERFORMANCE opt_dpt.h 373DPT_HANDLE_TIMEOUTS opt_dpt.h 374DPT_TIMEOUT_FACTOR opt_dpt.h 375DPT_LOST_IRQ opt_dpt.h 376DPT_RESET_HBA opt_dpt.h 377 378# Misc debug flags. Most of these should probably be replaced with 379# 'DEBUG', and then let people recompile just the interesting modules 380# with 'make CC="cc -DDEBUG"'. 381CLUSTERDEBUG opt_debug_cluster.h 382DEBUG_1284 opt_ppb_1284.h 383VP0_DEBUG opt_vpo.h 384LPT_DEBUG opt_lpt.h 385PLIP_DEBUG opt_plip.h 386LOCKF_DEBUG opt_debug_lockf.h 387LOUTB opt_debug_outb.h 388NPX_DEBUG opt_debug_npx.h 389NETATALKDEBUG opt_atalk.h 390SI_DEBUG opt_debug_si.h 391 392# Fb options 393FB_DEBUG opt_fb.h 394FB_INSTALL_CDEV opt_fb.h 395 396# ppbus related options 397PERIPH_1284 opt_ppb_1284.h 398DONTPROBE_1284 opt_ppb_1284.h 399 400# smbus related options 401ENABLE_ALART opt_intpm.h 402 403# These cause changes all over the kernel 404BLKDEV_IOSIZE opt_global.h 405DEBUG opt_global.h 406DEBUG_LOCKS opt_global.h 407DEBUG_VFS_LOCKS opt_global.h 408DIAGNOSTIC opt_global.h 409INVARIANT_SUPPORT opt_global.h 410INVARIANTS opt_global.h 411SIMPLELOCK_DEBUG opt_global.h 412VFS_BIO_DEBUG opt_global.h 413DEBUG_INTERRUPTS opt_global.h 414 415# These are VM related options 416VM_KMEM_SIZE opt_vm.h 417VM_KMEM_SIZE_SCALE opt_vm.h 418VM_KMEM_SIZE_MAX opt_vm.h 419NO_SWAPPING opt_vm.h 420PQ_CACHESIZE opt_vmpage.h 421 422# Standard SMP options 423SMP opt_global.h 424 425# sys/netkey 426KEY 427 428# Size of the kernel message buffer 429MSGBUF_SIZE opt_msgbuf.h 430 431# PCI related options 432PCI_QUIET opt_pci.h 433PCI_ENABLE_IO_MODES opt_pci.h 434COMPAT_OLDPCI 435 436# NFS options 437NFS_MINATTRTIMO opt_nfs.h 438NFS_MAXATTRTIMO opt_nfs.h 439NFS_MINDIRATTRTIMO opt_nfs.h 440NFS_MAXDIRATTRTIMO opt_nfs.h 441NFS_GATHERDELAY opt_nfs.h 442NFS_UIDHASHSIZ opt_nfs.h 443NFS_WDELAYHASHSIZ opt_nfs.h 444NFS_MUIDHASHSIZ opt_nfs.h 445NFS_NOSERVER opt_nfs.h 446NFS_DEBUG opt_nfs.h 447 448# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver 449BROOKTREE_SYSTEM_DEFAULT opt_bktr.h 450BROOKTREE_ALLOC_PAGES opt_bktr.h 451BKTR_OVERRIDE_CARD opt_bktr.h 452BKTR_OVERRIDE_TUNER opt_bktr.h 453BKTR_OVERRIDE_DBX opt_bktr.h 454BKTR_OVERRIDE_MSP opt_bktr.h 455BKTR_SYSTEM_DEFAULT opt_bktr.h 456BKTR_ALLOC_PAGES opt_bktr.h 457BKTR_USE_PLL opt_bktr.h 458BKTR_GPIO_ACCESS opt_bktr.h 459BKTR_NO_MSP_RESET opt_bktr.h 460BKTR_430_FX_MODE opt_bktr.h 461BKTR_SIS_VIA_MODE opt_bktr.h 462BKTR_NEW_MSP34XX_DRIVER opt_bktr.h 463 464# meteor opt_meteor.h 465METEOR_ALLOC_PAGES opt_meteor.h 466METEOR_TEST_VIDEO opt_meteor.h 467METEOR_SYSTEM_DEFAULT opt_meteor.h 468METEOR_DEALLOC_PAGES opt_meteor.h 469METEOR_DEALLOC_ABOVE opt_meteor.h 470 471# Various mi ISA bus flags 472COMPAT_OLDISA opt_compat_oldisa.h 473COM_ESP opt_sio.h 474COM_MULTIPORT opt_sio.h 475BREAK_TO_DEBUGGER opt_comconsole.h 476ALT_BREAK_TO_DEBUGGER opt_comconsole.h 477 478# Include tweaks for running under the SimOS machine simulator. 479SIMOS opt_simos.h 480 481# options for bus/device framework 482BUS_DEBUG opt_bus.h 483DEVICE_SYSCTLS opt_bus.h 484 485# options for USB support 486UHCI_DEBUG opt_usb.h 487OHCI_DEBUG opt_usb.h 488USB_DEBUG opt_usb.h 489UGEN_DEBUG opt_usb.h 490UHID_DEBUG opt_usb.h 491UHUB_DEBUG opt_usb.h 492UKBD_DEBUG opt_usb.h 493ULPT_DEBUG opt_usb.h 494UMASS_DEBUG opt_usb.h 495UMS_DEBUG opt_usb.h 496 497# Vinum options 498VINUMDEBUG opt_vinum.h 499 500# Embedded system options 501UKBD_DFLT_KEYMAP opt_ukbd.h 502INIT_PATH opt_init_path.h 503 504ROOTDEVNAME opt_rootdevname.h 505 506FDC_DEBUG opt_fdc.h 507PCFCLOCK_VERBOSE opt_pcfclock.h 508PCFCLOCK_MAX_RETRIES opt_pcfclock.h 509 510# Polling device handling 511DEVICE_POLLING opt_global.h 512 513# options for ubsec driver 514UBSEC_DEBUG opt_ubsec.h 515UBSEC_RNDTEST opt_ubsec.h 516UBSEC_NO_RNG opt_ubsec.h 517 518# options for hifn driver 519HIFN_DEBUG opt_hifn.h 520HIFN_RNDTEST opt_hifn.h 521HIFN_NO_RNG opt_hifn.h 522 523# KTR options 524KTR opt_global.h 525KTR_MASK opt_ktr.h 526KTR_CPUMASK opt_ktr.h 527KTR_COMPILE opt_global.h 528KTR_ENTRIES opt_global.h 529KTR_VERBOSE opt_ktr.h 530 531# ed driver 532ED_NO_MIIBUS opt_ed.h 533 534# wi driver 535WI_SYMBOL_FIRMWARE opt_wi.h 536 537# dcons options 538DCONS_BUF_SIZE opt_dcons.h 539DCONS_POLL_HZ opt_dcons.h 540DCONS_FORCE_CONSOLE opt_dcons.h 541DCONS_FORCE_GDB opt_dcons.h 542 543# depricated drivers and options 544I_WANT_DEPRECATED_STUFF opt_deprecated.h 545