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