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