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