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