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