options revision 79100
1# $FreeBSD: head/sys/conf/options 79100 2001-07-02 17:48:59Z mjacob $
2#
3#        On the handling of kernel options
4#
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 check
11# for COMPILING_LINT to get maximum code coverage.
12#
13# All new options shall also be listed in either "conf/options" or
14# "<machine>/conf/options.<machine>".  Options that affect a single
15# source-file <xxx>.[c|s] should be directed into "opt_<xxx>.h", while
16# options that affect multiple files should either go in
17# "opt_global.h" if this is a kernel-wide option (used just about
18# everywhere), or in "opt_<option-name-in-lower-case>.h" if it affect
19# only some files.  Note that the effect of listing only an option
20# without a header-file-name in conf/options (and cousins) is that the
21# last convention is followed.
22#
23# This handling scheme is not yet fully implemented.
24#
25#
26# Format of this file:
27# Option name	filename
28#
29# If filename is missing, the default is
30# opt_<name-of-option-in-lower-case>.h
31
32# Adaptec Array Controller driver options
33AAC_COMPAT_LINUX	opt_aac.h	# Enable the linux ioctl interface
34
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_SEQUENCER	opt_aic7xxx.h	# Enable diagnostic sequencer code
53
54ADW_ALLOW_MEMIO		opt_adw.h	# Allow PCI devices to use memory
55					# mapped I/O
56
57# Miscellaneous options.
58BLEED
59COMPAT_43	opt_compat.h
60COMPAT_SUNOS	opt_compat.h
61COMPILING_LINT	opt_global.h
62CY_PCI_FASTINTR
63DDB
64DDB_UNATTENDED	opt_ddb.h
65GDB_REMOTE_CHAT	opt_ddb.h
66NODEVFS		opt_devfs.h
67HW_WDOG
68KTRACE
69LIBICONV
70MD_ROOT		opt_md.h
71MD_ROOT_SIZE	opt_md.h
72NTIMECOUNTER	opt_ntp.h
73NSWAPDEV	opt_swap.h
74PPS_SYNC	opt_ntp.h
75QUOTA
76SPX_HACK
77SUIDDIR		opt_suiddir.h
78SYSVMSG		opt_sysvipc.h
79SYSVSEM		opt_sysvipc.h
80SYSVSHM		opt_sysvipc.h
81SHMALL		opt_sysvipc.h
82SHMMAX		opt_sysvipc.h
83SHMMAXPGS	opt_sysvipc.h
84SHMMIN		opt_sysvipc.h
85SHMMNI		opt_sysvipc.h
86SHMSEG		opt_sysvipc.h
87SEMMAP		opt_sysvipc.h
88SEMMNI		opt_sysvipc.h
89SEMMNS		opt_sysvipc.h
90SEMMNU		opt_sysvipc.h
91SEMMSL		opt_sysvipc.h
92SEMOPM		opt_sysvipc.h
93SEMUME		opt_sysvipc.h
94MSGMNB		opt_sysvipc.h
95MSGMNI		opt_sysvipc.h
96MSGSEG		opt_sysvipc.h
97MSGSSZ		opt_sysvipc.h
98MSGTQL		opt_sysvipc.h
99UCONSOLE
100VFS_AIO
101
102# POSIX kernel options
103P1003_1B			opt_posix.h
104_KPOSIX_PRIORITY_SCHEDULING	opt_posix.h
105_KPOSIX_VERSION			opt_posix.h
106
107# TrustedBSD and POSIX.1e Kernel Options
108CAPABILITIES	opt_cap.h
109
110# Do we want the config file compiled into the kernel?
111INCLUDE_CONFIG_FILE	opt_config.h
112
113# Options for static file systems.  These should only be used at config
114# time, since the corresponding lkms cannot work if there are any static
115# dependencies.  Unusability is enforced by hiding the defines for the
116# options in a never-included header.
117CD9660		opt_dontuse.h
118CODA		opt_dontuse.h
119EXT2FS		opt_dontuse.h
120FDESCFS		opt_dontuse.h
121FFS		opt_dontuse.h
122IFS		opt_dontuse.h
123LINPROCFS	opt_dontuse.h
124MSDOSFS		opt_dontuse.h
125NULLFS		opt_dontuse.h
126NWFS		opt_dontuse.h
127PORTALFS	opt_dontuse.h
128PROCFS		opt_dontuse.h
129PSEUDOFS	opt_dontuse.h
130UMAPFS		opt_dontuse.h
131NTFS		opt_dontuse.h
132HPFS		opt_dontuse.h
133UNIONFS		opt_dontuse.h
134
135# These static filesystems has one slightly bogus static dependency in
136# sys/i386/i386/autoconf.c.  If any of these filesystems are
137# statically compiled into the kernel, code for mounting them as root
138# filesystems will be enabled - but look below.
139NFS
140
141# If you are following the conditions in the copyright,
142# you can enable soft-updates which will speed up a lot of thigs
143# and make the system safer from crashes at the same time.
144# otherwise a STUB module will be compiled in.
145SOFTUPDATES	opt_ffs.h
146
147# Enabling this option turns on support for Access Control Lists in UFS,
148# which can be used to support high security configurations.  Depends on
149# UFS_EXTATTR.
150UFS_ACL		opt_ufs.h
151
152# Enabling this option turns on support for extended attributes in UFS-based
153# file systems, which can be used to support high security configurations
154# as well as new file system features.
155UFS_EXTATTR	opt_ufs.h
156UFS_EXTATTR_AUTOSTART	opt_ufs.h
157
158# The above static dependencies are planned removed, with a
159# <filesystem>_ROOT option to control if it usable as root.  This list
160# allows these options to be present in config files already (though
161# they won't make any difference yet).
162NFS_ROOT	opt_nfsroot.h
163
164# Options used only in param.c.
165HZ		opt_param.h
166MAXFILES	opt_param.h
167MAXUSERS	opt_param.h
168NBUF		opt_param.h
169NMBCLUSTERS	opt_param.h
170NSFBUFS		opt_param.h
171
172# Generic SCSI options.
173CAM_MAX_HIGHPOWER	opt_cam.h
174CAMDEBUG		opt_cam.h
175CAM_DEBUG_DELAY		opt_cam.h
176CAM_DEBUG_BUS		opt_cam.h
177CAM_DEBUG_TARGET	opt_cam.h
178CAM_DEBUG_LUN		opt_cam.h
179CAM_DEBUG_FLAGS		opt_cam.h
180CAM_NEW_TRAN_CODE	opt_cam.h
181SCSI_DELAY		opt_scsi.h
182SCSI_NO_SENSE_STRINGS	opt_scsi.h
183SCSI_NO_OP_STRINGS	opt_scsi.h
184
185
186
187# Options used only in cam/scsi/scsi_cd.c
188CHANGER_MIN_BUSY_SECONDS	opt_cd.h
189CHANGER_MAX_BUSY_SECONDS	opt_cd.h
190
191# Options used only in cam/scsi/scsi_sa.c.
192SA_IO_TIMEOUT		opt_sa.h
193SA_SPACE_TIMEOUT	opt_sa.h
194SA_REWIND_TIMEOUT	opt_sa.h
195SA_ERASE_TIMEOUT	opt_sa.h
196SA_1FM_AT_EOD		opt_sa.h
197
198# Options used only in cam/scsi/scsi_pt.c
199SCSI_PT_DEFAULT_TIMEOUT	opt_pt.h
200
201# Options used only in cam/scsi/scsi_ses.c
202SES_ENABLE_PASSTHROUGH	opt_ses.h
203
204# Options used in dev/sym/ (Symbios SCSI driver).
205SYM_SETUP_LP_PROBE_MAP	opt_sym.h	#-Low Priority Probe Map (bits)
206					# Allows the ncr to take precedence
207					# 1 (1<<0) -> 810a, 860
208					# 2 (1<<1) -> 825a, 875, 885, 895
209					# 4 (1<<2) -> 895a, 896, 1510d 
210SYM_SETUP_SCSI_DIFF	opt_sym.h	#-HVD support for 825a, 875, 885
211					# disabled:0 (default), enabled:1
212SYM_SETUP_PCI_PARITY	opt_sym.h	#-PCI parity checking
213					# disabled:0, enabled:1 (default)
214SYM_SETUP_MAX_LUN	opt_sym.h	#-Number of LUNs supported
215					# default:8, range:[1..64]
216
217# Options used only in pci/ncr.c
218SCSI_NCR_DEBUG		opt_ncr.h
219SCSI_NCR_MAX_SYNC	opt_ncr.h
220SCSI_NCR_MAX_WIDE	opt_ncr.h
221SCSI_NCR_MYADDR		opt_ncr.h
222
223# Options used only in pci/isp_pci.c
224ISP_TARGET_MODE		opt_isp.h
225
226# Options used in the 'ata' ATA/ATAPI driver
227ACD_DEBUG		opt_ata.h
228AST_DEBUG		opt_ata.h
229ATAPI_DEBUG		opt_ata.h
230ATA_DEBUG		opt_ata.h
231ATA_STATIC_ID		opt_ata.h
232DEV_ATADISK		opt_ata.h
233DEV_ATAPICD		opt_ata.h
234DEV_ATAPIST		opt_ata.h
235DEV_ATAPIFD		opt_ata.h
236
237# Resource limits.
238DFLDSIZ			opt_rlimit.h
239MAXDSIZ			opt_rlimit.h
240
241# Net stuff.
242ACCEPT_FILTER_DATA
243ACCEPT_FILTER_HTTP
244BOOTP			opt_bootp.h
245BOOTP_COMPAT		opt_bootp.h
246BOOTP_NFSROOT		opt_bootp.h
247BOOTP_NFSV3		opt_bootp.h
248BOOTP_WIRED_TO		opt_bootp.h
249BRIDGE			opt_bdg.h
250ETHER_II		opt_ef.h
251ETHER_8023		opt_ef.h
252ETHER_8022		opt_ef.h
253ETHER_SNAP		opt_ef.h
254MROUTING		opt_mrouting.h
255INET			opt_inet.h
256SOMAXCONN		opt_inet.h
257INET6			opt_inet6.h
258IPSEC			opt_ipsec.h
259IPSEC_ESP		opt_ipsec.h
260IPSEC_DEBUG		opt_ipsec.h
261IPDIVERT
262DUMMYNET		opt_ipdn.h
263IPFILTER		opt_ipfilter.h
264IPFILTER_LOG		opt_ipfilter.h
265IPFILTER_DEFAULT_BLOCK	opt_ipfilter.h
266PFIL_HOOKS		opt_pfil_hooks.h
267IPFIREWALL		opt_ipfw.h
268IPFIREWALL_VERBOSE	opt_ipfw.h
269IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
270IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
271IPFIREWALL_FORWARD		opt_ipfw.h
272IPV6FIREWALL		opt_ip6fw.h
273IPV6FIREWALL_VERBOSE	opt_ip6fw.h
274IPV6FIREWALL_VERBOSE_LIMIT	opt_ip6fw.h
275IPV6FIREWALL_DEFAULT_TO_ACCEPT	opt_ip6fw.h
276IPSTEALTH
277IPX			opt_ipx.h
278IPXIP			opt_ipx.h
279IPTUNNEL		opt_ipx.h
280LIBMCHAIN
281NCP			opt_ncp.h
282NETATALK		opt_atalk.h
283PPP_BSDCOMP		opt_ppp.h
284PPP_DEFLATE		opt_ppp.h
285PPP_FILTER		opt_ppp.h
286RANDOM_IP_ID
287SLIP_IFF_OPTS		opt_slip.h
288TCPDEBUG
289TCP_DROP_SYNFIN		opt_tcp_input.h
290XBONEHACK
291
292# Netgraph(4). Use option NETGRAPH to enable the base netgraph code.
293# Each netgraph node type can be either be compiled into the kernel
294# or loaded dynamically. To get the former, include the corresponding
295# option below. Each type has its own man page, e.g. ng_async(4).
296NETGRAPH
297NETGRAPH_ASYNC		opt_netgraph.h
298NETGRAPH_BPF		opt_netgraph.h
299NETGRAPH_BRIDGE		opt_netgraph.h
300NETGRAPH_CISCO		opt_netgraph.h
301NETGRAPH_ECHO		opt_netgraph.h
302NETGRAPH_ETHER		opt_netgraph.h
303NETGRAPH_FRAME_RELAY	opt_netgraph.h
304NETGRAPH_HOLE		opt_netgraph.h
305NETGRAPH_IFACE		opt_netgraph.h
306NETGRAPH_KSOCKET	opt_netgraph.h
307NETGRAPH_LMI		opt_netgraph.h
308# MPPC compression requires proprietary files (not included)
309NETGRAPH_MPPC_COMPRESSION	opt_netgraph.h
310NETGRAPH_MPPC_ENCRYPTION	opt_netgraph.h
311NETGRAPH_ONE2MANY	opt_netgraph.h
312NETGRAPH_PPP		opt_netgraph.h
313NETGRAPH_PPPOE		opt_netgraph.h
314NETGRAPH_PPTPGRE	opt_netgraph.h
315NETGRAPH_RFC1490	opt_netgraph.h
316NETGRAPH_SOCKET		opt_netgraph.h
317NETGRAPH_TEE		opt_netgraph.h
318NETGRAPH_TTY		opt_netgraph.h
319NETGRAPH_UI		opt_netgraph.h
320NETGRAPH_VJC		opt_netgraph.h
321
322# ATM (HARP version)
323ATM_CORE		opt_atm.h
324ATM_IP			opt_atm.h
325ATM_SIGPVC		opt_atm.h
326ATM_SPANS		opt_atm.h
327ATM_UNI			opt_atm.h
328
329# XXX Conflict: # of devices vs network protocol (Native ATM).
330# This makes "atm.h" unusable.
331NATM			opt_natm.h
332
333DPT_ALLOW_MEMIO		opt_dpt.h	# Allow PCI devices to use memory
334					# mapped I/O
335# DPT driver debug flags
336DPT_MEASURE_PERFORMANCE	opt_dpt.h
337DPT_HANDLE_TIMEOUTS	opt_dpt.h
338DPT_TIMEOUT_FACTOR	opt_dpt.h
339DPT_LOST_IRQ		opt_dpt.h
340DPT_RESET_HBA		opt_dpt.h
341
342# Adaptec ASR and DPT V/VI controller options
343ASR_MEASURE_PERFORMANCE	opt_asr.h
344
345# Misc debug flags.  Most of these should probably be replaced with
346# 'DEBUG', and then let people recompile just the interesting modules
347# with 'make CC="cc -DDEBUG"'.
348CLUSTERDEBUG		opt_debug_cluster.h
349DEBUG_1284		opt_ppb_1284.h
350VP0_DEBUG		opt_vpo.h
351LPT_DEBUG		opt_lpt.h
352PLIP_DEBUG		opt_plip.h
353LOCKF_DEBUG		opt_debug_lockf.h
354LOUTB			opt_debug_outb.h
355NPX_DEBUG		opt_debug_npx.h
356NETATALKDEBUG		opt_atalk.h
357SI_DEBUG		opt_debug_si.h
358
359# Fb options
360FB_DEBUG		opt_fb.h
361FB_INSTALL_CDEV		opt_fb.h
362
363# ppbus related options
364PERIPH_1284		opt_ppb_1284.h
365DONTPROBE_1284		opt_ppb_1284.h
366
367# smbus related options
368ENABLE_ALART		opt_intpm.h
369
370# These cause changes all over the kernel
371BLKDEV_IOSIZE		opt_global.h
372DEBUG			opt_global.h
373DEBUG_LOCKS		opt_global.h
374DEBUG_VFS_LOCKS		opt_global.h
375DIAGNOSTIC		opt_global.h
376ENABLE_VFS_IOOPT	opt_global.h
377INVARIANT_SUPPORT	opt_global.h
378INVARIANTS		opt_global.h
379REGRESSION		opt_global.h
380SIMPLELOCK_DEBUG	opt_global.h
381VFS_BIO_DEBUG		opt_global.h
382
383# These are VM related options
384VM_KMEM_SIZE		opt_vm.h
385VM_KMEM_SIZE_SCALE	opt_vm.h
386VM_KMEM_SIZE_MAX	opt_vm.h
387NO_SWAPPING		opt_vm.h
388PQ_NOOPT		opt_vmpage.h
389PQ_NORMALCACHE		opt_vmpage.h
390PQ_MEDIUMCACHE		opt_vmpage.h
391PQ_LARGECACHE		opt_vmpage.h
392PQ_HUGECACHE		opt_vmpage.h
393PQ_CACHESIZE		opt_vmpage.h
394
395# Standard SMP options
396SMP			opt_global.h
397
398# sys/netkey
399KEY
400
401# Size of the kernel message buffer
402MSGBUF_SIZE		opt_msgbuf.h
403
404# PCI related options
405PCI_QUIET		opt_pci.h
406
407# NFS options
408NFS_MINATTRTIMO		opt_nfs.h
409NFS_MAXATTRTIMO		opt_nfs.h
410NFS_MINDIRATTRTIMO	opt_nfs.h
411NFS_MAXDIRATTRTIMO	opt_nfs.h
412NFS_GATHERDELAY		opt_nfs.h
413NFS_UIDHASHSIZ		opt_nfs.h
414NFS_WDELAYHASHSIZ	opt_nfs.h
415NFS_MUIDHASHSIZ		opt_nfs.h
416NFS_NOSERVER		opt_nfs.h
417NFS_DEBUG		opt_nfs.h
418
419# For the Bt848/Bt848A/Bt849/Bt878/Bt879 driver
420OVERRIDE_CARD			opt_bktr.h
421OVERRIDE_TUNER			opt_bktr.h
422OVERRIDE_DBX			opt_bktr.h
423OVERRIDE_MSP			opt_bktr.h
424BROOKTREE_SYSTEM_DEFAULT	opt_bktr.h
425BROOKTREE_ALLOC_PAGES		opt_bktr.h
426BKTR_OVERRIDE_CARD		opt_bktr.h
427BKTR_OVERRIDE_TUNER		opt_bktr.h
428BKTR_OVERRIDE_DBX		opt_bktr.h
429BKTR_OVERRIDE_MSP		opt_bktr.h
430BKTR_SYSTEM_DEFAULT		opt_bktr.h
431BKTR_ALLOC_PAGES		opt_bktr.h
432BKTR_USE_PLL			opt_bktr.h	
433BKTR_GPIO_ACCESS		opt_bktr.h
434BKTR_NO_MSP_RESET		opt_bktr.h
435BKTR_430_FX_MODE		opt_bktr.h
436BKTR_SIS_VIA_MODE		opt_bktr.h
437
438# meteor opt_meteor.h
439METEOR_ALLOC_PAGES	opt_meteor.h
440METEOR_TEST_VIDEO	opt_meteor.h
441METEOR_SYSTEM_DEFAULT	opt_meteor.h
442METEOR_DEALLOC_PAGES	opt_meteor.h
443METEOR_DEALLOC_ABOVE	opt_meteor.h
444
445# Various mi ISA bus flags
446COM_ESP			opt_sio.h
447COM_MULTIPORT		opt_sio.h
448BREAK_TO_DEBUGGER	opt_comconsole.h
449ALT_BREAK_TO_DEBUGGER	opt_comconsole.h
450DEV_ISA			opt_isa.h
451
452# Include tweaks for running under the SimOS machine simulator.
453SIMOS			opt_simos.h
454
455# options for bus/device framework
456BUS_DEBUG		opt_bus.h
457DEVICE_SYSCTLS		opt_bus.h
458
459# options for USB support
460UHCI_DEBUG		opt_usb.h
461OHCI_DEBUG		opt_usb.h
462USB_DEBUG		opt_usb.h
463UGEN_DEBUG		opt_usb.h
464UHID_DEBUG		opt_usb.h
465UHUB_DEBUG		opt_usb.h
466UKBD_DEBUG		opt_usb.h
467ULPT_DEBUG		opt_usb.h
468UMASS_DEBUG		opt_usb.h
469UMS_DEBUG		opt_usb.h
470URIO_DEBUG		opt_usb.h
471UKBD_DFLT_KEYMAP	opt_ukbd.h
472
473# Vinum options
474VINUMDEBUG		opt_vinum.h
475
476# Embedded system options
477INIT_PATH		opt_init_path.h
478
479ROOTDEVNAME		opt_rootdevname.h
480
481FDC_DEBUG		opt_fdc.h
482PCFCLOCK_VERBOSE	opt_pcfclock.h
483PCFCLOCK_MAX_RETRIES	opt_pcfclock.h
484TDFX_LINUX opt_tdfx.h
485
486KTR			opt_global.h
487KTR_MASK		opt_ktr.h
488KTR_CPUMASK		opt_ktr.h
489KTR_COMPILE		opt_global.h
490KTR_ENTRIES		opt_global.h
491KTR_EXTEND		opt_global.h
492KTR_VERBOSE		opt_ktr.h
493MUTEX_DEBUG		opt_global.h
494CV_DEBUG		opt_global.h
495WITNESS			opt_global.h
496WITNESS_DDB		opt_witness.h
497WITNESS_SKIPSPIN	opt_witness.h
498
499# options for ACPI support
500ACPI_DEBUG		opt_acpi.h
501AML_DEBUG		opt_acpi.h
502ACPI_NO_ENABLE_ON_BOOT	opt_acpi.h
503
504# options for DEVFS, see sys/fs/devfs/devfs.h
505NDEVFSINO		opt_devfs.h
506NDEVFSOVERFLOW		opt_devfs.h
507
508# various 'device presence' options.
509DEV_MCA			opt_mca.h
510DEV_BPF			opt_bpf.h
511