xref: /dragonfly/sys/conf/options (revision 9bb2a92d)
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.15 2004/02/24 18:09:12 joerg 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# "<machine>/conf/options.<machine>".  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_COMPAT_LINUX	opt_aac.h	# Enable the linux ioctl interface
36
37AAC_DEBUG		opt_aac.h	# Debugging levels:
38					# 0 - quiet, only emit warnings
39					# 1 - noisy, emit major function
40					#     points and things done
41					# 2 - extremely noisy, emit trace
42					#     items in loops, etc.
43
44# Adaptec aic7xxx SCSI controller options
45AHC_ALLOW_MEMIO		opt_aic7xxx.h	# Allow PCI devices to use memory
46					# mapped I/O
47
48AHC_TMODE_ENABLE	opt_aic7xxx.h	# Bitmap of units to enable
49					# targetmode operations.
50
51AHC_DUMP_EEPROM		opt_aic7xxx.h	# Dump the contents of our
52					# configuration prom.
53
54AHC_DEBUG		opt_aic7xxx.h	# Compile in Aic7xxx Debugging code.
55
56AHC_DEBUG_OPTS		opt_aic7xxx.h	# Aic7xxx driver debugging options.
57					# See sys/dev/aic7xxx/aic7xxx.h
58
59AHC_REG_PRETTY_PRINT	opt_aic7xxx.h	# Print register bitfields in debug
60					# output.  Adds ~15k to driver.
61
62# Adaptec aic79xx SCSI controller options
63AHD_DEBUG		opt_aic79xx.h	# Compile in Aic79xx Debugging code.
64
65AHD_DEBUG_OPTS		opt_aic79xx.h	# Aic79xx driver debugging options.
66					# See sys/dev/aic7xxx/aic79xx.h
67
68AHD_TMODE_ENABLE	opt_aic79xx.h	# Bitmap of units to enable
69					# targetmode operations.
70
71AHD_REG_PRETTY_PRINT	opt_aic79xx.h	# Print register bitfields in debug
72					# output.  Adds ~15k to driver.
73
74ADW_ALLOW_MEMIO		opt_adw.h	# Allow PCI devices to use memory
75					# mapped I/O
76
77#options for ACPI support
78ACPI_DEBUG		opt_acpi.h
79ACPI_NO_SEMAPHORES	opt_acpi.h
80ACPI_MAX_THREADS	opt_acpi.h
81
82# Miscellaneous options.
83COMPAT_43	opt_compat.h
84COMPAT_SUNOS	opt_compat.h
85COMPILING_LINT	opt_lint.h
86CY_PCI_FASTINTR
87DDB
88DDB_TRACE
89DDB_UNATTENDED	opt_ddb.h
90GDB_REMOTE_CHAT	opt_ddb.h
91HW_WDOG
92KTRACE
93LIBICONV
94MD_NSECT	opt_md.h
95MD_ROOT		opt_md.h
96MD_ROOT_SIZE	opt_md.h
97MFS_ROOT	opt_mfs.h
98MFS_ROOT_SIZE	opt_mfs.h
99NTIMECOUNTER	opt_ntp.h
100NSWAPDEV	opt_swap.h
101NSWBUF_MIN	opt_swap.h
102PPS_SYNC	opt_ntp.h
103QUOTA
104SPX_HACK
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
146KERNFS		opt_dontuse.h
147MFS		opt_dontuse.h
148MSDOSFS		opt_dontuse.h
149NULLFS		opt_dontuse.h
150PORTAL		opt_dontuse.h
151PROCFS		opt_dontuse.h
152UMAPFS		opt_dontuse.h
153NTFS		opt_dontuse.h
154
155# These static filesystems has one slightly bogus static dependency in
156# sys/i386/i386/autoconf.c.  If any of these filesystems are
157# statically compiled into the kernel, code for mounting them as root
158# filesystems will be enabled - but look below.  Boot-code is purposely
159# unavailable for the LKM-based versions.
160CODA
161CD9660
162FFS
163NFS
164NWFS
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).
179CD9660_ROOT	opt_cd9660.h
180FFS_ROOT	opt_ffs.h
181NFS_ROOT	opt_nfsroot.h
182
183# The union static file system has bogus static dependencies, so it isn't
184# hidden yet.
185UNION
186
187# Options used only in subr_param.c.
188HZ		opt_param.h
189MAXFILES	opt_param.h
190NBUF		opt_param.h
191NMBCLUSTERS	opt_param.h
192NMBUFS		opt_param.h
193NSFBUFS		opt_param.h
194VM_BCACHE_SIZE_MAX	opt_param.h
195VM_SWZONE_SIZE_MAX	opt_param.h
196MAXUSERS
197DFLDSIZ		opt_param.h
198MAXDSIZ		opt_param.h
199MAXSSIZ		opt_param.h
200
201# Generic SCSI options.
202CAM_MAX_HIGHPOWER	opt_cam.h
203CAMDEBUG		opt_cam.h
204CAM_DEBUG_DELAY		opt_cam.h
205CAM_DEBUG_BUS		opt_cam.h
206CAM_DEBUG_TARGET	opt_cam.h
207CAM_DEBUG_LUN		opt_cam.h
208CAM_DEBUG_FLAGS		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.
256ACCEPT_FILTER_DATA
257ACCEPT_FILTER_HTTP
258BOOTP			opt_bootp.h
259BOOTP_COMPAT		opt_bootp.h
260BOOTP_NFSROOT		opt_bootp.h
261BOOTP_NFSV3		opt_bootp.h
262BOOTP_WIRED_TO		opt_bootp.h
263BRIDGE			opt_bdg.h
264ETHER_II		opt_ef.h
265ETHER_8023		opt_ef.h
266ETHER_8022		opt_ef.h
267ETHER_SNAP		opt_ef.h
268MROUTING		opt_mrouting.h
269PIM			opt_mrouting.h
270INET			opt_inet.h
271INET6			opt_inet6.h
272IPSEC			opt_ipsec.h
273IPSEC_ESP		opt_ipsec.h
274IPSEC_DEBUG		opt_ipsec.h
275IPSEC_FILTERGIF		opt_ipsec.h
276FAST_IPSEC		opt_ipsec.h
277IPDIVERT
278DUMMYNET		opt_ipdn.h
279IPFILTER		opt_ipfilter.h
280IPFILTER_LOG		opt_ipfilter.h
281IPFILTER_DEFAULT_BLOCK	opt_ipfilter.h
282PFIL_HOOKS		opt_pfil_hooks.h
283IPFIREWALL		opt_ipfw.h
284IPFW2			opt_ipfw.h
285IPFIREWALL_VERBOSE	opt_ipfw.h
286IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
287IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
288IPFIREWALL_FORWARD		opt_ipfw.h
289IPV6FIREWALL		opt_ip6fw.h
290IPV6FIREWALL_VERBOSE	opt_ip6fw.h
291IPV6FIREWALL_VERBOSE_LIMIT	opt_ip6fw.h
292IPV6FIREWALL_DEFAULT_TO_ACCEPT	opt_ip6fw.h
293IPSTEALTH
294IPX			opt_ipx.h
295IPXIP			opt_ipx.h
296IPTUNNEL		opt_ipx.h
297LIBMCHAIN
298NCP			opt_ncp.h
299NETATALK		opt_atalk.h
300NS			opt_ns.h
301PPP_BSDCOMP		opt_ppp.h
302PPP_DEFLATE		opt_ppp.h
303PPP_FILTER		opt_ppp.h
304RANDOM_IP_ID
305SLIP_IFF_OPTS		opt_slip.h
306TCPDEBUG
307TCP_DROP_SYNFIN		opt_tcp_input.h
308XBONEHACK
309MBUF_STRESS_TEST	opt_mbuf_stress_test.h
310
311# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
312# Each netgraph node type can be either be compiled into the kernel
313# or loaded dynamically. To get the former, include the corresponding
314# option below. Each type has its own man page, e.g. ng_async(8).
315NETGRAPH
316NETGRAPH_ASYNC		opt_netgraph.h
317NETGRAPH_BPF		opt_netgraph.h
318NETGRAPH_BRIDGE		opt_netgraph.h
319NETGRAPH_CISCO		opt_netgraph.h
320NETGRAPH_ECHO		opt_netgraph.h
321NETGRAPH_ETHER		opt_netgraph.h
322NETGRAPH_FRAME_RELAY	opt_netgraph.h
323NETGRAPH_HOLE		opt_netgraph.h
324NETGRAPH_IFACE		opt_netgraph.h
325NETGRAPH_KSOCKET	opt_netgraph.h
326NETGRAPH_LMI		opt_netgraph.h
327NETGRAPH_L2TP		opt_netgraph.h
328# MPPC compression requires proprietary files (not included)
329NETGRAPH_MPPC_COMPRESSION	opt_netgraph.h
330NETGRAPH_MPPC_ENCRYPTION	opt_netgraph.h
331NETGRAPH_ONE2MANY	opt_netgraph.h
332NETGRAPH_PPP		opt_netgraph.h
333NETGRAPH_PPPOE		opt_netgraph.h
334NETGRAPH_PPTPGRE	opt_netgraph.h
335NETGRAPH_RFC1490	opt_netgraph.h
336NETGRAPH_SOCKET		opt_netgraph.h
337NETGRAPH_TEE		opt_netgraph.h
338NETGRAPH_TTY		opt_netgraph.h
339NETGRAPH_UI		opt_netgraph.h
340NETGRAPH_VJC		opt_netgraph.h
341
342# DRM options
343DRM_DEBUG		opt_drm.h
344
345# ATM (HARP version)
346ATM_CORE		opt_atm.h
347ATM_IP			opt_atm.h
348ATM_SIGPVC		opt_atm.h
349ATM_SPANS		opt_atm.h
350ATM_UNI			opt_atm.h
351
352# XXX Conflict: # of devices vs network protocol (Native ATM).
353# This makes "atm.h" unusable.
354NATM			opt_natm.h
355
356DPT_ALLOW_MEMIO		opt_dpt.h	# Allow PCI devices to use memory
357					# mapped I/O
358# DPT driver debug flags
359DPT_MEASURE_PERFORMANCE	opt_dpt.h
360DPT_HANDLE_TIMEOUTS	opt_dpt.h
361DPT_TIMEOUT_FACTOR	opt_dpt.h
362DPT_LOST_IRQ		opt_dpt.h
363DPT_RESET_HBA		opt_dpt.h
364
365# Adaptec ASR and DPT V/VI controller options
366ASR_MEASURE_PERFORMANCE	opt_asr.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_VFS_LOCKS		opt_global.h
398DIAGNOSTIC		opt_global.h
399ENABLE_VFS_IOOPT	opt_global.h
400INVARIANT_SUPPORT	opt_global.h
401INVARIANTS		opt_global.h
402SIMPLELOCK_DEBUG	opt_global.h
403VFS_BIO_DEBUG		opt_global.h
404DEBUG_INTERRUPTS	opt_global.h
405
406# These are VM related options
407VM_KMEM_SIZE		opt_vm.h
408VM_KMEM_SIZE_SCALE	opt_vm.h
409VM_KMEM_SIZE_MAX	opt_vm.h
410NO_SWAPPING		opt_vm.h
411PQ_NOOPT		opt_vmpage.h
412PQ_NORMALCACHE		opt_vmpage.h
413PQ_MEDIUMCACHE		opt_vmpage.h
414PQ_LARGECACHE		opt_vmpage.h
415PQ_HUGECACHE		opt_vmpage.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
430COMPAT_OLDPCI
431
432# NFS options
433NFS_MINATTRTIMO		opt_nfs.h
434NFS_MAXATTRTIMO		opt_nfs.h
435NFS_MINDIRATTRTIMO	opt_nfs.h
436NFS_MAXDIRATTRTIMO	opt_nfs.h
437NFS_GATHERDELAY		opt_nfs.h
438NFS_UIDHASHSIZ		opt_nfs.h
439NFS_WDELAYHASHSIZ	opt_nfs.h
440NFS_MUIDHASHSIZ		opt_nfs.h
441NFS_NOSERVER		opt_nfs.h
442NFS_DEBUG		opt_nfs.h
443
444# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
445OVERRIDE_CARD			opt_bktr.h
446OVERRIDE_TUNER			opt_bktr.h
447OVERRIDE_DBX			opt_bktr.h
448OVERRIDE_MSP			opt_bktr.h
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
462
463# meteor opt_meteor.h
464METEOR_ALLOC_PAGES	opt_meteor.h
465METEOR_TEST_VIDEO	opt_meteor.h
466METEOR_SYSTEM_DEFAULT	opt_meteor.h
467METEOR_DEALLOC_PAGES	opt_meteor.h
468METEOR_DEALLOC_ABOVE	opt_meteor.h
469
470# Various mi ISA bus flags
471COMPAT_OLDISA		opt_compat_oldisa.h
472COM_ESP			opt_sio.h
473COM_MULTIPORT		opt_sio.h
474BREAK_TO_DEBUGGER	opt_comconsole.h
475ALT_BREAK_TO_DEBUGGER	opt_comconsole.h
476
477# Include tweaks for running under the SimOS machine simulator.
478SIMOS			opt_simos.h
479
480# options for bus/device framework
481BUS_DEBUG		opt_bus.h
482DEVICE_SYSCTLS		opt_bus.h
483
484# options for USB support
485UHCI_DEBUG		opt_usb.h
486OHCI_DEBUG		opt_usb.h
487USB_DEBUG		opt_usb.h
488UGEN_DEBUG		opt_usb.h
489UHID_DEBUG		opt_usb.h
490UHUB_DEBUG		opt_usb.h
491UKBD_DEBUG		opt_usb.h
492ULPT_DEBUG		opt_usb.h
493UMASS_DEBUG		opt_usb.h
494UMS_DEBUG		opt_usb.h
495
496# Vinum options
497VINUMDEBUG		opt_vinum.h
498
499# Embedded system options
500UKBD_DFLT_KEYMAP	opt_ukbd.h
501INIT_PATH		opt_init_path.h
502
503ROOTDEVNAME		opt_rootdevname.h
504
505FDC_DEBUG		opt_fdc.h
506PCFCLOCK_VERBOSE	opt_pcfclock.h
507PCFCLOCK_MAX_RETRIES	opt_pcfclock.h
508
509# Polling device handling
510DEVICE_POLLING		opt_global.h
511
512# options for ubsec driver
513UBSEC_DEBUG		opt_ubsec.h
514UBSEC_RNDTEST		opt_ubsec.h
515UBSEC_NO_RNG		opt_ubsec.h
516
517# options for hifn driver
518HIFN_DEBUG		opt_hifn.h
519HIFN_RNDTEST		opt_hifn.h
520HIFN_NO_RNG		opt_hifn.h
521
522# ed driver
523ED_NO_MIIBUS		opt_ed.h
524