options revision 42957
1#	$Id: options,v 1.121 1999/01/20 14:49:07 eivind Exp $
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
40ADW_ALLOW_MEMIO		opt_adw.h	# Allow PCI devices to use memory
41					# mapped I/O
42
43# Miscellaneous options.
44COMPAT_43	opt_compat.h
45COMPAT_SUNOS	opt_compat.h
46COMPILING_LINT	opt_lint.h
47CY_PCI_FASTINTR
48DDB
49DDB_UNATTENDED	opt_ddb.h
50GDB_REMOTE_CHAT	opt_ddb.h
51DEVFS
52FAILSAFE
53HW_WDOG
54KTRACE
55MD5
56MFS_ROOT	opt_mfs.h
57MFS_ROOT_SIZE	opt_mfs.h
58NTIMECOUNTER	opt_ntp.h
59EXPORTMFS	opt_mfs.h
60NO_LKM
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
93
94# These static filesystems has one slightly bogus static dependency in
95# sys/i386/i386/autoconf.c.  If any of these filesystems are
96# statically compiled into the kernel, code for mounting them as root
97# filesystems will be enabled - but look below.  Boot-code is purposely
98# unavailable for the LKM-based versions.
99CODA
100CD9660
101FFS
102NFS
103
104# If you are following the conditions in the copyright, 
105# you can enable soft-updates which will speed up a lot of thigs 
106# and make the system safer from crashes at the same time.
107# otherwise a STUB module will be compiled in.
108SOFTUPDATES	opt_ffs.h
109
110# The above static dependencies are planned removed, with a
111# <filesystem>_ROOT option to control if it usable as root.  This list
112# allows these options to be present in config files already (though
113# they won't make any difference yet).
114CD9660_ROOT	opt_cd9660.h
115FFS_ROOT	opt_ffs.h
116NFS_ROOT	opt_nfsroot.h
117
118# Multi-session CD-Rs might require a huge amount of time in order to
119# "settle".  If we are about mounting them as the root f/s, we gotta
120# wait a little.
121CD9660_ROOTDELAY	opt_cd9660.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
129MAXUSERS	opt_param.h
130MSGMNB		opt_param.h
131MSGMNI		opt_param.h
132MSGSEG		opt_param.h
133MSGSSZ		opt_param.h
134MSGTQL		opt_param.h
135NBUF		opt_param.h
136NMBCLUSTERS	opt_param.h
137NSFBUFS		opt_param.h
138SEMMAP		opt_param.h
139SEMMNI		opt_param.h
140SEMMNS		opt_param.h
141SEMMNU		opt_param.h
142SEMMSL		opt_param.h
143SEMOPM		opt_param.h
144SEMUME		opt_param.h
145SHMALL		opt_param.h
146SHMMAX		opt_param.h
147SHMMAXPGS	opt_param.h
148SHMMIN		opt_param.h
149SHMMNI		opt_param.h
150SHMSEG		opt_param.h
151
152# Generic SCSI options.
153CAM_MAX_HIGHPOWER	opt_cam.h
154CAMDEBUG		opt_cam.h
155CAM_DEBUG_BUS		opt_cam.h
156CAM_DEBUG_TARGET	opt_cam.h
157CAM_DEBUG_LUN		opt_cam.h
158CAM_DEBUG_FLAGS		opt_cam.h
159SCSI_DELAY		opt_scsi.h
160SCSI_REPORT_GEOMETRY	opt_scsi.h
161SCSI_NO_SENSE_STRINGS	opt_scsi.h
162SCSI_NO_OP_STRINGS	opt_scsi.h
163
164# Options used only in cam/scsi/scsi_cd.c
165CHANGER_MIN_BUSY_SECONDS	opt_cd.h
166CHANGER_MAX_BUSY_SECONDS	opt_cd.h
167
168# Options used only in cam/scsi/sa.c.
169SA_SPACE_TIMEOUT	opt_sa.h
170SA_REWIND_TIMEOUT	opt_sa.h
171SA_ERASE_TIMEOUT	opt_sa.h
172
173# Options used only in pci/ncr.c
174SCSI_NCR_DEBUG		opt_ncr.h
175SCSI_NCR_DFLT_TAGS	opt_ncr.h
176SCSI_NCR_MAX_SYNC	opt_ncr.h
177SCSI_NCR_MAX_WIDE	opt_ncr.h
178SCSI_NCR_MYADDR		opt_ncr.h
179
180# Resource limits.
181DFLDSIZ			opt_rlimit.h
182MAXDSIZ			opt_rlimit.h
183
184# Net stuff.
185BOOTP			opt_bootp.h
186BOOTP_COMPAT		opt_bootp.h
187BOOTP_NFSROOT		opt_bootp.h
188BOOTP_NFSV3		opt_bootp.h
189BOOTP_WIRED_TO		opt_bootp.h
190BRIDGE			opt_bdg.h
191MROUTING		opt_mrouting.h
192INET			opt_inet.h
193IPDIVERT
194DUMMYNET		opt_ipdn.h
195IPFIREWALL		opt_ipfw.h
196IPFIREWALL_VERBOSE	opt_ipfw.h
197IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
198IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
199IPFIREWALL_FORWARD		opt_ipfw.h
200IPX			opt_ipx.h
201IPXIP			opt_ipx.h
202IPTUNNEL		opt_ipx.h
203NETATALK		opt_atalk.h
204PPP_BSDCOMP		opt_ppp.h
205PPP_DEFLATE		opt_ppp.h
206PPP_FILTER		opt_ppp.h
207TCP_COMPAT_42		opt_compat.h
208TCPDEBUG
209IPFILTER		opt_ipfilter.h
210IPFILTER_LOG		opt_ipfilter.h
211IPFILTER_LKM		opt_ipfilter.h
212SLIP_IFF_OPTS		opt_slip.h
213
214# ATM (HARP version)
215ATM_CORE		opt_atm.h
216ATM_IP			opt_atm.h
217ATM_SIGPVC		opt_atm.h
218ATM_SPANS		opt_atm.h
219ATM_UNI			opt_atm.h
220
221# XXX Conflict: # of devices vs network protocol (Native ATM).
222# This makes "atm.h" unusable.
223NATM			opt_natm.h
224
225DPT_ALLOW_MEMIO		opt_dpt.h	# Allow PCI devices to use memory
226					# mapped I/O
227# DPT driver debug flags
228DPT_VERIFY_HINTR	opt_dpt.h
229DPT_USE_SINTR		opt_dpt.h
230DPT_RESTRICTED_FREELIST	opt_dpt.h
231DPT_MEASURE_PERFORMANCE	opt_dpt.h
232DPT_FREELIST_IS_STACK	opt_dpt.h
233DPT_HANDLE_TIMEOUTS	opt_dpt.h
234DPT_TIMEOUT_FACTOR	opt_dpt.h
235DPT_INTR_DELAY		opt_dpt.h
236DPT_LOST_IRQ		opt_dpt.h
237DPT_SHUTDOWN_SLEEP	opt_dpt.h
238DPT_RESET_HBA		opt_dpt.h
239
240# Misc debug flags.  Most of these should probably be replaced with
241# 'DEBUG', and then let people recompile just the interesting modules
242# with 'make CC="cc -DDEBUG'.
243CLUSTERDEBUG		opt_debug_cluster.h
244DEBUG_1284		opt_ppb_1284.h
245PERIPH_1284		opt_ppb_1284.h
246DONTPROBE_1284		opt_ppb_1284.h
247VP0_DEBUG		opt_vpo.h
248NLPT_DEBUG		opt_nlpt.h
249LOCKF_DEBUG		opt_debug_lockf.h
250LOUTB			opt_debug_outb.h
251NPX_DEBUG		opt_debug_npx.h
252NETATALKDEBUG		opt_atalk.h
253NULLFS_DIAGNOSTIC	opt_debug_nullfs.h
254SI_DEBUG		opt_debug_si.h
255
256
257# These cause changes all over the kernel
258DEBUG			opt_global.h
259DEBUG_LOCKS		opt_global.h
260DEBUG_VFS_LOCKS		opt_global.h
261DIAGNOSTIC		opt_global.h
262ENABLE_VFS_IOOPT	opt_global.h
263INVARIANT_SUPPORT	opt_global.h
264INVARIANTS		opt_global.h
265SIMPLELOCK_DEBUG	opt_global.h
266VFS_BIO_DEBUG		opt_global.h
267
268# These are VM related options
269VM_KMEM_SIZE	opt_vm.h
270VM_KMEM_SIZE_SCALE opt_vm.h
271VM_KMEM_SIZE_MAX	opt_vm.h
272NO_SWAPPING	opt_vm.h
273PQ_NOOPT	opt_vmpage.h
274PQ_NORMALCACHE	opt_vmpage.h
275PQ_MEDIUMCACHE	opt_vmpage.h
276PQ_LARGECACHE	opt_vmpage.h
277PQ_HUGECACHE	opt_vmpage.h
278
279# Standard SMP options
280SMP			opt_global.h
281NCPU			opt_smp.h
282NBUS			opt_smp.h
283
284# sys/netkey
285KEY
286KEY_DEBUG		opt_key.h
287
288# Size of the kernel message buffer
289MSGBUF_SIZE		opt_msgbuf.h
290
291# PCI related options
292PCI_QUIET		opt_pci.h
293
294# NFS options
295NFS_MINATTRTIMO		opt_nfs.h
296NFS_MAXATTRTIMO		opt_nfs.h
297NFS_MINDIRATTRTIMO	opt_nfs.h
298NFS_MAXDIRATTRTIMO	opt_nfs.h
299NFS_GATHERDELAY		opt_nfs.h
300NFS_UIDHASHSIZ		opt_nfs.h
301NFS_WDELAYHASHSIZ	opt_nfs.h
302NFS_MUIDHASHSIZ		opt_nfs.h
303NFS_NOSERVER		opt_nfs.h
304NFS_DEBUG		opt_nfs.h
305
306# give bktr an opt_bktr.h file
307OVERRIDE_CARD		opt_bktr.h
308OVERRIDE_TUNER		opt_bktr.h
309OVERRIDE_DBX		opt_bktr.h
310OVERRIDE_MSP		opt_bktr.h
311BROOKTREE_SYSTEM_DEFAULT opt_bktr.h
312BKTR_USE_PLL		opt_bktr.h
313
314
315# meteor opt_meteor.h
316METEOR_ALLOC_PAGES	opt_meteor.h
317METEOR_TEST_VIDEO	opt_meteor.h
318METEOR_SYSTEM_DEFAULT	opt_meteor.h
319METEOR_DEALLOC_PAGES	opt_meteor.h
320METEOR_DEALLOC_ABOVE	opt_meteor.h
321
322# Include tweaks for running under the SimOS machine simulator.
323SIMOS			opt_simos.h
324
325# options for bus/device framework
326BUS_DEBUG		opt_bus.h
327
328# options for USB support
329USB_DEBUG		opt_usb.h
330USBVERBOSE		opt_usb.h
331
332# Vinum options
333VINUMDEBUG		opt_vinum.h
334
335# Include LKM compatability module
336LKM
337