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