1# $FreeBSD$ 2# 3# On the handling of kernel options 4# 5# All kernel options should be listed in LINT, with suitable 6# descriptions. Negative options (options that make some code not 7# compile) should be commented out; LINT should compile as much code 8# as possible. Try to structure option-using code so that a single 9# option only switch code on, or only switch code off, to make it 10# possible to have a full compile-test. If necessary, you can include 11# "opt_lint.h" and check for COMPILING_LINT to get maximum code 12# coverage. 13# 14# All new options shall also be listed in either "conf/options" or 15# "<machine>/conf/options.<machine>". Options that affect a single 16# source-file <xxx>.[c|s] should be directed into "opt_<xxx>.h", while 17# options that affect multiple files should either go in 18# "opt_global.h" if this is a kernel-wide option (used just about 19# everywhere), or in "opt_<option-name-in-lower-case>.h" if it affect 20# only some files. Note that the effect of listing only an option 21# without a header-file-name in conf/options (and cousins) is that the 22# last convention is followed. 23# 24# This handling scheme is not yet fully implemented. 25# 26# 27# Format of this file: 28# Option name filename 29# 30# If filename is missing, the default is 31# opt_<name-of-option-in-lower-case>.h 32 33# Adaptec aic7xxx SCSI controller options 34AHC_ALLOW_MEMIO opt_aic7xxx.h # Allow PCI devices to use memory 35 # mapped I/O 36 37AHC_TMODE_ENABLE opt_aic7xxx.h # Bitmap of units to enable 38 # targetmode operations. 39 40AHC_DUMP_EEPROM opt_aic7xxx.h # Dump the contents of our 41 # configuration prom. 42 43ADW_ALLOW_MEMIO opt_adw.h # Allow PCI devices to use memory 44 # mapped I/O 45 46# Miscellaneous options. 47COMPAT_43 opt_compat.h 48COMPAT_SUNOS opt_compat.h 49COMPILING_LINT opt_lint.h 50CY_PCI_FASTINTR 51DDB 52DDB_UNATTENDED opt_ddb.h 53GDB_REMOTE_CHAT opt_ddb.h 54DEVFS 55HW_WDOG 56KTRACE 57MD5 58MD_ROOT opt_md.h 59MD_ROOT_SIZE opt_md.h 60MFS_ROOT opt_mfs.h 61MFS_ROOT_SIZE opt_mfs.h 62NTIMECOUNTER opt_ntp.h 63NSWAPDEV opt_swap.h 64PPS_SYNC opt_ntp.h 65QUOTA 66SPX_HACK 67SUIDDIR opt_suiddir.h 68SYSVMSG opt_sysvipc.h 69SYSVSEM opt_sysvipc.h 70SYSVSHM opt_sysvipc.h 71UCONSOLE 72ICMP_BANDLIM 73 74# POSIX kernel options 75P1003_1B opt_posix.h 76_KPOSIX_PRIORITY_SCHEDULING opt_posix.h 77_KPOSIX_VERSION opt_posix.h 78 79# Do we want the config file compiled into the kernel? 80INCLUDE_CONFIG_FILE opt_config.h 81 82# Options for static file systems. These should only be used at config 83# time, since the corresponding lkms cannot work if there are any static 84# dependencies. Unusability is enforced by hiding the defines for the 85# options in a never-included header. 86EXT2FS opt_dontuse.h 87FDESC opt_dontuse.h 88KERNFS opt_dontuse.h 89MFS opt_dontuse.h 90MSDOSFS opt_dontuse.h 91NULLFS opt_dontuse.h 92PORTAL opt_dontuse.h 93PROCFS opt_dontuse.h 94UMAPFS opt_dontuse.h 95NTFS opt_dontuse.h 96 97# These static filesystems has one slightly bogus static dependency in 98# sys/i386/i386/autoconf.c. If any of these filesystems are 99# statically compiled into the kernel, code for mounting them as root 100# filesystems will be enabled - but look below. Boot-code is purposely 101# unavailable for the LKM-based versions. 102CODA 103CD9660 104FFS 105NFS 106NWFS 107 108# If you are following the conditions in the copyright, 109# you can enable soft-updates which will speed up a lot of thigs 110# and make the system safer from crashes at the same time. 111# otherwise a STUB module will be compiled in. 112SOFTUPDATES opt_ffs.h 113 114# The above static dependencies are planned removed, with a 115# <filesystem>_ROOT option to control if it usable as root. This list 116# allows these options to be present in config files already (though 117# they won't make any difference yet). 118CD9660_ROOT opt_cd9660.h 119FFS_ROOT opt_ffs.h 120NFS_ROOT opt_nfsroot.h 121 122# The union static file system has bogus static dependencies, so it isn't 123# hidden yet. 124UNION 125 126# Options used only in param.c. 127HZ opt_param.h 128MAXFILES opt_param.h 129MAXUSERS opt_param.h 130MSGMNB opt_param.h 131MSGMNI opt_param.h 132MSGSEG opt_param.h 133MSGSSZ opt_param.h 134MSGTQL opt_param.h 135NBUF opt_param.h 136NMBCLUSTERS opt_param.h 137NSFBUFS opt_param.h 138SEMMAP opt_param.h 139SEMMNI opt_param.h 140SEMMNS opt_param.h 141SEMMNU opt_param.h 142SEMMSL opt_param.h 143SEMOPM opt_param.h 144SEMUME opt_param.h 145SHMALL opt_param.h 146SHMMAX opt_param.h 147SHMMAXPGS opt_param.h 148SHMMIN opt_param.h 149SHMMNI opt_param.h 150SHMSEG opt_param.h 151 152# Generic SCSI options. 153CAM_MAX_HIGHPOWER opt_cam.h 154CAMDEBUG opt_cam.h 155CAM_DEBUG_DELAY opt_cam.h 156CAM_DEBUG_BUS opt_cam.h 157CAM_DEBUG_TARGET opt_cam.h 158CAM_DEBUG_LUN opt_cam.h 159CAM_DEBUG_FLAGS opt_cam.h 160SCSI_DELAY opt_scsi.h 161SCSI_NO_SENSE_STRINGS opt_scsi.h 162SCSI_NO_OP_STRINGS opt_scsi.h 163 164# Options used only in cam/scsi/scsi_cd.c 165CHANGER_MIN_BUSY_SECONDS opt_cd.h 166CHANGER_MAX_BUSY_SECONDS opt_cd.h 167 168# Options used only in cam/scsi/scsi_sa.c. 169SA_SPACE_TIMEOUT opt_sa.h 170SA_REWIND_TIMEOUT opt_sa.h 171SA_ERASE_TIMEOUT opt_sa.h 172SA_1FM_AT_EOD opt_sa.h 173 174# Options used only in cam/scsi/scsi_pt.c 175SCSI_PT_DEFAULT_TIMEOUT opt_pt.h 176 177# Options used only in pci/ncr.c 178SCSI_NCR_DEBUG opt_ncr.h 179SCSI_NCR_MAX_SYNC opt_ncr.h 180SCSI_NCR_MAX_WIDE opt_ncr.h 181SCSI_NCR_MYADDR opt_ncr.h 182 183# Options used only in pci/isp_pci.c 184SCSI_ISP_NO_FWLOAD_MASK opt_isp.h 185SCSI_ISP_NO_NVRAM_MASK opt_isp.h 186SCSI_ISP_PREFER_MEM_MAP opt_isp.h 187SCSI_ISP_FABRIC opt_isp.h 188SCSI_ISP_SCCLUN opt_isp.h 189SCSI_ISP_FCDUPLEX opt_isp.h 190SCSI_ISP_WWN opt_isp.h 191ISP_DISABLE_1020_SUPPORT opt_isp.h 192ISP_DISABLE_1080_SUPPORT opt_isp.h 193ISP_DISABLE_2100_SUPPORT opt_isp.h 194ISP_DISABLE_2200_SUPPORT opt_isp.h 195ISP_COMPILE_FW opt_isp.h 196ISP_COMPILE_1020_FW opt_isp.h 197ISP_COMPILE_1080_FW opt_isp.h 198ISP_COMPILE_2100_FW opt_isp.h 199ISP_COMPILE_2200_FW opt_isp.h 200ISP_TARGET_MODE opt_isp.h 201 202# Options used in the 'ata' ATA/ATAPI driver 203ATA_STATIC_ID opt_ata.h 204ATA_16BIT_ONLY opt_ata.h 205ATA_ENABLE_ATAPI_DMA opt_ata.h 206 207# Resource limits. 208DFLDSIZ opt_rlimit.h 209MAXDSIZ opt_rlimit.h 210 211# Net stuff. 212BOOTP opt_bootp.h 213BOOTP_COMPAT opt_bootp.h 214BOOTP_NFSROOT opt_bootp.h 215BOOTP_NFSV3 opt_bootp.h 216BOOTP_WIRED_TO opt_bootp.h 217BRIDGE opt_bdg.h 218MROUTING opt_mrouting.h 219INET opt_inet.h 220INET6 opt_inet6.h 221IPDIVERT 222DUMMYNET opt_ipdn.h 223IPFILTER opt_ipfilter.h 224IPFILTER_LOG opt_ipfilter.h 225IPFILTER_LKM opt_ipfilter.h 226IPFIREWALL opt_ipfw.h 227IPFIREWALL_VERBOSE opt_ipfw.h 228IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h 229IPFIREWALL_DEFAULT_TO_ACCEPT opt_ipfw.h 230IPFIREWALL_FORWARD opt_ipfw.h 231IPSTEALTH 232IPX opt_ipx.h 233IPXIP opt_ipx.h 234IPTUNNEL opt_ipx.h 235NCP opt_ncp.h 236NETATALK opt_atalk.h 237PPP_BSDCOMP opt_ppp.h 238PPP_DEFLATE opt_ppp.h 239PPP_FILTER opt_ppp.h 240SLIP_IFF_OPTS opt_slip.h 241TCP_COMPAT_42 opt_compat.h 242TCPDEBUG 243TCP_DROP_SYNFIN opt_tcp_input.h 244TCP_RESTRICT_RST opt_tcp_input.h 245 246# Netgraph(4). Use option NETGRAPH to enable the base netgraph code. 247# Each netgraph node type can be either be compiled into the kernel 248# or loaded dynamically. To get the former, include the corresponding 249# option below. Each type has its own man page, e.g. ng_async(8). 250NETGRAPH 251NETGRAPH_ASYNC opt_netgraph.h 252NETGRAPH_BPF opt_netgraph.h 253NETGRAPH_CISCO opt_netgraph.h 254NETGRAPH_ECHO opt_netgraph.h 255NETGRAPH_FRAME_RELAY opt_netgraph.h 256NETGRAPH_HOLE opt_netgraph.h 257NETGRAPH_IFACE opt_netgraph.h 258NETGRAPH_KSOCKET opt_netgraph.h 259NETGRAPH_LMI opt_netgraph.h 260NETGRAPH_PPP opt_netgraph.h 261NETGRAPH_PPPOE opt_netgraph.h 262NETGRAPH_PPTPGRE opt_netgraph.h 263NETGRAPH_RFC1490 opt_netgraph.h 264NETGRAPH_SOCKET opt_netgraph.h 265NETGRAPH_TEE opt_netgraph.h 266NETGRAPH_TTY opt_netgraph.h 267NETGRAPH_UI opt_netgraph.h 268NETGRAPH_VJC opt_netgraph.h 269 270# ATM (HARP version) 271ATM_CORE opt_atm.h 272ATM_IP opt_atm.h 273ATM_SIGPVC opt_atm.h 274ATM_SPANS opt_atm.h 275ATM_UNI opt_atm.h 276 277# XXX Conflict: # of devices vs network protocol (Native ATM). 278# This makes "atm.h" unusable. 279NATM opt_natm.h 280 281DPT_ALLOW_MEMIO opt_dpt.h # Allow PCI devices to use memory 282 # mapped I/O 283# DPT driver debug flags 284DPT_MEASURE_PERFORMANCE opt_dpt.h 285DPT_HANDLE_TIMEOUTS opt_dpt.h 286DPT_TIMEOUT_FACTOR opt_dpt.h 287DPT_LOST_IRQ opt_dpt.h 288DPT_RESET_HBA opt_dpt.h 289 290# Misc debug flags. Most of these should probably be replaced with 291# 'DEBUG', and then let people recompile just the interesting modules 292# with 'make CC="cc -DDEBUG"'. 293CLUSTERDEBUG opt_debug_cluster.h 294DEBUG_1284 opt_ppb_1284.h 295VP0_DEBUG opt_vpo.h 296LPT_DEBUG opt_lpt.h 297PLIP_DEBUG opt_plip.h 298LOCKF_DEBUG opt_debug_lockf.h 299LOUTB opt_debug_outb.h 300NPX_DEBUG opt_debug_npx.h 301NETATALKDEBUG opt_atalk.h 302SI_DEBUG opt_debug_si.h 303 304# Fb options 305FB_DEBUG opt_fb.h 306FB_INSTALL_CDEV opt_fb.h 307 308# ppbus related options 309PERIPH_1284 opt_ppb_1284.h 310DONTPROBE_1284 opt_ppb_1284.h 311 312# smbus related options 313ENABLE_ALART opt_intpm.h 314 315# These cause changes all over the kernel 316BLKDEV_IOSIZE opt_global.h 317DEBUG opt_global.h 318DEBUG_LOCKS opt_global.h 319DEBUG_VFS_LOCKS opt_global.h 320DIAGNOSTIC opt_global.h 321ENABLE_VFS_IOOPT opt_global.h 322INVARIANT_SUPPORT opt_global.h 323INVARIANTS opt_global.h 324SIMPLELOCK_DEBUG opt_global.h 325VFS_BIO_DEBUG opt_global.h 326 327# These are VM related options 328VM_KMEM_SIZE opt_vm.h 329VM_KMEM_SIZE_SCALE opt_vm.h 330VM_KMEM_SIZE_MAX opt_vm.h 331NO_SWAPPING opt_vm.h 332PQ_NOOPT opt_vmpage.h 333PQ_NORMALCACHE opt_vmpage.h 334PQ_MEDIUMCACHE opt_vmpage.h 335PQ_LARGECACHE opt_vmpage.h 336PQ_HUGECACHE opt_vmpage.h 337 338# Standard SMP options 339SMP opt_global.h 340NCPU opt_smp.h 341NBUS opt_smp.h 342 343# sys/netkey 344KEY 345KEY_DEBUG opt_key.h 346 347# Size of the kernel message buffer 348MSGBUF_SIZE opt_msgbuf.h 349 350# PCI related options 351PCI_QUIET opt_pci.h 352 353# NFS options 354NFS_MINATTRTIMO opt_nfs.h 355NFS_MAXATTRTIMO opt_nfs.h 356NFS_MINDIRATTRTIMO opt_nfs.h 357NFS_MAXDIRATTRTIMO opt_nfs.h 358NFS_GATHERDELAY opt_nfs.h 359NFS_UIDHASHSIZ opt_nfs.h 360NFS_WDELAYHASHSIZ opt_nfs.h 361NFS_MUIDHASHSIZ opt_nfs.h 362NFS_NOSERVER opt_nfs.h 363NFS_DEBUG opt_nfs.h 364 365# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver 366OVERRIDE_CARD opt_bktr.h 367OVERRIDE_TUNER opt_bktr.h 368OVERRIDE_DBX opt_bktr.h 369OVERRIDE_MSP opt_bktr.h 370BROOKTREE_SYSTEM_DEFAULT opt_bktr.h 371BKTR_USE_PLL opt_bktr.h 372BKTR_GPIO_ACCESS opt_bktr.h 373BKTR_NO_MSP_RESET opt_bktr.h 374BKTR_430_FX_MODE opt_bktr.h 375BKTR_SIS_VIA_MODE opt_bktr.h 376 377 378# meteor opt_meteor.h 379METEOR_ALLOC_PAGES opt_meteor.h 380METEOR_TEST_VIDEO opt_meteor.h 381METEOR_SYSTEM_DEFAULT opt_meteor.h 382METEOR_DEALLOC_PAGES opt_meteor.h 383METEOR_DEALLOC_ABOVE opt_meteor.h 384 385# Various mi ISA bus flags 386COM_ESP opt_sio.h 387COM_MULTIPORT opt_sio.h 388EXTRA_SIO opt_sio.h 389BREAK_TO_DEBUGGER opt_comconsole.h 390 391# Include tweaks for running under the SimOS machine simulator. 392SIMOS opt_simos.h 393 394# options for bus/device framework 395BUS_DEBUG opt_bus.h 396 397# options for USB support 398UHCI_DEBUG opt_usb.h 399OHCI_DEBUG opt_usb.h 400USB_DEBUG opt_usb.h 401UGEN_DEBUG opt_usb.h 402UHID_DEBUG opt_usb.h 403UHUB_DEBUG opt_usb.h 404UKBD_DEBUG opt_usb.h 405ULPT_DEBUG opt_usb.h 406UMASS_DEBUG opt_usb.h 407UMS_DEBUG opt_usb.h 408 409# Vinum options 410VINUMDEBUG opt_vinum.h 411 412# Embedded system options 413INIT_PATH opt_init_path.h 414 415ROOTDEVNAME opt_rootdevname.h 416 417FDC_DEBUG opt_fdc.h 418FDC_YE opt_fdc.h 419