options revision 41366
1#	$Id: options,v 1.108 1998/11/23 09:58:59 phk 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
47DDB
48DDB_UNATTENDED	opt_ddb.h
49GDB_REMOTE_CHAT	opt_ddb.h
50DEVFS
51FAILSAFE
52HW_WDOG
53KTRACE
54MD5
55MFS_ROOT	opt_mfs.h
56MFS_ROOT_SIZE	opt_mfs.h
57NTIMECOUNTER	opt_ntp.h
58EXPORTMFS	opt_mfs.h
59NO_LKM
60NSWAPDEV	opt_swap.h
61PPS_SYNC	opt_ntp.h
62QUOTA
63SPX_HACK
64SUIDDIR		opt_suiddir.h
65SYSVMSG		opt_sysvipc.h
66SYSVSEM		opt_sysvipc.h
67SYSVSHM		opt_sysvipc.h
68UCONSOLE
69
70# POSIX kernel options
71P1003_1B	opt_posix.h
72_KPOSIX_PRIORITY_SCHEDULING opt_posix.h
73_KPOSIX_VERSION opt_posix.h
74
75# Do we want the config file compiled into the kernel?
76INCLUDE_CONFIG_FILE	opt_config.h
77
78# Options for static file systems.  These should only be used at config
79# time, since the corresponding lkms cannot work if there are any static
80# dependencies.  Unusability is enforced by hiding the defines for the
81# options in a never-included header.
82EXT2FS		opt_dontuse.h
83FDESC		opt_dontuse.h
84KERNFS		opt_dontuse.h
85MFS		opt_dontuse.h
86MSDOSFS		opt_dontuse.h
87NULLFS		opt_dontuse.h
88PORTAL		opt_dontuse.h
89PROCFS		opt_dontuse.h
90UMAPFS		opt_dontuse.h
91
92# These static filesystems has one slightly bogus static dependency in
93# sys/i386/i386/autoconf.c.  If any of these filesystems are
94# statically compiled into the kernel, code for mounting them as root
95# filesystems will be enabled - but look below.  Boot-code is purposely
96# unavailable for the LKM-based versions.
97CODA
98CD9660
99FFS
100NFS
101
102# If you are following the conditions in the copyright, 
103# you can enable soft-updates which will speed up a lot of thigs 
104# and make the system safer from crashes at the same time.
105# otherwise a STUB module will be compiled in.
106SOFTUPDATES	opt_ffs.h
107
108# The above static dependencies are planned removed, with a
109# <filesystem>_ROOT option to control if it usable as root.  This list
110# allows these options to be present in config files already (though
111# they won't make any difference yet).
112CD9660_ROOT	opt_cd9660.h
113FFS_ROOT	opt_ffs.h
114NFS_ROOT	opt_nfsroot.h
115
116# Multi-session CD-Rs might require a huge amount of time in order to
117# "settle".  If we are about mounting them as the root f/s, we gotta
118# wait a little.
119CD9660_ROOTDELAY	opt_cd9660.h
120
121# The union static file system has bogus static dependencies, so it isn't
122# hidden yet.
123UNION
124
125# Options used only in param.c.
126MAXUSERS	opt_param.h
127MSGMNB		opt_param.h
128MSGMNI		opt_param.h
129MSGSEG		opt_param.h
130MSGSSZ		opt_param.h
131MSGTQL		opt_param.h
132NBUF		opt_param.h
133NMBCLUSTERS	opt_param.h
134NSFBUFS		opt_param.h
135SEMMAP		opt_param.h
136SEMMNI		opt_param.h
137SEMMNS		opt_param.h
138SEMMNU		opt_param.h
139SEMMSL		opt_param.h
140SEMOPM		opt_param.h
141SEMUME		opt_param.h
142SHMALL		opt_param.h
143SHMMAX		opt_param.h
144SHMMAXPGS	opt_param.h
145SHMMIN		opt_param.h
146SHMMNI		opt_param.h
147SHMSEG		opt_param.h
148
149# Generic SCSI options.
150CAM_MAX_HIGHPOWER	opt_cam.h
151CAMDEBUG		opt_cam.h
152CAM_DEBUG_BUS		opt_cam.h
153CAM_DEBUG_TARGET	opt_cam.h
154CAM_DEBUG_LUN		opt_cam.h
155CAM_DEBUG_FLAGS		opt_cam.h
156SCSI_DELAY		opt_scsi.h
157SCSI_REPORT_GEOMETRY	opt_scsi.h
158SCSI_NO_SENSE_STRINGS	opt_scsi.h
159SCSI_NO_OP_STRINGS	opt_scsi.h
160
161# Options used only in cam/scsi/scsi_cd.c
162CHANGER_MIN_BUSY_SECONDS	opt_cd.h
163CHANGER_MAX_BUSY_SECONDS	opt_cd.h
164
165# Options used only in cam/scsi/sa.c.
166SA_SPACE_TIMEOUT	opt_sa.h
167SA_REWIND_TIMEOUT	opt_sa.h
168SA_ERASE_TIMEOUT	opt_sa.h
169
170# Options used only in pci/ncr.c
171SCSI_NCR_DEBUG		opt_ncr.h
172SCSI_NCR_DFLT_TAGS	opt_ncr.h
173SCSI_NCR_MAX_SYNC	opt_ncr.h
174SCSI_NCR_MAX_WIDE	opt_ncr.h
175SCSI_NCR_MYADDR		opt_ncr.h
176
177# Resource limits.
178DFLDSIZ			opt_rlimit.h
179MAXDSIZ			opt_rlimit.h
180
181# Net stuff.
182BOOTP			opt_bootp.h
183BOOTP_COMPAT		opt_bootp.h
184BOOTP_NFSROOT		opt_bootp.h
185BOOTP_NFSV3		opt_bootp.h
186BOOTP_WIRED_TO		opt_bootp.h
187MROUTING		opt_mrouting.h
188INET			opt_inet.h
189IPDIVERT
190IPFIREWALL		opt_ipfw.h
191IPFIREWALL_VERBOSE	opt_ipfw.h
192IPFIREWALL_VERBOSE_LIMIT	opt_ipfw.h
193IPFIREWALL_DEFAULT_TO_ACCEPT	opt_ipfw.h
194IPFIREWALL_FORWARD		opt_ipfw.h
195IPX			opt_ipx.h
196IPXIP			opt_ipx.h
197IPTUNNEL		opt_ipx.h
198NETATALK		opt_atalk.h
199PPP_BSDCOMP		opt_ppp.h
200PPP_DEFLATE		opt_ppp.h
201PPP_FILTER		opt_ppp.h
202TCP_COMPAT_42		opt_compat.h
203TCPDEBUG
204IPFILTER		opt_ipfilter.h
205IPFILTER_LOG		opt_ipfilter.h
206IPFILTER_LKM		opt_ipfilter.h
207
208# ATM (HARP version)
209ATM_CORE		opt_atm.h
210ATM_IP			opt_atm.h
211ATM_SIGPVC		opt_atm.h
212ATM_SPANS		opt_atm.h
213ATM_UNI			opt_atm.h
214
215# XXX Conflict: # of devices vs network protocol (Native ATM).
216# This makes "atm.h" unusable.
217NATM			opt_natm.h
218
219DPT_ALLOW_MEMIO		opt_dpt.h	# Allow PCI devices to use memory
220					# mapped I/O
221# DPT driver debug flags
222DPT_VERIFY_HINTR	opt_dpt.h
223DPT_USE_SINTR		opt_dpt.h
224DPT_RESTRICTED_FREELIST	opt_dpt.h
225DPT_MEASURE_PERFORMANCE	opt_dpt.h
226DPT_FREELIST_IS_STACK	opt_dpt.h
227DPT_HANDLE_TIMEOUTS	opt_dpt.h
228DPT_TIMEOUT_FACTOR	opt_dpt.h
229DPT_INTR_DELAY		opt_dpt.h
230DPT_LOST_IRQ		opt_dpt.h
231DPT_SHUTDOWN_SLEEP	opt_dpt.h
232DPT_RESET_HBA		opt_dpt.h
233
234# Misc debug flags.  Most of these should probably be replaced with
235# 'DEBUG', and then let people recompile just the interesting modules
236# with 'make CC="cc -DDEBUG'.
237CLUSTERDEBUG		opt_debug_cluster.h
238DEBUG_1284		opt_debug_1284.h
239LOCKF_DEBUG		opt_debug_lockf.h
240LOUTB			opt_debug_outb.h
241NPX_DEBUG		opt_debug_npx.h
242NETATALKDEBUG		opt_atalk.h
243NULLFS_DIAGNOSTIC	opt_debug_nullfs.h
244SI_DEBUG		opt_debug_si.h
245
246
247# These cause changes all over the kernel
248DEBUG			opt_global.h
249DIAGNOSTIC		opt_global.h
250SIMPLELOCK_DEBUG	opt_global.h
251ENABLE_VFS_IOOPT	opt_global.h
252
253# These are VM related options
254VM_KMEM_SIZE	opt_vm.h
255VM_KMEM_SIZE_SCALE opt_vm.h
256VM_KMEM_SIZE_MAX	opt_vm.h
257NO_SWAPPING	opt_vm.h
258PQ_NOOPT	opt_vmpage.h
259PQ_NORMALCACHE	opt_vmpage.h
260PQ_MEDIUMCACHE	opt_vmpage.h
261PQ_LARGECACHE	opt_vmpage.h
262PQ_HUGECACHE	opt_vmpage.h
263
264
265# sys/netkey
266KEY
267KEY_DEBUG		opt_key.h
268
269# Size of the kernel message buffer
270MSGBUF_SIZE		opt_msgbuf.h
271
272# PCI related options
273PCI_QUIET		opt_pci.h
274
275# NFS options
276NFS_MINATTRTIMO		opt_nfs.h
277NFS_MAXATTRTIMO		opt_nfs.h
278NFS_MINDIRATTRTIMO	opt_nfs.h
279NFS_MAXDIRATTRTIMO	opt_nfs.h
280NFS_GATHERDELAY		opt_nfs.h
281NFS_UIDHASHSIZ		opt_nfs.h
282NFS_WDELAYHASHSIZ	opt_nfs.h
283NFS_MUIDHASHSIZ		opt_nfs.h
284NFS_NOSERVER		opt_nfs.h
285NFS_DEBUG		opt_nfs.h
286
287# give bktr an opt_bktr.h file
288OVERRIDE_CARD		opt_bktr.h
289OVERRIDE_TUNER		opt_bktr.h
290OVERRIDE_DBX		opt_bktr.h
291OVERRIDE_MSP		opt_bktr.h
292BROOKTREE_SYSTEM_DEFAULT opt_bktr.h
293BKTR_USE_PLL		opt_bktr.h
294
295
296# meteor opt_meteor.h
297METEOR_ALLOC_PAGES	opt_meteor.h
298METEOR_TEST_VIDEO	opt_meteor.h
299METEOR_SYSTEM_DEFAULT	opt_meteor.h
300METEOR_DEALLOC_PAGES	opt_meteor.h
301METEOR_DEALLOC_ABOVE	opt_meteor.h
302
303# Include tweaks for running under the SimOS machine simulator.
304SIMOS			opt_simos.h
305
306# options for bus/device framework
307BUS_DEBUG		opt_bus.h
308
309# options for USB support
310USB_DEBUG		opt_usb.h
311USBVERBOSE		opt_usb.h
312