xref: /freebsd/sys/conf/NOTES (revision 11afcc8f9f96d657b8e6f7547c02c1957331fc96)
1#
2# LINT -- config file for checking all the sources, tries to pull in
3#	as much of the source tree as it can.
4#
5#	$Id: LINT,v 1.449 1998/08/04 21:44:08 brian Exp $
6#
7# NB: You probably don't want to try running a kernel built from this
8# file.  Instead, you should start from GENERIC, and add options from
9# this file as required.
10#
11
12#
13# This directive is mandatory; it defines the architecture to be
14# configured for; in this case, the 386 family based IBM-PC and
15# compatibles.
16#
17machine		"i386"
18
19#
20# This is the ``identification'' of the kernel.  Usually this should
21# be the same as the name of your kernel.
22#
23ident		LINT
24
25#
26# The `maxusers' parameter controls the static sizing of a number of
27# internal system tables by a complicated formula defined in param.c.
28#
29maxusers	10
30
31#
32# Certain applications can grow to be larger than the 128M limit
33# that FreeBSD initially imposes.  Below are some options to
34# allow that limit to grow to 256MB, and can be increased further
35# with changing the parameters.  MAXDSIZ is the maximum that the
36# limit can be set to, and the DFLDSIZ is the default value for
37# the limit.  You might want to set the default lower than the
38# max, and explicitly set the maximum with a shell command for processes
39# that regularly exceed the limit like INND.
40#
41options		"MAXDSIZ=(256*1024*1024)"
42options		"DFLDSIZ=(256*1024*1024)"
43
44# When this is set, be extra conservative in various parts of the kernel
45# and choose functionality over speed (on the widest variety of systems).
46options		FAILSAFE
47
48# Options for the VM subsystem
49#options	PQ_NOOPT		# No coloring
50options		PQ_LARGECACHE		# color for 512k/16k cache
51#options	PQ_HUGECACHE		# color for 1024k/16k cache
52
53# This allows you to actually store this configuration file into
54# the kernel binary itself, where it may be later read by saying:
55#    strings /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
56#
57options         INCLUDE_CONFIG_FILE     # Include this file in kernel
58
59#
60# This directive defines a number of things:
61#  - The compiled kernel is to be called `kernel'
62#  - The root filesystem might be on partition wd0a
63#  - Crash dumps will be written to wd0b, if possible.  Specifying the
64#    dump device here is not recommended.  Use dumpon(8).
65#
66config		kernel	root on wd0 dumps on wd0
67
68
69#####################################################################
70# SMP OPTIONS:
71#
72# SMP enables building of a Symmetric MultiProcessor Kernel.
73# APIC_IO enables the use of the IO APIC for Symmetric I/O.
74# NCPU sets the number of CPUs, defaults to 2.
75# NBUS sets the number of busses, defaults to 4.
76# NAPIC sets the number of IO APICs on the motherboard, defaults to 1.
77# NINTR sets the total number of INTs provided by the motherboard.
78#
79# Notes:
80#
81#  An SMP kernel will ONLY run on an Intel MP spec. qualified motherboard.
82#
83#  Be sure to disable 'cpu "I386_CPU"' && 'cpu "I486_CPU"' for SMP kernels.
84#
85#  Check the 'Rogue SMP hardware' section to see if additional options
86#   are required by your hardware.
87#
88
89# Mandatory:
90options		SMP			# Symmetric MultiProcessor Kernel
91options		APIC_IO			# Symmetric (APIC) I/O
92
93# Optional, these are the defaults plus 1:
94options		NCPU=5			# number of CPUs
95options		NBUS=5			# number of busses
96options		NAPIC=2			# number of IO APICs
97options		NINTR=25		# number of INTs
98
99#
100# Rogue SMP hardware:
101#
102
103# Bridged PCI cards:
104#
105# The MP tables of most of the current generation MP motherboards
106#  do NOT properly support bridged PCI cards.  To use one of these
107#  cards you should refer to ???
108
109
110#####################################################################
111# CPU OPTIONS
112
113#
114# You must specify at least one CPU (the one you intend to run on);
115# deleting the specification for CPUs you don't need to use may make
116# parts of the system run faster.  This is especially true removing
117# I386_CPU.
118#
119cpu		"I386_CPU"
120cpu		"I486_CPU"
121cpu		"I586_CPU"		# aka Pentium(tm)
122cpu		"I686_CPU"		# aka Pentium Pro(tm)
123
124#
125# Options for CPU features.
126#
127# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
128# BlueLightning CPU.  It works only with Cyrix FPU, and this option
129# should not be used with Intel FPU.
130#
131# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
132# CPU if CPU supports it. The default is double-clock mode on
133# BlueLightning CPU box.
134#
135# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
136#
137# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
138# mapped mode.  Default is 2-way set associative mode.
139#
140# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
141# of Cyrix 6x86 and 6x86MX CPUs.  If this option is not set and
142# FAILESAFE is defined, NO_LOCK bit of CCR1 is cleared.  (NOTE 3)
143#
144# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e. enables
145# reorder).  This option should not be used if you use memory mapped
146# I/O device(s).
147#
148# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
149#
150# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
151# for i386 machines.
152#
153# CPU_IORT defines I/O clock delay time (NOTE 1).  Default vaules of
154# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
155# (no clock delay).
156#
157# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
158# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
159# 1).
160#
161# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
162#
163# CPU_SUSP_HLT enables suspend on HALT.  If this option is set, CPU
164# enters suspend mode following execution of HALT instruction.
165#
166# CPU_WT_ALLOC enables write-through allocation.
167#
168# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
169# flush at hold state.
170#
171# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
172# without cache flush at hold state, and (2) write-back CPU cache on
173# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
174#
175# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
176# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
177# executed.  This should be included for ALL kernels that won't run
178# on a Pentium.
179#
180# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
181# CPU_LOOP_ENand CPU_RSTK_EN should no be used becasue of CPU bugs.
182# These options may crash your system.
183#
184# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
185# in write-through mode when revision < 2.7.  If revision of Cyrix
186# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
187#
188# NOTE 3: This option may cause failures for software that requires
189# locked cycles in order to operate correctly.
190#
191options		"CPU_BLUELIGHTNING_FPU_OP_CACHE"
192options		"CPU_BLUELIGHTNING_3X"
193options		"CPU_BTB_EN"
194options		"CPU_DIRECT_MAPPED_CACHE"
195options		"CPU_DISABLE_5X86_LSSER"
196options		"CPU_FASTER_5X86_FPU"
197options		"CPU_I486_ON_386"
198options		"CPU_IORT"
199options		"CPU_LOOP_EN"
200options		"CPU_RSTK_EN"
201options		"CPU_SUSP_HLT"
202options		"CYRIX_CACHE_WORKS"
203options		"CYRIX_CACHE_REALLY_WORKS"
204#options	"NO_F00F_HACK"
205
206#
207# A math emulator is mandatory if you wish to run on hardware which
208# does not have a floating-point processor.  Pick either the original,
209# bogus (but freely-distributable) math emulator, or a much more
210# fully-featured but GPL-licensed emulator taken from Linux.
211#
212options		MATH_EMULATE		#Support for x87 emulation
213# Don't enable both of these in a real config.
214options		GPL_MATH_EMULATE	#Support for x87 emulation via
215					#new math emulator
216
217
218#####################################################################
219# COMPATIBILITY OPTIONS
220
221#
222# Implement system calls compatible with 4.3BSD and older versions of
223# FreeBSD.  You probably do NOT want to remove this as much current code
224# still relies on the 4.3 emulation.
225#
226options		"COMPAT_43"
227
228#
229# Allow user-mode programs to manipulate their local descriptor tables.
230# This option is required for the WINE Windows(tm) emulator, and is
231# not used by anything else (that we know of).
232#
233options		USER_LDT		#allow user-level control of i386 ldt
234
235#
236# These three options provide support for System V Interface
237# Definition-style interprocess communication, in the form of shared
238# memory, semaphores, and message queues, respectively.
239#
240options		SYSVSHM
241options		SYSVSEM
242options		SYSVMSG
243
244#
245# This option includes a MD5 routine in the kernel, this is used for
246# various authentication and privacy uses.
247#
248options		"MD5"
249
250#
251# Allow processes to switch to vm86 mode, as well as enabling direct
252# user-mode access to the I/O port space.  This option is necessary for
253# the doscmd emulator to run.
254#
255options		"VM86"
256
257
258#####################################################################
259# DEBUGGING OPTIONS
260
261#
262# Enable the kernel debugger.
263#
264options		DDB
265
266#
267# Don't drop into DDB for a panic. Intended for unattended operation
268# where you may want to drop to DDB from the console, but still want
269# the machine to recover from a panic
270#
271options		DDB_UNATTENDED
272
273#
274# If using GDB remote mode to debug the kernel, there's a non-standard
275# extension to the remote protocol that can be used to use the serial
276# port as both the debugging port and the system console.  It's non-
277# standard and you're on your own if you enable it.  See also the
278# "remotechat" variables in the FreeBSD specific version of gdb.
279#
280options		GDB_REMOTE_CHAT
281
282#
283# KTRACE enables the system-call tracing facility ktrace(2).
284#
285options		KTRACE			#kernel tracing
286
287#
288# The DIAGNOSTIC option is used in a number of source files to enable
289# extra sanity checking of internal structures.  This support is not
290# enabled by default because of the extra time it would take to check
291# for these conditions, which can only occur as a result of
292# programming errors.
293#
294options		DIAGNOSTIC
295
296#
297# PERFMON causes the driver for Pentium/Pentium Pro performance counters
298# to be compiled.  See perfmon(4) for more information.
299#
300options		PERFMON
301
302
303#
304# This option let some drivers co-exist that can't co-exist in a running
305# system.  This is used to be able to compile all kernel code in one go for
306# quality assurance purposes (like this file, which the option takes it name
307# from.)
308#
309options COMPILING_LINT
310
311
312# XXX - this doesn't belong here.
313# Allow ordinary users to take the console - this is useful for X.
314options		UCONSOLE
315
316# XXX - this doesn't belong here either
317options		USERCONFIG		#boot -c editor
318options		USERCONFIG_BOOT		#imply -c and parse info area
319options		VISUAL_USERCONFIG	#visual boot -c editor
320
321#####################################################################
322# NETWORKING OPTIONS
323
324#
325# Protocol families:
326#  Only the INET (Internet) family is officially supported in FreeBSD.
327#  Source code for the NS (Xerox Network Service) is provided for amusement
328#  value.
329#
330options		INET			#Internet communications protocols
331
332options		IPX			#IPX/SPX communications protocols
333options		IPXIP			#IPX in IP encapsulation (not available)
334options		IPTUNNEL		#IP in IPX encapsulation (not available)
335
336options		NETATALK		#Appletalk communications protocols
337
338# These are currently broken but are shipped due to interest.
339#options		NS			#Xerox NS protocols
340
341# These are currently broken and are no longer shipped due to lack
342# of interest.
343#options		CCITT			#X.25 network layer
344#options		ISO
345#options		TPIP			#ISO TP class 4 over IP
346#options		TPCONS			#ISO TP class 0 over X.25
347#options		LLC			#X.25 link layer for Ethernets
348#options		HDLC			#X.25 link layer for serial lines
349#options		EON			#ISO CLNP over IP
350#options		NSIP			#XNS over IP
351
352#
353# Network interfaces:
354#  The `loop' pseudo-device is MANDATORY when networking is enabled.
355#  The `ether' pseudo-device provides generic code to handle
356#  Ethernets; it is MANDATORY when a Ethernet device driver is
357#  configured.
358#  The 'fddi' pseudo-device provides generic code to support FDDI.
359#  The `sppp' pseudo-device serves a similar role for certain types
360#  of synchronous PPP links (like `cx', `ar').
361#  The `sl' pseudo-device implements the Serial Line IP (SLIP) service.
362#  The `ppp' pseudo-device implements the Point-to-Point Protocol.
363#  The `bpfilter' pseudo-device enables the Berkeley Packet Filter.  Be
364#  aware of the legal and administrative consequences of enabling this
365#  option.  The number of devices determines the maximum number of
366#  simultaneous BPF clients programs runnable.
367#  The `disc' pseudo-device implements a minimal network interface,
368#  which throws away all packets sent and never receives any.  It is
369#  included for testing purposes.
370#  The `tun' pseudo-device implements the User Process PPP (iijppp)
371#
372# The PPP_BSDCOMP option enables support for compress(1) style entire
373# packet compression, the PPP_DEFLATE is for zlib/gzip style compression.
374# PPP_FILTER enables code for filtering the ppp data stream and selecting
375# events for resetting the demand dial activity timer - requires bpfilter.
376# See pppd(8) for more details.
377#
378pseudo-device	ether			#Generic Ethernet
379pseudo-device	fddi			#Generic FDDI
380pseudo-device	sppp			#Generic Synchronous PPP
381pseudo-device	loop			#Network loopback device
382pseudo-device	bpfilter	4	#Berkeley packet filter
383pseudo-device	disc			#Discard device
384pseudo-device	tun	1		#Tunnel driver (user process ppp(8))
385pseudo-device	sl	2		#Serial Line IP
386pseudo-device	ppp	2		#Point-to-point protocol
387options PPP_BSDCOMP			#PPP BSD-compress support
388options PPP_DEFLATE			#PPP zlib/deflate/gzip support
389options PPP_FILTER			#enable bpf filtering (needs bpfilter)
390
391#
392# Internet family options:
393#
394# TCP_COMPAT_42 causes the TCP code to emulate certain bugs present in
395# 4.2BSD.  This option should not be used unless you have a 4.2BSD
396# machine and TCP connections fail.
397#
398# MROUTING enables the kernel multicast packet forwarder, which works
399# with mrouted(8).
400#
401# IPFIREWALL enables support for IP firewall construction, in
402# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
403# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
404# limits the number of times a matching entry can be logged.
405#
406# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
407# and if you do not add other rules during startup to allow access,
408# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set firewall=open
409# in /etc/rc.conf when first enabling this feature, then refining the
410# firewall rules in /etc/rc.firewall after you've tested that the new kernel
411# feature works properly.
412#
413# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
414# allow everything.  Use with care, if a cracker can crash your
415# firewall machine, they can get to your protected machines.  However,
416# if you are using it as an as-needed filter for specific problems as
417# they arise, then this may be for you.  Changing the default to 'allow'
418# means that you won't get stuck if the kernel and /sbin/ipfw binary get
419# out of sync.
420#
421# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''
422#
423# IPFILTER enables Darren Reed's ipfilter package.
424# IPFILTER_LOG enables ipfilter's logging.
425# IPFILTER_LKM enables LKM support for an ipfilter module (untested).
426#
427# TCPDEBUG is undocumented.
428#
429options		"TCP_COMPAT_42"		#emulate 4.2BSD TCP bugs
430options		MROUTING		# Multicast routing
431options         IPFIREWALL              #firewall
432options         IPFIREWALL_VERBOSE      #print information about
433					# dropped packets
434options         IPFIREWALL_FORWARD      #enable xparent proxy support
435options		"IPFIREWALL_VERBOSE_LIMIT=100" #limit verbosity
436options		IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
437options		IPDIVERT		#divert sockets
438options		IPFILTER		#kernel ipfilter support
439options		IPFILTER_LOG		#ipfilter logging
440#options	IPFILTER_LKM		#kernel support for ip_fil.o LKM
441options		TCPDEBUG
442
443
444#####################################################################
445# FILESYSTEM OPTIONS
446
447#
448# Only the root, /usr, and /tmp filesystems need be statically
449# compiled; everything else will be automatically loaded at mount
450# time.  (Exception: the UFS family---FFS, and MFS --- cannot
451# currently be demand-loaded.)  Some people still prefer to statically
452# compile other filesystems as well.
453#
454# NB: The NULL, PORTAL, UMAP and UNION filesystems are known to be
455# buggy, and WILL panic your system if you attempt to do anything with
456# them.  They are included here as an incentive for some enterprising
457# soul to sit down and fix them.
458#
459
460# One of these is mandatory:
461options		FFS			#Fast filesystem
462options		NFS			#Network File System
463
464# The rest are optional:
465# options	NFS_NOSERVER		#Disable the NFS-server code.
466options		"CD9660"		#ISO 9660 filesystem
467options		FDESC			#File descriptor filesystem
468options		KERNFS			#Kernel filesystem
469options		MFS			#Memory File System
470options		MSDOSFS			#MS DOS File System
471options		NULLFS			#NULL filesystem
472options		PORTAL			#Portal filesystem
473options		PROCFS			#Process filesystem
474options		UMAPFS			#UID map filesystem
475options		UNION			#Union filesystem
476options		"CD9660_ROOT"		#CD-ROM usable as root device
477options		FFS_ROOT		#FFS usable as root device
478options		NFS_ROOT		#NFS usable as root device
479# DEVFS and SLICE are experimental but work.
480# SLICE disables too much old code so enabling it in LINT would be bad
481options		DEVFS			#devices filesystem
482#options		SLICE			#devfs based disk handling
483
484# Allow the FFS to use Softupdates technology.
485# To do this you need to copy the two files
486# /sys/ufs/ffs/softdep.h and /sys/ufs/ffs/ffs_softdep.c
487# from /usr/src/contrib/sys/softupdates
488# and understand the licensing restrictions.
489# You should also check on the FreeBSD website for newer versions.
490#options		SOFTUPDATES
491# (we can't actually enable it because the files may not be present)
492
493# Make space in the kernel for a MFS root filesystem.  Define to the number
494# of kilobytes to reserve for the filesystem.
495options		MFS_ROOT=10
496# Allow the MFS_ROOT code to load the MFS image from floppy if it is missing.
497options		MFS_AUTOLOAD
498# Allows MFS filesystems to be exported via nfs
499options		EXPORTMFS
500
501# Allow this many swap-devices.
502options		NSWAPDEV=20
503
504# Disk quotas are supported when this option is enabled.  If you
505# change the value of this option, you must do a `make clean' in your
506# kernel compile directory in order to get a working kernel.
507#
508options		QUOTA			#enable disk quotas
509
510# Add more checking code to various filesystems
511#options		NULLFS_DIAGNOSTIC
512#options		KERNFS_DIAGNOSTIC
513#options		UMAPFS_DIAGNOSTIC
514#options		UNION_DIAGNOSTIC
515
516# In particular multi-session CD-Rs might require a huge amount of
517# time in order to "settle".  If we are about mounting them as the
518# root f/s, we gotta wait a little.
519#
520# The number is supposed to be in seconds.
521options		"CD9660_ROOTDELAY=20"
522
523# If you are running a machine just as a fileserver for PC and MAC
524# users, using SAMBA or Netatalk, you may consider setting this option
525# and keeping all those users' directories on a filesystem that is
526# mounted with the suiddir option. This gives new files the same
527# ownership as the directory (similiar to group). It's a security hole
528# if you let these users run programs, so confine it to file-servers
529# (but it'll save you lots of headaches in those cases). Root owned
530# directories are exempt and X bits are cleared. The suid bit must be
531# set on the directory as well; see chmod(1) PC owners can't see/set
532# ownerships so they keep getting their toes trodden on. This saves
533# you all the support calls as the filesystem it's used on will act as
534# they expect: "It's my dir so it must be my file".
535#
536options		SUIDDIR
537
538
539# Add some error checking code to the null_bypass routine
540# in the NULL filesystem
541#options		SAFETY
542
543
544# NFS options:
545options		"NFS_MINATTRTIMO=3"	# VREG attrib cache timeout in sec
546options		"NFS_MAXATTRTIMO=60"
547options		"NFS_MINDIRATTRTIMO=30"	# VDIR attrib cache timeout in sec
548options		"NFS_MAXDIRATTRTIMO=60"
549options		"NFS_GATHERDELAY=10"	# Default write gather delay (msec)
550options		"NFS_UIDHASHSIZ=29"	# Tune the size of nfssvc_sock with this
551options		"NFS_WDELAYHASHSIZ=16"	# and with this
552options		"NFS_MUIDHASHSIZ=63"	# Tune the size of nfsmount with this
553options		NFS_DEBUG		# Enable NFS Debugging
554
555
556#####################################################################
557# POSIX P1003.1B
558
559# Real time extensions added int the 1993 Posix
560# P1003_1B: Infrastructure
561# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
562# _KPOSIX_VERSION:             Version kernel is built for
563
564options		"P1003_1B"
565options		"_KPOSIX_PRIORITY_SCHEDULING"
566options		"_KPOSIX_VERSION=199309L"
567
568
569#####################################################################
570# SCSI DEVICES
571
572# SCSI DEVICE CONFIGURATION
573
574# The SCSI subsystem consists of the `base' SCSI code, a number of
575# high-level SCSI device `type' drivers, and the low-level host-adapter
576# device drivers.  The host adapters are listed in the ISA and PCI
577# device configuration sections below.
578#
579# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
580# that a given bus, target, and LUN always come on line as the same
581# device unit.  In earlier versions the unit numbers were assigned
582# in the order that the devices were probed on the SCSI bus.  This
583# means that if you removed a disk drive, you may have had to rewrite
584# your /etc/fstab file, and also that you had to be careful when adding
585# a new disk as it may have been probed earlier and moved your device
586# configuration around.
587
588# This old behavior is maintained as the default behavior.  The unit
589# assignment begins with the first non-wired down unit for a device
590# type.  For example, if you wire a disk as "sd3" then the first
591# non-wired disk will be assigned sd4.
592
593# The syntax for wiring down devices is:
594
595# controller	scbus0 at ahc0		# Single bus device
596# controller	scbus1 at ahc1 bus 0	# Single bus device
597# controller	scbus3 at ahc2 bus 0	# Twin bus device
598# controller	scbus2 at ahc2 bus 1	# Twin bus device
599# disk 		sd0 at scbus0 target 0 unit 0
600# disk		sd1 at scbus3 target 1
601# disk		sd2 at scbus2 target 3
602# tape		st1 at scbus1 target 6
603# device	cd0 at scbus?
604
605# "units" (SCSI logical unit number) that are not specified are
606# treated as if specified as LUN 0.
607
608# All SCSI devices allocate as many units as are required.
609
610# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
611# configuration and doesn't have to be explicitly configured.
612
613controller	scbus0	#base SCSI code
614device		ch0	#SCSI media changers
615device		sd0	#SCSI disks
616device		st0	#SCSI tapes
617device		cd0	#SCSI CD-ROMs
618device		od0	#SCSI optical disk
619
620# The previous devices (ch, sd, st, cd) are recognized by config.
621# config doesn't (and shouldn't) know about these newer ones,
622# so we have to specify that they are on a SCSI bus with the "at scbus?"
623# clause.
624
625device worm0 at scbus?	# SCSI worm
626device pt0 at scbus?	# SCSI processor type
627device sctarg0 at scbus? # SCSI target
628
629# SCSI OPTIONS:
630
631# SCSIDEBUG: When defined enables debugging macros
632# NO_SCSI_SENSE: When defined disables sense descriptions (about 4k)
633# SCSI_REPORT_GEOMETRY: Always report disk geometry at boot up instead
634#                       of only when booting verbosely.
635options		SCSIDEBUG
636#options	NO_SCSI_SENSE
637options		SCSI_REPORT_GEOMETRY
638
639# Options for the `od' optical disk driver:
640#
641# If drive returns sense key as 0x02 with vendor specific additional
642# sense code (ASC) and additional sense code qualifier (ASCQ), or
643# illegal ASC and ASCQ. This cause an error (NOT READY) and retrying.
644# To suppress this, use the following option.
645#
646options		OD_BOGUS_NOT_READY
647#
648# For an automatic spindown, try this.  Again, preferably as an
649# option in your config file.
650# WARNING!  Use at your own risk.  Joerg's ancient SONY SMO drive
651# groks it fine, while Shunsuke's Fujitsu chokes on it and times
652# out.
653#
654options		OD_AUTO_TURNOFF
655
656
657
658#####################################################################
659# MISCELLANEOUS DEVICES AND OPTIONS
660
661# The `pty' device usually turns out to be ``effectively mandatory'',
662# as it is required for `telnetd', `rlogind', `screen', `emacs', and
663# `xterm', among others.
664
665pseudo-device	pty	16	#Pseudo ttys - can go as high as 256
666pseudo-device	speaker		#Play IBM BASIC-style noises out your speaker
667pseudo-device	gzip		#Exec gzipped a.out's
668pseudo-device	vn		#Vnode driver (turns a file into a device)
669pseudo-device	snp	3	#Snoop device - to look at pty/vty/etc..
670pseudo-device	ccd	4	#Concatenated disk driver
671
672# These are only for watching for bitrot in old tty code.
673# broken
674#pseudo-device	tb
675
676# These are only for watching for bitrot in old SCSI code.
677pseudo-device	su		#scsi user
678pseudo-device	ssc		#super scsi
679
680# Size of the kernel message buffer.  Should be N * pagesize.
681options		"MSGBUF_SIZE=40960"
682
683
684#####################################################################
685# HARDWARE DEVICE CONFIGURATION
686
687# ISA and EISA devices:
688# EISA support is available for some device, so they can be auto-probed.
689# Micro Channel is not supported at all.
690
691#
692# Mandatory ISA devices: isa, npx
693#
694controller	isa0
695
696#
697# Options for `isa':
698#
699# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
700# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
701# This option breaks suspend/resume on some portables.
702#
703# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
704# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
705# Automatic EOI is documented not to work for for the slave with the
706# original i8259A, but it works for some clones and some integrated
707# versions.
708#
709# BOUNCE_BUFFERS provides support for ISA DMA on machines with more
710# than 16 megabytes of memory.  It doesn't hurt on other machines.
711# Some broken EISA and VLB hardware may need this, too.
712#
713# MAXMEM specifies the amount of RAM on the machine; if this is not
714# specified, FreeBSD will first read the amount of memory from the CMOS
715# RAM, so the amount of memory will initially be limited to 64MB or 16MB
716# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
717# then attempt to detect the installed amount of RAM.  If this probe
718# fails to detect >64MB RAM you will have to use the MAXMEM option.
719# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
720# be 131072 (128 * 1024).
721#
722# TUNE_1542 enables the automatic ISA bus speed selection for the
723# Adaptec 1542 boards. Does not work for all boards, use it with caution.
724#
725# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
726# reset the CPU for reboot.  This is needed on some systems with broken
727# keyboard controllers.
728#
729# PAS_JOYSTICK_ENABLE enables the gameport on the ProAudio Spectrum
730
731options		"AUTO_EOI_1"
732#options	"AUTO_EOI_2"
733options		BOUNCE_BUFFERS
734options		"MAXMEM=(128*1024)"
735options 	"TUNE_1542"
736#options	BROKEN_KEYBOARD_RESET
737#options	PAS_JOYSTICK_ENABLE
738
739# Enable support for the kernel PLL to use an external PPS signal,
740# under supervision of [x]ntpd(8)
741# More info in ftp://ftp.udel.edu/pub/ntp/kernel.tar.Z
742
743options		PPS_SYNC
744
745# Enable PnP support in the kernel.  This allows you to automaticly
746# attach to PnP cards for drivers that support it and allows you to
747# configure cards from USERCONFIG.  See pnp(4) for more info.
748controller	pnp0
749
750# The pcvt console driver (vt220 compatible).
751device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
752options		XSERVER			# support for running an X server.
753options		FAT_CURSOR		# start with block cursor
754# This PCVT option is for keyboards such as those used on IBM ThinkPad laptops
755options		PCVT_SCANSET=2 		# IBM keyboards are non-std
756
757# The syscons console driver (sco color console compatible).
758device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
759options		MAXCONS=16		# number of virtual consoles
760options		SLOW_VGA		# do byte-wide i/o's to TS and GDC regs
761options		"STD8X16FONT"		# Compile font in
762makeoptions	"STD8X16FONT"="cp850"
763options		SC_HISTORY_SIZE=200	# number of history buffer lines
764options		SC_DISABLE_REBOOT	# disable reboot key sequence
765
766#
767# `flags' for sc0:
768#       0x01    Use a 'visual' bell
769#       0x02    Use a 'blink' cursor
770#       0x04    Use a 'underline' cursor
771#       0x06    Use a 'blinking underline' (destructive) cursor
772#       0x08    Force detection of keyboard, else we always assume a keyboard
773#       0x10    Old-style (XT) keyboard support, useful for older ThinkPads
774#       0x20    Don't reset keyboard, useful for some newer ThinkPads
775
776#
777# The Numeric Processing eXtension driver.  This should be configured if
778# your machine has a math co-processor, unless the coprocessor is very
779# buggy. If it is not configured then you *must* configure math emulation
780# (see above).  If both npx0 and emulation are configured, then only npx0
781# is used (provided it works).
782device		npx0	at isa? port "IO_NPX" iosiz 0x0 flags 0x0 irq 13 vector npxintr
783
784#
785# `flags' for npx0:
786#	0x01	don't use the npx registers to optimize bcopy
787#	0x02	don't use the npx registers to optimize bzero
788#	0x04	don't use the npx registers to optimize copyin or copyout.
789# The npx registers are normally used to optimize copying and zeroing when
790# all of the following conditions are satisfied:
791#	"I586_CPU" is an option
792#	the cpu is an i586 (perhaps not a Pentium)
793#	the probe for npx0 succeeds
794#	INT 16 exception handling works.
795# Then copying and zeroing using the npx registers is normally 30-100% faster.
796# The flags can be used to control cases where it doesn't work or is slower.
797# Setting them at boot time using userconfig works right (the optimizations
798# are not used until later in the bootstrap when npx0 is attached).
799#
800
801#
802# `iosiz' for npx0:
803# This can be used instead of the MAXMEM option to set the memory size.  If
804# it is nonzero, then it overrides both the MAXMEM option and the memory
805# size reported by the BIOS.  Setting it at boot time using userconfig takes
806# effect on the next reboot after the change has been recorded in the kernel
807# binary (the size is used early in the boot before userconfig has a chance
808# to change it).
809#
810
811#
812# Optional ISA and EISA devices:
813#
814
815#
816# SCSI host adapters: `aha', `aic', `bt', `nca'
817#
818# aha: Adaptec 154x
819# ahc: Adaptec 274x/284x/294x
820# aic: Adaptec 152x and sound cards using the Adaptec AIC-6360 (slow!)
821# bt: Most Buslogic controllers
822# nca: ProAudioSpectrum cards using the NCR 5380 or Trantor T130
823# uha: UltraStor ULTRA 14F/24F/34F
824# sea: Seagate ST01/02 8 bit controller (slow!)
825# wds: Western Digital WD7000 controller (no scatter/gather!).
826#
827# Note that the order is important in order for Buslogic cards to be
828# probed correctly.
829#
830
831controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
832controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
833controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
834
835controller      aic0    at isa? port 0x340 bio irq 11 vector aicintr
836controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
837controller	nca1	at isa? port 0x1f84
838controller	nca2	at isa? port 0x1f8c
839controller	nca3	at isa? port 0x1e88
840controller	nca4	at isa? port 0x350 bio irq 5 vector ncaintr
841
842controller	sea0	at isa? bio irq 5 iomem 0xdc000 iosiz 0x2000 vector seaintr
843controller	wds0	at isa? port 0x350 bio irq 15 drq 6 vector wdsintr
844
845#
846# ST-506, ESDI, and IDE hard disks: `wdc' and `wd'
847#
848# The flags fields are used to enable the multi-sector I/O and
849# the 32BIT I/O modes.  The flags may be used in either the controller
850# definition or in the individual disk definitions.  The controller
851# definition is supported for the boot configuration stuff.
852#
853# Each drive has a 16 bit flags value defined:
854#	The low 8 bits are the maximum value for the multi-sector I/O,
855#	where 0xff defaults to the maximum that the drive can handle.
856#	The high bit of the 16 bit flags (0x8000) allows probing for
857#	32 bit transfers.  Bit 14 (0x4000) enables a hack to wake
858#	up powered-down laptop drives.  Bit 13 (0x2000) allows
859#	probing for PCI IDE DMA controllers, such as Intel's PIIX
860#	south bridges. Bit 12 (0x1000) sets LBA mode instead of the
861#	default CHS mode for accessing the drive. See the wd.4 man page.
862#
863# The flags field for the drives can be specified in the controller
864# specification with the low 16 bits for drive 0, and the high 16 bits
865# for drive 1.
866# e.g.:
867#controller	wdc0	at isa? port "IO_WD1" bio irq 14 flags 0x00ff8004 vector wdintr
868#
869# specifies that drive 0 will be allowed to probe for 32 bit transfers and
870# a maximum multi-sector transfer of 4 sectors, and drive 1 will not be
871# allowed to probe for 32 bit transfers, but will allow multi-sector
872# transfers up to the maximum that the drive supports.
873#
874# If you are using a PCI controller that is not running in compatibility
875# mode (for example, it is a 2nd IDE PCI interface), then use config line(s)
876# such as:
877#
878#controller	wdc2	at isa? port "0" bio irq ? flags 0xa0ffa0ff vector wdintr
879#disk		wd4	at wdc2 drive 0
880#disk		wd5	at wdc2 drive 1
881#
882#controller	wdc3	at isa? port "0" bio irq ? flags 0xa0ffa0ff vector wdintr
883#disk		wd6	at wdc3 drive 0
884#disk		wd7	at wdc3 drive 1
885#
886# Note that the above config would be useful for a Promise card, when used
887# on a MB that already has a PIIX controller.  Note the bogus irq and port
888# entries.  These are automatically filled in by the IDE/PCI support.
889#
890
891controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
892disk		wd0	at wdc0 drive 0
893disk		wd1	at wdc0 drive 1
894controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
895disk		wd2	at wdc1 drive 0
896disk		wd3	at wdc1 drive 1
897
898#
899# Options for `wdc':
900#
901# CMD640 enables serializing access to primary and secondary channel
902# of the CMD640B IDE Chip. The serializing will only take place
903# if this option is set *and* the chip is probed by the pci-system.
904#
905options         "CMD640"	#Enable work around for CMD640 h/w bug
906#
907# ATAPI enables the support for ATAPI-compatible IDE devices
908#
909options         ATAPI   #Enable ATAPI support for IDE bus
910options		ATAPI_STATIC	#Don't do it as an LKM
911
912# IDE CD-ROM driver - requires wdc controller and ATAPI option
913device          wcd0
914
915# IDE floppy driver - requires wdc controller and ATAPI option
916device          wfd0
917
918# IDE tape driver - requires wdc controller and ATAPI option
919device          wst0
920
921
922#
923# Standard floppy disk controllers and floppy tapes: `fdc', `fd', and `ft'
924#
925controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
926#
927# FDC_DEBUG enables floppy debugging.  Since the debug output is huge, you
928# gotta turn it actually on by setting the variable fd_debug with DDB,
929# however.
930options		FDC_DEBUG
931# This option is undocumented on purpose.
932options		FDC_PRINT_BOGUS_CHIPTYPE
933#
934# Activate this line instead of the fdc0 line above if you happen to
935# have an Insight floppy tape.  Probing them proved to be dangerous
936# for people with floppy disks only, so it's "hidden" behind a flag:
937#controller fdc0 at isa? port "IO_FD1" bio flags 1 irq 6 drq 2 vector fdintr
938
939disk		fd0	at fdc0 drive 0
940disk		fd1	at fdc0 drive 1
941tape		ft0	at fdc0 drive 2
942
943
944#
945# Other standard PC hardware: `lpt', `mse', `psm', `sio', etc.
946#
947# lpt: printer port
948#	lpt specials:
949#		port can be specified as ?, this will cause the driver to scan
950#		the BIOS port list;
951#		the irq and vector clauses may be omitted, this
952#		will force the port into polling mode.
953# mse: Logitech and ATI InPort bus mouse ports
954# psm: PS/2 mouse port [note: conflicts with sc0/vt0, thus "conflicts" keywd]
955# sio: serial ports (see sio(4))
956
957device		lpt0	at isa? port? tty irq 7 vector lptintr
958device		lpt1	at isa? port "IO_LPT3" tty irq 5 vector lptintr
959device		mse0	at isa? port 0x23c tty irq 5 vector mseintr
960device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
961
962# Options for psm:
963options		PSM_HOOKAPM		#hook the APM resume event, useful
964					#for some laptops
965options		PSM_RESETAFTERSUSPEND	#reset the device at the resume event
966
967device		sio0	at isa? port "IO_COM1" tty flags 0x10 irq 4 vector siointr
968
969#
970# `flags' for serial drivers that support consoles (only for sio now):
971#	0x10	enable console support for this unit.  The other console flags
972#		are ignored unless this is set.  Enabling console support does
973#		not make the unit the preferred console - boot with -h or set
974#		the 0x20 flag for that.  Currently, at most one unit can have
975#		console support; the first one (in config file order) with
976#		this flag set is preferred.  Setting this flag for sio0 gives
977#		the old behaviour.
978#	0x20	force this unit to be the console (unless there is another
979#		higher priority console).  This replaces the COMCONSOLE option.
980#	0x40	reserve this unit for low level console operations.  Do not
981#
982# PnP `flags' (set via userconfig using pnp x flags y)
983#	0x1	disable probing of this device.  Used to prevent your modem
984#		from being attached as a PnP modem.
985#
986
987# Options for serial drivers that support consoles (only for sio now):
988options		BREAK_TO_DEBUGGER	#a BREAK on a comconsole goes to
989					#DDB, if available.
990options		CONSPEED=9600		#default speed for serial console (default 9600)
991
992# Options for sio:
993options		COM_ESP			#code for Hayes ESP
994options		COM_MULTIPORT		#code for some cards with shared IRQs
995options		DSI_SOFT_MODEM		#code for DSI Softmodems
996options		"EXTRA_SIO=2"		#number of extra sio ports to allocate
997
998# Other flags for sio that aren't documented in the man page.
999#	0x20000	enable hardware RTS/CTS and larger FIFOs.  Only works for
1000#		ST16650A-compatible UARTs.
1001
1002#
1003# Network interfaces: `cx', `ed', `el', `ep', `ie', `is', `le', `lnc'
1004#
1005# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver (requires sppp)
1006# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters
1007# cx: Cronyx/Sigma multiport sync/async (with Cisco or PPP framing)
1008# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
1009# el: 3Com 3C501 (slow!)
1010# ep: 3Com 3C509 (buggy)
1011# fe: Fujitsu MB86960A/MB86965A Ethernet
1012# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210; Intel EtherExpress
1013# le: Digital Equipment EtherWorks 2 and EtherWorks 3 (DEPCA, DE100,
1014#     DE101, DE200, DE201, DE202, DE203, DE204, DE205, DE422)
1015# lnc: Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL)
1016# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
1017# wl: Lucent Wavelan (ISA card only).
1018# ze: IBM/National Semiconductor PCMCIA ethernet controller.
1019# zp: 3Com PCMCIA Etherlink III (It does not require shared memory for
1020#     send/receive operation, but it needs 'iomem' to read/write the
1021#     attribute memory)
1022#
1023
1024device ar0 at isa? port 0x300 net irq 10 iomem 0xd0000 vector arintr
1025device cs0 at isa? port 0x300 net irq ? vector csintr
1026device cx0 at isa? port 0x240 net irq 15 drq 7 vector cxintr
1027device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr
1028device eg0 at isa? port 0x310 net irq 5 vector egintr
1029device el0 at isa? port 0x300 net irq 9 vector elintr
1030device ep0 at isa? port 0x300 net irq 10 vector epintr
1031device ex0 at isa? port? net irq? vector exintr
1032device fe0 at isa? port 0x300 net irq ? vector feintr
1033device ie0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector ieintr
1034device ie1 at isa? port 0x360 net irq 7 iomem 0xd0000 vector ieintr
1035device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
1036device lnc0 at isa? port 0x300 net irq 10 drq 0 vector lncintr
1037device sr0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector srintr
1038options		WLCACHE		# enables the signal-strength cache
1039options		WLDEBUG		# enables verbose debugging output
1040device wl0 at isa? port 0x300 net irq ? vector wlintr
1041# We can (bogusly) include both the dedicated PCCARD drivers and the generic
1042# support when COMPILING_LINT.
1043device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
1044device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
1045
1046#
1047# ATM related options
1048#
1049# The `en' device provides support for Efficient Networks (ENI)
1050# ENI-155 PCI midway cards, and the Adaptec 155Mbps PCI ATM cards (ANA-59x0).
1051#
1052# atm pseudo-device provides generic atm functions and is required for
1053# atm devices.
1054# NATM enables the netnatm protocol family that can be used to
1055# bypass TCP/IP.
1056#
1057# the current driver supports only PVC operations (no atm-arp, no multicast).
1058# for more details, please read the original documents at
1059# http://www.ccrc.wustl.edu/pub/chuck/bsdatm/wucs.html
1060#
1061pseudo-device	atm
1062device en0
1063device en1
1064options		NATM			#native ATM
1065
1066#
1067# Audio drivers: `snd', `sb', `pas', `gus', `pca'
1068#
1069# snd: Voxware sound support code
1070# sb: SoundBlaster PCM - SoundBlaster, SB Pro, SB16, ProAudioSpectrum
1071# sbxvi: SoundBlaster 16
1072# sbmidi: SoundBlaster 16 MIDI interface
1073# pas: ProAudioSpectrum PCM and MIDI
1074# gus: Gravis Ultrasound - Ultrasound, Ultrasound 16, Ultrasound MAX
1075# gusxvi: Gravis Ultrasound 16-bit PCM	(do not use)
1076# mss: Microsoft Sound System
1077# css: Crystal Sound System (CSS 423x PnP)
1078# sscape: Ensoniq Soundscape MIDI interface
1079# sscape_mss: Ensoniq Soundscape PCM (requires sscape)
1080# opl: Yamaha OPL-2 and OPL-3 FM - SB, SB Pro, SB 16, ProAudioSpectrum
1081# uart: stand-alone 6850 UART for MIDI
1082# mpu: Roland MPU-401 stand-alone card
1083#
1084# Beware!  The addresses specified below are also hard-coded in
1085# i386/isa/sound/sound_config.h.  If you change the values here, you
1086# must also change the values in the include file.
1087#
1088# pcm: PCM audio through various sound cards.
1089#
1090# This is the work in progress from Luigi Rizzo.  This has support for
1091# CS423x based cards, OPTi931, SB16 PnP, GusPnP.  For more information
1092# about this driver, take a look at sys/i386/isa/snd/README.
1093#
1094# The flags of the device tells the device a bit more info about the
1095# device that normally is obtained through the PnP interface.
1096#	bit  2..0   secondary DMA channel;
1097#	bit  4      set if the board uses two dma channels;
1098#	bit 15..8   board type, overrides autodetection; leave it
1099#		    zero if don't know what to put in (and you don't,
1100#		    since this is unsupported at the moment...).
1101#
1102# This driver will use the new PnP code if it's available.
1103#
1104# pca: PCM audio through your PC speaker
1105#
1106# If you have a GUS-MAX card and want to use the CS4231 codec on the
1107# card the drqs for the gus max must be 8 bit (1, 2, or 3).
1108#
1109# If you would like to use the full duplex option on the gus, then define
1110# flags to be the ``read dma channel''.
1111#
1112# options BROKEN_BUS_CLOCK	#PAS-16 isn't working and OPTI chipset
1113# options SYMPHONY_PAS		#PAS-16 isn't working and SYMPHONY chipset
1114# options EXCLUDE_SBPRO		#PAS-16
1115# options SBC_IRQ=5		#PAS-16. Must match irq on sb0 line.
1116# PAS16: The order of the pas0/sb0/opl0 is important since the
1117#	sb emulation is enabled in the pas-16 attach.
1118#
1119# To overide the GUS defaults use:
1120# options GUS_DMA2
1121# options GUS_DMA
1122# options GUS_IRQ
1123#
1124# The i386/isa/sound/sound.doc has more information.
1125
1126# Controls all "VOXWARE" driver sound devices.  See Luigi's driver
1127# below for an alternate which may work better for some cards.
1128#
1129controller	snd0
1130device pas0     at isa? port 0x388 irq 10 drq 6 vector pasintr
1131device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr
1132device sbxvi0   at isa? drq 5
1133device sbmidi0  at isa? port 0x330
1134device awe0     at isa? port 0x620
1135device gus0 at isa? port 0x220 irq 12 drq 1 vector gusintr
1136#device gus0 at isa? port 0x220 irq 12 drq 1 flags 0x3 vector gusintr
1137device mss0 at isa? port 0x530 irq 10 drq 1 vector adintr
1138device css0	at isa? port 0x534 irq 5 drq 1 flags 0x08 vector adintr
1139device sscape0  at isa? port 0x330 irq 9 drq 0 vector sscapeintr
1140device trix0    at isa? port 0x330 irq 6 drq 0 vector sscapeintr
1141device sscape_mss0  at isa? port 0x534 irq 5 drq 1 vector sndintr
1142device opl0     at isa? port 0x388
1143device mpu0     at isa? port 0x330 irq 6 drq 0
1144device uart0 at isa? port 0x330 irq 5 vector "m6850intr"
1145
1146# Luigi's snd code (use INSTEAD of snd0 and all VOXWARE drivers!).
1147# You may also wish to enable the pnp controller with this, for pnp
1148# sound cards.
1149#
1150#device pcm0 at isa? port ? tty irq 10 drq 1 flags 0x0 vector pcmintr
1151
1152# Not controlled by `snd'
1153device pca0 at isa? port IO_TIMER1 tty
1154
1155#
1156# Miscellaneous hardware:
1157#
1158# mcd: Mitsumi CD-ROM
1159# scd: Sony CD-ROM
1160# matcd: Matsushita/Panasonic CD-ROM
1161# wt: Wangtek and Archive QIC-02/QIC-36 tape drives
1162# ctx: Cortex-I frame grabber
1163# apm: Laptop Advanced Power Management (experimental)
1164# spigot: The Creative Labs Video Spigot video-acquisition board
1165# meteor: Matrox Meteor video capture board
1166# alog: Industrial Computer Source AIO8-P driver
1167# bktr: Bt848 capture boards (http://www.freebsd.org/~fsmp/HomeAuto/Bt848.html)
1168# cy: Cyclades serial driver
1169# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!)
1170# dgm: Digiboard PC/Xem driver
1171# gp:  National Instruments AT-GPIB and AT-GPIB/TNT board
1172# asc: GI1904-based hand scanners, e.g. the Trust Amiscan Grey
1173# gsc: Genius GS-4500 hand scanner.
1174# joy: joystick
1175# labpc: National Instrument's Lab-PC and Lab-PC+
1176# rc: RISCom/8 multiport card
1177# rp: Comtrol Rocketport(ISA) - single card
1178# tw: TW-523 power line interface for use with X-10 home control products
1179# si: Specialix SI/XIO 4-32 port terminal multiplexor
1180# stl: Stallion EasyIO and EasyConnection 8/32 (cd1400 based)
1181# stli: Stallion EasyConnection 8/64, ONboard, Brumby (intelligent)
1182
1183#
1184# Notes on APM
1185#  The flags takes the following meaning for apm0:
1186#    0x0020  Statclock is broken.
1187#    0x0011  Limit APM protocol to 1.1 or 1.0
1188#    0x0010  Limit APM protocol to 1.0
1189#
1190#
1191# Notes on the spigot:
1192#  The video spigot is at 0xad6.  This port address can not be changed.
1193#  The irq values may only be 10, 11, or 15
1194#  I/O memory is an 8kb region.  Possible values are:
1195#    0a0000, 0a2000, ..., 0fffff, f00000, f02000, ..., ffffff
1196#    The start address must be on an even boundary.
1197#  Add the following option if you want to allow non-root users to be able
1198#  to access the spigot.  This option is not secure because it allows users
1199#  direct access to the I/O page.
1200#  	options SPIGOT_UNSECURE
1201#
1202
1203# Notes on the Comtrol Rocketport driver:
1204#
1205# The exact values used for rp0 depend on how many boards you have
1206# in the system.  The manufacturer's sample configs are listed as:
1207#
1208#   Comtrol Rocketport ISA single card
1209#               device  rp0     at isa? port 0x280 tty
1210#
1211#   If instead you have two ISA cards, one installed at 0x100 and the
1212#   second installed at 0x180, then you should add the following to
1213#   your kernel configuration file:
1214#
1215#               device  rp0     at isa? port 0x100 tty
1216#               device  rp1     at isa? port 0x180 tty
1217#
1218#   For 4 ISA cards, it might be something like this:
1219#
1220#               device  rp0     at isa? port 0x180 tty
1221#               device  rp1     at isa? port 0x100 tty
1222#               device  rp2     at isa? port 0x340 tty
1223#               device  rp3     at isa? port 0x240 tty
1224#
1225#   And for PCI cards, you only need say:
1226#
1227#               device rp0
1228#               device rp1
1229#               ...
1230#   Note: Make sure that any Rocketport PCI devices are specified BEFORE the
1231#   ISA Rocketport devices.
1232
1233# Notes on the Digiboard driver:
1234#
1235# The following flag values have special meanings:
1236#	0x01 - alternate layout of pins (dgb & dgm)
1237#	0x02 - use the windowed PC/Xe in 64K mode (dgb only)
1238
1239# Notes on the Specialix SI/XIO driver:
1240#  **This is NOT a Specialix supported Driver!**
1241#  The host card is memory, not IO mapped.
1242#  The Rev 1 host cards use a 64K chunk, on a 32K boundary.
1243#  The Rev 2 host cards use a 32K chunk, on a 32K boundary.
1244#  The cards can use an IRQ of 11, 12 or 15.
1245
1246# Notes on the Stallion stl and stli drivers:
1247#  See src/i386/isa/README.stl for complete instructions.
1248#  This is version 0.0.5alpha, unsupported by Stallion.
1249#  The stl driver has a secondary IO port hard coded at 0x280.  You need
1250#     to change src/i386/isa/stallion.c if you reconfigure this on the boards.
1251#  The "flags" and "iosiz" settings on the stli driver depend on the board:
1252#	EasyConnection 8/64 ISA:     flags 23         iosiz 0x1000
1253#	EasyConnection 8/64 EISA:    flags 24         iosiz 0x10000
1254#	EasyConnection 8/64 MCA:     flags 25         iosiz 0x1000
1255#	ONboard ISA:                 flags 4          iosiz 0x10000
1256#	ONboard EISA:                flags 7          iosiz 0x10000
1257#	ONboard MCA:                 flags 3          iosiz 0x10000
1258#	Brumby:                      flags 2          iosiz 0x4000
1259#	Stallion:                    flags 1          iosiz 0x10000
1260
1261device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
1262# for the Sony CDU31/33A CDROM
1263device		scd0	at isa? port 0x230 bio
1264# for the SoundBlaster 16 multicd - up to 4 devices
1265controller      matcd0  at isa? port 0x230 bio
1266device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
1267device		ctx0	at isa? port 0x230 iomem 0xd0000
1268device		spigot0 at isa? port 0xad6 irq 15 iomem 0xee000 vector spigintr
1269device		apm0	at isa?
1270device		gp0	at isa? port 0x2c0 tty
1271device		gsc0	at isa? port "IO_GSC1" tty drq 3
1272device		joy0	at isa? port "IO_GAME"
1273device          alog0   at isa? port 0x260 tty irq 5 vector alogintr
1274device		cy0	at isa? tty irq 10 iomem 0xd4000 iosiz 0x2000 vector cyintr
1275device		dgb0	at isa? port 0x220 iomem 0xfc0000 iosiz ? tty
1276device		dgm0	at isa? port 0x104 iomem 0xd00000 iosiz ? tty
1277device		labpc0	at isa? port 0x260 tty irq 5 vector labpcintr
1278device          rc0     at isa? port 0x220 tty irq 12 vector rcintr
1279device          rp0     at isa? port 0x280 tty
1280# the port and irq for tw0 are fictitious
1281device          tw0     at isa? port 0x380 tty irq 11 vector twintr
1282device		si0	at isa? iomem 0xd0000 tty irq 12
1283device		asc0	at isa? port IO_ASC1 tty drq 3 irq 10 vector ascintr
1284device		bqu0	at isa? port 0x150
1285device		stl0	at isa? port 0x2a0 tty irq 10 vector stlintr
1286device		stli0	at isa? port 0x2a0 tty iomem 0xcc000 flags 23 iosiz 0x1000
1287# You are unlikely to have the hardware for loran0 <phk@FreeBSD.org>
1288device		loran0	at isa? port ? tty irq 5 vector loranintr
1289# HOT1 Xilinx 6200 card (www.vcc.com)
1290device		xrpu0
1291
1292#
1293# EISA devices:
1294#
1295# The EISA bus device is eisa0.  It provides auto-detection and
1296# configuration support for all devices on the EISA bus.
1297#
1298# The `ahb' device provides support for the Adaptec 174X adapter.
1299#
1300# The `ahc' device provides support for the Adaptec 274X and 284X
1301# adapters.  The 284X, although a VLB card responds to EISA probes.
1302#
1303# fea: DEC DEFEA EISA FDDI adapter
1304#
1305controller	eisa0
1306controller	ahb0
1307controller	ahc0
1308device		fea0
1309
1310# enable tagged command queuing, which is a major performance win on
1311# devices that support it (and controllers with enough SCB's)
1312options	AHC_TAGENABLE
1313
1314# enable SCB paging - See the ahc.4 man page
1315options	AHC_SCBPAGING_ENABLE
1316
1317# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1318# controllers that have it configured only if this option is set. Unfortunately,
1319# this doesn't work on some motherboards, which prevents it from being the
1320# default.
1321options AHC_ALLOW_MEMIO
1322
1323# By default, only 10 EISA slots are probed, since the slot numbers
1324# above clash with the configuration address space of the PCI subsystem,
1325# and the EISA probe is not very smart about this.  This is sufficient
1326# for most machines, but in particular the HP NetServer LC series comes
1327# with an onboard AIC7770 dual-channel SCSI controller on EISA slot #11,
1328# thus you need to bump this figure to 12 for them.
1329options	"EISA_SLOTS=12"
1330
1331#
1332# PCI devices & PCI options:
1333#
1334# The main PCI bus device is `pci'.  It provides auto-detection and
1335# configuration support for all devices on the PCI bus, using either
1336# configuration mode defined in the PCI specification.
1337#
1338# The `ahc' device provides support for the Adaptec 29/3940(U)(W)
1339# and motherboard based AIC7870/AIC7880 adapters.
1340#
1341# The `ncr' device provides support for the NCR 53C810 and 53C825
1342# self-contained SCSI host adapters.
1343#
1344# The `isp' device provides support for the Qlogic ISP 1020, 1040
1345# nd 1040B PCI SCSI host adapters, as well as the Qlogic ISP 2100
1346# FC/AL Host Adapter.
1347#
1348# The `amd' device provides support for the Tekram DC-390 and 390T
1349# SCSI host adapters, but is expected to work with any AMD 53c974
1350# PCI SCSI chip and the AMD Ethernet+SCSI Combo chip, after some
1351# local patches were applied to the sources (that had originally
1352# been written by Tekram and limited to work with their SCSI cards).
1353#
1354# The `de' device provides support for the Digital Equipment DC21040
1355# self-contained Ethernet adapter.
1356#
1357# The `fxp' device provides support for the Intel EtherExpress Pro/100B
1358# PCI Fast Ethernet adapters.
1359#
1360# The 'tl' device provides support for the Texas Instruments TNETE100
1361# series 'ThunderLAN' cards and integrated ethernet controllers. This
1362# includes several Compaq Netelligent 10/100 cards and the built-in
1363# ethernet controllers in several Compaq Prosignia, Proliant and
1364# Deskpro systems.
1365#
1366# The `tx' device provides support for the SMC 9432TX cards.
1367#
1368# The `vx' device provides support for the 3Com 3C590 and 3C595
1369# early support
1370#
1371# The `fpa' device provides support for the Digital DEFPA PCI FDDI
1372# adapter. pseudo-device fddi is also needed.
1373#
1374# The `meteor' device is a PCI video capture board. It can also have the
1375# following options:
1376#   options METEOR_ALLOC_PAGES=xxx	preallocate kernel pages for data entry
1377#	figure (ROWS*COLUMN*BYTES_PER_PIXEL*FRAME+PAGE_SIZE-1)/PAGE_SIZE
1378#   options METEOR_DEALLOC_PAGES	remove all allocated pages on close(2)
1379#   options METEOR_DEALLOC_ABOVE=xxx	remove all allocated pages above the
1380#	specified amount. If this value is below the allocated amount no action
1381#	taken
1382#   option METEOR_SYSTEM_DEFAULT={METEOR_PAL|METEOR_NTSC|METEOR_SECAM}, used
1383#	for initialization of fps routine when a signal is not present.
1384#
1385# The 'bktr' device is a PCI video capture board. It also has a TV tuner
1386# on board. To override the tuner detection use
1387#   options OVERRIDE_TUNER=x
1388# The current values are found in /usr/src/sys/pci/brooktree848.c
1389#
1390#
1391controller	pci0
1392controller	ahc1
1393controller	ncr0
1394controller	isp0
1395controller	amd0
1396device		de0
1397device		fxp0
1398device		tl0
1399device		tx0
1400device		vx0
1401device		fpa0
1402device		meteor0
1403device		bktr0
1404
1405options         OVERRIDE_TUNER=NO_TUNER
1406
1407#
1408# PCI options
1409#
1410#options	PCI_QUIET	#quiets PCI code on chipset settings
1411
1412#
1413# PCCARD/PCMCIA
1414#
1415# card: slot controller
1416# pcic: slots
1417controller	card0
1418device		pcic0 at card?
1419device		pcic1 at card?
1420
1421#
1422# Laptop/Notebook options:
1423#
1424# See also:
1425#  apm under `Miscellaneous hardware'
1426# above.
1427
1428# For older notebooks that signal a powerfail condition (external
1429# power supply dropped, or battery state low) by issuing an NMI:
1430
1431options		POWERFAIL_NMI	# make it beep instead of panicing
1432
1433#
1434# Parallel-Port Bus
1435#
1436# Parallel port bus support is provided by the `ppbus' device.
1437# Multiple devices may be attached to the parallel port, devices
1438# are automatically probed and attached when found.
1439#
1440# Supported devices:
1441# vpo	Iomega Zip Drive
1442#	Requires SCSI disk support ('scbus' and 'sd'), best
1443#	performance is achieved with ports in EPP 1.9 mode.
1444# nlpt	Parallel Printer
1445# plip	Parallel network interface
1446# ppi	General-purpose I/O ("Geek Port")
1447#
1448# Supported interfaces:
1449# ppc	ISA-bus parallel port interfaces.
1450#
1451controller	ppbus0
1452controller	vpo0	at ppbus?
1453device		nlpt0	at ppbus?
1454device		plip0	at ppbus?
1455device		ppi0	at ppbus?
1456device		pps0	at ppbus?
1457
1458controller	ppc0	at isa? disable port ? tty irq 7 vector ppcintr
1459
1460# Kernel BOOTP support
1461
1462options		BOOTP		# Use BOOTP to obtain IP address/hostname
1463options		BOOTP_NFSROOT	# NFS mount root filesystem using BOOTP info
1464options		"BOOTP_NFSV3"	# Use NFS v3 to NFS mount root
1465options		BOOTP_COMPAT	# Workaround for broken bootp daemons.
1466options		"BOOTP_WIRED_TO=fxp0" # Use interface fxp0 for BOOTP
1467
1468# If you want to disable loadable kernel modules (LKM), you
1469# might want to use this option.
1470#options		NO_LKM
1471
1472#
1473# Add tie-ins for a hardware watchdog.  This only enable the hooks;
1474# the user must still supply the actual driver.
1475#
1476options		HW_WDOG
1477
1478#
1479# Set the number of PV entries per process.  Increasing this can
1480# stop panics related to heavy use of shared memory. However, that can
1481# (combined with large amounts of physical memory) cause panics at
1482# boot time due the kernel running out of VM space.
1483#
1484# If you're tweaking this, you might also want to increase the sysctls
1485# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
1486#
1487# The value below is the one more than the default.
1488#
1489options         "PMAP_SHPGPERPROC=201"
1490
1491# More undocumented options for linting.
1492
1493options		CLK_CALIBRATION_LOOP
1494options		"CLK_USE_I8254_CALIBRATION"
1495options		CLK_USE_TSC_CALIBRATION
1496options		CLUSTERDEBUG
1497options		COMPAT_LINUX
1498options		CPU_UPGRADE_HW_CACHE
1499options		DEBUG
1500options		"DEBUG_1284"
1501#options	DISABLE_PSE
1502options		"EXT2FS"
1503options		"I586_PMC_GUPROF=0x70000"
1504options		"IBCS2"
1505options		KEY
1506options		KEY_DEBUG
1507options		LOCKF_DEBUG
1508options		LOUTB
1509options		KBD_MAXRETRY=4
1510options		KBD_MAXWAIT=6
1511options		KBD_RESETDELAY=201
1512options		KBDIO_DEBUG=2
1513options		MSGMNB=2049
1514options		MSGMNI=41
1515options		MSGSEG=2049
1516options		MSGSSZ=16
1517options		MSGTQL=41
1518options		NBUF=512
1519options		NETATALKDEBUG
1520options		NMBCLUSTERS=1024
1521options		NPX_DEBUG
1522options		NULLFS_DIAGNOSTIC
1523options		PANIC_REBOOT_WAIT_TIME=16
1524options		"PCVT_24LINESDEF"
1525options		PCVT_CTRL_ALT_DEL
1526options		PCVT_EMU_MOUSE
1527options		PCVT_FREEBSD=211
1528options		PCVT_META_ESC
1529options		PCVT_NSCREENS=9
1530options		PCVT_PRETTYSCRNS
1531options		PCVT_SCANSET=2
1532options		PCVT_SCREENSAVER
1533options		PCVT_USEKBDSEC
1534options		"PCVT_VT220KEYB"
1535options		PSM_DEBUG=1
1536options		"SCSI_2_DEF"
1537options		SCSI_DELAY=8	# Be pessimistic about Joe SCSI device
1538options		SCSI_NCR_DEBUG
1539options		SCSI_NCR_DFLT_TAGS=4
1540options		SCSI_NCR_MAX_SYNC=10000
1541options		SCSI_NCR_MAX_WIDE=1
1542options		SCSI_NCR_MYADDR=7
1543options		SEMMAP=31
1544options		SEMMNI=11
1545options		SEMMNS=61
1546options		SEMMNU=31
1547options		SEMMSL=61
1548options		SEMOPM=101
1549options		SEMUME=11
1550options		SHOW_BUSYBUFS	# List buffers that prevent root unmount
1551options		SHMALL=1025
1552options		"SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)"
1553options		SHMMAXPGS=1025
1554options		SHMMIN=2
1555options		SHMMNI=33
1556options		SHMSEG=9
1557options		SI_DEBUG
1558options		SIMPLELOCK_DEBUG
1559options		SPX_HACK
1560
1561# The 'dpt' driver provides support for DPT controllers (http://www.dpt.com/).
1562# These have hardware RAID-{0,1,5} support, and do multi-initiator I/O.
1563# The DPT controllers are commonly re-licensed under other brand-names -
1564# some controllers by Olivetti, Dec, HP, AT&T, SNI, AST, Alphatronic, NEC and
1565# Compaq are actually DPT controllers.
1566#
1567# See sys/dev/dpt for debugging and other subtle options.
1568#   DPT_VERIFY_HINTR        Performs some strict hardware interrupts testing.
1569#                           Only use if you suspect PCI bus corruption problems
1570#   DPT_RESTRICTED_FREELIST Normally, the freelisat used by the DPT for queue
1571#                           will grow to accomodate increased use.  This growth
1572#                           will NOT shrink.  To restrict the number of queue
1573#                           slots to exactly what the DPT can hold at one time,
1574#                           enable this option.
1575#   DPT_MEASURE_PERFORMANCE Enables a set of (semi)invasive metrics. Various
1576#                           instruments are enabled.  The tools in
1577#                           /usr/sbin/dpt_* assume these to be enabled.
1578#   DPT_FREELIST_IS_STACK   For optimal L{1,2} CPU cache utilization, enable
1579#                           this option.  Otherwise, the transaction queue is
1580#                           a LIFO.  I cannot measure the performance gain.
1581#   DPT_HANDLE_TIMEOUTS     Normally device timeouts are handled by the DPT.
1582#                           If you ant the driver to handle timeouts, enable
1583#                           this option.  If your system is very busy, this
1584#                           option will create more trouble than solve.
1585#   DPT_TIMEOUT_FACTOR      Used to compute the excessive amount of time to
1586#                           wait when timing out with the above option.
1587#  DPT_DEBUG_xxxx           These are controllable from sys/dev/dpt/dpt.h
1588#  DPT_LOST_IRQ             When enabled, will try, once per second, to catch
1589#                           any interrupt that got lost.  Seems to help in some
1590#                           DPT-firmware/Motherboard combinations.  Minimal
1591#                           cost, great benefit.
1592#  DPT_RESET_HBA            Make "reset" actually reset the controller
1593#                           instead of fudging it.  Only enable this if you
1594#			    are 100% certain you need it.
1595#  DPT_SHUTDOWN_SLEEP       Reset controller if a request take more than
1596#                           this number of seconds.  Do NOT enable this
1597#			    unless you are really, really, really certain
1598#			    you need it.  You are advised to call Simon (the
1599#			    driver author) before setting it, and NEVER,
1600#			    EVER set it to less than 300s (5 minutes).
1601
1602controller      dpt0
1603
1604# DPT options
1605options DPT_VERIFY_HINTR
1606options DPT_RESTRICTED_FREELIST
1607options DPT_MEASURE_PERFORMANCE
1608options DPT_FREELIST_IS_STACK
1609options DPT_HANDLE_TIMEOUTS
1610options DPT_TIMEOUT_FACTOR=4
1611options	DPT_INTR_DELAY=200      # Some motherboards need that
1612options DPT_LOST_IRQ
1613options DPT_RESET_HBA
1614
1615# Don't EVER set this without having talked to Simon Shapiro on the phone
1616# first.
1617options DPT_SHUTDOWN_SLEEP=500
1618