3 # On the handling of kernel options
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
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.
24 # This handling scheme is not yet fully implemented.
27 # Format of this file:
28 # Option name filename
30 # If filename is missing, the default is
31 # opt_<name-of-option-in-lower-case>.h
33 # Adaptec aic7xxx SCSI controller options
34 AHC_ALLOW_MEMIO opt_aic7xxx.h # Allow PCI devices to use memory
37 AHC_TMODE_ENABLE opt_aic7xxx.h # Bitmap of units to enable
38 # targetmode operations.
40 AHC_DUMP_EEPROM opt_aic7xxx.h # Dump the contents of our
43 ADW_ALLOW_MEMIO opt_adw.h # Allow PCI devices to use memory
46 # Miscellaneous options.
47 COMPAT_43 opt_compat.h
48 COMPAT_SUNOS opt_compat.h
49 COMPILING_LINT opt_lint.h
52 DDB_UNATTENDED opt_ddb.h
53 GDB_REMOTE_CHAT opt_ddb.h
60 MFS_ROOT_SIZE opt_mfs.h
61 NTIMECOUNTER opt_ntp.h
72 SHMMAXPGS opt_sysvipc.h
80 # POSIX kernel options
82 _KPOSIX_PRIORITY_SCHEDULING opt_posix.h
83 _KPOSIX_VERSION opt_posix.h
85 # Do we want the config file compiled into the kernel?
86 INCLUDE_CONFIG_FILE opt_config.h
88 # Options for static file systems. These should only be used at config
89 # time, since the corresponding lkms cannot work if there are any static
90 # dependencies. Unusability is enforced by hiding the defines for the
91 # options in a never-included header.
103 # These static filesystems has one slightly bogus static dependency in
104 # sys/i386/i386/autoconf.c. If any of these filesystems are
105 # statically compiled into the kernel, code for mounting them as root
106 # filesystems will be enabled - but look below. Boot-code is purposely
107 # unavailable for the LKM-based versions.
114 # If you are following the conditions in the copyright,
115 # you can enable soft-updates which will speed up a lot of thigs
116 # and make the system safer from crashes at the same time.
117 # otherwise a STUB module will be compiled in.
118 SOFTUPDATES opt_ffs.h
120 # The above static dependencies are planned removed, with a
121 # <filesystem>_ROOT option to control if it usable as root. This list
122 # allows these options to be present in config files already (though
123 # they won't make any difference yet).
124 CD9660_ROOT opt_cd9660.h
126 NFS_ROOT opt_nfsroot.h
128 # The union static file system has bogus static dependencies, so it isn't
132 # Options used only in param.c.
142 NMBCLUSTERS opt_param.h
152 # Generic SCSI options.
153 CAM_MAX_HIGHPOWER opt_cam.h
155 CAM_DEBUG_DELAY opt_cam.h
156 CAM_DEBUG_BUS opt_cam.h
157 CAM_DEBUG_TARGET opt_cam.h
158 CAM_DEBUG_LUN opt_cam.h
159 CAM_DEBUG_FLAGS opt_cam.h
160 SCSI_DELAY opt_scsi.h
161 SCSI_NO_SENSE_STRINGS opt_scsi.h
162 SCSI_NO_OP_STRINGS opt_scsi.h
164 # Options used only in cam/scsi/scsi_cd.c
165 CHANGER_MIN_BUSY_SECONDS opt_cd.h
166 CHANGER_MAX_BUSY_SECONDS opt_cd.h
168 # Options used only in cam/scsi/scsi_sa.c.
169 SA_SPACE_TIMEOUT opt_sa.h
170 SA_REWIND_TIMEOUT opt_sa.h
171 SA_ERASE_TIMEOUT opt_sa.h
172 SA_1FM_AT_EOD opt_sa.h
174 # Options used only in cam/scsi/scsi_pt.c
175 SCSI_PT_DEFAULT_TIMEOUT opt_pt.h
177 # Options used only in cam/scsi/scsi_ses.c
178 SES_ENABLE_PASSTHROUGH opt_ses.h
180 # Options used in dev/sym/ (Symbios SCSI driver).
181 SYM_SETUP_LP_PROBE_MAP opt_sym.h #-Low Priority Probe Map (bits)
182 # Allows the ncr to take precedence
183 # 1 (1<<0) -> 810a, 860
184 # 2 (1<<1) -> 825a, 875, 885, 895
185 # 4 (1<<2) -> 895a, 896, 1510d
186 SYM_SETUP_SCSI_DIFF opt_sym.h #-HVD support for 825a, 875, 885
187 # disabled:0 (default), enabled:1
188 SYM_SETUP_PCI_PARITY opt_sym.h #-PCI parity checking
189 # disabled:0, enabled:1 (default)
190 SYM_SETUP_MAX_LUN opt_sym.h #-Number of LUNs supported
191 # default:8, range:[1..64]
193 # Options used only in pci/ncr.c
194 SCSI_NCR_DEBUG opt_ncr.h
195 SCSI_NCR_MAX_SYNC opt_ncr.h
196 SCSI_NCR_MAX_WIDE opt_ncr.h
197 SCSI_NCR_MYADDR opt_ncr.h
199 # Options used only in pci/isp_pci.c
200 SCSI_ISP_NO_FWLOAD_MASK opt_isp.h
201 SCSI_ISP_NO_NVRAM_MASK opt_isp.h
202 SCSI_ISP_PREFER_MEM_MAP opt_isp.h
203 SCSI_ISP_FABRIC opt_isp.h
204 SCSI_ISP_SCCLUN opt_isp.h
205 SCSI_ISP_FCDUPLEX opt_isp.h
206 SCSI_ISP_WWN opt_isp.h
207 ISP_DISABLE_1020_SUPPORT opt_isp.h
208 ISP_DISABLE_1080_SUPPORT opt_isp.h
209 ISP_DISABLE_2100_SUPPORT opt_isp.h
210 ISP_DISABLE_2200_SUPPORT opt_isp.h
211 ISP_COMPILE_FW opt_isp.h
212 ISP_COMPILE_1020_FW opt_isp.h
213 ISP_COMPILE_1080_FW opt_isp.h
214 ISP_COMPILE_2100_FW opt_isp.h
215 ISP_COMPILE_2200_FW opt_isp.h
216 ISP_TARGET_MODE opt_isp.h
218 # Options used in the 'ata' ATA/ATAPI driver
219 ATA_STATIC_ID opt_ata.h
220 ATA_ENABLE_ATAPI_DMA opt_ata.h
228 BOOTP_COMPAT opt_bootp.h
229 BOOTP_NFSROOT opt_bootp.h
230 BOOTP_NFSV3 opt_bootp.h
231 BOOTP_WIRED_TO opt_bootp.h
237 MROUTING opt_mrouting.h
241 IPSEC_ESP opt_ipsec.h
242 IPSEC_DEBUG opt_ipsec.h
243 IPSEC_IPV6FWD opt_ipsec.h
246 IPFILTER opt_ipfilter.h
247 IPFILTER_LOG opt_ipfilter.h
248 IPFIREWALL opt_ipfw.h
249 IPFIREWALL_VERBOSE opt_ipfw.h
250 IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h
251 IPFIREWALL_DEFAULT_TO_ACCEPT opt_ipfw.h
252 IPFIREWALL_FORWARD opt_ipfw.h
253 IPV6FIREWALL opt_ip6fw.h
254 IPV6FIREWALL_VERBOSE opt_ip6fw.h
255 IPV6FIREWALL_VERBOSE_LIMIT opt_ip6fw.h
256 IPV6FIREWALL_DEFAULT_TO_ACCEPT opt_ip6fw.h
263 PPP_BSDCOMP opt_ppp.h
264 PPP_DEFLATE opt_ppp.h
266 SLIP_IFF_OPTS opt_slip.h
267 TCP_COMPAT_42 opt_compat.h
269 TCP_DROP_SYNFIN opt_tcp_input.h
270 TCP_RESTRICT_RST opt_tcp_input.h
272 # Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
273 # Each netgraph node type can be either be compiled into the kernel
274 # or loaded dynamically. To get the former, include the corresponding
275 # option below. Each type has its own man page, e.g. ng_async(8).
277 NETGRAPH_ASYNC opt_netgraph.h
278 NETGRAPH_BPF opt_netgraph.h
279 NETGRAPH_CISCO opt_netgraph.h
280 NETGRAPH_ECHO opt_netgraph.h
281 NETGRAPH_FRAME_RELAY opt_netgraph.h
282 NETGRAPH_HOLE opt_netgraph.h
283 NETGRAPH_IFACE opt_netgraph.h
284 NETGRAPH_KSOCKET opt_netgraph.h
285 NETGRAPH_LMI opt_netgraph.h
286 NETGRAPH_PPP opt_netgraph.h
287 NETGRAPH_PPPOE opt_netgraph.h
288 NETGRAPH_PPTPGRE opt_netgraph.h
289 NETGRAPH_RFC1490 opt_netgraph.h
290 NETGRAPH_SOCKET opt_netgraph.h
291 NETGRAPH_TEE opt_netgraph.h
292 NETGRAPH_TTY opt_netgraph.h
293 NETGRAPH_UI opt_netgraph.h
294 NETGRAPH_VJC opt_netgraph.h
303 # XXX Conflict: # of devices vs network protocol (Native ATM).
304 # This makes "atm.h" unusable.
307 DPT_ALLOW_MEMIO opt_dpt.h # Allow PCI devices to use memory
309 # DPT driver debug flags
310 DPT_MEASURE_PERFORMANCE opt_dpt.h
311 DPT_HANDLE_TIMEOUTS opt_dpt.h
312 DPT_TIMEOUT_FACTOR opt_dpt.h
313 DPT_LOST_IRQ opt_dpt.h
314 DPT_RESET_HBA opt_dpt.h
316 # Misc debug flags. Most of these should probably be replaced with
317 # 'DEBUG', and then let people recompile just the interesting modules
318 # with 'make CC="cc -DDEBUG"'.
319 CLUSTERDEBUG opt_debug_cluster.h
320 DEBUG_1284 opt_ppb_1284.h
323 PLIP_DEBUG opt_plip.h
324 LOCKF_DEBUG opt_debug_lockf.h
325 LOUTB opt_debug_outb.h
326 NPX_DEBUG opt_debug_npx.h
327 NETATALKDEBUG opt_atalk.h
328 SI_DEBUG opt_debug_si.h
332 FB_INSTALL_CDEV opt_fb.h
334 # ppbus related options
335 PERIPH_1284 opt_ppb_1284.h
336 DONTPROBE_1284 opt_ppb_1284.h
338 # smbus related options
339 ENABLE_ALART opt_intpm.h
341 # These cause changes all over the kernel
342 BLKDEV_IOSIZE opt_global.h
344 DEBUG_LOCKS opt_global.h
345 DEBUG_VFS_LOCKS opt_global.h
346 DIAGNOSTIC opt_global.h
347 ENABLE_VFS_IOOPT opt_global.h
348 INVARIANT_SUPPORT opt_global.h
349 INVARIANTS opt_global.h
350 SIMPLELOCK_DEBUG opt_global.h
351 VFS_BIO_DEBUG opt_global.h
353 # These are VM related options
354 VM_KMEM_SIZE opt_vm.h
355 VM_KMEM_SIZE_SCALE opt_vm.h
356 VM_KMEM_SIZE_MAX opt_vm.h
358 PQ_NOOPT opt_vmpage.h
359 PQ_NORMALCACHE opt_vmpage.h
360 PQ_MEDIUMCACHE opt_vmpage.h
361 PQ_LARGECACHE opt_vmpage.h
362 PQ_HUGECACHE opt_vmpage.h
364 # Standard SMP options
372 # Size of the kernel message buffer
373 MSGBUF_SIZE opt_msgbuf.h
375 # PCI related options
380 NFS_MINATTRTIMO opt_nfs.h
381 NFS_MAXATTRTIMO opt_nfs.h
382 NFS_MINDIRATTRTIMO opt_nfs.h
383 NFS_MAXDIRATTRTIMO opt_nfs.h
384 NFS_GATHERDELAY opt_nfs.h
385 NFS_UIDHASHSIZ opt_nfs.h
386 NFS_WDELAYHASHSIZ opt_nfs.h
387 NFS_MUIDHASHSIZ opt_nfs.h
388 NFS_NOSERVER opt_nfs.h
391 # For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
392 OVERRIDE_CARD opt_bktr.h
393 OVERRIDE_TUNER opt_bktr.h
394 OVERRIDE_DBX opt_bktr.h
395 OVERRIDE_MSP opt_bktr.h
396 BROOKTREE_SYSTEM_DEFAULT opt_bktr.h
397 BKTR_USE_PLL opt_bktr.h
398 BKTR_GPIO_ACCESS opt_bktr.h
399 BKTR_NO_MSP_RESET opt_bktr.h
400 BKTR_430_FX_MODE opt_bktr.h
401 BKTR_SIS_VIA_MODE opt_bktr.h
404 # meteor opt_meteor.h
405 METEOR_ALLOC_PAGES opt_meteor.h
406 METEOR_TEST_VIDEO opt_meteor.h
407 METEOR_SYSTEM_DEFAULT opt_meteor.h
408 METEOR_DEALLOC_PAGES opt_meteor.h
409 METEOR_DEALLOC_ABOVE opt_meteor.h
411 # Various mi ISA bus flags
413 COM_MULTIPORT opt_sio.h
414 BREAK_TO_DEBUGGER opt_comconsole.h
416 # Include tweaks for running under the SimOS machine simulator.
419 # options for bus/device framework
421 DEVICE_SYSCTLS opt_bus.h
423 # options for USB support
432 UMASS_DEBUG opt_usb.h
437 VINUMDEBUG opt_vinum.h
439 # Embedded system options
440 INIT_PATH opt_init_path.h
442 ROOTDEVNAME opt_rootdevname.h
445 PCFCLOCK_VERBOSE opt_pcfclock.h
446 PCFCLOCK_MAX_RETRIES opt_pcfclock.h