xref: /dragonfly/sys/conf/options (revision 9b5ae8ee)
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.76 2007/12/23 04:46:04 pavalos 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 thigs
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
208CAM_NEW_TRAN_CODE	opt_cam.h
209SCSI_DELAY		opt_scsi.h
210SCSI_NO_SENSE_STRINGS	opt_scsi.h
211SCSI_NO_OP_STRINGS	opt_scsi.h
212
213# Options used only in cam/scsi/scsi_cd.c
214CHANGER_MIN_BUSY_SECONDS	opt_cd.h
215CHANGER_MAX_BUSY_SECONDS	opt_cd.h
216
217# Options used only in cam/scsi/scsi_sa.c.
218SA_IO_TIMEOUT		opt_sa.h
219SA_SPACE_TIMEOUT	opt_sa.h
220SA_REWIND_TIMEOUT	opt_sa.h
221SA_ERASE_TIMEOUT	opt_sa.h
222SA_1FM_AT_EOD		opt_sa.h
223
224# Options used only in cam/scsi/scsi_pt.c
225SCSI_PT_DEFAULT_TIMEOUT	opt_pt.h
226
227# Options used only in cam/scsi/scsi_ses.c
228SES_ENABLE_PASSTHROUGH	opt_ses.h
229
230# Options used in dev/sym/ (Symbios SCSI driver).
231SYM_SETUP_LP_PROBE_MAP	opt_sym.h	#-Low Priority Probe Map (bits)
232					# Allows the ncr to take precedence
233					# 1 (1<<0) -> 810a, 860
234					# 2 (1<<1) -> 825a, 875, 885, 895
235					# 4 (1<<2) -> 895a, 896, 1510d
236SYM_SETUP_SCSI_DIFF	opt_sym.h	#-HVD support for 825a, 875, 885
237					# disabled:0 (default), enabled:1
238SYM_SETUP_PCI_PARITY	opt_sym.h	#-PCI parity checking
239					# disabled:0, enabled:1 (default)
240SYM_SETUP_MAX_LUN	opt_sym.h	#-Number of LUNs supported
241					# default:8, range:[1..64]
242
243# Options used only in pci/ncr.c
244SCSI_NCR_DEBUG		opt_ncr.h
245SCSI_NCR_MAX_SYNC	opt_ncr.h
246SCSI_NCR_MAX_WIDE	opt_ncr.h
247SCSI_NCR_MYADDR		opt_ncr.h
248
249# Options used only in pci/isp_pci.c
250ISP_TARGET_MODE		opt_isp.h
251
252# Options used in the 'ata' ATA/ATAPI driver
253ATA_STATIC_ID		opt_ata.h
254
255# Net stuff.
256# altq stuff
257ALTQ			opt_global.h
258ALTQ_CBQ		opt_altq.h
259ALTQ_RED		opt_altq.h
260ALTQ_RIO		opt_altq.h
261ALTQ_HFSC		opt_altq.h
262ALTQ_PRIQ		opt_altq.h
263ALTQ_NOPCC		opt_altq.h
264ALTQ_DEBUG		opt_altq.h
265
266ACCEPT_FILTER_DATA
267ACCEPT_FILTER_HTTP
268BOOTP			opt_bootp.h
269BOOTP_COMPAT		opt_bootp.h
270BOOTP_NFSROOT		opt_bootp.h
271BOOTP_NFSV3		opt_bootp.h
272BOOTP_WIRED_TO		opt_bootp.h
273CARP			opt_carp.h
274ETHER_II		opt_ef.h
275ETHER_8023		opt_ef.h
276ETHER_8022		opt_ef.h
277ETHER_SNAP		opt_ef.h
278MROUTING		opt_mrouting.h
279PIM			opt_mrouting.h
280INET			opt_inet.h
281INET6			opt_inet6.h
282IPSEC			opt_ipsec.h
283IPSEC_ESP		opt_ipsec.h
284IPSEC_DEBUG		opt_ipsec.h
285IPSEC_FILTERGIF		opt_ipsec.h
286FAST_IPSEC		opt_ipsec.h
287IPDIVERT
288DUMMYNET		opt_ipdn.h
289IPFILTER		opt_ipfilter.h
290IPFILTER_LOG		opt_ipfilter.h
291IPFILTER_DEFAULT_BLOCK	opt_ipfilter.h
292IPFIREWALL		opt_ipfw.h
293IPFIREWALL_VERBOSE	opt_ipfw.h
294IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
295IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
296IPFIREWALL_FORWARD		opt_ipfw.h
297IPV6FIREWALL		opt_ip6fw.h
298IPV6FIREWALL_VERBOSE	opt_ip6fw.h
299IPV6FIREWALL_VERBOSE_LIMIT	opt_ip6fw.h
300IPV6FIREWALL_DEFAULT_TO_ACCEPT	opt_ip6fw.h
301IPSTEALTH
302IPX			opt_ipx.h
303IPXIP			opt_ipx.h
304IPTUNNEL		opt_ipx.h
305LIBMCHAIN
306NCP			opt_ncp.h
307NETATALK		opt_atalk.h
308NS			opt_ns.h
309PPP_BSDCOMP		opt_ppp.h
310PPP_DEFLATE		opt_ppp.h
311PPP_FILTER		opt_ppp.h
312SLIP_IFF_OPTS		opt_slip.h
313TCPDEBUG
314TCP_DROP_SYNFIN		opt_tcp_input.h
315
316XBONEHACK
317MBUF_STRESS_TEST	opt_mbuf_stress_test.h
318
319# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
320# Each netgraph node type can be either be compiled into the kernel
321# or loaded dynamically. To get the former, include the corresponding
322# option below. Each type has its own man page, e.g. ng_async(8).
323NETGRAPH
324NETGRAPH_ASYNC		opt_netgraph.h
325NETGRAPH_BPF		opt_netgraph.h
326NETGRAPH_BRIDGE		opt_netgraph.h
327NETGRAPH_CISCO		opt_netgraph.h
328NETGRAPH_ECHO		opt_netgraph.h
329NETGRAPH_EIFACE		opt_netgraph.h
330NETGRAPH_ETHER		opt_netgraph.h
331NETGRAPH_FRAME_RELAY	opt_netgraph.h
332NETGRAPH_HOLE		opt_netgraph.h
333NETGRAPH_IFACE		opt_netgraph.h
334NETGRAPH_KSOCKET	opt_netgraph.h
335NETGRAPH_LMI		opt_netgraph.h
336NETGRAPH_L2TP		opt_netgraph.h
337# MPPC compression requires proprietary files (not included)
338NETGRAPH_MPPC_COMPRESSION	opt_netgraph.h
339NETGRAPH_MPPC_ENCRYPTION	opt_netgraph.h
340NETGRAPH_ONE2MANY	opt_netgraph.h
341NETGRAPH_PPP		opt_netgraph.h
342NETGRAPH_PPPOE		opt_netgraph.h
343NETGRAPH_PPTPGRE	opt_netgraph.h
344NETGRAPH_RFC1490	opt_netgraph.h
345NETGRAPH_SOCKET		opt_netgraph.h
346NETGRAPH_TEE		opt_netgraph.h
347NETGRAPH_TTY		opt_netgraph.h
348NETGRAPH_UI		opt_netgraph.h
349NETGRAPH_VJC		opt_netgraph.h
350
351# DRM options
352DRM_DEBUG		opt_drm.h
353DRM_LINUX		opt_drm.h
354
355# ATM (HARP version)
356ATM_CORE		opt_atm.h
357ATM_IP			opt_atm.h
358ATM_SIGPVC		opt_atm.h
359ATM_SPANS		opt_atm.h
360ATM_UNI			opt_atm.h
361
362# XXX Conflict: # of devices vs network protocol (Native ATM).
363# This makes "atm.h" unusable.
364NATM			opt_natm.h
365
366# DPT driver debug flags
367DPT_MEASURE_PERFORMANCE	opt_dpt.h
368DPT_HANDLE_TIMEOUTS	opt_dpt.h
369DPT_TIMEOUT_FACTOR	opt_dpt.h
370DPT_LOST_IRQ		opt_dpt.h
371DPT_RESET_HBA		opt_dpt.h
372
373# Misc debug flags.  Most of these should probably be replaced with
374# 'DEBUG', and then let people recompile just the interesting modules
375# with 'make CC="cc -DDEBUG"'.
376CLUSTERDEBUG		opt_debug_cluster.h
377DEBUG_1284		opt_ppb_1284.h
378VP0_DEBUG		opt_vpo.h
379LPT_DEBUG		opt_lpt.h
380PLIP_DEBUG		opt_plip.h
381LOCKF_DEBUG		opt_debug_lockf.h
382LOUTB			opt_debug_outb.h
383NPX_DEBUG		opt_debug_npx.h
384NETATALKDEBUG		opt_atalk.h
385SI_DEBUG		opt_debug_si.h
386
387# Fb options
388FB_DEBUG		opt_fb.h
389FB_INSTALL_CDEV		opt_fb.h
390
391# ppbus related options
392PERIPH_1284		opt_ppb_1284.h
393DONTPROBE_1284		opt_ppb_1284.h
394
395# smbus related options
396ENABLE_ALART		opt_intpm.h
397
398# These cause changes all over the kernel
399BLKDEV_IOSIZE		opt_global.h
400DEBUG			opt_global.h
401DEBUG_LOCKS		opt_global.h
402DEBUG_CRIT_SECTIONS	opt_global.h
403DIAGNOSTIC		opt_global.h
404INVARIANTS		opt_global.h
405SIMPLELOCK_DEBUG	opt_global.h
406VFS_BIO_DEBUG		opt_global.h
407DEBUG_INTERRUPTS	opt_global.h
408SOCKBUF_DEBUG		opt_global.h
409PANIC_DEBUG		opt_global.h
410MBUF_DEBUG		opt_global.h
411
412# Sample system/interrupt PC
413DEBUG_PCTRACK		opt_pctrack.h
414
415# These are VM related options
416NO_SWAPPING		opt_vm.h
417PQ_CACHESIZE		opt_vmpage.h
418
419# Standard SMP options
420SMP			opt_global.h
421
422# sys/netkey
423KEY
424
425# Size of the kernel message buffer
426MSGBUF_SIZE		opt_msgbuf.h
427
428# PCI related options
429PCI_QUIET		opt_pci.h
430PCI_ENABLE_IO_MODES	opt_pci.h
431PCI_MAP_FIXUP		opt_pci.h
432COMPAT_OLDPCI
433
434# NFS options
435NFS_MINATTRTIMO		opt_nfs.h
436NFS_MAXATTRTIMO		opt_nfs.h
437NFS_MINDIRATTRTIMO	opt_nfs.h
438NFS_MAXDIRATTRTIMO	opt_nfs.h
439NFS_GATHERDELAY		opt_nfs.h
440NFS_UIDHASHSIZ		opt_nfs.h
441NFS_WDELAYHASHSIZ	opt_nfs.h
442NFS_MUIDHASHSIZ		opt_nfs.h
443NFS_NOSERVER		opt_nfs.h
444NFS_DEBUG		opt_nfs.h
445
446# MSDOSFS options
447MSDOSFS_DEBUG		opt_msdosfs.h
448
449# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
450BROOKTREE_SYSTEM_DEFAULT	opt_bktr.h
451BROOKTREE_ALLOC_PAGES		opt_bktr.h
452BKTR_OVERRIDE_CARD		opt_bktr.h
453BKTR_OVERRIDE_TUNER		opt_bktr.h
454BKTR_OVERRIDE_DBX		opt_bktr.h
455BKTR_OVERRIDE_MSP		opt_bktr.h
456BKTR_SYSTEM_DEFAULT		opt_bktr.h
457BKTR_ALLOC_PAGES		opt_bktr.h
458BKTR_USE_PLL			opt_bktr.h
459BKTR_GPIO_ACCESS		opt_bktr.h
460BKTR_NO_MSP_RESET		opt_bktr.h
461BKTR_430_FX_MODE		opt_bktr.h
462BKTR_SIS_VIA_MODE		opt_bktr.h
463BKTR_NEW_MSP34XX_DRIVER		opt_bktr.h
464
465# meteor opt_meteor.h
466METEOR_ALLOC_PAGES	opt_meteor.h
467METEOR_TEST_VIDEO	opt_meteor.h
468METEOR_SYSTEM_DEFAULT	opt_meteor.h
469METEOR_DEALLOC_PAGES	opt_meteor.h
470METEOR_DEALLOC_ABOVE	opt_meteor.h
471
472# Various mi ISA bus flags
473COMPAT_OLDISA		opt_compat_oldisa.h
474COM_ESP			opt_sio.h
475COM_MULTIPORT		opt_sio.h
476BREAK_TO_DEBUGGER	opt_comconsole.h
477ALT_BREAK_TO_DEBUGGER	opt_comconsole.h
478
479# options for bus/device framework
480BUS_DEBUG		opt_bus.h
481DEVICE_SYSCTLS		opt_bus.h
482
483# options for USB support
484OHCI_DEBUG		opt_usb.h
485USB_DEBUG		opt_usb.h
486
487# Vinum options
488VINUMDEBUG		opt_vinum.h
489
490# Embedded system options
491UKBD_DFLT_KEYMAP	opt_ukbd.h
492INIT_PATH		opt_init_path.h
493
494ROOTDEVNAME		opt_rootdevname.h
495
496FDC_DEBUG		opt_fdc.h
497PCFCLOCK_VERBOSE	opt_pcfclock.h
498PCFCLOCK_MAX_RETRIES	opt_pcfclock.h
499
500# Polling device handling
501DEVICE_POLLING		opt_polling.h
502
503# options for ubsec driver
504UBSEC_DEBUG		opt_ubsec.h
505UBSEC_RNDTEST		opt_ubsec.h
506UBSEC_NO_RNG		opt_ubsec.h
507
508# options for hifn driver
509HIFN_DEBUG		opt_hifn.h
510HIFN_RNDTEST		opt_hifn.h
511HIFN_NO_RNG		opt_hifn.h
512
513# KTR options
514KTR				opt_global.h
515KTR_ALL				opt_ktr.h
516KTR_TOKENS			opt_ktr.h
517KTR_MEMORY			opt_ktr.h
518KTR_USB_MEMORY			opt_ktr.h
519KTR_IPIQ			opt_ktr.h
520KTR_MSGPORT			opt_ktr.h
521KTR_ENTRIES			opt_global.h
522KTR_VERBOSE			opt_ktr.h
523KTR_GIANT_CONTENTION		opt_ktr.h
524KTR_SPIN_CONTENTION		opt_ktr.h
525KTR_IF_BGE			opt_ktr.h
526KTR_IF_EM			opt_ktr.h
527
528# bce driver
529BCE_DEBUG		opt_bce.h
530BCE_NVRAM_WRITE_SUPPORT	opt_bce.h
531
532# ed driver
533ED_NO_MIIBUS		opt_ed.h
534
535# wi driver
536WI_SYMBOL_FIRMWARE	opt_wi.h
537
538# dcons options
539DCONS_BUF_SIZE		opt_dcons.h
540DCONS_POLL_HZ		opt_dcons.h
541DCONS_FORCE_CONSOLE	opt_dcons.h
542DCONS_FORCE_GDB		opt_dcons.h
543
544# deprecated drivers and options
545I_WANT_DEPRECATED_STUFF	opt_deprecated.h
546
547# SCTP
548SCTP			opt_sctp.h
549SCTP_DEBUG		opt_sctp.h
550SCTP_USE_ADLER32	opt_sctp.h
551SCTP_HIGH_SPEED		opt_sctp.h
552SCTP_STAT_LOGGING	opt_sctp.h
553SCTP_CWND_LOGGING	opt_sctp.h
554SCTP_BLK_LOGGING	opt_sctp.h
555SCTP_STR_LOGGING	opt_sctp.h
556SCTP_FR_LOGGING		opt_sctp.h
557SCTP_MAP_LOGGING	opt_sctp.h
558
559# syslink kernel support
560#
561SYSLINK			opt_syslink.h
562