NOTES revision 51165
11556Srgrimes#
21556Srgrimes# LINT -- config file for checking all the sources, tries to pull in
31556Srgrimes#	as much of the source tree as it can.
41556Srgrimes#
51556Srgrimes# $FreeBSD: head/sys/conf/NOTES 51165 1999-09-11 16:05:48Z gibbs $
61556Srgrimes#
71556Srgrimes# NB: You probably don't want to try running a kernel built from this
81556Srgrimes# file.  Instead, you should start from GENERIC, and add options from
91556Srgrimes# this file as required.
101556Srgrimes#
111556Srgrimes
121556Srgrimes#
131556Srgrimes# This directive is mandatory; it defines the architecture to be
141556Srgrimes# configured for; in this case, the 386 family based IBM-PC and
151556Srgrimes# compatibles.
161556Srgrimes#
171556Srgrimesmachine		i386
181556Srgrimes
191556Srgrimes# 
201556Srgrimes# This is the ``identification'' of the kernel.  Usually this should
211556Srgrimes# be the same as the name of your kernel.
221556Srgrimes#
231556Srgrimesident		LINT
241556Srgrimes
251556Srgrimes#
261556Srgrimes# The `maxusers' parameter controls the static sizing of a number of
271556Srgrimes# internal system tables by a complicated formula defined in param.c.
281556Srgrimes#
291556Srgrimesmaxusers	10
301556Srgrimes
311556Srgrimes#
321556Srgrimes# The `makeoptions' parameter allows variables to be passed to the
331556Srgrimes# generated Makefile in the build area.  DEBUG happens to be magic.
341556Srgrimes# The following is equivalent to 'config -g KERNELNAME' and creates
351556Srgrimes# 'kernel.debug' compiled with -g debugging as well as a normal
3617987Speter# 'kernel'.  Use 'make install.debug' to install the debug kernel
3745221Scracauer# but that isn't normally necessary as the debug symbols are not loaded
381556Srgrimes# by the kernel and are not useful there anyway.
391556Srgrimes#
401556Srgrimes# KERNEL can be overridden so that you can change the default name of your
4120425Ssteve# kernel.
4220425Ssteve#
4320425Ssteve#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
441556Srgrimes#makeoptions	KERNEL=foo		#Build kernel "foo" and install "/foo"
4520425Ssteve
4620425Ssteve#
471556Srgrimes# Certain applications can grow to be larger than the 128M limit
481556Srgrimes# that FreeBSD initially imposes.  Below are some options to
491556Srgrimes# allow that limit to grow to 256MB, and can be increased further
501556Srgrimes# with changing the parameters.  MAXDSIZ is the maximum that the
511556Srgrimes# limit can be set to, and the DFLDSIZ is the default value for
521556Srgrimes# the limit.  You might want to set the default lower than the
531556Srgrimes# max, and explicitly set the maximum with a shell command for processes
541556Srgrimes# that regularly exceed the limit like INND.
551556Srgrimes#
561556Srgrimesoptions 	MAXDSIZ="(256*1024*1024)"
571556Srgrimesoptions 	DFLDSIZ="(256*1024*1024)"
581556Srgrimes
591556Srgrimes# Options for the VM subsystem
601556Srgrimes#options 	PQ_NOOPT		# No coloring
611556Srgrimesoptions 	PQ_LARGECACHE		# color for 512k/16k cache
621556Srgrimes#options 	PQ_HUGECACHE		# color for 1024k/16k cache
631556Srgrimes
641556Srgrimes# This allows you to actually store this configuration file into
651556Srgrimes# the kernel binary itself, where it may be later read by saying:
6619240Ssteve#    strings -aout -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
6745221Scracauer#
681556Srgrimesoptions         INCLUDE_CONFIG_FILE     # Include this file in kernel
6945221Scracauer
701556Srgrimes
711556Srgrimes#####################################################################
721556Srgrimes# SMP OPTIONS:
731556Srgrimes#
741556Srgrimes# SMP enables building of a Symmetric MultiProcessor Kernel.
751556Srgrimes# APIC_IO enables the use of the IO APIC for Symmetric I/O.
761556Srgrimes# NCPU sets the number of CPUs, defaults to 2.
771556Srgrimes# NBUS sets the number of busses, defaults to 4.
781556Srgrimes# NAPIC sets the number of IO APICs on the motherboard, defaults to 1.
7917987Speter# NINTR sets the total number of INTs provided by the motherboard.
8017987Speter#
8117987Speter# Notes:
8217987Speter#
8317987Speter#  An SMP kernel will ONLY run on an Intel MP spec. qualified motherboard.
8417987Speter#
8517987Speter#  Be sure to disable 'cpu I386_CPU' && 'cpu I486_CPU' for SMP kernels.
8617987Speter#
8717987Speter#  Check the 'Rogue SMP hardware' section to see if additional options
8817987Speter#   are required by your hardware.
8917987Speter#
9017987Speter
9117987Speter# Mandatory:
9217987Speteroptions 	SMP			# Symmetric MultiProcessor Kernel
9317987Speteroptions 	APIC_IO			# Symmetric (APIC) I/O
9419240Ssteve
9545221Scracauer# Optional, these are the defaults plus 1:
961556Srgrimesoptions 	NCPU=5			# number of CPUs
971556Srgrimesoptions 	NBUS=5			# number of busses
981556Srgrimesoptions 	NAPIC=2			# number of IO APICs
991556Srgrimesoptions 	NINTR=25		# number of INTs
1001556Srgrimes
1011556Srgrimes#
1021556Srgrimes# Rogue SMP hardware:
1031556Srgrimes#
1041556Srgrimes
1051556Srgrimes# Bridged PCI cards:
1061556Srgrimes#
1071556Srgrimes# The MP tables of most of the current generation MP motherboards
1081556Srgrimes#  do NOT properly support bridged PCI cards.  To use one of these
10920425Ssteve#  cards you should refer to ???
11017987Speter
11117987Speter
11220425Ssteve#####################################################################
11317987Speter# CPU OPTIONS
11417987Speter
11517987Speter#
11617987Speter# You must specify at least one CPU (the one you intend to run on);
11720425Ssteve# deleting the specification for CPUs you don't need to use may make
118# parts of the system run faster.  This is especially true removing
119# I386_CPU.
120#
121cpu		I386_CPU
122cpu		I486_CPU
123cpu		I586_CPU		# aka Pentium(tm)
124cpu		I686_CPU		# aka Pentium Pro(tm)
125
126#
127# Options for CPU features.
128#
129# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
130# BlueLightning CPU.  It works only with Cyrix FPU, and this option
131# should not be used with Intel FPU.
132#
133# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning 
134# CPU if CPU supports it. The default is double-clock mode on
135# BlueLightning CPU box.  
136#
137# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
138#
139# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
140# mapped mode.  Default is 2-way set associative mode.
141#
142# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
143# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
144# Otherwise, the NO_LOCK bit of CCR1 is cleared.  (NOTE 3)
145#
146# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e. enables
147# reorder).  This option should not be used if you use memory mapped
148# I/O device(s). 
149#
150# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
151#
152# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
153# for i386 machines. 
154#
155# CPU_IORT defines I/O clock delay time (NOTE 1).  Default values of
156# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
157# (no clock delay).
158#
159# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
160# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
161# 1). 
162#
163# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
164#
165# CPU_SUSP_HLT enables suspend on HALT.  If this option is set, CPU
166# enters suspend mode following execution of HALT instruction.
167#
168# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
169# K5/K6/K6-2 cpus.
170#
171# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
172# flush at hold state.
173#
174# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
175# without cache flush at hold state, and (2) write-back CPU cache on
176# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
177#
178# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
179# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
180# executed.  This should be included for ALL kernels that won't run
181# on a Pentium.
182#
183# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
184# which indicates that the 15-16MB range is *definitely* not being 
185# occupied by an ISA memory hole.
186#
187# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
188# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
189# These options may crash your system. 
190#
191# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
192# in write-through mode when revision < 2.7.  If revision of Cyrix
193# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
194#
195# NOTE 3: This option may cause failures for software that requires
196# locked cycles in order to operate correctly.
197#
198options 	CPU_BLUELIGHTNING_FPU_OP_CACHE
199options 	CPU_BLUELIGHTNING_3X
200options 	CPU_BTB_EN
201options 	CPU_DIRECT_MAPPED_CACHE
202options 	CPU_DISABLE_5X86_LSSER
203options 	CPU_FASTER_5X86_FPU
204options 	CPU_I486_ON_386
205options 	CPU_IORT
206options 	CPU_LOOP_EN
207options 	CPU_RSTK_EN
208options 	CPU_SUSP_HLT
209options 	CPU_WT_ALLOC
210options 	CYRIX_CACHE_WORKS
211options 	CYRIX_CACHE_REALLY_WORKS
212#options 	NO_F00F_HACK
213
214#
215# A math emulator is mandatory if you wish to run on hardware which
216# does not have a floating-point processor.  Pick either the original,
217# bogus (but freely-distributable) math emulator, or a much more
218# fully-featured but GPL-licensed emulator taken from Linux.
219#
220options 	MATH_EMULATE		#Support for x87 emulation
221# Don't enable both of these in a real config.
222options 	GPL_MATH_EMULATE	#Support for x87 emulation via
223					#new math emulator 
224
225
226#####################################################################
227# COMPATIBILITY OPTIONS                                             
228
229#
230# Implement system calls compatible with 4.3BSD and older versions of
231# FreeBSD.  You probably do NOT want to remove this as much current code
232# still relies on the 4.3 emulation.
233#
234options 	COMPAT_43
235
236#
237# Allow user-mode programs to manipulate their local descriptor tables.
238# This option is required for the WINE Windows(tm) emulator, and is
239# not used by anything else (that we know of).
240#
241options 	USER_LDT		#allow user-level control of i386 ldt
242
243#
244# These three options provide support for System V Interface
245# Definition-style interprocess communication, in the form of shared
246# memory, semaphores, and message queues, respectively.
247#
248options 	SYSVSHM
249options 	SYSVSEM
250options 	SYSVMSG
251
252#
253# This option includes a MD5 routine in the kernel, this is used for
254# various authentication and privacy uses.
255#
256options 	MD5
257
258
259#####################################################################
260# DEBUGGING OPTIONS
261
262#
263# Enable the kernel debugger.
264#
265options 	DDB
266
267#
268# Don't drop into DDB for a panic. Intended for unattended operation
269# where you may want to drop to DDB from the console, but still want
270# the machine to recover from a panic
271#
272options 	DDB_UNATTENDED
273
274#
275# If using GDB remote mode to debug the kernel, there's a non-standard
276# extension to the remote protocol that can be used to use the serial
277# port as both the debugging port and the system console.  It's non-
278# standard and you're on your own if you enable it.  See also the
279# "remotechat" variables in the FreeBSD specific version of gdb.
280#
281options 	GDB_REMOTE_CHAT
282
283# 
284# KTRACE enables the system-call tracing facility ktrace(2).
285#
286options 	KTRACE			#kernel tracing
287
288#
289# The INVARIANTS option is used in a number of source files to enable
290# extra sanity checking of internal structures.  This support is not
291# enabled by default because of the extra time it would take to check
292# for these conditions, which can only occur as a result of
293# programming errors.
294#
295options 	INVARIANTS
296
297#
298# The INVARIANT_SUPPORT option makes us compile in support for
299# verifying some of the internal structures.  It is a prerequisite for
300# 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be
301# called.  The intent is that you can set 'INVARIANTS' for single
302# source files (by changing the source file or specifying it on the
303# command line) if you have 'INVARIANT_SUPPORT' enabled.
304#
305options 	INVARIANT_SUPPORT
306
307#
308# The DIAGNOSTIC option is used to enable extra debugging information
309# from some parts of the kernel.  As this makes everything more noisy,
310# it is disabled by default.
311#
312options 	DIAGNOSTIC
313
314#
315# PERFMON causes the driver for Pentium/Pentium Pro performance counters
316# to be compiled.  See perfmon(4) for more information.
317#
318options 	PERFMON
319
320
321#
322# This option let some drivers co-exist that can't co-exist in a running
323# system.  This is used to be able to compile all kernel code in one go for
324# quality assurance purposes (like this file, which the option takes it name
325# from.)
326#
327options COMPILING_LINT
328
329
330# XXX - this doesn't belong here.
331# Allow ordinary users to take the console - this is useful for X.
332options 	UCONSOLE
333
334# XXX - this doesn't belong here either
335options 	USERCONFIG		#boot -c editor
336options 	INTRO_USERCONFIG	#imply -c and show intro screen
337options 	VISUAL_USERCONFIG	#visual boot -c editor
338
339# XXX - neither does this
340options 	ROOTDEVNAME=\"da0s2e\"
341
342#####################################################################
343# NETWORKING OPTIONS
344
345#
346# Protocol families:
347#  Only the INET (Internet) family is officially supported in FreeBSD.
348#  Source code for the NS (Xerox Network Service) is provided for amusement
349#  value.
350#
351options 	INET			#Internet communications protocols
352
353options 	IPX			#IPX/SPX communications protocols
354options 	IPXIP			#IPX in IP encapsulation (not available)
355options 	IPTUNNEL		#IP in IPX encapsulation (not available)
356
357options 	NETATALK		#Appletalk communications protocols
358
359# These are currently broken but are shipped due to interest.
360#options 	NS			#Xerox NS protocols
361
362# These are currently broken and are no longer shipped due to lack
363# of interest.
364#options 	CCITT			#X.25 network layer
365#options 	ISO
366#options 	TPIP			#ISO TP class 4 over IP
367#options 	TPCONS			#ISO TP class 0 over X.25
368#options 	LLC			#X.25 link layer for Ethernets
369#options 	HDLC			#X.25 link layer for serial lines
370#options 	EON			#ISO CLNP over IP
371#options 	NSIP			#XNS over IP
372
373#
374# Network interfaces:
375#  The `loop' pseudo-device is MANDATORY when networking is enabled.
376#  The `ether' pseudo-device provides generic code to handle
377#  Ethernets; it is MANDATORY when a Ethernet device driver is
378#  configured or token-ring is enabled.
379#  The 'fddi' pseudo-device provides generic code to support FDDI.
380#  The `sppp' pseudo-device serves a similar role for certain types
381#  of synchronous PPP links (like `cx', `ar').
382#  The `sl' pseudo-device implements the Serial Line IP (SLIP) service.
383#  The `ppp' pseudo-device implements the Point-to-Point Protocol.
384#  The `bpf' pseudo-device enables the Berkeley Packet Filter.  Be
385#  aware of the legal and administrative consequences of enabling this
386#  option.  The number of devices determines the maximum number of
387#  simultaneous BPF clients programs runnable.
388#  The `disc' pseudo-device implements a minimal network interface,
389#  which throws away all packets sent and never receives any.  It is
390#  included for testing purposes.
391#  The `tun' pseudo-device implements (user-)ppp and nos-tun
392#  The `streams' pseudo-device implements SysVR4 STREAMS emulation.
393#
394# The PPP_BSDCOMP option enables support for compress(1) style entire
395# packet compression, the PPP_DEFLATE is for zlib/gzip style compression.
396# PPP_FILTER enables code for filtering the ppp data stream and selecting
397# events for resetting the demand dial activity timer - requires bpf.
398# See pppd(8) for more details.
399#
400pseudo-device	ether			#Generic Ethernet
401pseudo-device	token			#Generic TokenRing
402pseudo-device	fddi			#Generic FDDI
403pseudo-device	sppp			#Generic Synchronous PPP
404pseudo-device	loop			#Network loopback device
405pseudo-device	bpf			#Berkeley packet filter
406pseudo-device	disc			#Discard device
407pseudo-device	tun			#Tunnel driver (ppp(8), nos-tun(8))
408pseudo-device	sl	2		#Serial Line IP
409pseudo-device	ppp	2		#Point-to-point protocol
410pseudo-device	streams
411options PPP_BSDCOMP			#PPP BSD-compress support
412options PPP_DEFLATE			#PPP zlib/deflate/gzip support
413options PPP_FILTER			#enable bpf filtering (needs bpf)
414
415#
416# Internet family options:
417#
418# TCP_COMPAT_42 causes the TCP code to emulate certain bugs present in
419# 4.2BSD.  This option should not be used unless you have a 4.2BSD
420# machine and TCP connections fail.
421#
422# MROUTING enables the kernel multicast packet forwarder, which works
423# with mrouted(8).
424#
425# IPFIREWALL enables support for IP firewall construction, in
426# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
427# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
428# limits the number of times a matching entry can be logged.
429#
430# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
431# and if you do not add other rules during startup to allow access,
432# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set firewall=open
433# in /etc/rc.conf when first enabling this feature, then refining the
434# firewall rules in /etc/rc.firewall after you've tested that the new kernel
435# feature works properly.
436#
437# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
438# allow everything.  Use with care, if a cracker can crash your
439# firewall machine, they can get to your protected machines.  However,
440# if you are using it as an as-needed filter for specific problems as
441# they arise, then this may be for you.  Changing the default to 'allow'
442# means that you won't get stuck if the kernel and /sbin/ipfw binary get
443# out of sync.
444#
445# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''
446#
447# IPFILTER enables Darren Reed's ipfilter package.
448# IPFILTER_LOG enables ipfilter's logging.
449# IPFILTER_LKM enables LKM support for an ipfilter module (untested).
450#
451# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
452# packets without touching the ttl).  This can be useful to hide firewalls
453# from traceroute and similar tools.
454#
455# TCPDEBUG is undocumented.
456#
457options 	TCP_COMPAT_42		#emulate 4.2BSD TCP bugs
458options 	MROUTING		# Multicast routing
459options         IPFIREWALL              #firewall
460options         IPFIREWALL_VERBOSE      #print information about
461					# dropped packets
462options         IPFIREWALL_FORWARD      #enable transparent proxy support
463options 	IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
464options 	IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
465options 	IPDIVERT		#divert sockets
466options 	IPFILTER		#kernel ipfilter support
467options 	IPFILTER_LOG		#ipfilter logging
468#options 	IPFILTER_LKM		#kernel support for ip_fil.o LKM
469options 	IPSTEALTH		#support for stealth forwarding
470options 	TCPDEBUG
471
472# ICMP_BANDLIM enables icmp error response bandwidth limiting.   You
473# typically want this option as it will help protect the machine from
474# D.O.S. packet attacks.
475#
476options         ICMP_BANDLIM
477
478# DUMMYNET enables the "dummynet" bandwidth limiter. You need
479# IPFIREWALL as well. See the dummynet(4) manpage for more info.
480# BRIDGE enables bridging between ethernet cards -- see bridge(4).
481# You can use IPFIREWALL and dummynet together with bridging.
482options DUMMYNET
483options BRIDGE
484
485#
486# ATM (HARP version) options
487#
488# ATM_CORE includes the base ATM functionality code.  This must be included
489#	for ATM support.
490#
491# ATM_IP includes support for running IP over ATM.
492#
493# At least one (and usually only one) of the following signalling managers 
494# must be included (note that all signalling managers include PVC support):
495# ATM_SIGPVC includes support for the PVC-only signalling manager `sigpvc'.
496# ATM_SPANS includes support for the `spans' signalling manager, which runs
497#	the FORE Systems's proprietary SPANS signalling protocol. 
498# ATM_UNI includes support for the `uni30' and `uni31' signalling managers, 
499#	which run the ATM Forum UNI 3.x signalling protocols.
500#
501# The `hea' driver provides support for the Efficient Networks, Inc.
502# ENI-155p ATM PCI Adapter.
503#
504# The `hfa' driver provides support for the FORE Systems, Inc.
505# PCA-200E ATM PCI Adapter.
506#
507options 	ATM_CORE		#core ATM protocol family
508options 	ATM_IP			#IP over ATM support
509options 	ATM_SIGPVC		#SIGPVC signalling manager
510options 	ATM_SPANS		#SPANS signalling manager
511options 	ATM_UNI			#UNI signalling manager
512device		hea0			#Efficient ENI-155p ATM PCI
513device		hfa0			#FORE PCA-200E ATM PCI
514
515
516#####################################################################
517# FILESYSTEM OPTIONS
518
519#
520# Only the root, /usr, and /tmp filesystems need be statically
521# compiled; everything else will be automatically loaded at mount
522# time.  (Exception: the UFS family---FFS, and MFS --- cannot
523# currently be demand-loaded.)  Some people still prefer to statically
524# compile other filesystems as well.
525#
526# NB: The NULL, PORTAL, UMAP and UNION filesystems are known to be
527# buggy, and WILL panic your system if you attempt to do anything with
528# them.  They are included here as an incentive for some enterprising
529# soul to sit down and fix them.
530#
531
532# One of these is mandatory:
533options 	FFS			#Fast filesystem
534options 	MFS			#Memory File System
535options 	NFS			#Network File System
536
537# The rest are optional:
538# options	NFS_NOSERVER		#Disable the NFS-server code.
539options 	CD9660			#ISO 9660 filesystem
540options 	FDESC			#File descriptor filesystem
541options 	KERNFS			#Kernel filesystem
542options 	MSDOSFS			#MS DOS File System
543options 	NTFS			#NT File System
544options 	NULLFS			#NULL filesystem
545options 	PORTAL			#Portal filesystem
546options 	PROCFS			#Process filesystem
547options 	UMAPFS			#UID map filesystem
548options 	UNION			#Union filesystem
549# The xFS_ROOT options REQUIRE the associated ``options xFS''
550options 	CD9660_ROOT		#CD-ROM usable as root device
551options 	FFS_ROOT		#FFS usable as root device
552options 	MFS_ROOT		#MFS usable as root device
553options 	NFS_ROOT		#NFS usable as root device
554# This code is still experimental (e.g. doesn't handle disk slices well).
555# Also, 'options MFS' is currently incompatible with DEVFS.
556options 	DEVFS			#devices filesystem
557
558# Soft updates is technique for improving file system speed and
559# making abrupt shutdown less risky.  It is not enabled by default due
560# to copyright restraints on the code that implement it.
561#
562# Read ../../ufs/ffs/README.softupdates to learn what you need to
563# do to enable this.  ../../contrib/softupdates/README gives
564# more details on how they actually work.
565#
566options 	SOFTUPDATES
567
568# Make space in the kernel for a MFS root filesystem.  Define to the number
569# of kilobytes to reserve for the filesystem.
570options 	MFS_ROOT_SIZE=10
571
572# Allow this many swap-devices.
573options 	NSWAPDEV=20
574
575# Disk quotas are supported when this option is enabled.
576options 	QUOTA			#enable disk quotas
577
578# In particular multi-session CD-Rs might require a huge amount of
579# time in order to "settle".  If we are about mounting them as the
580# root f/s, we gotta wait a little.
581#
582# The number is supposed to be in seconds.
583options 	CD9660_ROOTDELAY=20
584
585# If you are running a machine just as a fileserver for PC and MAC
586# users, using SAMBA or Netatalk, you may consider setting this option
587# and keeping all those users' directories on a filesystem that is
588# mounted with the suiddir option. This gives new files the same
589# ownership as the directory (similar to group). It's a security hole
590# if you let these users run programs, so confine it to file-servers
591# (but it'll save you lots of headaches in those cases). Root owned
592# directories are exempt and X bits are cleared. The suid bit must be
593# set on the directory as well; see chmod(1) PC owners can't see/set
594# ownerships so they keep getting their toes trodden on. This saves
595# you all the support calls as the filesystem it's used on will act as
596# they expect: "It's my dir so it must be my file".
597#
598options 	SUIDDIR
599
600# NFS options:
601options 	NFS_MINATTRTIMO=3	# VREG attrib cache timeout in sec
602options 	NFS_MAXATTRTIMO=60
603options 	NFS_MINDIRATTRTIMO=30	# VDIR attrib cache timeout in sec
604options 	NFS_MAXDIRATTRTIMO=60
605options 	NFS_GATHERDELAY=10	# Default write gather delay (msec)
606options 	NFS_UIDHASHSIZ=29	# Tune the size of nfssvc_sock with this
607options 	NFS_WDELAYHASHSIZ=16	# and with this
608options 	NFS_MUIDHASHSIZ=63	# Tune the size of nfsmount with this
609options 	NFS_DEBUG		# Enable NFS Debugging
610
611# Coda stuff:
612options 	CODA			#CODA filesystem.
613pseudo-device	vcoda	4		#coda minicache <-> venus comm.
614
615#
616# Add support for the EXT2FS filesystem of Linux fame.  Be a bit
617# careful with this - the ext2fs code has a tendency to lag behind
618# changes and not be exercised very much, so mounting read/write could
619# be dangerous (and even mounting read only could result in panics.)
620#
621options 	EXT2FS
622
623
624
625#####################################################################
626# POSIX P1003.1B
627
628# Real time extensions added in the 1993 Posix
629# P1003_1B: Infrastructure
630# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
631# _KPOSIX_VERSION:             Version kernel is built for
632
633options 	P1003_1B
634options 	_KPOSIX_PRIORITY_SCHEDULING
635options 	_KPOSIX_VERSION=199309L
636
637
638#####################################################################
639# SCSI DEVICES
640
641# SCSI DEVICE CONFIGURATION
642
643# The SCSI subsystem consists of the `base' SCSI code, a number of
644# high-level SCSI device `type' drivers, and the low-level host-adapter
645# device drivers.  The host adapters are listed in the ISA and PCI
646# device configuration sections below.
647#
648# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
649# that a given bus, target, and LUN always come on line as the same
650# device unit.  In earlier versions the unit numbers were assigned
651# in the order that the devices were probed on the SCSI bus.  This
652# means that if you removed a disk drive, you may have had to rewrite
653# your /etc/fstab file, and also that you had to be careful when adding
654# a new disk as it may have been probed earlier and moved your device
655# configuration around.
656
657# This old behavior is maintained as the default behavior.  The unit
658# assignment begins with the first non-wired down unit for a device
659# type.  For example, if you wire a disk as "da3" then the first
660# non-wired disk will be assigned da4.
661
662# The syntax for wiring down devices is:
663
664# controller	scbus0 at ahc0		# Single bus device
665# controller	scbus1 at ahc1 bus 0	# Single bus device
666# controller	scbus3 at ahc2 bus 0	# Twin bus device
667# controller	scbus2 at ahc2 bus 1	# Twin bus device
668# disk 		da0 at scbus0 target 0 unit 0
669# disk		da1 at scbus3 target 1
670# disk		da2 at scbus2 target 3
671# tape		sa1 at scbus1 target 6
672# device	cd0 at scbus?
673
674# "units" (SCSI logical unit number) that are not specified are
675# treated as if specified as LUN 0.
676
677# All SCSI devices allocate as many units as are required.
678
679# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
680# configuration and doesn't have to be explicitly configured.
681
682controller	scbus0	#base SCSI code
683device		ch0	#SCSI media changers
684device		da0	#SCSI direct access devices (aka disks)
685device		sa0	#SCSI tapes
686device		cd0	#SCSI CD-ROMs
687device		pass0	#CAM passthrough driver
688
689# The previous devices (ch, da, st, cd) are recognized by config.
690# config doesn't (and shouldn't) know about these newer ones,
691# so we have to specify that they are on a SCSI bus with the "at scbus?"
692# clause.
693
694device pt0 at scbus?	# SCSI processor type
695
696# CAM OPTIONS:
697# debugging options:
698# -- NOTE --  If you specify one of the bus/target/lun options, you must
699#             specify them all!
700# CAMDEBUG: When defined enables debugging macros
701# CAM_DEBUG_BUS:  Debug the given bus.  Use -1 to debug all busses.
702# CAM_DEBUG_TARGET:  Debug the given target.  Use -1 to debug all targets.
703# CAM_DEBUG_LUN:  Debug the given lun.  Use -1 to debug all luns.
704# CAM_DEBUG_FLAGS:  OR together CAM_DEBUG_INFO, CAM_DEBUG_TRACE,
705#                   CAM_DEBUG_SUBTRACE, and CAM_DEBUG_CDB
706# 
707# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
708# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
709# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
710# SCSI_REPORT_GEOMETRY: Always report disk geometry at boot up instead
711#                       of only when booting verbosely.
712# SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter)
713#             queue after a bus reset, and the number of milliseconds to
714#             freeze the device queue after a bus device reset.
715options 	CAMDEBUG
716options 	CAM_DEBUG_BUS=-1
717options 	CAM_DEBUG_TARGET=-1
718options 	CAM_DEBUG_LUN=-1
719options 	CAM_DEBUG_FLAGS="CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB"
720options 	CAM_MAX_HIGHPOWER=4
721options 	SCSI_NO_SENSE_STRINGS
722options 	SCSI_NO_OP_STRINGS
723options 	SCSI_REPORT_GEOMETRY
724options 	SCSI_DELAY=8000	# Be pessimistic about Joe SCSI device
725
726# Options for the CAM CDROM driver:
727# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
728# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
729#                           enforced if there is I/O waiting for another LUN
730# The compiled in defaults for these variables are 2 and 10 seconds,
731# respectively.
732#
733# These can also be changed on the fly with the following sysctl variables:
734# kern.cam.cd.changer.min_busy_seconds
735# kern.cam.cd.changer.max_busy_seconds
736#
737options 	CHANGER_MIN_BUSY_SECONDS=2
738options 	CHANGER_MAX_BUSY_SECONDS=10
739
740# Options for the CAM sequential access driver:
741# SA_SPACE_TIMEOUT: Timeout for space operations, in minutes
742# SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes
743# SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes
744options 	SA_SPACE_TIMEOUT="(60)"
745options 	SA_REWIND_TIMEOUT="(2*60)"
746options 	SA_ERASE_TIMEOUT="(4*60)"
747
748# Optional timeout for the CAM processor target (pt) device
749# This is specified in seconds.  The default is 60 seconds.
750options		SCSI_PT_DEFAULT_TIMEOUT="60"
751
752
753#####################################################################
754# MISCELLANEOUS DEVICES AND OPTIONS
755
756# The `pty' device usually turns out to be ``effectively mandatory'',
757# as it is required for `telnetd', `rlogind', `screen', `emacs', and
758# `xterm', among others.
759
760pseudo-device	pty		#Pseudo ttys
761pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
762pseudo-device	gzip		#Exec gzipped a.out's
763pseudo-device	vn		#Vnode driver (turns a file into a device)
764pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
765pseudo-device	ccd	4	#Concatenated disk driver
766
767# Configuring Vinum into the kernel is not necessary, since the kld
768# module gets started automatically when vinum(8) starts.  This 
769# device is also untested.  Use at your own risk.
770#
771# The option VINUMDEBUG must match the value set in CFLAGS
772# in /usr/src/sbin/vinum/Makefile.  Failure to do so will result in
773# the following message from vinum(8):
774#
775# Can't get vinum config: Invalid argument
776#
777# see vinum(4) for more reasons not to use these options.
778pseudo-device	vinum		#Vinum concat/mirror/raid driver
779options 	VINUMDEBUG	#enable Vinum debugging hooks
780
781# These are only for watching for bitrot in old tty code.
782# broken
783#pseudo-device	tb
784
785# Size of the kernel message buffer.  Should be N * pagesize.
786options 	MSGBUF_SIZE=40960
787
788
789#####################################################################
790# HARDWARE DEVICE CONFIGURATION
791
792# ISA and EISA devices:
793# EISA support is available for some device, so they can be auto-probed.
794# Micro Channel is not supported at all.
795
796#
797# Mandatory ISA devices: isa, npx
798#
799controller	isa0
800
801#
802# Options for `isa':
803#
804# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
805# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
806# This option breaks suspend/resume on some portables.
807#
808# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
809# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
810# Automatic EOI is documented not to work for for the slave with the
811# original i8259A, but it works for some clones and some integrated
812# versions.
813#
814# MAXMEM specifies the amount of RAM on the machine; if this is not
815# specified, FreeBSD will first read the amount of memory from the CMOS
816# RAM, so the amount of memory will initially be limited to 64MB or 16MB
817# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
818# then attempt to detect the installed amount of RAM.  If this probe
819# fails to detect >64MB RAM you will have to use the MAXMEM option.
820# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
821# be 131072 (128 * 1024).
822#
823# TUNE_1542 enables the automatic ISA bus speed selection for the
824# Adaptec 1542 boards. Does not work for all boards, use it with caution.
825#
826# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
827# reset the CPU for reboot.  This is needed on some systems with broken
828# keyboard controllers.
829#
830# PAS_JOYSTICK_ENABLE enables the gameport on the ProAudio Spectrum
831
832options 	AUTO_EOI_1
833#options 	AUTO_EOI_2
834options 	MAXMEM="(128*1024)"
835options 	TUNE_1542
836#options 	BROKEN_KEYBOARD_RESET
837#options 	PAS_JOYSTICK_ENABLE
838
839# Enable support for the kernel PLL to use an external PPS signal,
840# under supervision of [x]ntpd(8)
841# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
842
843options 	PPS_SYNC
844
845# If you see the "calcru: negative time of %ld usec for pid %d (%s)\n"
846# message you probably have some broken sw/hw which disables interrupts
847# for too long.  You can make the system more resistant to this by
848# choosing a high value for NTIMECOUNTER.  The default is 5, there
849# is no upper limit but more than a couple of hundred are not productive.
850# A better strategy may be to sysctl -w kern.timecounter.method=1
851
852options 	NTIMECOUNTER=20
853
854# Enable PnP support in the kernel.  This allows you to automatically
855# attach to PnP cards for drivers that support it and allows you to
856# configure cards from USERCONFIG.  See pnp(4) for more info.
857controller	pnp0
858
859# The keyboard controller; it controls the keyboard and the PS/2 mouse.
860controller	atkbdc0	at isa? port IO_KBD
861
862# The AT keyboard
863device		atkbd0	at atkbdc? irq 1
864
865# Options for atkbd:
866options 	ATKBD_DFLT_KEYMAP	# specify the built-in keymap
867makeoptions	ATKBD_DFLT_KEYMAP="jp.106"
868
869# These options are valid for other keyboard drivers as well.
870options 	KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
871options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
872
873# `flags' for atkbd:
874#       0x01    Force detection of keyboard, else we always assume a keyboard
875#       0x02    Don't reset keyboard, useful for some newer ThinkPads
876#       0x04    Old-style (XT) keyboard support, useful for older ThinkPads
877
878# PS/2 mouse
879device		psm0	at atkbdc? irq 12
880
881# Options for psm:
882options 	PSM_HOOKAPM		#hook the APM resume event, useful
883					#for some laptops
884options 	PSM_RESETAFTERSUSPEND	#reset the device at the resume event
885
886# The video card driver.
887device		vga0	at isa? port ? conflicts
888
889# Options for vga:
890# Try the following option if the mouse pointer is not drawn correctly 
891# or font does not seem to be loaded properly.  May cause flicker on 
892# some systems.
893options 	VGA_ALT_SEQACCESS
894
895# If you can dispense with some vga driver features, you may want to
896# use the following options to save some memory.
897options 	VGA_NO_FONT_LOADING	# don't save/load font
898options 	VGA_NO_MODE_CHANGE	# don't change video modes
899
900# Older video cards may require this option for proper operation.
901options 	VGA_SLOW_IOACCESS	# do byte-wide i/o's to TS and GDC regs
902
903# The following option probably won't work with the LCD displays.
904options		VGA_WIDTH90		# support 90 column modes
905
906# To include support for VESA video modes
907options 	VESA
908
909# Splash screen at start up!  Screen savers require this too.
910pseudo-device	splash
911
912# The pcvt console driver (vt220 compatible).
913device		vt0	at isa?
914options 	XSERVER			# support for running an X server.
915options 	FAT_CURSOR		# start with block cursor
916# This PCVT option is for keyboards such as those used on IBM ThinkPad laptops
917options 	PCVT_SCANSET=2 		# IBM keyboards are non-std
918# Other PCVT options are documented in pcvt(4).
919options 	PCVT_24LINESDEF
920options 	PCVT_CTRL_ALT_DEL
921options 	PCVT_EMU_MOUSE
922options 	PCVT_FREEBSD=211
923options 	PCVT_META_ESC
924options 	PCVT_NSCREENS=9
925options 	PCVT_PRETTYSCRNS
926options 	PCVT_SCREENSAVER
927options 	PCVT_USEKBDSEC
928options 	PCVT_VT220KEYB
929
930# The syscons console driver (sco color console compatible).
931device		sc0	at isa?
932options 	MAXCONS=16		# number of virtual consoles
933options 	SC_ALT_MOUSE_IMAGE	# simplified mouse cursor in text mode
934options 	SC_DFLT_FONT		# compile font in
935makeoptions	SC_DFLT_FONT=cp850
936options 	SC_DISABLE_DDBKEY	# disable `debug' key
937options 	SC_DISABLE_REBOOT	# disable reboot key sequence
938options 	SC_HISTORY_SIZE=200	# number of history buffer lines
939options 	SC_MOUSE_CHAR=0x3	# char code for text mode mouse cursor
940options 	SC_PIXEL_MODE		# add support for the raster text mode
941
942# You can selectively disable features in syscons.
943options 	SC_NO_CUTPASTE
944options 	SC_NO_FONT_LOADING
945options 	SC_NO_HISTORY
946options 	SC_NO_SYSMOUSE
947
948#
949# The Numeric Processing eXtension driver.  In addition to this, you
950# may configure a math emulator (see above).  If your machine has a
951# hardware FPU and the kernel configuration includes the npx device
952# *and* a math emulator compiled into the kernel, the hardware FPU
953# will be used, unless it is found to be broken or unless "flags" to
954# npx0 includes "0x08", which requests preference for the emulator.
955device		npx0	at nexus? port IO_NPX flags 0x0 irq 13
956
957#
958# `flags' for npx0:
959#	0x01	don't use the npx registers to optimize bcopy.
960#	0x02	don't use the npx registers to optimize bzero.
961#	0x04	don't use the npx registers to optimize copyin or copyout.
962#	0x08	use emulator even if hardware FPU is available.
963# The npx registers are normally used to optimize copying and zeroing when
964# all of the following conditions are satisfied:
965#	I586_CPU is an option
966#	the cpu is an i586 (perhaps not a Pentium)
967#	the probe for npx0 succeeds
968#	INT 16 exception handling works.
969# Then copying and zeroing using the npx registers is normally 30-100% faster.
970# The flags can be used to control cases where it doesn't work or is slower.
971# Setting them at boot time using userconfig works right (the optimizations
972# are not used until later in the bootstrap when npx0 is attached).
973# Flag 0x08 automatically disables the i586 optimized routines.
974#
975
976#
977# Optional ISA and EISA devices:
978#
979
980#
981# SCSI host adapters: `aha', `bt'
982#
983# adv: All Narrow SCSI bus AdvanSys controllers.
984# adw: Second Generation AdvanSys controllers including the ADV940UW.
985# aha: Adaptec 154x
986# ahc: Adaptec 274x/284x/294x
987# bt: Most Buslogic controllers
988#
989# Note that the order is important in order for Buslogic cards to be
990# probed correctly.
991#
992
993controller	bt0	at isa? port IO_BT0 irq ?
994controller	adv0	at isa? port ? irq ?
995controller	adw0
996controller      aha0    at isa? port ? irq ?
997
998#
999# Compaq Smart RAID controller.  This driver also uses the major number
1000# of wd, in order to be able to boot a pure RAID system.
1001# Only one line of each is needed, the code finds all available controllers
1002# and devices.
1003#
1004controller	ida0
1005device		id0
1006
1007#
1008# ATA and ATAPI devices
1009# This is work in progress, use at your own risk.
1010# It currently reuses the majors of wd.c and friends.
1011# It cannot co-exist with the old system in one kernel.
1012# You only need one "controller ata0" for it to find all
1013# PCI devices on modern machines.
1014#controller	ata0
1015#device		atadisk0	# ATA disk drives
1016#device		atapicd0	# ATAPI CDROM drives
1017#device		atapifd0	# ATAPI floppy drives
1018#device		atapist0	# ATAPI tape drives
1019#
1020# If you need ISA only devices, this is the lines to add:
1021#controller	ata1	at isa? port IO_WD1 irq 14
1022#controller	ata2	at isa? port IO_WD2 irq 15
1023# 
1024# All the controller lines can coexist, the driver will
1025# find out which ones are there.
1026
1027#
1028# ST-506, ESDI, and IDE hard disks: `wdc' and `wd'
1029#
1030# The flags fields are used to enable the multi-sector I/O and
1031# the 32BIT I/O modes.  The flags may be used in either the controller
1032# definition or in the individual disk definitions.  The controller
1033# definition is supported for the boot configuration stuff.
1034#
1035# Each drive has a 16 bit flags value defined:
1036#	The low 8 bits are the maximum value for the multi-sector I/O,
1037#	where 0xff defaults to the maximum that the drive can handle.
1038#	The high bit of the 16 bit flags (0x8000) allows probing for
1039#	32 bit transfers.  Bit 14 (0x4000) enables a hack to wake
1040#	up powered-down laptop drives.  Bit 13 (0x2000) allows
1041#	probing for PCI IDE DMA controllers, such as Intel's PIIX
1042#	south bridges. Bit 12 (0x1000) sets LBA mode instead of the
1043#	default CHS mode for accessing the drive. See the wd.4 man page.
1044#
1045# The flags field for the drives can be specified in the controller
1046# specification with the low 16 bits for drive 0, and the high 16 bits
1047# for drive 1.
1048# e.g.:
1049#controller	wdc0	at isa? port IO_WD1 irq 14 flags 0x00ff8004
1050#
1051# specifies that drive 0 will be allowed to probe for 32 bit transfers and
1052# a maximum multi-sector transfer of 4 sectors, and drive 1 will not be
1053# allowed to probe for 32 bit transfers, but will allow multi-sector
1054# transfers up to the maximum that the drive supports.
1055#
1056# If you are using a PCI controller that is not running in compatibility
1057# mode (for example, it is a 2nd IDE PCI interface), then use config line(s)
1058# such as:
1059#
1060#controller	wdc2	at isa? port 0 irq ? flags 0xa0ffa0ff
1061#disk		wd4	at wdc2 drive 0
1062#disk		wd5	at wdc2 drive 1
1063#
1064#controller	wdc3	at isa? port 0 irq ? flags 0xa0ffa0ff
1065#disk		wd6	at wdc3 drive 0
1066#disk		wd7	at wdc3 drive 1
1067#
1068# Note that the above config would be useful for a Promise card, when used
1069# on a MB that already has a PIIX controller.  Note the bogus irq and port
1070# entries.  These are automatically filled in by the IDE/PCI support.
1071#
1072
1073controller	wdc0	at isa? port IO_WD1 irq 14
1074disk		wd0	at wdc0 drive 0
1075disk		wd1	at wdc0 drive 1
1076controller	wdc1	at isa? port IO_WD2 irq 15
1077disk		wd2	at wdc1 drive 0
1078disk		wd3	at wdc1 drive 1
1079
1080#
1081# This option allow you to override the default probe time for IDE
1082# devices, to get a faster probe.  Setting this below 10000 violate
1083# the IDE specs, but may still work for you (it will work for most
1084# people).
1085#
1086options 	IDE_DELAY=8000	# Be optimistic about Joe IDE device
1087
1088# IDE CD-ROM & CD-R/RW  driver - requires wdc controller
1089device          wcd0
1090
1091# IDE floppy driver - requires wdc controller
1092device          wfd0
1093
1094# IDE tape driver - requires wdc controller
1095device          wst0
1096
1097
1098#
1099# Standard floppy disk controllers and floppy tapes: `fdc', `fd', and `ft'
1100#
1101controller	fdc0	at isa? port IO_FD1 irq 6 drq 2
1102#
1103# FDC_DEBUG enables floppy debugging.  Since the debug output is huge, you
1104# gotta turn it actually on by setting the variable fd_debug with DDB,
1105# however.
1106options 	FDC_DEBUG
1107# FDC_YE enables support for the floppies used on the Libretto.  This is a
1108# pcmcia floppy.  You will also need to add
1109#card "Y-E DATA" "External FDD"
1110#        config 0x4 "fdc0" 10
1111# to your pccard.conf file.
1112options 	FDC_YE		#XXX newbus broken
1113#
1114# Activate this line instead of the fdc0 line above if you happen to
1115# have an Insight floppy tape.  Probing them proved to be dangerous
1116# for people with floppy disks only, so it's "hidden" behind a flag:
1117#controller fdc0 at isa? port IO_FD1 flags 1 irq 6 drq 2
1118
1119disk		fd0	at fdc0 drive 0
1120disk		fd1	at fdc0 drive 1
1121
1122# M-systems DiskOnchip products see src/sys/contrib/dev/fla/README
1123device		fla0	at isa?
1124
1125#
1126# Other standard PC hardware: `mse', `sio', etc.
1127#
1128# mse: Logitech and ATI InPort bus mouse ports
1129# sio: serial ports (see sio(4))
1130
1131device		mse0	at isa? port 0x23c irq 5
1132
1133device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
1134
1135#
1136# `flags' for serial drivers that support consoles (only for sio now):
1137#	0x10	enable console support for this unit.  The other console flags
1138#		are ignored unless this is set.  Enabling console support does
1139#		not make the unit the preferred console - boot with -h or set
1140#		the 0x20 flag for that.  Currently, at most one unit can have
1141#		console support; the first one (in config file order) with
1142#		this flag set is preferred.  Setting this flag for sio0 gives
1143#		the old behaviour.
1144#	0x20	force this unit to be the console (unless there is another
1145#		higher priority console).  This replaces the COMCONSOLE option.
1146#	0x40	reserve this unit for low level console operations.  Do not
1147#		access the device in any normal way.
1148#	0x80	use this port for serial line gdb support in ddb.
1149#
1150# PnP `flags' (set via userconfig using pnp x flags y)
1151#	0x1	disable probing of this device.  Used to prevent your modem
1152#		from being attached as a PnP modem.
1153#
1154
1155# Options for serial drivers that support consoles (only for sio now):
1156options 	BREAK_TO_DEBUGGER	#a BREAK on a comconsole goes to 
1157					#DDB, if available.
1158options 	CONSPEED=9600		#default speed for serial console (default 9600)
1159
1160# Options for sio:
1161options 	COM_ESP			#code for Hayes ESP
1162options 	COM_MULTIPORT		#code for some cards with shared IRQs
1163options 	EXTRA_SIO=2		#number of extra sio ports to allocate
1164
1165# Other flags for sio that aren't documented in the man page.
1166#	0x20000	enable hardware RTS/CTS and larger FIFOs.  Only works for
1167#		ST16650A-compatible UARTs.
1168
1169#
1170# Network interfaces: `cx', `ed', `el', `ep', `ie', `is', `le', `lnc'
1171#
1172# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver (requires sppp)
1173# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters
1174# cx: Cronyx/Sigma multiport sync/async (with Cisco or PPP framing)
1175# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
1176# el: 3Com 3C501 (slow!)
1177# ep: 3Com 3C509 (buggy)
1178# ex: Intel EtherExpress Pro/10 and other i82595-based adapters
1179# fe: Fujitsu MB86960A/MB86965A Ethernet
1180# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210; Intel EtherExpress
1181# le: Digital Equipment EtherWorks 2 and EtherWorks 3 (DEPCA, DE100,
1182#     DE101, DE200, DE201, DE202, DE203, DE204, DE205, DE422)
1183# lnc: Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 & Am79C960)
1184# rdp: RealTek RTL 8002-based pocket ethernet adapters
1185# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
1186# wl: Lucent Wavelan (ISA card only).
1187# wi: Lucent WaveLAN/IEEE 802.11 PCMCIA adapters. Note: this supports both
1188#     the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
1189#     bridge with a PCMCIA adapter plugged into it.
1190# xe: Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller.
1191# ze: IBM/National Semiconductor PCMCIA ethernet controller.
1192# zp: 3Com PCMCIA Etherlink III (It does not require shared memory for
1193#     send/receive operation, but it needs 'iomem' to read/write the
1194#     attribute memory)
1195# oltr: Olicom ISA token-ring adapters OC-3115, OC-3117, OC-3118 and OC-3133 
1196#       (no options needed)
1197#
1198device ar0 at isa? port 0x300 irq 10 iomem 0xd0000
1199device cs0 at isa? port 0x300 irq ?
1200device cx0 at isa? port 0x240 irq 15 drq 7
1201device ed0 at isa? port 0x280 irq 5 iomem 0xd8000
1202device el0 at isa? port 0x300 irq 9
1203device ep0 at isa? port 0x300 irq 10
1204device ex0 at isa? port? irq?
1205device fe0 at isa? port 0x300 irq ?
1206device ie0 at isa? port 0x300 irq 5 iomem 0xd0000
1207device ie1 at isa? port 0x360 irq 7 iomem 0xd0000
1208device le0 at isa? port 0x300 irq 5 iomem 0xd0000
1209device lnc0 at isa? port 0x280 irq 10 drq 0
1210device rdp0 at isa? port 0x378 irq 7 flags 2
1211device sr0 at isa? port 0x300 irq 5 iomem 0xd0000
1212device wi0 at isa? port? irq?
1213options 	WLCACHE		# enables the signal-strength cache
1214options 	WLDEBUG		# enables verbose debugging output
1215device wl0 at isa? port 0x300 irq ?
1216device xe0 at isa? port? irq ?
1217# We can (bogusly) include both the dedicated PCCARD drivers and the generic
1218# support when COMPILING_LINT.
1219device ze0 at isa? port 0x300 irq 5 iomem 0xd8000
1220device zp0 at isa? port 0x300 irq 10 iomem 0xd8000
1221
1222device oltr0 at isa?
1223
1224#
1225# ATM related options
1226#
1227# The `en' device provides support for Efficient Networks (ENI)
1228# ENI-155 PCI midway cards, and the Adaptec 155Mbps PCI ATM cards (ANA-59x0).
1229#
1230# atm pseudo-device provides generic atm functions and is required for
1231# atm devices.
1232# NATM enables the netnatm protocol family that can be used to
1233# bypass TCP/IP.
1234#
1235# the current driver supports only PVC operations (no atm-arp, no multicast).
1236# for more details, please read the original documents at 
1237# http://www.ccrc.wustl.edu/pub/chuck/bsdatm/wucs.html
1238#
1239pseudo-device	atm
1240device en0
1241device en1
1242options 	NATM			#native ATM
1243
1244#
1245# Audio drivers: `snd', `sb', `pas', `gus', `pca'
1246#
1247# snd: Voxware sound support code
1248# sb: SoundBlaster PCM - SoundBlaster, SB Pro, SB16, ProAudioSpectrum
1249# sbxvi: SoundBlaster 16
1250# sbmidi: SoundBlaster 16 MIDI interface
1251# pas: ProAudioSpectrum PCM and MIDI
1252# gus: Gravis Ultrasound - Ultrasound, Ultrasound 16, Ultrasound MAX
1253# gusxvi: Gravis Ultrasound 16-bit PCM	(do not use)
1254# mss: Microsoft Sound System
1255# css: Crystal Sound System (CSS 423x PnP)
1256# sscape: Ensoniq Soundscape MIDI interface
1257# sscape_mss: Ensoniq Soundscape PCM (requires sscape)
1258# opl: Yamaha OPL-2 and OPL-3 FM - SB, SB Pro, SB 16, ProAudioSpectrum
1259# uart: stand-alone 6850 UART for MIDI
1260# mpu: Roland MPU-401 stand-alone card
1261#
1262# Note: It has been reported that ISA DMA with the SoundBlaster will
1263# lock up the machine (PR docs/5358).  If this happens to you,
1264# turning off USWC write posting in your machine's BIOS may fix
1265# the problem.
1266# 
1267# Beware!  The addresses specified below are also hard-coded in
1268# i386/isa/sound/sound_config.h.  If you change the values here, you
1269# must also change the values in the include file.
1270#
1271# pcm: PCM audio through various sound cards.
1272#
1273# This has support for a large number of new audio cards, based on
1274# CS423x, OPTi931, Yamaha OPL-SAx, and also for SB16, GusPnP.
1275# For more information about this driver and supported cards,
1276# see the pcm.4 man page and /sys/i386/isa/snd/CARDS.
1277#
1278# The flags of the device tells the device a bit more info about the
1279# device that normally is obtained through the PnP interface.
1280#	bit  2..0   secondary DMA channel;
1281#	bit  4      set if the board uses two dma channels;
1282#	bit 15..8   board type, overrides autodetection; leave it
1283#		    zero if don't know what to put in (and you don't,
1284#		    since this is unsupported at the moment...).
1285#
1286# This driver will use the new PnP code if it's available.
1287#
1288# pca: PCM audio through your PC speaker
1289#
1290# If you have a GUS-MAX card and want to use the CS4231 codec on the
1291# card the drqs for the gus max must be 8 bit (1, 2, or 3).
1292# 
1293# If you would like to use the full duplex option on the gus, then define
1294# flags to be the ``read dma channel''.
1295#
1296# options BROKEN_BUS_CLOCK	#PAS-16 isn't working and OPTI chipset
1297# options SYMPHONY_PAS		#PAS-16 isn't working and SYMPHONY chipset
1298# options EXCLUDE_SBPRO		#PAS-16
1299# options SBC_IRQ=5		#PAS-16. Must match irq on sb0 line.
1300# PAS16: The order of the pas0/sb0/opl0 is important since the
1301#	sb emulation is enabled in the pas-16 attach.
1302#
1303# To override the GUS defaults use:
1304# options GUS_DMA2
1305# options GUS_DMA
1306# options GUS_IRQ
1307#
1308# The i386/isa/sound/sound.doc has more information.
1309
1310# Controls all "VOXWARE" driver sound devices.  See Luigi's driver
1311# below for an alternate which may work better for some cards.
1312#
1313controller	snd0
1314device pas0     at isa? port 0x388 irq 10 drq 6
1315device sb0      at isa? port 0x220 irq 5 drq 1
1316device sbxvi0   at isa? drq 5
1317device sbmidi0  at isa? port 0x330
1318device awe0     at isa? port 0x620
1319device gus0 at isa? port 0x220 irq 12 drq 1
1320#device gus0 at isa? port 0x220 irq 12 drq 1 flags 0x3
1321device mss0 at isa? port 0x530 irq 10 drq 1
1322device css0	at isa? port 0x534 irq 5 drq 1 flags 0x08
1323device sscape0  at isa? port 0x330 irq 9 drq 0
1324device trix0    at isa? port 0x330 irq 6 drq 0
1325device sscape_mss0  at isa? port 0x534 irq 5 drq 1
1326device opl0     at isa? port 0x388
1327device mpu0     at isa? port 0x330 irq 6 drq 0
1328device uart0 at isa? port 0x330 irq 5
1329
1330# The newpcm driver (use INSTEAD of snd0 and all VOXWARE drivers!).
1331# You may also wish to enable the pnp controller with this, for pnp
1332# sound cards.
1333#
1334# For non-pnp sound cards only:
1335#device pcm0 at isa? port ? irq 10 drq 1 flags 0x0
1336#
1337# For pnp sound cards:
1338#device pcm0
1339
1340# Not controlled by `snd'
1341device pca0 at isa? port IO_TIMER1
1342
1343#
1344# Miscellaneous hardware:
1345#
1346# mcd: Mitsumi CD-ROM
1347# scd: Sony CD-ROM
1348# matcd: Matsushita/Panasonic CD-ROM
1349# wt: Wangtek and Archive QIC-02/QIC-36 tape drives
1350# ctx: Cortex-I frame grabber
1351# apm: Laptop Advanced Power Management (experimental)
1352# spigot: The Creative Labs Video Spigot video-acquisition board
1353# meteor: Matrox Meteor video capture board
1354# bktr: Brooktree bt848/848a/849a/878/879 video capture and TV Tuner board
1355# cy: Cyclades serial driver
1356# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!)
1357# dgm: Digiboard PC/Xem driver
1358# gp:  National Instruments AT-GPIB and AT-GPIB/TNT board
1359# asc: GI1904-based hand scanners, e.g. the Trust Amiscan Grey
1360# gsc: Genius GS-4500 hand scanner.
1361# joy: joystick
1362# labpc: National Instrument's Lab-PC and Lab-PC+
1363# rc: RISCom/8 multiport card
1364# rp: Comtrol Rocketport(ISA) - single card
1365# tw: TW-523 power line interface for use with X-10 home control products
1366# si: Specialix SI/XIO 4-32 port terminal multiplexor
1367# stl: Stallion EasyIO and EasyConnection 8/32 (cd1400 based)
1368# stli: Stallion EasyConnection 8/64, ONboard, Brumby (intelligent)
1369
1370# Notes on APM
1371#  The flags takes the following meaning for apm0:
1372#    0x0020  Statclock is broken.
1373#    0x0011  Limit APM protocol to 1.1 or 1.0
1374#    0x0010  Limit APM protocol to 1.0
1375#  If apm is omitted, some systems require sysctl -w kern.timcounter.method=1
1376#  for correct timekeeping.
1377
1378# Notes on the spigot:
1379#  The video spigot is at 0xad6.  This port address can not be changed.
1380#  The irq values may only be 10, 11, or 15
1381#  I/O memory is an 8kb region.  Possible values are:
1382#    0a0000, 0a2000, ..., 0fffff, f00000, f02000, ..., ffffff
1383#    The start address must be on an even boundary.
1384#  Add the following option if you want to allow non-root users to be able
1385#  to access the spigot.  This option is not secure because it allows users
1386#  direct access to the I/O page. 
1387#  	options SPIGOT_UNSECURE
1388
1389# Notes on the Comtrol Rocketport driver:
1390#
1391# The exact values used for rp0 depend on how many boards you have
1392# in the system.  The manufacturer's sample configs are listed as:
1393#
1394#   Comtrol Rocketport ISA single card
1395#               device  rp0     at isa? port 0x280
1396#
1397#   If instead you have two ISA cards, one installed at 0x100 and the
1398#   second installed at 0x180, then you should add the following to
1399#   your kernel configuration file:
1400#
1401#               device  rp0     at isa? port 0x100
1402#               device  rp1     at isa? port 0x180
1403#
1404#   For 4 ISA cards, it might be something like this:
1405#
1406#               device  rp0     at isa? port 0x180
1407#               device  rp1     at isa? port 0x100
1408#               device  rp2     at isa? port 0x340
1409#               device  rp3     at isa? port 0x240
1410#
1411#   And for PCI cards, you only need say:
1412#
1413#               device rp0
1414#               device rp1
1415#               ...
1416#   Note: Make sure that any Rocketport PCI devices are specified BEFORE the
1417#   ISA Rocketport devices.
1418
1419# Notes on the Digiboard driver:
1420#
1421# The following flag values have special meanings:
1422#	0x01 - alternate layout of pins (dgb & dgm)
1423#	0x02 - use the windowed PC/Xe in 64K mode (dgb only)
1424
1425# Notes on the Specialix SI/XIO driver:
1426#  **This is NOT a Specialix supported Driver!**
1427#  The host card is memory, not IO mapped.
1428#  The Rev 1 host cards use a 64K chunk, on a 32K boundary.
1429#  The Rev 2 host cards use a 32K chunk, on a 32K boundary.
1430#  The cards can use an IRQ of 11, 12 or 15.
1431
1432# Notes on the Stallion stl and stli drivers:
1433#  See src/i386/isa/README.stl for complete instructions.
1434#  This is version 0.0.5alpha, unsupported by Stallion.
1435#  The stl driver has a secondary IO port hard coded at 0x280.  You need
1436#     to change src/i386/isa/stallion.c if you reconfigure this on the boards.
1437#  The "flags" and "iosiz" settings on the stli driver depend on the board:
1438#	EasyConnection 8/64 ISA:     flags 23         iosiz 0x1000
1439#	EasyConnection 8/64 EISA:    flags 24         iosiz 0x10000
1440#	EasyConnection 8/64 MCA:     flags 25         iosiz 0x1000
1441#	ONboard ISA:                 flags 4          iosiz 0x10000
1442#	ONboard EISA:                flags 7          iosiz 0x10000
1443#	ONboard MCA:                 flags 3          iosiz 0x10000
1444#	Brumby:                      flags 2          iosiz 0x4000
1445#	Stallion:                    flags 1          iosiz 0x10000
1446
1447device		mcd0	at isa? port 0x300 irq 10
1448# for the Sony CDU31/33A CDROM
1449device		scd0	at isa? port 0x230
1450# for the SoundBlaster 16 multicd - up to 4 devices
1451controller      matcd0  at isa? port 0x230
1452device		wt0	at isa? port 0x300 irq 5 drq 1
1453device		ctx0	at isa? port 0x230 iomem 0xd0000
1454device		spigot0 at isa? port 0xad6 irq 15 iomem 0xee000
1455device		apm0	at nexus? 
1456device		gp0	at isa? port 0x2c0
1457device		gsc0	at isa? port IO_GSC1 drq 3
1458device		joy0	at isa? port IO_GAME
1459device		cy0	at isa? irq 10 iomem 0xd4000 iosiz 0x2000
1460options 	CY_PCI_FASTINTR		# Use with cy_pci unless irq is shared
1461device		dgb0	at isa? port 0x220 iomem 0xfc000 iosiz ?
1462options 	NDGBPORTS=16		# Defaults to 16*NDGB
1463device		dgm0	at isa? port 0x104 iomem 0xd0000 iosiz ?
1464device		labpc0	at isa? port 0x260 irq 5
1465device          rc0     at isa? port 0x220 irq 12
1466device          rp0     at isa? port 0x280
1467# the port and irq for tw0 are fictitious
1468device          tw0     at isa? port 0x380 irq 11
1469device		si0	at isa? iomem 0xd0000 irq 12
1470device		asc0	at isa? port IO_ASC1 drq 3 irq 10
1471device		stl0	at isa? port 0x2a0 irq 10
1472device		stli0	at isa? port 0x2a0 iomem 0xcc000 flags 23 iosiz 0x1000
1473# You are unlikely to have the hardware for loran0 <phk@FreeBSD.org>
1474device		loran0	at isa? port ? irq 5
1475# HOT1 Xilinx 6200 card (www.vcc.com)
1476device		xrpu0
1477
1478#
1479# EISA devices:
1480#
1481# The EISA bus device is eisa0.  It provides auto-detection and
1482# configuration support for all devices on the EISA bus.
1483#
1484# The `ahb' device provides support for the Adaptec 174X adapter.
1485#
1486# The `ahc' device provides support for the Adaptec 274X and 284X
1487# adapters.  The 284X, although a VLB card responds to EISA probes.
1488#
1489# fea: DEC DEFEA EISA FDDI adapter
1490#
1491controller	eisa0
1492controller	ahb0
1493controller	ahc0
1494device		fea0
1495
1496# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1497# controllers that have it configured only if this option is set. Unfortunately,
1498# this doesn't work on some motherboards, which prevents it from being the
1499# default.
1500options AHC_ALLOW_MEMIO
1501
1502# By default, only 10 EISA slots are probed, since the slot numbers
1503# above clash with the configuration address space of the PCI subsystem,
1504# and the EISA probe is not very smart about this.  This is sufficient
1505# for most machines, but in particular the HP NetServer LC series comes
1506# with an onboard AIC7770 dual-channel SCSI controller on EISA slot #11,
1507# thus you need to bump this figure to 12 for them.
1508options EISA_SLOTS=12
1509
1510#
1511# MII bus support is required for some PCI 10/100 ethernet NICs,
1512# namely those which use MII-compliant transceivers or implement
1513# tranceiver control interfaces that operate like an MII. Adding
1514# "controller miibus0" to the kernel config pulls in support for
1515# the generic miibus API and all of the PHY drivers, including a
1516# generic one for PHYs that aren't specifically handled by an
1517# individual driver.
1518controller	miibus0
1519
1520#
1521# PCI devices & PCI options:
1522#
1523# The main PCI bus device is `pci'.  It provides auto-detection and
1524# configuration support for all devices on the PCI bus, using either
1525# configuration mode defined in the PCI specification.
1526#
1527# The `ahc' device provides support for the Adaptec 29/3940(U)(W)
1528# and motherboard based AIC7870/AIC7880 adapters.
1529#
1530# The `amd' device provides support for the AMD 53C974 SCSI host
1531# adapter chip as found on devices such as the Tekram DC-390(T).
1532#
1533# The `ncr' device provides support for the NCR 53C810 and 53C825
1534# self-contained SCSI host adapters.
1535#
1536# The `isp' device provides support for the Qlogic ISP 1020, 1040
1537# nd 1040B PCI SCSI host adapters, as well as the Qlogic ISP 2100
1538# FC/AL Host Adapter.
1539#
1540# The `al' device provides support for PCI fast ethernet adapters
1541# based on the ADMtek Inc. AL981 "Comet" chip.
1542#
1543# The `ax' device provides support for PCI fast ethernet adapters
1544# based on the ASIX Electronics AX88140A chip, including the Alfa
1545# Inc. GFC2204.
1546#
1547# The `de' device provides support for the Digital Equipment DC21040
1548# self-contained Ethernet adapter.
1549#
1550# The `dm' device provides support for PCI fast ethernet adapters
1551# based on the the Davicom DM9100 and DM9102 controller chips, including
1552# the Jaton Corporation XPressNet.
1553# 
1554# The `fxp' device provides support for the Intel EtherExpress Pro/100B
1555# PCI Fast Ethernet adapters.
1556#
1557# The `mx' device provides support for various fast ethernet adapters
1558# based on the Macronix 98713, 987615 and 98725 series chips.
1559#
1560# The `pn' device provides support for various fast ethernet adapters
1561# based on the Lite-On 82c168 and 82c169 PNIC chips, including the
1562# LinkSys LNE100TX, the NetGear FA310TX rev. D1 and the Matrox
1563# FastNIC 10/100.
1564#
1565# The 'rl' device provides support for PCI fast ethernet adapters based
1566# on the RealTek 8129/8139 chipset. Note that the RealTek driver defaults
1567# to using programmed I/O to do register accesses because memory mapped
1568# mode seems to cause severe lockups on SMP hardware. This driver also
1569# supports the Accton EN1207D `Cheetah' adapter, which uses a chip called
1570# the MPX 5030/5038, which is either a RealTek in disguise or a RealTek
1571# workalike.
1572#
1573# The 'sf' device provides support for Adaptec Duralink PCI fast
1574# ethernet adapters based on the Adaptec AIC-6915 "starfire" controller.
1575# This includes dual and quad port cards, as well as one 100baseFX card.
1576# Most of these are 64-bit PCI devices, except for one single port
1577# card which is 32-bit.
1578#
1579# The 'ste' device provides support for adapters based on the Sundance
1580# Technologies ST201 PCI fast ethernet controller. This includes the
1581# D-Link DFE-550TX.
1582#
1583# The 'sis' device provides support for adapters based on the Silicon
1584# Integrated Systems SiS 900 and SiS 7016 PCI fast ethernet controller
1585# chips.
1586#
1587# The 'sk' device provides support for the SysKonnect SK-984x series
1588# PCI gigabit ethernet NICs. This includes the SK-9841 and SK-9842
1589# single port cards (single mode and multimode fiber) and the
1590# SK-9843 and SK-9844 dual port cards (also single mode and multimode).
1591# The driver will autodetect the number of ports on the card and
1592# attach each one as a separate network interface.
1593#
1594# The 'ti' device provides support for PCI gigabit ethernet NICs based
1595# on the Alteon Networks Tigon 1 and Tigon 2 chipsets. This includes the
1596# Alteon AceNIC, the 3Com 3c985, the Netgear GA620 and various others.
1597# Note that you will probably want to bump up NMBCLUSTERS a lot to use
1598# this driver.
1599#
1600# The 'tl' device provides support for the Texas Instruments TNETE100
1601# series 'ThunderLAN' cards and integrated ethernet controllers. This
1602# includes several Compaq Netelligent 10/100 cards and the built-in
1603# ethernet controllers in several Compaq Prosignia, Proliant and
1604# Deskpro systems. It also supports several Olicom 10Mbps and 10/100
1605# boards.
1606#
1607# The `tx' device provides support for the SMC 9432TX cards.
1608#
1609# The `vr' device provides support for various fast ethernet adapters
1610# based on the VIA Technologies VT3043 `Rhine I' and VT86C100A `Rhine II'
1611# chips, including the D-Link DFE530TX.
1612#
1613# The `vx' device provides support for the 3Com 3C590 and 3C595
1614# early support
1615#
1616# The `wb' device provides support for various fast ethernet adapters
1617# based on the Winbond W89C840F chip. Note: this is not the same as
1618# the Winbond W89C940F, which is an NE2000 clone.
1619#
1620# The `xl' device provides support for the 3Com 3c900, 3c905 and
1621# 3c905B (Fast) Etherlink XL cards and integrated controllers. This
1622# includes the integrated 3c905B-TX chips in certain Dell Optiplex and
1623# Dell Precision desktop machines and the integrated 3c905-TX chips
1624# in Dell Latitude laptop docking stations.
1625#
1626# The `fpa' device provides support for the Digital DEFPA PCI FDDI
1627# adapter. pseudo-device fddi is also needed.
1628#
1629# The `meteor' device is a PCI video capture board. It can also have the
1630# following options:
1631#   options METEOR_ALLOC_PAGES=xxx	preallocate kernel pages for data entry
1632#	figure (ROWS*COLUMN*BYTES_PER_PIXEL*FRAME+PAGE_SIZE-1)/PAGE_SIZE
1633#   options METEOR_DEALLOC_PAGES	remove all allocated pages on close(2)
1634#   options METEOR_DEALLOC_ABOVE=xxx	remove all allocated pages above the
1635#	specified amount. If this value is below the allocated amount no action
1636#	taken
1637#   options METEOR_SYSTEM_DEFAULT={METEOR_PAL|METEOR_NTSC|METEOR_SECAM}, used
1638#	for initialization of fps routine when a signal is not present.
1639#
1640# The 'bktr' device is a PCI video capture device using the Brooktree 
1641# bt848/bt848a/bt849a/bt878/bt879 chipset. When used with a TV Tuner it forms a
1642# TV card, eg Miro PC/TV, Hauppauge WinCast/TV WinTV, VideoLogic Captivator,
1643# Intel Smart Video III, AverMedia, IMS Turbo, FlyVideo. 
1644#
1645# options OVERRIDE_CARD=xxx
1646# options OVERRIDE_TUNER=xxx
1647# options OVERRIDE_MSP=1
1648# options OVERRIDE_DBX=1
1649# These options can be used to override the auto detection
1650# The current values for xxx are found in /usr/src/sys/pci/brooktree848.c
1651# Using sysctl(8) run-time overrides on a per-card basis can be made
1652#
1653# options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
1654# or
1655# options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC
1656# Specifes the default video capture mode.
1657# This is required for Dual Crystal (28&35Mhz) boards where PAL is used
1658# to prevent hangs during initialisation.  eg VideoLogic Captivator PCI.
1659#
1660# options BKTR_USE_PLL
1661# PAL or SECAM users who have a 28Mhz crystal (and no 35Mhz crystal)
1662# must enable PLL mode with this option. eg some new Bt878 cards.
1663#
1664# options BKTR_GPIO_ACCESS
1665# This enable IOCTLs which give user level access to the GPIO port.
1666#
1667# options BKTR_NO_MSP_RESET
1668# Prevents the MSP34xx reset. Good if you initialise the MSP in another OS first
1669#
1670# options BKTR_430_FX_MODE
1671# Switch Bt878/879 cards into Intel 430FX chipset compatibility mode.
1672#
1673# options BKTR_SIS_VIA_MODE
1674# Switch Bt878/879 cards into SIS/VIA chipset compatibility mode which is
1675# needed for some old SiS and VIA chipset motherboards.
1676# This also allows Bt878/879 chips to work on old OPTi (<1997) chipset
1677# motherboards and motherboards with bad or incomplete PCI 2.1 support.
1678# As a rough guess, old = before 1998
1679#
1680#
1681# The oltr driver supports the following Olicom PCI token-ring adapters
1682# OC-3136, OC-3137, OC-3139, OC-3140, OC-3141, OC-3540, OC-3250
1683#
1684controller	pci0
1685controller	ahc1
1686controller	amd0
1687controller	ncr0
1688controller	isp0
1689#
1690# Options for ISP
1691#
1692#	SCSI_ISP_NO_FWLOAD_MASK	- mask of isp unit numbers (obviously
1693#				  a max of 32) that you wish to disable
1694#				  to disable the loading of firmware on.
1695#	SCSI_ISP_NO_NVRAM_MASK	- mask of isp unit numbers (obviously
1696#				  a max of 32) that you wish to disable
1697#				  them picking up information from NVRAM
1698#				  (for broken cards you can't fix the NVRAM
1699#				  on- very rare, or for systems you can't
1700#				  change NVRAM on (e.g. alpha) and you don't
1701#				  like what's in there)
1702#	SCSI_ISP_PREFER_MEM_MAP	- control preference for using memory mappings
1703#				  instead of I/O space mappings. It defaults
1704#				  to 1 for i386, 0 for alpha. Set to 1 to
1705#				  unconditionally prefer mapping memory,
1706#				  else it will use I/O space mappings. Of
1707#				  course, this can fail if the PCI implement-
1708#				  ation doesn't support what you want.
1709#
1710#	SCSI_ISP_FCDUPLEX	- mask of isp unit numbers (obviously
1711#				  a max of 32) that you wish to set fibre
1712#				  channel full duplex mode on.
1713#				  to disable the loading of firmware on.
1714#	SCSI_ISP_FABRIC		  enable loading of Fabric f/w flavor (2100).
1715#	SCSI_ISP_SCCLUN		  enable loading of expanded lun f/w (2100).
1716#
1717#	ISP_DISABLE_1020_SUPPORT	Disable support for 1020/1040 cards
1718#	ISP_DISABLE_1080_SUPPORT	Disable support for 1080/1240 cards
1719#	ISP_DISABLE_2100_SUPPORT	Disable support for 2100 cards
1720#	(these really just to save code space)
1721#	(use of all three will cause the driver to not compile)
1722options SCSI_ISP_NO_FWLOAD_MASK=0x12	# disable FW load for isp1 and isp4
1723options SCSI_ISP_NO_NVRAM_MASK=0x1	# disable NVRAM for isp0
1724options SCSI_ISP_PREFER_MEM_MAP=0	# prefer I/O mapping
1725options SCSI_ISP_FCDUPLEX=0x4		# isp2 is a Fibre Channel card
1726					# we want in full duplex mode.
1727#options ISP_DISABLE_1020_SUPPORT
1728#options ISP_DISABLE_1080_SUPPORT
1729#options ISP_DISABLE_2100_SUPPORT
1730
1731device		al0
1732device		ax0
1733device		de0
1734device		dm0
1735device		fxp0
1736device		mx0
1737device		pn0
1738device		rl0
1739device		sf0
1740device		sis0
1741device		sk0
1742device		ste0
1743device		ti0
1744device		tl0
1745device		tx0
1746device		vr0
1747device		vx0
1748device		wb0
1749device		xl0
1750device		fpa0
1751device		meteor0
1752#The oltr driver in the ISA section will also find PCI cards.
1753#device		oltr0
1754
1755
1756# Brooktree driver has been ported to the new I2C framework. Thus,
1757# you'll need to have the following 3 lines in the kernel config.
1758#     controller smbus0
1759#     controller iicbus0
1760#     controller iicbb0
1761# The iic and smb devices are only needed if you want to control other
1762# I2C slaves connected to the external connector of some cards.
1763#
1764device		bktr0
1765
1766#
1767# PCI options
1768#
1769#options 	PCI_QUIET	#quiets PCI code on chipset settings
1770
1771#
1772# PCCARD/PCMCIA
1773#
1774# card: slot controller
1775# pcic: slots
1776controller	card0
1777device		pcic0 at card?
1778device		pcic1 at card?
1779
1780# You may need to reset all pccards after resuming
1781options 	PCIC_RESUME_RESET	# reset after resume
1782
1783#
1784# Laptop/Notebook options:
1785#
1786# See also:
1787#  apm under `Miscellaneous hardware'
1788# above.
1789
1790# For older notebooks that signal a powerfail condition (external
1791# power supply dropped, or battery state low) by issuing an NMI:
1792
1793options 	POWERFAIL_NMI	# make it beep instead of panicing
1794
1795#
1796# SMB bus
1797#
1798# System Management Bus support provided by the 'smbus' device.
1799#
1800# Supported devices:
1801# smb	standard io
1802#
1803# Supported interfaces:
1804# iicsmb I2C to SMB bridge with any iicbus interface
1805# bktr	brooktree848 I2C hardware interface
1806# intpm	Intel PIIX4 Power Management Unit
1807# alpm	Acer Aladdin-IV/V/Pro2 Power Management Unit
1808#
1809controller smbus0
1810controller intpm0
1811controller alpm0
1812
1813device smb0	at smbus?
1814
1815#
1816# I2C Bus
1817#
1818# Philips i2c bus support is provided by the `iicbus' device.
1819#
1820# Supported devices:
1821# ic	i2c network interface
1822# iic	i2c standard io
1823# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
1824#
1825# Supported interfaces:
1826# pcf	Philips PCF8584 ISA-bus controller
1827# bktr	brooktree848 I2C software interface
1828#
1829# Other:
1830# iicbb	generic I2C bit-banging code (needed by lpbb, bktr)
1831#
1832controller iicbus0
1833controller iicbb0
1834
1835device ic0	at iicbus?
1836device iic0	at iicbus?
1837device iicsmb0	at iicbus?
1838
1839controller pcf0	at isa? port 0x320 irq 5
1840
1841# ISDN4BSD section
1842#
1843# see /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd.
1844#
1845# i4b passive ISDN cards support (isic - I4b Siemens Isdn Chipset driver)
1846# note that the ``options'' and ``device'' lines must BOTH be defined !
1847#
1848# Non-PnP Cards:
1849# --------------
1850#
1851# Teles S0/8 or Niccy 1008
1852options TEL_S0_8
1853#device	isic0 at isa? iomem 0xd0000 irq 5 flags 1
1854#
1855# Teles S0/16 or Creatix ISDN-S0 or Niccy 1016
1856options TEL_S0_16
1857#device	isic0 at isa? port 0xd80 iomem 0xd0000 irq 5 flags 2
1858#
1859# Teles S0/16.3 
1860options TEL_S0_16_3
1861#device	isic0 at isa? port 0xd80 irq 5 flags 3
1862#
1863# AVM A1 or AVM Fritz!Card
1864options AVM_A1
1865#device	isic0 at isa? port 0x340 irq 5 flags 4
1866#
1867# USRobotics Sportster ISDN TA intern
1868options USR_STI
1869#device isic0 at isa? port 0x268 irq 5 flags 7
1870#
1871# ITK ix1 Micro ( < V.3, non-PnP version )
1872options ITKIX1
1873#device isic0 at isa? port 0x398 irq 10 flags 18
1874#
1875# ELSA PCC-16
1876options "ELSA_PCC16"
1877#device isic0 at isa? port 0x360 irq 10 flags 19
1878#
1879# PnP-Cards:
1880# ----------
1881#
1882# Teles S0/16.3 PnP
1883options TEL_S0_16_3_P
1884#device	isic0 at isa? port ? irq ?
1885#
1886# Creatix ISDN-S0 P&P
1887options CRTX_S0_P
1888#device	isic0 at isa? port ? irq ?
1889#
1890# Dr. Neuhaus Niccy Go@
1891options DRN_NGO
1892#device	isic0 at isa? port ? irq ?
1893#
1894# Sedlbauer Win Speed
1895options SEDLBAUER
1896#device	isic0 at isa? port ? irq ?
1897#
1898# Dynalink IS64PH
1899options DYNALINK
1900#device	isic0 at isa? port ? irq ?
1901#
1902# ELSA QuickStep 1000pro ISA
1903options ELSA_QS1ISA
1904#device	isic0 at isa? port ? irq ?
1905#
1906# ITK ix1 Micro ( V.3, PnP version )
1907options "ITKIX1"
1908#device isic0 at isa? port ? irq ?
1909#
1910# AVM Fritz!Card PnP
1911options "AVM_PNP"  
1912#device isic0 at isa? port ? irq ?
1913#
1914# Siemens I-Surf 2.0 
1915options "SIEMENS_ISURF2"  
1916#device isic0 at isa? port ? irq ?
1917#
1918# PCI-Cards:
1919# ----------
1920#
1921# ELSA QuickStep 1000pro PCI
1922options ELSA_QS1PCI
1923#device  isic0
1924#
1925# AVM Fritz!Card PCI
1926options "AVM_A1_PCI" 
1927#device  isic0
1928#
1929# PCMCIA-Cards:
1930# -------------
1931#
1932# AVM PCMCIA Fritz!Card
1933options AVM_A1_PCMCIA
1934device	isic0 at isa? port 0x340 irq 5 flags 10
1935#
1936# Active Cards:
1937# -------------
1938#
1939# Stollmann Tina-dd control device
1940device tina0 at isa? port 0x260 irq 10
1941#
1942# ISDN Protocol Stack
1943# -------------------
1944# 
1945# Q.921 / layer 2 - i4b passive cards D channel handling
1946pseudo-device	"i4bq921"
1947#
1948# Q.931 / layer 3 - i4b passive cards D channel handling
1949pseudo-device	"i4bq931"
1950#
1951# layer 4 - i4b common passive and active card handling
1952pseudo-device	"i4b"
1953#
1954# ISDN devices
1955# ------------
1956#
1957# userland driver to do ISDN tracing (for passive cards only)
1958pseudo-device   "i4btrc"	4
1959#
1960# userland driver to control the whole thing
1961pseudo-device   "i4bctl"
1962#
1963# userland driver for access to raw B channel
1964pseudo-device   "i4brbch"       4
1965#
1966# userland driver for telephony
1967pseudo-device   "i4btel"        2
1968#
1969# network driver for IP over raw HDLC ISDN
1970pseudo-device   "i4bipr"	4
1971# enable VJ header compression detection for ipr i/f
1972options 	IPR_VJ
1973#
1974# network driver for sync PPP over ISDN
1975pseudo-device	"i4bisppp"	4
1976
1977
1978# Parallel-Port Bus
1979#
1980# Parallel port bus support is provided by the `ppbus' device.
1981# Multiple devices may be attached to the parallel port, devices
1982# are automatically probed and attached when found.
1983#
1984# Supported devices:
1985# vpo	Iomega Zip Drive
1986#	Requires SCSI disk support ('scbus' and 'da'), best
1987#	performance is achieved with ports in EPP 1.9 mode.
1988# lpt	Parallel Printer
1989# plip	Parallel network interface
1990# ppi	General-purpose I/O ("Geek Port") + IEEE1284 I/O
1991# pps	Pulse per second Timing Interface
1992# lpbb	Philips official parallel port I2C bit-banging interface
1993#
1994# Supported interfaces:
1995# ppc	ISA-bus parallel port interfaces.  
1996#
1997
1998options 	DEBUG_1284	# IEEE1284 signaling protocol debug
1999options 	PERIPH_1284	# Makes your computer act as a IEEE1284
2000				# compliant peripheral
2001options 	DONTPROBE_1284	# Avoid boot detection of PnP parallel devices
2002options 	VP0_DEBUG	# ZIP/ZIP+ debug
2003options 	LPT_DEBUG	# Printer driver debug
2004options 	PPC_DEBUG	# Parallel chipset level debug
2005options 	PLIP_DEBUG	# Parallel network IP interface debug
2006
2007controller	ppbus0
2008controller	vpo0	at ppbus?
2009device		lpt0	at ppbus?
2010device		plip0	at ppbus?
2011device		ppi0	at ppbus?
2012device		pps0	at ppbus?
2013device		lpbb0	at ppbus?
2014
2015device		ppc0	at isa? port? irq 7
2016
2017# Kernel BOOTP support 
2018
2019options 	BOOTP		# Use BOOTP to obtain IP address/hostname
2020options 	BOOTP_NFSROOT	# NFS mount root filesystem using BOOTP info
2021options 	BOOTP_NFSV3	# Use NFS v3 to NFS mount root
2022options 	BOOTP_COMPAT	# Workaround for broken bootp daemons.
2023options 	BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
2024
2025#
2026# Add tie-ins for a hardware watchdog.  This only enable the hooks;
2027# the user must still supply the actual driver.
2028#
2029options 	HW_WDOG
2030
2031#
2032# Set the number of PV entries per process.  Increasing this can
2033# stop panics related to heavy use of shared memory. However, that can
2034# (combined with large amounts of physical memory) cause panics at
2035# boot time due the kernel running out of VM space.
2036#
2037# If you're tweaking this, you might also want to increase the sysctls
2038# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
2039#
2040# The value below is the one more than the default.
2041#
2042options         PMAP_SHPGPERPROC=201
2043
2044#
2045# Disable swapping. This option removes all code which actually performs
2046# swapping, so it's not possible to turn it back on at run-time.
2047#
2048# This is sometimes usable for systems which don't have any swap space
2049# (see also sysctls "vm.defer_swapspace_pageouts" and
2050# "vm.disable_swapspace_pageouts")
2051#
2052#options 	NO_SWAPPING
2053
2054# Set the number of sf_bufs to allocate. sf_bufs are virtual buffers
2055# for sendfile(2) that are used to map file VM pages, and normally
2056# default to a quantity that is roughly 16*MAXUSERS+512. You would
2057# typically want about 4 of these for each simultaneous file send.
2058#
2059options 	NSFBUFS=1024
2060
2061#
2062# Enable extra debugging code for locks.  This stores the filename and
2063# line of whatever acquired the lock in the lock itself, and change a
2064# number of function calls to pass around the relevant data.  This is
2065# not at all useful unless you are debugging lock code.  Also note
2066# that it is likely to break e.g. fstat(1) unless you recompile your
2067# userland with -DDEBUG_LOCKS as well.
2068#
2069options 	DEBUG_LOCKS
2070
2071# More undocumented options for linting.
2072
2073options 	CLK_CALIBRATION_LOOP
2074options 	CLK_USE_I8254_CALIBRATION
2075options 	CLK_USE_TSC_CALIBRATION
2076options 	TIMER_FREQ="((14318182+6)/12)"
2077options 	CLUSTERDEBUG
2078options 	COMPAT_LINUX
2079options 	CPU_UPGRADE_HW_CACHE
2080options 	DEBUG
2081options 	DEBUG_VFS_LOCKS
2082#options 	DISABLE_PSE
2083options 	I586_PMC_GUPROF=0x70000
2084options 	IBCS2
2085options 	KEY
2086options 	KEY_DEBUG
2087options 	LOCKF_DEBUG
2088options 	LOUTB
2089options 	KBD_MAXRETRY=4
2090options 	KBD_MAXWAIT=6
2091options 	KBD_RESETDELAY=201
2092options 	KBDIO_DEBUG=2
2093options 	MSGMNB=2049
2094options 	MSGMNI=41
2095options 	MSGSEG=2049
2096options 	MSGSSZ=16
2097options 	MSGTQL=41
2098options 	NBUF=512
2099options 	NETATALKDEBUG
2100options 	NMBCLUSTERS=1024
2101options 	NPX_DEBUG
2102options 	PANIC_REBOOT_WAIT_TIME=16
2103options 	PSM_DEBUG=1
2104options 	SCSI_NCR_DEBUG
2105options 	SCSI_NCR_DFLT_TAGS=4
2106options 	SCSI_NCR_MAX_SYNC=10000
2107options 	SCSI_NCR_MAX_WIDE=1
2108options 	SCSI_NCR_MYADDR=7
2109options 	SEMMAP=31
2110options 	SEMMNI=11
2111options 	SEMMNS=61
2112options 	SEMMNU=31
2113options 	SEMMSL=61
2114options 	SEMOPM=101
2115options 	SEMUME=11
2116options 	SHOW_BUSYBUFS	# List buffers that prevent root unmount
2117options 	SHMALL=1025
2118options 	SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
2119options 	SHMMAXPGS=1025
2120options 	SHMMIN=2
2121options 	SHMMNI=33
2122options 	SHMSEG=9
2123options 	SI_DEBUG
2124options 	SIMPLELOCK_DEBUG
2125options 	SPX_HACK
2126options 	VFS_BIO_DEBUG
2127options 	ENABLE_ALART
2128
2129# The 'dpt' driver provides support for DPT controllers (http://www.dpt.com/).
2130# These have hardware RAID-{0,1,5} support, and do multi-initiator I/O.
2131# The DPT controllers are commonly re-licensed under other brand-names -
2132# some controllers by Olivetti, Dec, HP, AT&T, SNI, AST, Alphatronic, NEC and
2133# Compaq are actually DPT controllers.
2134#
2135# See sys/dev/dpt for debugging and other subtle options.
2136#   DPT_VERIFY_HINTR        Performs some strict hardware interrupts testing.
2137#                           Only use if you suspect PCI bus corruption problems
2138#   DPT_RESTRICTED_FREELIST Normally, the freelist used by the DPT for queue
2139#                           will grow to accommodate increased use. This growth
2140#                           will NOT shrink.  To restrict the number of queue
2141#                           slots to exactly what the DPT can hold at one time,
2142#                           enable this option.
2143#   DPT_MEASURE_PERFORMANCE Enables a set of (semi)invasive metrics. Various
2144#                           instruments are enabled.  The tools in 
2145#                           /usr/sbin/dpt_* assume these to be enabled.
2146#   DPT_FREELIST_IS_STACK   For optimal L{1,2} CPU cache utilization, enable
2147#                           this option.  Otherwise, the transaction queue is
2148#                           a LIFO.  I cannot measure the performance gain.
2149#   DPT_HANDLE_TIMEOUTS     Normally device timeouts are handled by the DPT.
2150#                           If you ant the driver to handle timeouts, enable
2151#                           this option.  If your system is very busy, this
2152#                           option will create more trouble than solve.
2153#   DPT_TIMEOUT_FACTOR      Used to compute the excessive amount of time to
2154#                           wait when timing out with the above option.
2155#  DPT_DEBUG_xxxx           These are controllable from sys/dev/dpt/dpt.h
2156#  DPT_LOST_IRQ             When enabled, will try, once per second, to catch
2157#                           any interrupt that got lost.  Seems to help in some
2158#                           DPT-firmware/Motherboard combinations.  Minimal
2159#                           cost, great benefit.
2160#  DPT_RESET_HBA            Make "reset" actually reset the controller
2161#                           instead of fudging it.  Only enable this if you
2162#			    are 100% certain you need it.
2163#  DPT_SHUTDOWN_SLEEP       Reset controller if a request take more than
2164#                           this number of seconds.  Do NOT enable this
2165#			    unless you are really, really, really certain
2166#			    you need it.  You are advised to call Simon (the
2167#			    driver author) before setting it, and NEVER,
2168#			    EVER set it to less than 300s (5 minutes).
2169
2170controller      dpt0
2171
2172# DPT options
2173options DPT_VERIFY_HINTR
2174options DPT_RESTRICTED_FREELIST
2175#!CAM# options DPT_MEASURE_PERFORMANCE
2176options DPT_FREELIST_IS_STACK
2177#!CAM# options DPT_HANDLE_TIMEOUTS
2178options DPT_TIMEOUT_FACTOR=4
2179options DPT_INTR_DELAY=200      # Some motherboards need that
2180options DPT_LOST_IRQ
2181options DPT_RESET_HBA
2182
2183# Don't EVER set this without having talked to Simon Shapiro on the phone
2184# first.
2185options DPT_SHUTDOWN_SLEEP=500
2186
2187# USB support
2188# UHCI controller 
2189controller	uhci0
2190# OHCI controller
2191controller	ohci0
2192# General USB code (mandatory for USB)
2193controller	usb0
2194#
2195# Generic USB device driver
2196device		ugen0
2197# Human Interface Device (anything with buttons and dials)
2198device		uhid0
2199# USB keyboard
2200device		ukbd0
2201# USB printer
2202device		ulpt0
2203# USB Iomega Zip 100 Drive
2204controller	umass0
2205# USB mouse
2206device		ums0
2207#
2208
2209# debugging options for the USB subsystem
2210#
2211options 	UHCI_DEBUG
2212options 	OHCI_DEBUG
2213options 	USB_DEBUG
2214
2215options 	UGEN_DEBUG
2216options 	UHID_DEBUG
2217options 	UHUB_DEBUG
2218options 	UKBD_DEBUG
2219options 	ULPT_DEBUG
2220options 	UMASS_DEBUG
2221options 	UMS_DEBUG
2222
2223# options for ukbd:
2224options 	UKBD_DFLT_KEYMAP	# specify the built-in keymap
2225makeoptions	UKBD_DFLT_KEYMAP=it.iso
2226
2227#
2228# Embedded system options:
2229#
2230# An embedded system might want to run something other than init.
2231options 	INIT_PATH="/sbin/init:/stand/sysinstall"
2232
2233