xref: /freebsd/sys/conf/NOTES (revision 0b87f79976047c8f4332bbf7dc03146f6b0de79f)
1#
2# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3#
4# Lines that begin with 'device', 'options', 'machine', 'ident', 'maxusers',
5# 'makeoptions', 'hints' etc go into the kernel configuration that you
6# run config(8) with.
7#
8# Lines that begin with 'hint.' are NOT for config(8), they go into your
9# hints file.  See /boot/device.hints and/or the 'hints' config(8) directive.
10#
11# Please use ``make LINT'' to create an old-style LINT file if you want to
12# do kernel test-builds.
13#
14# This file contains machine independent kernel configuration notes.  For
15# machine dependent notes, look in /sys/<arch>/conf/NOTES.
16#
17# $FreeBSD$
18#
19
20#
21# This is the ``identification'' of the kernel.  Usually this should
22# be the same as the name of your kernel.
23#
24ident		LINT
25
26#
27# The `maxusers' parameter controls the static sizing of a number of
28# internal system tables by a formula defined in subr_param.c.  Setting
29# maxusers to 0 will cause the system to auto-size based on physical
30# memory.
31#
32maxusers	10
33
34#
35# We want LINT to cover profiling as well
36profile 	2
37
38#
39# The `makeoptions' parameter allows variables to be passed to the
40# generated Makefile in the build area.
41#
42# CONF_CFLAGS gives some extra compiler flags that are added to ${CFLAGS}
43# after most other flags.  Here we use it to inhibit use of non-optimal
44# gcc builtin functions (e.g., memcmp).
45#
46# DEBUG happens to be magic.
47# The following is equivalent to 'config -g KERNELNAME' and creates
48# 'kernel.debug' compiled with -g debugging as well as a normal
49# 'kernel'.  Use 'make install.debug' to install the debug kernel
50# but that isn't normally necessary as the debug symbols are not loaded
51# by the kernel and are not useful there anyway.
52#
53# KERNEL can be overridden so that you can change the default name of your
54# kernel.
55#
56# MODULES_OVERRIDE can be used to limit modules built to a specific list.
57#
58makeoptions	CONF_CFLAGS=-fno-builtin  #Don't allow use of memcmp, etc.
59#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
60#makeoptions	KERNEL=foo		#Build kernel "foo" and install "/foo"
61# Only build Linux API modules and plus those parts of the sound system I need.
62#makeoptions	MODULES_OVERRIDE="linux sound/snd sound/pcm sound/driver/maestro3"
63
64#
65# Certain applications can grow to be larger than the 512M limit
66# that FreeBSD initially imposes.  Below are some options to
67# allow that limit to grow to 1GB, and can be increased further
68# with changing the parameters.  MAXDSIZ is the maximum that the
69# limit can be set to, and the DFLDSIZ is the default value for
70# the limit.  MAXSSIZ is the maximum that the stack limit can be
71# set to.  You might want to set the default lower than the max,
72# and explicitly set the maximum with a shell command for processes
73# that regularly exceed the limit like INND.
74#
75options 	MAXDSIZ="(1024UL*1024*1024)"
76options 	MAXSSIZ="(128UL*1024*1024)"
77options 	DFLDSIZ="(1024UL*1024*1024)"
78
79#
80# BLKDEV_IOSIZE sets the default block size used in user block
81# device I/O.  Note that this value will be overriden by the label
82# when specifying a block device from a label with a non-0
83# partition blocksize.  The default is PAGE_SIZE.
84#
85options 	BLKDEV_IOSIZE=8192
86
87# Options for the VM subsystem
88options 	PQ_CACHESIZE=512	# color for 512k/16k cache
89# Deprecated options supported for backwards compatibility
90#options 	PQ_NOOPT		# No coloring
91#options 	PQ_LARGECACHE		# color for 512k/16k cache
92#options 	PQ_HUGECACHE		# color for 1024k/16k cache
93#options 	PQ_MEDIUMCACHE		# color for 256k/16k cache
94#options 	PQ_NORMALCACHE		# color for 64k/16k cache
95
96# This allows you to actually store this configuration file into
97# the kernel binary itself, where it may be later read by saying:
98#    strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p' > MYKERNEL
99#
100options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
101
102options 	GEOM			# Use the GEOMetry system for
103					# disk-I/O transformations.
104
105#
106# The root device and filesystem type can be compiled in;
107# this provides a fallback option if the root device cannot
108# be correctly guessed by the bootstrap code, or an override if
109# the RB_DFLTROOT flag (-r) is specified when booting the kernel.
110#
111options 	ROOTDEVNAME=\"ufs:da0s2e\"
112
113
114#####################################################################
115# SMP OPTIONS:
116#
117# SMP enables building of a Symmetric MultiProcessor Kernel.
118
119# Mandatory:
120options 	SMP			# Symmetric MultiProcessor Kernel
121
122# ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin
123# if the thread that currently owns the mutex is executing on another
124# CPU.
125options 	ADAPTIVE_MUTEXES
126
127# SMP Debugging Options:
128#
129# MUTEX_DEBUG enables various extra assertions in the mutex code.
130# WITNESS enables the witness code which detects deadlocks and cycles
131#         during locking operations.
132# WITNESS_DDB causes the witness code to drop into the kernel debugger if
133#	  a lock heirarchy violation occurs or if locks are held when going to
134#	  sleep.
135# WITNESS_SKIPSPIN disables the witness checks on spin mutexes.
136options 	MUTEX_DEBUG
137options 	WITNESS
138options 	WITNESS_DDB
139options 	WITNESS_SKIPSPIN
140
141#
142# MUTEX_PROFILING - Profiling mutual exclusion locks (mutexes).  This
143# records four numbers for each acquisition point (identified by
144# source file name and line number): longest time held, total time held,
145# number of non-recursive acquisitions, and average time held. Measurements
146# are made and stored in nanoseconds (using nanotime(9)), but are presented
147# in microseconds, which should be sufficient for the locks which actually
148# want this (those that are held long and / or often).  The MUTEX_PROFILING
149# option has the following sysctl namespace for controlling and viewing its
150# operation:
151#
152#  debug.mutex.prof.enable - enable / disable profiling
153#  debug.mutex.prof.acquisitions - number of mutex acquisitions held
154#  debug.mutex.prof.records - number of acquisition points recorded
155#  debug.mutex.prof.maxrecords - max number of acquisition points
156#  debug.mutex.prof.rejected - number of rejections (due to full table)
157#  debug.mutex.prof.hashsize - hash size
158#  debug.mutex.prof.collisions - number of hash collisions
159#  debug.mutex.prof.stats - profiling statistics
160#
161options		MUTEX_PROFILING
162
163
164#####################################################################
165# COMPATIBILITY OPTIONS
166
167#
168# Implement system calls compatible with 4.3BSD and older versions of
169# FreeBSD.  You probably do NOT want to remove this as much current code
170# still relies on the 4.3 emulation.
171#
172options 	COMPAT_43
173
174# Enable FreeBSD4 compatibility syscalls
175options 	COMPAT_FREEBSD4
176
177#
178# These three options provide support for System V Interface
179# Definition-style interprocess communication, in the form of shared
180# memory, semaphores, and message queues, respectively.
181#
182options 	SYSVSHM
183options 	SYSVSEM
184options 	SYSVMSG
185
186
187#####################################################################
188# DEBUGGING OPTIONS
189
190#
191# Enable the kernel debugger.
192#
193options 	DDB
194
195#
196# Use direct symbol lookup routines for ddb instead of the kernel linker
197# ones, so that symbols (mostly) work before the kernel linker has been
198# initialized.  This is not the default because it breaks ddb's lookup of
199# symbols in loaded modules.
200#
201#!options 	DDB_NOKLDSYM
202
203#
204# Don't drop into DDB for a panic. Intended for unattended operation
205# where you may want to drop to DDB from the console, but still want
206# the machine to recover from a panic
207#
208options 	DDB_UNATTENDED
209
210#
211# If using GDB remote mode to debug the kernel, there's a non-standard
212# extension to the remote protocol that can be used to use the serial
213# port as both the debugging port and the system console.  It's non-
214# standard and you're on your own if you enable it.  See also the
215# "remotechat" variables in the FreeBSD specific version of gdb.
216#
217options 	GDB_REMOTE_CHAT
218
219#
220# KTRACE enables the system-call tracing facility ktrace(2).  To be more
221# SMP-friendly, KTRACE uses a worker thread to process most trace events
222# asynchronously to the thread generating the event.  This requires a
223# pre-allocated store of objects representing trace events.  The
224# KTRACE_REQUEST_POOL option specifies the initial size of this store.
225# The size of the pool can be adjusted both at boottime and runtime via
226# the kern.ktrace_request_pool tunable and sysctl.
227#
228options 	KTRACE			#kernel tracing
229options 	KTRACE_REQUEST_POOL=101
230
231#
232# KTR is a kernel tracing mechanism imported from BSD/OS.  Currently it
233# has no userland interface aside from a few sysctl's.  It is enabled with
234# the KTR option.  KTR_ENTRIES defines the number of entries in the circular
235# trace buffer.  KTR_COMPILE defines the mask of events to compile into the
236# kernel as defined by the KTR_* constants in <sys/ktr.h>.  KTR_MASK defines the
237# initial value of the ktr_mask variable which determines at runtime what
238# events to trace.  KTR_CPUMASK determines which CPU's log events, with
239# bit X corresponding to cpu X.  KTR_VERBOSE enables dumping of KTR events
240# to the console by default.  This functionality can be toggled via the
241# debug.ktr_verbose sysctl and defaults to off if KTR_VERBOSE is not defined.
242#
243options 	KTR
244options 	KTR_ENTRIES=1024
245options 	KTR_COMPILE="(KTR_INTR|KTR_PROC)"
246options 	KTR_MASK=KTR_INTR
247options 	KTR_CPUMASK=0x3
248options 	KTR_VERBOSE
249
250#
251# The INVARIANTS option is used in a number of source files to enable
252# extra sanity checking of internal structures.  This support is not
253# enabled by default because of the extra time it would take to check
254# for these conditions, which can only occur as a result of
255# programming errors.
256#
257options 	INVARIANTS
258
259#
260# The INVARIANT_SUPPORT option makes us compile in support for
261# verifying some of the internal structures.  It is a prerequisite for
262# 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be
263# called.  The intent is that you can set 'INVARIANTS' for single
264# source files (by changing the source file or specifying it on the
265# command line) if you have 'INVARIANT_SUPPORT' enabled.  Also, if you
266# wish to build a kernel module with 'INVARIANTS', then adding
267# 'INVARIANT_SUPPORT' to your kernel will provide all the necessary
268# infrastructure without the added overhead.
269#
270options 	INVARIANT_SUPPORT
271
272#
273# The DIAGNOSTIC option is used to enable extra debugging information
274# from some parts of the kernel.  As this makes everything more noisy,
275# it is disabled by default.
276#
277options 	DIAGNOSTIC
278
279#
280# REGRESSION causes optional kernel interfaces necessary only for regression
281# testing to be enabled.  These interfaces may consitute security risks
282# when enabled, as they permit processes to easily modify aspects of the
283# run-time environment to reproduce unlikely or unusual (possibly normally
284# impossible) scenarios.
285#
286options 	REGRESSION
287
288#
289# RESTARTABLE_PANICS allows one to continue from a panic as if it were
290# a call to the debugger via the Debugger() function instead.  It is only
291# useful if a kernel debugger is present.  To restart from a panic, reset
292# the panicstr variable to NULL and continue execution.  This option is
293# for development use only and should NOT be used in production systems
294# to "workaround" a panic.
295#
296#options 	RESTARTABLE_PANICS
297
298#
299# This option let some drivers co-exist that can't co-exist in a running
300# system.  This is used to be able to compile all kernel code in one go for
301# quality assurance purposes (like this file, which the option takes it name
302# from.)
303#
304options 	COMPILING_LINT
305
306
307#####################################################################
308# NETWORKING OPTIONS
309
310#
311# Protocol families:
312#  Only the INET (Internet) family is officially supported in FreeBSD.
313#  Source code for the NS (Xerox Network Service) is provided for amusement
314#  value.
315#
316options 	INET			#Internet communications protocols
317options 	INET6			#IPv6 communications protocols
318options 	IPSEC			#IP security
319options 	IPSEC_ESP		#IP security (crypto; define w/ IPSEC)
320options 	IPSEC_DEBUG		#debug for IP security
321
322options 	IPX			#IPX/SPX communications protocols
323options 	IPXIP			#IPX in IP encapsulation (not available)
324options 	IPTUNNEL		#IP in IPX encapsulation (not available)
325
326#options 	NCP			#NetWare Core protocol
327
328options 	NETATALK		#Appletalk communications protocols
329options 	NETATALKDEBUG		#Appletalk debugging
330
331# These are currently broken but are shipped due to interest.
332#options 	NS			#Xerox NS protocols
333#options 	NSIP			#XNS over IP
334
335#
336# SMB/CIFS requester
337# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
338# options.
339# NETSMBCRYPTO enables support for encrypted passwords.
340options 	NETSMB			#SMB/CIFS requester
341options 	NETSMBCRYPTO		#encrypted password support for SMB
342
343# mchain library. It can be either loaded as KLD or compiled into kernel
344options 	LIBMCHAIN
345
346# netgraph(4). Enable the base netgraph code with the NETGRAPH option.
347# Individual node types can be enabled with the corresponding option
348# listed below; however, this is not strictly necessary as netgraph
349# will automatically load the corresponding KLD module if the node type
350# is not already compiled into the kernel. Each type below has a
351# corresponding man page, e.g., ng_async(8).
352options 	NETGRAPH		#netgraph(4) system
353options 	NETGRAPH_ASYNC
354options 	NETGRAPH_BPF
355options 	NETGRAPH_CISCO
356options 	NETGRAPH_ECHO
357options 	NETGRAPH_ETHER
358options 	NETGRAPH_FRAME_RELAY
359options 	NETGRAPH_GIF
360options 	NETGRAPH_GIF_DEMUX
361options 	NETGRAPH_HOLE
362options 	NETGRAPH_IFACE
363options 	NETGRAPH_IP_INPUT
364options 	NETGRAPH_KSOCKET
365options 	NETGRAPH_LMI
366# MPPC compression requires proprietary files (not included)
367#options 	NETGRAPH_MPPC_COMPRESSION
368options 	NETGRAPH_MPPC_ENCRYPTION
369options 	NETGRAPH_ONE2MANY
370options 	NETGRAPH_PPP
371options 	NETGRAPH_PPPOE
372options 	NETGRAPH_PPTPGRE
373options 	NETGRAPH_RFC1490
374options 	NETGRAPH_SOCKET
375options 	NETGRAPH_SPLIT
376options 	NETGRAPH_TEE
377options 	NETGRAPH_TTY
378options 	NETGRAPH_UI
379options 	NETGRAPH_VJC
380
381device		mn	# Munich32x/Falc54 Nx64kbit/sec cards.
382device		lmc	# tulip based LanMedia WAN cards
383device		musycc	# LMC/SBE LMC1504 quad T1/E1
384
385#
386# Network interfaces:
387#  The `loop' device is MANDATORY when networking is enabled.
388#  The `ether' device provides generic code to handle
389#  Ethernets; it is MANDATORY when a Ethernet device driver is
390#  configured or token-ring is enabled.
391#  The `fddi' device provides generic code to support FDDI.
392#  The `arcnet' device provides generic code to support Arcnet.
393#  The `sppp' device serves a similar role for certain types
394#  of synchronous PPP links (like `cx', `ar').
395#  The `sl' device implements the Serial Line IP (SLIP) service.
396#  The `ppp' device implements the Point-to-Point Protocol.
397#  The `bpf' device enables the Berkeley Packet Filter.  Be
398#  aware of the legal and administrative consequences of enabling this
399#  option.  The number of devices determines the maximum number of
400#  simultaneous BPF clients programs runnable.
401#  The `disc' device implements a minimal network interface,
402#  which throws away all packets sent and never receives any.  It is
403#  included for testing purposes.  This shows up as the `ds' interface.
404#  The `tap' device is a pty-like virtual Ethernet interface
405#  The `tun' device implements (user-)ppp and nos-tun
406#  The `gif' device implements IPv6 over IP4 tunneling,
407#  IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling and
408#  IPv6 over IPv6 tunneling.
409#  The XBONEHACK option allows the same pair of addresses to be configured on
410#  multiple gif interfaces.
411#  The `faith' device captures packets sent to it and diverts them
412#  to the IPv4/IPv6 translation daemon.
413#  The `stf' device implements 6to4 encapsulation.
414#  The `ef' device provides support for multiple ethernet frame types
415#  specified via ETHER_* options. See ef(4) for details.
416#
417# The PPP_BSDCOMP option enables support for compress(1) style entire
418# packet compression, the PPP_DEFLATE is for zlib/gzip style compression.
419# PPP_FILTER enables code for filtering the ppp data stream and selecting
420# events for resetting the demand dial activity timer - requires bpf.
421# See pppd(8) for more details.
422#
423device		ether			#Generic Ethernet
424device		vlan			#VLAN support
425device		token			#Generic TokenRing
426device		fddi			#Generic FDDI
427device		arcnet			#Generic Arcnet
428device		sppp			#Generic Synchronous PPP
429device		loop			#Network loopback device
430device		bpf			#Berkeley packet filter
431device		disc			#Discard device (ds0, ds1, etc)
432device		tap			#Virtual Ethernet driver
433device		tun			#Tunnel driver (ppp(8), nos-tun(8))
434device		sl			#Serial Line IP
435device		ppp	2		#Point-to-point protocol
436options 	PPP_BSDCOMP		#PPP BSD-compress support
437options 	PPP_DEFLATE		#PPP zlib/deflate/gzip support
438options 	PPP_FILTER		#enable bpf filtering (needs bpf)
439
440device		ef			# Multiple ethernet frames support
441options 	ETHER_II		# enable Ethernet_II frame
442options 	ETHER_8023		# enable Ethernet_802.3 (Novell) frame
443options 	ETHER_8022		# enable Ethernet_802.2 frame
444options 	ETHER_SNAP		# enable Ethernet_802.2/SNAP frame
445
446# for IPv6
447device		gif			#IPv6 and IPv4 tunneling
448options 	XBONEHACK
449device		faith			#for IPv6 and IPv4 translation
450device		stf			#6to4 IPv6 over IPv4 encapsulation
451
452#
453# Internet family options:
454#
455# MROUTING enables the kernel multicast packet forwarder, which works
456# with mrouted(8).
457#
458# IPFIREWALL enables support for IP firewall construction, in
459# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
460# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
461# limits the number of times a matching entry can be logged.
462#
463# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
464# and if you do not add other rules during startup to allow access,
465# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set firewall_type=open
466# in /etc/rc.conf when first enabling this feature, then refining the
467# firewall rules in /etc/rc.firewall after you've tested that the new kernel
468# feature works properly.
469#
470# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
471# allow everything.  Use with care, if a cracker can crash your
472# firewall machine, they can get to your protected machines.  However,
473# if you are using it as an as-needed filter for specific problems as
474# they arise, then this may be for you.  Changing the default to 'allow'
475# means that you won't get stuck if the kernel and /sbin/ipfw binary get
476# out of sync.
477#
478# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''
479#
480# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
481# packets without touching the ttl).  This can be useful to hide firewalls
482# from traceroute and similar tools.
483#
484# PFIL_HOOKS enables an abtraction layer which is meant to be used in
485# network code where filtering is required.  See the pfil(9) man page.
486# This option is a subset of the IPFILTER option.
487#
488# TCPDEBUG enables code which keeps traces of the TCP state machine
489# for sockets with the SO_DEBUG option set, which can then be examined
490# using the trpt(8) utility.
491#
492options 	MROUTING		# Multicast routing
493options 	IPFIREWALL		#firewall
494options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
495options 	IPFIREWALL_FORWARD	#enable transparent proxy support
496options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
497options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
498options 	IPV6FIREWALL		#firewall for IPv6
499options 	IPV6FIREWALL_VERBOSE
500options 	IPV6FIREWALL_VERBOSE_LIMIT=100
501options 	IPV6FIREWALL_DEFAULT_TO_ACCEPT
502options 	IPDIVERT		#divert sockets
503options 	IPFILTER		#ipfilter support
504options 	IPFILTER_LOG		#ipfilter logging
505options 	IPFILTER_DEFAULT_BLOCK	#block all packets by default
506options 	IPSTEALTH		#support for stealth forwarding
507options 	PFIL_HOOKS
508options 	TCPDEBUG
509
510# RANDOM_IP_ID causes the ID field in IP packets to be randomized
511# instead of incremented by 1 with each packet generated.  This
512# option closes a minor information leak which allows remote
513# observers to determine the rate of packet generation on the
514# machine by watching the counter.
515options 	RANDOM_IP_ID
516
517# Statically Link in accept filters
518options 	ACCEPT_FILTER_DATA
519options 	ACCEPT_FILTER_HTTP
520
521# TCP_DROP_SYNFIN adds support for ignoring TCP packets with SYN+FIN. This
522# prevents nmap et al. from identifying the TCP/IP stack, but breaks support
523# for RFC1644 extensions and is not recommended for web servers.
524#
525options 	TCP_DROP_SYNFIN		#drop TCP packets with SYN+FIN
526
527# DUMMYNET enables the "dummynet" bandwidth limiter. You need
528# IPFIREWALL as well. See the dummynet(4) and ipfw(8) manpages for more info.
529# When you run DUMMYNET it is advisable to also have "options HZ=1000"
530# to achieve a smoother scheduling of the traffic.
531#
532# BRIDGE enables bridging between ethernet cards -- see bridge(4).
533# You can use IPFIREWALL and DUMMYNET together with bridging.
534#
535options 	DUMMYNET
536options 	BRIDGE
537
538# Zero copy sockets support.  This enables "zero copy" for sending and
539# receving data via a socket.  The send side works for any type of NIC,
540# the receive side only works for NICs that support MTUs greater than the
541# page size of your architecture and that support header splitting.  See
542# zero_copy(9) for more details.
543options 	ZERO_COPY_SOCKETS
544
545#
546# ATM (HARP version) options
547#
548# ATM_CORE includes the base ATM functionality code.  This must be included
549#	for ATM support.
550#
551# ATM_IP includes support for running IP over ATM.
552#
553# At least one (and usually only one) of the following signalling managers
554# must be included (note that all signalling managers include PVC support):
555# ATM_SIGPVC includes support for the PVC-only signalling manager `sigpvc'.
556# ATM_SPANS includes support for the `spans' signalling manager, which runs
557#	the FORE Systems's proprietary SPANS signalling protocol.
558# ATM_UNI includes support for the `uni30' and `uni31' signalling managers,
559#	which run the ATM Forum UNI 3.x signalling protocols.
560#
561# The `hea' driver provides support for the Efficient Networks, Inc.
562# ENI-155p ATM PCI Adapter.
563#
564# The `hfa' driver provides support for the FORE Systems, Inc.
565# PCA-200E ATM PCI Adapter.
566#
567options 	ATM_CORE		#core ATM protocol family
568options 	ATM_IP			#IP over ATM support
569options 	ATM_SIGPVC		#SIGPVC signalling manager
570options 	ATM_SPANS		#SPANS signalling manager
571options 	ATM_UNI			#UNI signalling manager
572
573device		hea			#Efficient ENI-155p ATM PCI
574device		hfa			#FORE PCA-200E ATM PCI
575
576
577#####################################################################
578# FILESYSTEM OPTIONS
579
580#
581# Only the root, /usr, and /tmp filesystems need be statically
582# compiled; everything else will be automatically loaded at mount
583# time.  (Exception: the UFS family--- FFS --- cannot
584# currently be demand-loaded.)  Some people still prefer to statically
585# compile other filesystems as well.
586#
587# NB: The NULL, PORTAL, UMAP and UNION filesystems are known to be
588# buggy, and WILL panic your system if you attempt to do anything with
589# them.  They are included here as an incentive for some enterprising
590# soul to sit down and fix them.
591#
592
593# One of these is mandatory:
594options 	FFS			#Fast filesystem
595options 	NFSCLIENT		#Network File System
596options 	NFSSERVER		#Network File System
597
598# The rest are optional:
599options 	CD9660			#ISO 9660 filesystem
600options 	FDESCFS			#File descriptor filesystem
601options 	HPFS			#OS/2 File system
602options 	MSDOSFS			#MS DOS File System (FAT, FAT32)
603options 	NTFS			#NT File System
604options 	NULLFS			#NULL filesystem
605#options 	NWFS			#NetWare filesystem
606options 	PORTALFS		#Portal filesystem
607options 	PROCFS			#Process filesystem (requires PSEUDOFS)
608options 	PSEUDOFS		#Pseudo-filesystem framework
609options 	SMBFS			#SMB/CIFS filesystem
610options		UDF			#Universal Disk Format
611options 	UMAPFS			#UID map filesystem
612options 	UNIONFS			#Union filesystem
613# options 	NODEVFS			#disable devices filesystem
614# The xFS_ROOT options REQUIRE the associated ``options xFS''
615options 	NFS_ROOT		#NFS usable as root device
616
617# Soft updates is a technique for improving filesystem speed and
618# making abrupt shutdown less risky.
619#
620options 	SOFTUPDATES
621
622# Extended attributes allow additional data to be associated with files,
623# and is used for ACLs, Capabilities, and MAC labels.
624# See src/sys/ufs/ufs/README.extattr for more information.
625options 	UFS_EXTATTR
626options 	UFS_EXTATTR_AUTOSTART
627
628# Access Control List support for UFS filesystems.  The current ACL
629# implementation requires extended attribute support, UFS_EXTATTR,
630# for the underlying filesystem.
631# See src/sys/ufs/ufs/README.acls for more information.
632options 	UFS_ACL
633
634# Directory hashing improves the speed of operations on very large
635# directories at the expense of some memory.
636options 	UFS_DIRHASH
637
638# Make space in the kernel for a root filesystem on a md device.
639# Define to the number of kilobytes to reserve for the filesystem.
640options 	MD_ROOT_SIZE=10
641
642# Make the md device a potential root device, either with preloaded
643# images of type mfs_root or md_root.
644options 	MD_ROOT
645
646# Allow this many swap-devices.
647#
648# In order to manage swap, the system must reserve bitmap space that
649# scales with the largest mounted swap device multiplied by NSWAPDEV,
650# irregardless of whether other swap devices exist or not.  So it
651# is not a good idea to make this value too large.
652options 	NSWAPDEV=5
653
654# Disk quotas are supported when this option is enabled.
655options 	QUOTA			#enable disk quotas
656
657# If you are running a machine just as a fileserver for PC and MAC
658# users, using SAMBA or Netatalk, you may consider setting this option
659# and keeping all those users' directories on a filesystem that is
660# mounted with the suiddir option. This gives new files the same
661# ownership as the directory (similar to group). It's a security hole
662# if you let these users run programs, so confine it to file-servers
663# (but it'll save you lots of headaches in those cases). Root owned
664# directories are exempt and X bits are cleared. The suid bit must be
665# set on the directory as well; see chmod(1) PC owners can't see/set
666# ownerships so they keep getting their toes trodden on. This saves
667# you all the support calls as the filesystem it's used on will act as
668# they expect: "It's my dir so it must be my file".
669#
670options 	SUIDDIR
671
672# NFS options:
673options 	NFS_MINATTRTIMO=3	# VREG attrib cache timeout in sec
674options 	NFS_MAXATTRTIMO=60
675options 	NFS_MINDIRATTRTIMO=30	# VDIR attrib cache timeout in sec
676options 	NFS_MAXDIRATTRTIMO=60
677options 	NFS_GATHERDELAY=10	# Default write gather delay (msec)
678options 	NFS_WDELAYHASHSIZ=16	# and with this
679options 	NFS_DEBUG		# Enable NFS Debugging
680
681# Coda stuff:
682options 	CODA			#CODA filesystem.
683device		vcoda	4		#coda minicache <-> venus comm.
684
685#
686# Add support for the EXT2FS filesystem of Linux fame.  Be a bit
687# careful with this - the ext2fs code has a tendency to lag behind
688# changes and not be exercised very much, so mounting read/write could
689# be dangerous (and even mounting read only could result in panics.)
690#
691options 	EXT2FS
692
693# Use real implementations of the aio_* system calls.  There are numerous
694# stability and security issues in the current aio code that make it
695# unsuitable for inclusion on machines with untrusted local users.
696options 	VFS_AIO
697
698# Enable the code UFS IO optimization through the VM system.  This allows
699# use VM operations instead of copying operations when possible.
700#
701# Even with this enabled, actual use of the code is still controlled by the
702# sysctl vfs.ioopt.  0 gives no optimization, 1 gives normal (use VM
703# operations if a request happens to fit), 2 gives agressive optimization
704# (the operations are split to do as much as possible through the VM system.)
705#
706# Enabling this will probably not give an overall speedup except for
707# special workloads.
708options 	ENABLE_VFS_IOOPT
709
710# Cryptographically secure random number generator; /dev/[u]random
711device		random
712
713
714#####################################################################
715# POSIX P1003.1B
716
717# Real time extensions added in the 1993 Posix
718# P1003_1B: Infrastructure
719# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
720# _KPOSIX_VERSION:             Version kernel is built for
721
722options 	P1003_1B
723options 	_KPOSIX_PRIORITY_SCHEDULING
724options 	_KPOSIX_VERSION=199309L
725
726
727#####################################################################
728# CLOCK OPTIONS
729
730# The granularity of operation is controlled by the kernel option HZ whose
731# default value (100) means a granularity of 10ms (1s/HZ).
732# Some subsystems, such as DUMMYNET, might benefit from a smaller
733# granularity such as 1ms or less, for a smoother scheduling of packets.
734# Consider, however, that reducing the granularity too much might
735# cause excessive overhead in clock interrupt processing,
736# potentially causing ticks to be missed and thus actually reducing
737# the accuracy of operation.
738
739options 	HZ=100
740
741# If you see the "calcru: negative time of %ld usec for pid %d (%s)\n"
742# message you probably have some broken sw/hw which disables interrupts
743# for too long.  You can make the system more resistant to this by
744# choosing a high value for NTIMECOUNTER.  The default is 5, there
745# is no upper limit but more than a couple of hundred are not productive.
746
747options 	NTIMECOUNTER=20
748
749# Enable support for the kernel PLL to use an external PPS signal,
750# under supervision of [x]ntpd(8)
751# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
752
753options 	PPS_SYNC
754
755
756#####################################################################
757# SCSI DEVICES
758
759# SCSI DEVICE CONFIGURATION
760
761# The SCSI subsystem consists of the `base' SCSI code, a number of
762# high-level SCSI device `type' drivers, and the low-level host-adapter
763# device drivers.  The host adapters are listed in the ISA and PCI
764# device configuration sections below.
765#
766# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
767# that a given bus, target, and LUN always come on line as the same
768# device unit.  In earlier versions the unit numbers were assigned
769# in the order that the devices were probed on the SCSI bus.  This
770# means that if you removed a disk drive, you may have had to rewrite
771# your /etc/fstab file, and also that you had to be careful when adding
772# a new disk as it may have been probed earlier and moved your device
773# configuration around.
774
775# This old behavior is maintained as the default behavior.  The unit
776# assignment begins with the first non-wired down unit for a device
777# type.  For example, if you wire a disk as "da3" then the first
778# non-wired disk will be assigned da4.
779
780# The syntax for wiring down devices is:
781
782hint.scbus.0.at="ahc0"
783hint.scbus.1.at="ahc1"
784hint.scbus.1.bus="0"
785hint.scbus.3.at="ahc2"
786hint.scbus.3.bus="0"
787hint.scbus.2.at="ahc2"
788hint.scbus.2.bus="1"
789hint.da.0.at="scbus0"
790hint.da.0.target="0"
791hint.da.0.unit="0"
792hint.da.1.at="scbus3"
793hint.da.1.target="1"
794hint.da.2.at="scbus2"
795hint.da.2.target="3"
796hint.sa.1.at="scbus1"
797hint.sa.1.target="6"
798
799# "units" (SCSI logical unit number) that are not specified are
800# treated as if specified as LUN 0.
801
802# All SCSI devices allocate as many units as are required.
803
804# The ch driver drives SCSI Media Changer ("jukebox") devices.
805#
806# The da driver drives SCSI Direct Access ("disk") and Optical Media
807# ("WORM") devices.
808#
809# The sa driver drives SCSI Sequential Access ("tape") devices.
810#
811# The cd driver drives SCSI Read Only Direct Access ("cd") devices.
812#
813# The ses driver drives SCSI Envinronment Services ("ses") and
814# SAF-TE ("SCSI Accessable Fault-Tolerant Enclosure") devices.
815#
816# The pt driver drives SCSI Processor devices.
817#
818#
819# Target Mode support is provided here but also requires that a SIM
820# (SCSI Host Adapter Driver) provide support as well.
821#
822# The targ driver provides target mode support as a Processor type device.
823# It exists to give the minimal context necessary to respond to Inquiry
824# commands. There is a sample user application that shows how the rest
825# of the command support might be done in /usr/share/examples/scsi_target.
826#
827# The targbh driver provides target mode support and exists to respond
828# to incoming commands that do not otherwise have a logical unit assigned
829# to them.
830#
831# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
832# configuration as the "pass" driver.
833
834device		scbus		#base SCSI code
835device		ch		#SCSI media changers
836device		da		#SCSI direct access devices (aka disks)
837device		sa		#SCSI tapes
838device		cd		#SCSI CD-ROMs
839device		ses		#SCSI Environmental Services (and SAF-TE)
840device		pt		#SCSI processor
841device		targ		#SCSI Target Mode Code
842device		targbh		#SCSI Target Mode Blackhole Device
843device		pass		#CAM passthrough driver
844
845# CAM OPTIONS:
846# debugging options:
847# -- NOTE --  If you specify one of the bus/target/lun options, you must
848#             specify them all!
849# CAMDEBUG: When defined enables debugging macros
850# CAM_DEBUG_BUS:  Debug the given bus.  Use -1 to debug all busses.
851# CAM_DEBUG_TARGET:  Debug the given target.  Use -1 to debug all targets.
852# CAM_DEBUG_LUN:  Debug the given lun.  Use -1 to debug all luns.
853# CAM_DEBUG_FLAGS:  OR together CAM_DEBUG_INFO, CAM_DEBUG_TRACE,
854#                   CAM_DEBUG_SUBTRACE, and CAM_DEBUG_CDB
855#
856# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
857# CAM_NEW_TRAN_CODE: this is the new transport layer code that will be switched
858#			to soon
859# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
860# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
861# SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter)
862#             queue after a bus reset, and the number of milliseconds to
863#             freeze the device queue after a bus device reset.
864options 	CAMDEBUG
865options 	CAM_DEBUG_BUS=-1
866options 	CAM_DEBUG_TARGET=-1
867options 	CAM_DEBUG_LUN=-1
868options 	CAM_DEBUG_FLAGS="CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB"
869options 	CAM_MAX_HIGHPOWER=4
870options 	SCSI_NO_SENSE_STRINGS
871options 	SCSI_NO_OP_STRINGS
872options 	SCSI_DELAY=8000	# Be pessimistic about Joe SCSI device
873
874# Options for the CAM CDROM driver:
875# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
876# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
877#                           enforced if there is I/O waiting for another LUN
878# The compiled in defaults for these variables are 2 and 10 seconds,
879# respectively.
880#
881# These can also be changed on the fly with the following sysctl variables:
882# kern.cam.cd.changer.min_busy_seconds
883# kern.cam.cd.changer.max_busy_seconds
884#
885options 	CHANGER_MIN_BUSY_SECONDS=2
886options 	CHANGER_MAX_BUSY_SECONDS=10
887
888# Options for the CAM sequential access driver:
889# SA_IO_TIMEOUT: Timeout for read/write/wfm  operations, in minutes
890# SA_SPACE_TIMEOUT: Timeout for space operations, in minutes
891# SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes
892# SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes
893# SA_1FM_AT_EOD: Default to model which only has a default one filemark at EOT.
894options 	SA_IO_TIMEOUT="(4)"
895options 	SA_SPACE_TIMEOUT="(60)"
896options 	SA_REWIND_TIMEOUT="(2*60)"
897options 	SA_ERASE_TIMEOUT="(4*60)"
898options 	SA_1FM_AT_EOD
899
900# Optional timeout for the CAM processor target (pt) device
901# This is specified in seconds.  The default is 60 seconds.
902options 	SCSI_PT_DEFAULT_TIMEOUT="60"
903
904# Optional enable of doing SES passthrough on other devices (e.g., disks)
905#
906# Normally disabled because a lot of newer SCSI disks report themselves
907# as having SES capabilities, but this can then clot up attempts to build
908# build a topology with the SES device that's on the box these drives
909# are in....
910options 	SES_ENABLE_PASSTHROUGH
911
912
913#####################################################################
914# MISCELLANEOUS DEVICES AND OPTIONS
915
916# The `pty' device usually turns out to be ``effectively mandatory'',
917# as it is required for `telnetd', `rlogind', `screen', `emacs', and
918# `xterm', among others.
919
920device		pty		#Pseudo ttys
921device		nmdm		#back-to-back tty devices
922device		md		#Memory/malloc disk
923device		snp		#Snoop device - to look at pty/vty/etc..
924device		ccd		#Concatenated disk driver
925
926# Configuring Vinum into the kernel is not necessary, since the kld
927# module gets started automatically when vinum(8) starts.  This
928# device is also untested.  Use at your own risk.
929#
930# The option VINUMDEBUG must match the value set in CFLAGS
931# in src/sbin/vinum/Makefile.  Failure to do so will result in
932# the following message from vinum(8):
933#
934# Can't get vinum config: Invalid argument
935#
936# see vinum(4) for more reasons not to use these options.
937device		vinum		#Vinum concat/mirror/raid driver
938options 	VINUMDEBUG	#enable Vinum debugging hooks
939
940# Kernel side iconv library
941options 	LIBICONV
942
943# Size of the kernel message buffer.  Should be N * pagesize.
944options 	MSGBUF_SIZE=40960
945
946
947#####################################################################
948# HARDWARE DEVICE CONFIGURATION
949
950# For ISA the required hints are listed.
951# EISA, MCA, PCI and pccard are self identifying buses, so no hints
952# are needed.
953
954#
955# Mandatory devices:
956#
957
958# The keyboard controller; it controls the keyboard and the PS/2 mouse.
959device		atkbdc	1
960hint.atkbdc.0.at="isa"
961hint.atkbdc.0.port="0x060"
962
963# The AT keyboard
964device		atkbd
965hint.atkbd.0.at="atkbdc"
966hint.atkbd.0.irq="1"
967
968# Options for atkbd:
969options 	ATKBD_DFLT_KEYMAP	# specify the built-in keymap
970makeoptions	ATKBD_DFLT_KEYMAP="jp.106"
971
972# These options are valid for other keyboard drivers as well.
973options 	KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
974options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
975
976# `flags' for atkbd:
977#       0x01    Force detection of keyboard, else we always assume a keyboard
978#       0x02    Don't reset keyboard, useful for some newer ThinkPads
979#	0x03	Force detection and avoid reset, might help with certain
980#		dockingstations
981#       0x04    Old-style (XT) keyboard support, useful for older ThinkPads
982
983# PS/2 mouse
984device		psm
985hint.psm.0.at="atkbdc"
986hint.psm.0.irq="12"
987
988# Options for psm:
989options 	PSM_HOOKRESUME		#hook the system resume event, useful
990					#for some laptops
991options 	PSM_RESETAFTERSUSPEND	#reset the device at the resume event
992
993# Video card driver for VGA adapters.
994device		vga
995hint.vga.0.at="isa"
996
997# Options for vga:
998# Try the following option if the mouse pointer is not drawn correctly
999# or font does not seem to be loaded properly.  May cause flicker on
1000# some systems.
1001options 	VGA_ALT_SEQACCESS
1002
1003# If you can dispense with some vga driver features, you may want to
1004# use the following options to save some memory.
1005#options 	VGA_NO_FONT_LOADING	# don't save/load font
1006#options 	VGA_NO_MODE_CHANGE	# don't change video modes
1007
1008# Older video cards may require this option for proper operation.
1009options 	VGA_SLOW_IOACCESS	# do byte-wide i/o's to TS and GDC regs
1010
1011# The following option probably won't work with the LCD displays.
1012options 	VGA_WIDTH90		# support 90 column modes
1013
1014options 	FB_DEBUG		# Frame buffer debugging
1015options 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
1016
1017device		splash			# Splash screen and screen saver support
1018
1019# Various screen savers.
1020device		apm_saver		# Requires APM
1021device		blank_saver
1022device		daemon_saver
1023device		fade_saver
1024device		fire_saver
1025device		green_saver
1026device		logo_saver
1027device		rain_saver
1028device		star_saver
1029device		warp_saver
1030
1031# The syscons console driver (sco color console compatible).
1032device		sc	1
1033hint.sc.0.at="isa"
1034options 	MAXCONS=16		# number of virtual consoles
1035options 	SC_ALT_MOUSE_IMAGE	# simplified mouse cursor in text mode
1036options 	SC_DFLT_FONT		# compile font in
1037makeoptions	SC_DFLT_FONT=cp850
1038options 	SC_DISABLE_DDBKEY	# disable `debug' key
1039options 	SC_DISABLE_REBOOT	# disable reboot key sequence
1040options 	SC_HISTORY_SIZE=200	# number of history buffer lines
1041options 	SC_MOUSE_CHAR=0x3	# char code for text mode mouse cursor
1042options 	SC_PIXEL_MODE		# add support for the raster text mode
1043
1044# The following options will let you change the default colors of syscons.
1045options 	SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
1046options 	SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
1047options 	SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
1048options 	SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"
1049
1050# The following options will let you change the default behaviour of
1051# cut-n-paste feature
1052options 	SC_CUT_SPACES2TABS	# convert leading spaces into tabs
1053options 	SC_CUT_SEPCHARS="\x20"	# set of characters that delimit words
1054					# (default is single space - "\x20")
1055
1056# If you have a two button mouse, you may want to add the following option
1057# to use the right button of the mouse to paste text.
1058options 	SC_TWOBUTTON_MOUSE
1059
1060# You can selectively disable features in syscons.
1061options 	SC_NO_CUTPASTE
1062options 	SC_NO_FONT_LOADING
1063options 	SC_NO_HISTORY
1064options 	SC_NO_SYSMOUSE
1065
1066# `flags' for sc
1067#	0x80	Put the video card in the VESA 800x600 dots, 16 color mode
1068#	0x100	Probe for a keyboard device periodically if one is not present
1069
1070#
1071# Optional devices:
1072#
1073
1074# DRM options:
1075# gammadrm:  3Dlabs Oxygen GMX 2000
1076# mgadrm:    AGP Matrox G200, G400, G450, G550
1077# tdfxdrm:   3dfx Voodoo 3/4/5 and Banshee
1078# r128drm:   AGP ATI Rage 128
1079# radeondrm: AGP ATI Radeon, including 7200 and 7500
1080# DRM_LINUX: include linux compatibility, requires COMPAT_LINUX
1081# DRM_DEBUG: inlcude debugging code, very slow
1082#
1083# mga, r128, and radeon require AGP in the kernel
1084
1085device		gammadrm
1086device		mgadrm
1087device		"r128drm"
1088device		radeondrm
1089device		tdfxdrm
1090
1091options 	DRM_DEBUG
1092options 	DRM_LINUX
1093
1094# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create
1095# the /dev/3dfx0 device to work with glide implementations. This should get
1096# linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as
1097# the tdfx DRI module from XFree86 and is completely unrelated.
1098#
1099# To enable Linuxulator support, one must also include COMPAT_LINUX in the
1100# config as well, or you will not have the dependencies. The other option
1101# is to load both as modules.
1102
1103device 		tdfx			# Enable 3Dfx Voodoo support
1104options 	TDFX_LINUX		# Enable Linuxulator support
1105
1106#
1107# SCSI host adapters:
1108#
1109# adv: All Narrow SCSI bus AdvanSys controllers.
1110# adw: Second Generation AdvanSys controllers including the ADV940UW.
1111# aha: Adaptec 154x/1535/1640
1112# ahb: Adaptec 174x EISA controllers
1113# ahc: Adaptec 274x/284x/2910/293x/294x/394x/3950x/3960x/398X/4944/
1114#      19160x/29160x, aic7770/aic78xx
1115# ahd: Adaptec 29320/39320 Controllers.
1116# aic: Adaptec 6260/6360, APA-1460 (PC Card), NEC PC9801-100 (C-BUS)
1117# amd: Support for the AMD 53C974 SCSI host adapter chip as found on devices
1118#      such as the Tekram DC-390(T).
1119# bt:  Most Buslogic controllers: including BT-445, BT-54x, BT-64x, BT-74x,
1120#      BT-75x, BT-946, BT-948, BT-956, BT-958, SDC3211B, SDC3211F, SDC3222F
1121# isp: Qlogic ISP 1020, 1040 and 1040B PCI SCSI host adapters,
1122#      ISP 1240 Dual Ultra SCSI, ISP 1080 and 1280 (Dual) Ultra2,
1123#      ISP 12160 Ultra3 SCSI,
1124#      Qlogic ISP 2100 and ISP 2200 1Gb Fibre Channel host adapters.
1125#      Qlogic ISP 2300 and ISP 2312 2Gb Fibre Channel host adapters.
1126# ispfw: Firmware module for Qlogic host adapters
1127# ncr: NCR 53C810, 53C825 self-contained SCSI host adapters.
1128# ncv: NCR 53C500 based SCSI host adapters.
1129# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
1130# stg: TMC 18C30, 18C50 based SCSI host adapters.
1131# sym: Symbios/Logic 53C8XX family of PCI-SCSI I/O processors:
1132#      53C810, 53C810A, 53C815, 53C825,  53C825A, 53C860, 53C875,
1133#      53C876, 53C885,  53C895, 53C895A, 53C896,  53C897, 53C1510D,
1134#      53C1010-33, 53C1010-66.
1135# wds: WD7000
1136
1137#
1138# Note that the order is important in order for Buslogic ISA/EISA cards to be
1139# probed correctly.
1140#
1141device		bt
1142hint.bt.0.at="isa"
1143hint.bt.0.port="0x330"
1144device		adv
1145hint.adv.0.at="isa"
1146device		adw
1147device		aha
1148hint.aha.0.at="isa"
1149device		aic
1150hint.aic.0.at="isa"
1151device		ahb
1152device		ahc
1153device		ahd
1154device		amd
1155device		isp
1156hint.isp.0.disable="1"
1157hint.isp.0.role="3"
1158hint.isp.0.prefer_iomap="1"
1159hint.isp.0.prefer_memmap="1"
1160hint.isp.0.fwload_disable="1"
1161hint.isp.0.ignore_nvram="1"
1162hint.isp.0.fullduplex="1"
1163hint.isp.0.topology="lport"
1164hint.isp.0.topology="nport"
1165hint.isp.0.topology="lport-only"
1166hint.isp.0.topology="nport-only"
1167# we can't get u_int64_t types, nor can we get strings if it's got
1168# a leading 0x, hence this silly dodge.
1169hint.isp.0.portwnn="w50000000aaaa0000"
1170hint.isp.0.nodewnn="w50000000aaaa0001"
1171device		ispfw
1172device		ncr
1173device		ncv
1174device		nsp
1175device		sym
1176device		stg
1177hint.stg.0.at="isa"
1178hint.stg.0.port="0x140"
1179hint.stg.0.port="11"
1180device		wds
1181hint.wds.0.at="isa"
1182hint.wds.0.port="0x350"
1183hint.wds.0.irq="11"
1184hint.wds.0.drq="6"
1185
1186# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1187# controllers that have it configured only if this option is set. Unfortunately,
1188# this doesn't work on some motherboards, which prevents it from being the
1189# default.
1190options 	AHC_ALLOW_MEMIO
1191
1192# Enable diagnostic sequencer code.
1193options 	AHC_DEBUG_SEQUENCER
1194
1195# Dump the contents of the ahc controller configuration PROM.
1196options 	AHC_DUMP_EEPROM
1197
1198# Bitmap of units to enable targetmode operations.
1199options 	AHC_TMODE_ENABLE
1200
1201# Compile in aic79xx debugging code.
1202options		AHD_DEBUG
1203
1204# Aic79xx driver debugging options.
1205# See sys/dev/aic79xx/aic79xx.h
1206options		AHD_DEBUG_OPTS=0xFFFFFFFF
1207
1208# The adw driver will attempt to use memory mapped I/O for all PCI
1209# controllers that have it configured only if this option is set.
1210options 	ADW_ALLOW_MEMIO
1211
1212# Options used in dev/isp/ (Qlogic SCSI/FC driver).
1213#
1214#	ISP_TARGET_MODE		-	enable target mode operation
1215#
1216#options 	ISP_TARGET_MODE=1
1217
1218# Options used in dev/sym/ (Symbios SCSI driver).
1219#options 	SYM_SETUP_LP_PROBE_MAP	#-Low Priority Probe Map (bits)
1220					# Allows the ncr to take precedence
1221					# 1 (1<<0) -> 810a, 860
1222					# 2 (1<<1) -> 825a, 875, 885, 895
1223					# 4 (1<<2) -> 895a, 896, 1510d
1224#options 	SYM_SETUP_SCSI_DIFF	#-HVD support for 825a, 875, 885
1225					# disabled:0 (default), enabled:1
1226#options 	SYM_SETUP_PCI_PARITY	#-PCI parity checking
1227					# disabled:0, enabled:1 (default)
1228#options 	SYM_SETUP_MAX_LUN	#-Number of LUNs supported
1229					# default:8, range:[1..64]
1230
1231# The 'asr' driver provides support for current DPT/Adaptec SCSI RAID
1232# controllers (SmartRAID V and VI and later).
1233# These controllers require the CAM infrastructure.
1234#
1235device		asr
1236
1237# The 'dpt' driver provides support for old DPT controllers (http://www.dpt.com/).
1238# These have hardware RAID-{0,1,5} support, and do multi-initiator I/O.
1239# The DPT controllers are commonly re-licensed under other brand-names -
1240# some controllers by Olivetti, Dec, HP, AT&T, SNI, AST, Alphatronic, NEC and
1241# Compaq are actually DPT controllers.
1242#
1243# See src/sys/dev/dpt for debugging and other subtle options.
1244#   DPT_MEASURE_PERFORMANCE Enables a set of (semi)invasive metrics. Various
1245#                           instruments are enabled.  The tools in
1246#                           /usr/sbin/dpt_* assume these to be enabled.
1247#   DPT_HANDLE_TIMEOUTS     Normally device timeouts are handled by the DPT.
1248#                           If you ant the driver to handle timeouts, enable
1249#                           this option.  If your system is very busy, this
1250#                           option will create more trouble than solve.
1251#   DPT_TIMEOUT_FACTOR      Used to compute the excessive amount of time to
1252#                           wait when timing out with the above option.
1253#  DPT_DEBUG_xxxx           These are controllable from sys/dev/dpt/dpt.h
1254#  DPT_LOST_IRQ             When enabled, will try, once per second, to catch
1255#                           any interrupt that got lost.  Seems to help in some
1256#                           DPT-firmware/Motherboard combinations.  Minimal
1257#                           cost, great benefit.
1258#  DPT_RESET_HBA            Make "reset" actually reset the controller
1259#                           instead of fudging it.  Only enable this if you
1260#			    are 100% certain you need it.
1261
1262device		dpt
1263
1264# DPT options
1265#!CAM# options 	DPT_MEASURE_PERFORMANCE
1266#!CAM# options 	DPT_HANDLE_TIMEOUTS
1267options 	DPT_TIMEOUT_FACTOR=4
1268options 	DPT_LOST_IRQ
1269options 	DPT_RESET_HBA
1270options 	DPT_ALLOW_MEMIO
1271
1272#
1273# Compaq "CISS" RAID controllers (SmartRAID 5* series)
1274# These controllers have a SCSI-like interface, and require the
1275# CAM infrastructure.
1276#
1277device		ciss
1278
1279#
1280# Intel Integrated RAID controllers.
1281# This driver was developed and is maintained by Intel.  Contacts
1282# at Intel for this driver are
1283# "Kannanthanam, Boji T" <boji.t.kannanthanam@intel.com> and
1284# "Leubner, Achim" <achim.leubner@intel.com>.
1285#
1286device		iir
1287
1288#
1289# Mylex AcceleRAID and eXtremeRAID controllers with v6 and later
1290# firmware.  These controllers have a SCSI-like interface, and require
1291# the CAM infrastructure.
1292#
1293device		mly
1294
1295#
1296# Adaptec FSA RAID controllers, including integrated DELL controllers,
1297# the Dell PERC 2/QC and the HP NetRAID-4M
1298#
1299# AAC_COMPAT_LINUX	Include code to support Linux-binary management
1300#			utilities (requires Linux compatibility
1301#			support).
1302#
1303device		aac
1304device		aacp	# SCSI Passthrough interface (optional, CAM required)
1305
1306#
1307# Compaq Smart RAID, Mylex DAC960 and AMI MegaRAID controllers.  Only
1308# one entry is needed; the code will find and configure all supported
1309# controllers.
1310#
1311device		ida		# Compaq Smart RAID
1312device		mlx		# Mylex DAC960
1313device		amr		# AMI MegaRAID
1314
1315#
1316# 3ware ATA RAID
1317#
1318device		twe		# 3ware ATA RAID
1319
1320#
1321# The 'ATA' driver supports all ATA and ATAPI devices, including PC Card
1322# devices. You only need one "device ata" for it to find all
1323# PCI and PC Card ATA/ATAPI devices on modern machines.
1324device		ata
1325device		atadisk		# ATA disk drives
1326device		atapicd		# ATAPI CDROM drives
1327device		atapifd		# ATAPI floppy drives
1328device		atapist		# ATAPI tape drives
1329
1330#
1331# For older non-PCI, non-PnPBIOS systems, these are the hints lines to add:
1332hint.ata.0.at="isa"
1333hint.ata.0.port="0x1f0"
1334hint.ata.0.irq="14"
1335hint.ata.1.at="isa"
1336hint.ata.1.port="0x170"
1337hint.ata.1.irq="15"
1338
1339#
1340# The following options are valid on the ATA driver:
1341#
1342# ATA_STATIC_ID:	controller numbering is static ie depends on location
1343#			else the device numbers are dynamically allocated.
1344
1345options 	ATA_STATIC_ID
1346
1347#
1348# Standard floppy disk controllers and floppy tapes, supports
1349# the Y-E DATA External FDD (PC Card)
1350#
1351device		fdc
1352hint.fdc.0.at="isa"
1353hint.fdc.0.port="0x3F0"
1354hint.fdc.0.irq="6"
1355hint.fdc.0.drq="2"
1356#
1357# FDC_DEBUG enables floppy debugging.  Since the debug output is huge, you
1358# gotta turn it actually on by setting the variable fd_debug with DDB,
1359# however.
1360options 	FDC_DEBUG
1361#
1362# Activate this line if you happen to have an Insight floppy tape.
1363# Probing them proved to be dangerous for people with floppy disks only,
1364# so it's "hidden" behind a flag:
1365#hint.fdc.0.flags="1"
1366
1367# Specify floppy devices
1368hint.fd.0.at="fdc0"
1369hint.fd.0.drive="0"
1370hint.fd.1.at="fdc0"
1371hint.fd.1.drive="1"
1372
1373#
1374# sio: serial ports (see sio(4)), including support for various
1375#      PC Card devices, such as Modem and NICs (see etc/defaults/pccard.conf)
1376
1377device		sio
1378hint.sio.0.at="isa"
1379hint.sio.0.port="0x3F8"
1380hint.sio.0.flags="0x10"
1381hint.sio.0.irq="4"
1382
1383#
1384# `flags' for serial drivers that support consoles (only for sio now):
1385#	0x10	enable console support for this unit.  The other console flags
1386#		are ignored unless this is set.  Enabling console support does
1387#		not make the unit the preferred console - boot with -h or set
1388#		the 0x20 flag for that.  Currently, at most one unit can have
1389#		console support; the first one (in config file order) with
1390#		this flag set is preferred.  Setting this flag for sio0 gives
1391#		the old behaviour.
1392#	0x20	force this unit to be the console (unless there is another
1393#		higher priority console).  This replaces the COMCONSOLE option.
1394#	0x40	reserve this unit for low level console operations.  Do not
1395#		access the device in any normal way.
1396#	0x80	use this port for serial line gdb support in ddb.
1397#
1398# PnP `flags'
1399#	0x1	disable probing of this device.  Used to prevent your modem
1400#		from being attached as a PnP modem.
1401#
1402
1403# Options for serial drivers that support consoles (only for sio now):
1404options 	BREAK_TO_DEBUGGER	#a BREAK on a comconsole goes to
1405					#DDB, if available.
1406options 	CONSPEED=115200		# speed for serial console
1407					# (default 9600)
1408
1409# Solaris implements a new BREAK which is initiated by a character
1410# sequence CR ~ ^b which is similar to a familiar pattern used on
1411# Sun servers by the Remote Console.
1412options 	ALT_BREAK_TO_DEBUGGER
1413
1414# Options for sio:
1415options 	COM_ESP			#code for Hayes ESP
1416options 	COM_MULTIPORT		#code for some cards with shared IRQs
1417
1418# Other flags for sio that aren't documented in the man page.
1419#	0x20000	enable hardware RTS/CTS and larger FIFOs.  Only works for
1420#		ST16650A-compatible UARTs.
1421
1422# PCI Universal Communications driver
1423# Supports various single and multi port PCI serial cards. Maybe later
1424# also the parallel ports on combination serial/parallel cards. New cards
1425# can be added in src/sys/dev/puc/pucdata.c.
1426#
1427# If the PUC_FASTINTR option is used the driver will try to use fast
1428# interrupts. The card must then be the only user of that interrupt.
1429# Interrupts cannot be shared when using PUC_FASTINTR.
1430device		puc
1431options 	PUC_FASTINTR
1432
1433#
1434# Network interfaces:
1435#
1436# MII bus support is required for some PCI 10/100 ethernet NICs,
1437# namely those which use MII-compliant transceivers or implement
1438# tranceiver control interfaces that operate like an MII. Adding
1439# "device miibus0" to the kernel config pulls in support for
1440# the generic miibus API and all of the PHY drivers, including a
1441# generic one for PHYs that aren't specifically handled by an
1442# individual driver.
1443device		miibus
1444
1445# an:   Aironet 4500/4800 802.11 wireless adapters. Supports the PCMCIA,
1446#       PCI and ISA varieties.
1447# ar:   Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver
1448#       (requires sppp)
1449# awi:  Support for IEEE 802.11 PC Card devices using the AMD Am79C930 and
1450#       Harris (Intersil) Chipset with PCnetMobile firmware by AMD.
1451# bge:	Support for gigabit ethernet adapters based on the Broadcom
1452#	BCM570x family of controllers, including the 3Com 3c996-T,
1453#	the Netgear GA302T, the SysKonnect SK-9D21 and SK-9D41, and
1454#	the embedded gigE NICs on Dell PowerEdge 2550 servers.
1455# cm:	Arcnet SMC COM90c26 / SMC COM90c56
1456#	(and SMC COM90c66 in '56 compatibility mode) adapters.
1457# cnw:  Xircom CNW/Netware Airsurfer PC Card adapter
1458# cs:   IBM Etherjet and other Crystal Semi CS89x0-based adapters
1459# dc:   Support for PCI fast ethernet adapters based on the DEC/Intel 21143
1460#       and various workalikes including:
1461#       the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics
1462#       AX88140A and AX88141, the Davicom DM9100 and DM9102, the Lite-On
1463#       82c168 and 82c169 PNIC, the Lite-On/Macronix LC82C115 PNIC II
1464#       and the Macronix 98713/98713A/98715/98715A/98725 PMAC. This driver
1465#       replaces the old al, ax, dm, pn and mx drivers.  List of brands:
1466#       Digital DE500-BA, Kingston KNE100TX, D-Link DFE-570TX, SOHOware SFA110,
1467#       SVEC PN102-TX, CNet Pro110B, 120A, and 120B, Compex RL100-TX,
1468#       LinkSys LNE100TX, LNE100TX V2.0, Jaton XpressNet, Alfa Inc GFC2204,
1469#       KNE110TX.
1470# de:   Digital Equipment DC21040
1471# ed:   Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
1472#       HP PC Lan+, various PC Card devices (refer to etc/defauls/pccard.conf)
1473#       (requires miibus)
1474# em:   Intel Pro/1000 Gigabit Ethernet 82542, 82543, 82544 based adapters.
1475# ep:   3Com 3C509, 3C529, 3C556, 3C562D, 3C563D, 3C572, 3C574X, 3C579, 3C589
1476#       and PC Card devices using these chipsets.
1477# ex:   Intel EtherExpress Pro/10 and other i82595-based adapters,
1478#       Olicom Ethernet PC Card devices.
1479# fe:   Fujitsu MB86960A/MB86965A Ethernet
1480# fea:  DEC DEFEA EISA FDDI adapter
1481# fpa:  Support for the Digital DEFPA PCI FDDI. `device fddi' is also needed.
1482# fxp:  Intel EtherExpress Pro/100B
1483#	(hint of prefer_iomap can be done to prefer I/O instead of Mem mapping)
1484# gx:   Intel Pro/1000 Gigabit Ethernet (82542, 82543-F, 82543-T)
1485# lge:	Support for PCI gigabit ethernet adapters based on the Level 1
1486#	LXT1001 NetCellerator chipset. This includes the D-Link DGE-500SX,
1487#	SMC TigerCard 1000 (SMC9462SX), and some Addtron cards.
1488# lnc:  Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 and
1489#       Am79C960)
1490# nge:	Support for PCI gigabit ethernet adapters based on the National
1491#	Semiconductor DP83820 and DP83821 chipset. This includes the
1492#	SMC EZ Card 1000 (SMC9462TX), D-Link DGE-500T, Asante FriendlyNet
1493#	GigaNIX 1000TA and 1000TPC, the Addtron AEG320T, the LinkSys
1494#	EG1032 and EG1064, the Surecom EP-320G-TX and the Netgear GA622T.
1495# pcn:	Support for PCI fast ethernet adapters based on the AMD Am79c97x
1496#	chipsets, including the PCnet/FAST, PCnet/FAST+, PCnet/PRO and
1497#	PCnet/Home. These were previously handled by the lnc driver (and
1498#	still will be if you leave this driver out of the kernel).
1499# rl:   Support for PCI fast ethernet adapters based on the RealTek 8129/8139
1500#       chipset.  Note that the RealTek driver defaults to using programmed
1501#       I/O to do register accesses because memory mapped mode seems to cause
1502#       severe lockups on SMP hardware.  This driver also supports the
1503#       Accton EN1207D `Cheetah' adapter, which uses a chip called
1504#       the MPX 5030/5038, which is either a RealTek in disguise or a
1505#       RealTek workalike.  Note that the D-Link DFE-530TX+ uses the RealTek
1506#       chipset and is supported by this driver, not the 'vr' driver.
1507# sf:   Support for Adaptec Duralink PCI fast ethernet adapters based on the
1508#       Adaptec AIC-6915 "starfire" controller.
1509#       This includes dual and quad port cards, as well as one 100baseFX card.
1510#       Most of these are 64-bit PCI devices, except for one single port
1511#       card which is 32-bit.
1512# sis:  Support for NICs based on the Silicon Integrated Systems SiS 900,
1513#       SiS 7016 and NS DP83815 PCI fast ethernet controller chips.
1514# sk:   Support for the SysKonnect SK-984x series PCI gigabit ethernet NICs.
1515#       This includes the SK-9841 and SK-9842 single port cards (single mode
1516#       and multimode fiber) and the SK-9843 and SK-9844 dual port cards
1517#       (also single mode and multimode).
1518#       The driver will autodetect the number of ports on the card and
1519#       attach each one as a separate network interface.
1520# sn:   Support for ISA and PC Card Ethernet devices using the
1521#       SMC91C90/92/94/95 chips.
1522# sr:   RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
1523# ste:  Sundance Technologies ST201 PCI fast ethernet controller, includes
1524#       the D-Link DFE-550TX.
1525# ti:   Support for PCI gigabit ethernet NICs based on the Alteon Networks
1526#       Tigon 1 and Tigon 2 chipsets.  This includes the Alteon AceNIC, the
1527#       3Com 3c985, the Netgear GA620 and various others.  Note that you will
1528#       probably want to bump up NMBCLUSTERS a lot to use this driver.
1529# tl:   Support for the Texas Instruments TNETE100 series 'ThunderLAN'
1530#       cards and integrated ethernet controllers.  This includes several
1531#       Compaq Netelligent 10/100 cards and the built-in ethernet controllers
1532#       in several Compaq Prosignia, Proliant and Deskpro systems.  It also
1533#       supports several Olicom 10Mbps and 10/100 boards.
1534# tx:   SMC 9432 TX, BTX and FTX cards. (SMC EtherPower II serie)
1535# txp:	Support for 3Com 3cR990 cards with the "Typhoon" chipset
1536# vr:   Support for various fast ethernet adapters based on the VIA
1537#       Technologies VT3043 `Rhine I' and VT86C100A `Rhine II' chips,
1538#       including the D-Link DFE530TX (see 'rl' for DFE530TX+), the Hawking
1539#       Technologies PN102TX, and the AOpen/Acer ALN-320.
1540# vx:   3Com 3C590 and 3C595
1541# wb:   Support for fast ethernet adapters based on the Winbond W89C840F chip.
1542#       Note: this is not the same as the Winbond W89C940F, which is a
1543#       NE2000 clone.
1544# wi:   Lucent WaveLAN/IEEE 802.11 PCMCIA adapters. Note: this supports both
1545#       the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
1546#       bridge with a PCMCIA adapter plugged into it.
1547# wl:   Lucent Wavelan (ISA card only).
1548# xe:   Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller,
1549#       Accton Fast EtherCard-16, Compaq Netelligent 10/100 PC Card,
1550#       Toshiba 10/100 Ethernet PC Card, Xircom 16-bit Ethernet + Modem 56
1551# xl:   Support for the 3Com 3c900, 3c905, 3c905B and 3c905C (Fast)
1552#       Etherlink XL cards and integrated controllers.  This includes the
1553#       integrated 3c905B-TX chips in certain Dell Optiplex and Dell
1554#       Precision desktop machines and the integrated 3c905-TX chips
1555#       in Dell Latitude laptop docking stations.
1556#       Also supported: 3Com 3c980(C)-TX, 3Com 3cSOHO100-TX, 3Com 3c450-TX
1557
1558# Order for ISA/EISA devices is important here
1559
1560device		ar	1
1561hint.ar.0.at="isa"
1562hint.ar.0.port="0x300"
1563hint.ar.0.irq="10"
1564hint.ar.0.maddr="0xd0000"
1565device		cm
1566hint.cm.0.at="isa"
1567hint.cm.0.port="0x2e0"
1568hint.cm.0.irq="9"
1569hint.cm.0.maddr="0xdc000"
1570device		cs
1571hint.cs.0.at="isa"
1572hint.cs.0.port="0x300"
1573device		ed
1574#options 	ED_NO_MIIBUS		# Disable ed miibus support
1575hint.ed.0.at="isa"
1576hint.ed.0.port="0x280"
1577hint.ed.0.irq="5"
1578hint.ed.0.maddr="0xd8000"
1579device		ep
1580device		ex
1581device		fe	1
1582hint.fe.0.at="isa"
1583hint.fe.0.port="0x300"
1584device		fea
1585device		lnc	1
1586hint.lnc.0.at="isa"
1587hint.lnc.0.port="0x280"
1588hint.lnc.0.irq="10"
1589hint.lnc.0.drq="0"
1590device		sr	1
1591hint.sr.0.at="isa"
1592hint.sr.0.port="0x300"
1593hint.sr.0.irq="5"
1594hint.sr.0.maddr="0xd0000"
1595device		sn
1596hint.sn.0.at="isa"
1597hint.sn.0.port="0x300"
1598hint.sn.0.irq="10"
1599device		an
1600device		awi
1601device		cnw
1602device		wi
1603options 	WLCACHE		# enables the signal-strength cache
1604options 	WLDEBUG		# enables verbose debugging output
1605device		wl	1
1606hint.wl.0.at="isa"
1607hint.wl.0.port="0x300"
1608device		xe
1609
1610# PCI Ethernet NICs that use the common MII bus controller code.
1611device		dc		# DEC/Intel 21143 and various workalikes
1612device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
1613hint.fxp.0.prefer_iomap="0"
1614device		rl		# RealTek 8129/8139
1615device		pcn		# AMD Am79C97x PCI 10/100 NICs
1616device		sf		# Adaptec AIC-6915 (``Starfire'')
1617device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
1618device		ste		# Sundance ST201 (D-Link DFE-550TX)
1619device		tl		# Texas Instruments ThunderLAN
1620device		tx		# SMC EtherPower II (83c170 ``EPIC'')
1621device		vr		# VIA Rhine, Rhine II
1622device		wb		# Winbond W89C840F
1623device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
1624
1625# PCI Ethernet NICs.
1626device		de		# DEC/Intel DC21x4x (``Tulip'')
1627device		txp		# 3Com 3cR990 (``Typhoon'')
1628device		vx		# 3Com 3c590, 3c595 (``Vortex'')
1629device		my		# Myson controllers
1630
1631# PCI Gigabit & FDDI NICs.
1632device		bge
1633device		gx
1634device		lge
1635device		nge
1636device		sk
1637device		ti
1638device		fpa	1
1639
1640# Use "private" jumbo buffers allocated exclusively for the ti(4) driver.
1641# This option is incompatible with the TI_JUMBO_HDRSPLIT option below.
1642#options 	TI_PRIVATE_JUMBOS
1643# Turn on the header splitting option for the ti(4) driver firmware.  This
1644# only works for Tigon II chips, and has no effect for Tigon I chips.
1645options 	TI_JUMBO_HDRSPLIT
1646
1647# These two options allow manipulating the mbuf cluster size and mbuf size,
1648# respectively.  Be very careful with NIC driver modules when changing
1649# these from their default values, because that can potentially cause a
1650# mismatch between the mbuf size assumed by the kernel and the mbuf size
1651# assumed by a module.  The only driver that currently has the ability to
1652# detect a mismatch is ti(4).
1653options 	MCLSHIFT=12	# mbuf cluster shift in bits, 12 == 4KB
1654options 	MSIZE=512	# mbuf size in bytes
1655
1656#
1657# ATM related options (Cranor version)
1658# (note: this driver cannot be used with the HARP ATM stack)
1659#
1660# The `en' device provides support for Efficient Networks (ENI)
1661# ENI-155 PCI midway cards, and the Adaptec 155Mbps PCI ATM cards (ANA-59x0).
1662#
1663# atm device provides generic atm functions and is required for
1664# atm devices.
1665# NATM enables the netnatm protocol family that can be used to
1666# bypass TCP/IP.
1667#
1668# the current driver supports only PVC operations (no atm-arp, no multicast).
1669# for more details, please read the original documents at
1670# http://www.ccrc.wustl.edu/pub/chuck/tech/bsdatm/bsdatm.html
1671#
1672device		atm
1673device		en
1674options 	NATM			#native ATM
1675
1676#
1677# Audio drivers: `pcm', `sbc', `gusc'
1678#
1679# pcm: PCM audio through various sound cards.
1680#
1681# This has support for a large number of new audio cards, based on
1682# CS423x, OPTi931, Yamaha OPL-SAx, and also for SB16, GusPnP.
1683# For more information about this driver and supported cards,
1684# see the pcm.4 man page.
1685#
1686# The flags of the device tells the device a bit more info about the
1687# device that normally is obtained through the PnP interface.
1688#	bit  2..0   secondary DMA channel;
1689#	bit  4      set if the board uses two dma channels;
1690#	bit 15..8   board type, overrides autodetection; leave it
1691#		    zero if don't know what to put in (and you don't,
1692#		    since this is unsupported at the moment...).
1693#
1694# Supported cards include:
1695# Creative SoundBlaster ISA PnP/non-PnP
1696# Supports ESS and Avance ISA chips as well.
1697# Gravis UltraSound ISA PnP/non-PnP
1698# Crystal Semiconductor CS461x/428x PCI
1699# Neomagic 256AV (ac97)
1700# Most of the more common ISA/PnP sb/mss/ess compatable cards.
1701
1702device		pcm
1703
1704# For non-pnp sound cards with no bridge drivers only:
1705hint.pcm.0.at="isa"
1706hint.pcm.0.irq="10"
1707hint.pcm.0.drq="1"
1708hint.pcm.0.flags="0x0"
1709
1710#
1711# midi: MIDI interfaces and synthesizers
1712#
1713
1714device		midi
1715
1716# For non-pnp sound cards with no bridge drivers:
1717hint.midi.0.at="isa"
1718hint.midi.0.irq="5"
1719hint.midi.0.flags="0x0"
1720
1721# For serial ports (this example configures port 2):
1722# TODO: implement generic tty-midi interface so that we can use
1723#	other uarts.
1724hint.midi.0.at="isa"
1725hint.midi.0.port="0x2F8"
1726hint.midi.0.irq="3"
1727
1728#
1729# seq: MIDI sequencer
1730#
1731
1732device		seq
1733
1734# The bridge drivers for sound cards.  These can be separately configured
1735# for providing services to the likes of new-midi.
1736# When used with 'device pcm' they also provide pcm sound services.
1737#
1738# sbc:  Creative SoundBlaster ISA PnP/non-PnP
1739#	Supports ESS and Avance ISA chips as well.
1740# gusc: Gravis UltraSound ISA PnP/non-PnP
1741# csa:  Crystal Semiconductor CS461x/428x PCI
1742
1743# For non-PnP cards:
1744device		sbc
1745hint.sbc.0.at="isa"
1746hint.sbc.0.port="0x220"
1747hint.sbc.0.irq="5"
1748hint.sbc.0.drq="1"
1749hint.sbc.0.flags="0x15"
1750device		gusc
1751hint.gusc.0.at="isa"
1752hint.gusc.0.port="0x220"
1753hint.gusc.0.irq="5"
1754hint.gusc.0.drq="1"
1755hint.gusc.0.flags="0x13"
1756
1757#
1758# Miscellaneous hardware:
1759#
1760# meteor: Matrox Meteor video capture board
1761# bktr: Brooktree bt848/848a/849a/878/879 video capture and TV Tuner board
1762# cy: Cyclades serial driver
1763# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!)
1764# digi: Digiboard driver
1765# joy: joystick (including IO DATA PCJOY PC Card joystick)
1766# rp: Comtrol Rocketport(ISA/PCI) - single card
1767# si: Specialix SI/XIO 4-32 port terminal multiplexor
1768# nmdm: nullmodem terminal driver (see nmdm(4))
1769
1770# Notes on the Digiboard PC/Xi and PC/Xe series driver
1771#
1772# The NDGBPORTS option specifies the number of ports controlled by the
1773# dgb(4) driver.  The default value is 16 ports per device.
1774
1775# Notes on the Digiboard driver:
1776#
1777# The following flag values have special meanings in dgb:
1778#	0x01 - alternate layout of pins
1779#	0x02 - use the windowed PC/Xe in 64K mode
1780
1781# Notes on the Comtrol Rocketport driver:
1782#
1783# The exact values used for rp0 depend on how many boards you have
1784# in the system.  The manufacturer's sample configs are listed as:
1785#
1786#               device  rp	# core driver support
1787#
1788#   Comtrol Rocketport ISA single card
1789#		hint.rp.0.at="isa"
1790#		hint.rp.0.port="0x280"
1791#
1792#   If instead you have two ISA cards, one installed at 0x100 and the
1793#   second installed at 0x180, then you should add the following to
1794#   your kernel probe hints:
1795#		hint.rp.0.at="isa"
1796#		hint.rp.0.port="0x100"
1797#		hint.rp.1.at="isa"
1798#		hint.rp.1.port="0x180"
1799#
1800#   For 4 ISA cards, it might be something like this:
1801#		hint.rp.0.at="isa"
1802#		hint.rp.0.port="0x180"
1803#		hint.rp.1.at="isa"
1804#		hint.rp.1.port="0x100"
1805#		hint.rp.2.at="isa"
1806#		hint.rp.2.port="0x340"
1807#		hint.rp.3.at="isa"
1808#		hint.rp.3.port="0x240"
1809#
1810#   For PCI cards, you need no hints.
1811
1812device		joy			# PnP aware, hints for nonpnp only
1813hint.joy.0.at="isa"
1814hint.joy.0.port="0x201"
1815device		cy	1
1816options 	CY_PCI_FASTINTR		# Use with cy_pci unless irq is shared
1817hint.cy.0.at="isa"
1818hint.cy.0.irq="10"
1819hint.cy.0.maddr="0xd4000"
1820hint.cy.0.msize="0x2000"
1821device		dgb	1
1822options 	NDGBPORTS=17
1823hint.dgb.0.at="isa"
1824hint.dgb.0.port="0x220"
1825hint.dgb.0.maddr="0xfc000"
1826device		digi
1827hint.digi.0.at="isa"
1828hint.digi.0.port="0x104"
1829hint.digi.0.maddr="0xd0000"
1830# BIOS & FEP/OS components of device digi.
1831device		digi_CX
1832device		digi_CX_PCI
1833device		digi_EPCX
1834device		digi_EPCX_PCI
1835device		digi_Xe
1836device		digi_Xem
1837device		digi_Xr
1838device		rp
1839hint.rp.0.at="isa"
1840hint.rp.0.port="0x280"
1841device		si
1842options 	SI_DEBUG
1843hint.si.0.at="isa"
1844hint.si.0.maddr="0xd0000"
1845hint.si.0.irq="12"
1846device		nmdm
1847# HOT1 Xilinx 6200 card (http://www.vcc.com/)
1848device		xrpu
1849
1850#
1851# The `meteor' device is a PCI video capture board. It can also have the
1852# following options:
1853#   options METEOR_ALLOC_PAGES=xxx	preallocate kernel pages for data entry
1854#	figure (ROWS*COLUMN*BYTES_PER_PIXEL*FRAME+PAGE_SIZE-1)/PAGE_SIZE
1855#   options METEOR_DEALLOC_PAGES	remove all allocated pages on close(2)
1856#   options METEOR_DEALLOC_ABOVE=xxx	remove all allocated pages above the
1857#	specified amount. If this value is below the allocated amount no action
1858#	taken
1859#   options METEOR_SYSTEM_DEFAULT={METEOR_PAL|METEOR_NTSC|METEOR_SECAM}, used
1860#	for initialization of fps routine when a signal is not present.
1861#
1862# The 'bktr' device is a PCI video capture device using the Brooktree
1863# bt848/bt848a/bt849a/bt878/bt879 chipset. When used with a TV Tuner it forms a
1864# TV card, eg Miro PC/TV, Hauppauge WinCast/TV WinTV, VideoLogic Captivator,
1865# Intel Smart Video III, AverMedia, IMS Turbo, FlyVideo.
1866#
1867# options 	OVERRIDE_CARD=xxx
1868# options 	OVERRIDE_TUNER=xxx
1869# options 	OVERRIDE_MSP=1
1870# options 	OVERRIDE_DBX=1
1871# These options can be used to override the auto detection
1872# The current values for xxx are found in src/sys/dev/bktr/bktr_card.h
1873# Using sysctl(8) run-time overrides on a per-card basis can be made
1874#
1875# options 	BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
1876# or
1877# options 	BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC
1878# Specifes the default video capture mode.
1879# This is required for Dual Crystal (28&35Mhz) boards where PAL is used
1880# to prevent hangs during initialisation.  eg VideoLogic Captivator PCI.
1881#
1882# options 	BKTR_USE_PLL
1883# PAL or SECAM users who have a 28Mhz crystal (and no 35Mhz crystal)
1884# must enable PLL mode with this option. eg some new Bt878 cards.
1885#
1886# options 	BKTR_GPIO_ACCESS
1887# This enable IOCTLs which give user level access to the GPIO port.
1888#
1889# options 	BKTR_NO_MSP_RESET
1890# Prevents the MSP34xx reset. Good if you initialise the MSP in another OS first
1891#
1892# options 	BKTR_430_FX_MODE
1893# Switch Bt878/879 cards into Intel 430FX chipset compatibility mode.
1894#
1895# options 	BKTR_SIS_VIA_MODE
1896# Switch Bt878/879 cards into SIS/VIA chipset compatibility mode which is
1897# needed for some old SiS and VIA chipset motherboards.
1898# This also allows Bt878/879 chips to work on old OPTi (<1997) chipset
1899# motherboards and motherboards with bad or incomplete PCI 2.1 support.
1900# As a rough guess, old = before 1998
1901#
1902
1903device		meteor	1
1904
1905#
1906# options	BKTR_USE_FREEBSD_SMBUS
1907# Compile with FreeBSD SMBus implementation
1908#
1909# Brooktree driver has been ported to the new I2C framework. Thus,
1910# you'll need to have the following 3 lines in the kernel config.
1911#     device smbus
1912#     device iicbus
1913#     device iicbb
1914#     device iicsmb
1915# The iic and smb devices are only needed if you want to control other
1916# I2C slaves connected to the external connector of some cards.
1917#
1918device		bktr	1
1919
1920#
1921# PC Card/PCMCIA
1922# (OLDCARD)
1923#
1924# card: pccard slots
1925# pcic: isa/pccard bridge
1926device		pcic
1927hint.pcic.0.at="isa"
1928hint.pcic.1.at="isa"
1929device		card
1930
1931#
1932# PC Card/PCMCIA and Cardbus
1933# (NEWCARD)
1934#
1935# Note that NEWCARD and OLDCARD are incompatible.  Do not use both at the same
1936# time.
1937#
1938# pccbb: isa/pccard and pci/cardbus bridge
1939# pccard: pccard slots
1940# cardbus: cardbus slots
1941#device		pccbb
1942#device		pccard
1943#device		cardbus
1944
1945#
1946# SMB bus
1947#
1948# System Management Bus support is provided by the 'smbus' device.
1949# Access to the SMBus device is via the 'smb' device (/dev/smb*),
1950# which is a child of the 'smbus' device.
1951#
1952# Supported devices:
1953# smb		standard io through /dev/smb*
1954#
1955# Supported SMB interfaces:
1956# iicsmb	I2C to SMB bridge with any iicbus interface
1957# bktr		brooktree848 I2C hardware interface
1958# intpm		Intel PIIX4 (82371AB, 82443MX) Power Management Unit
1959# alpm		Acer Aladdin-IV/V/Pro2 Power Management Unit
1960# ichsmb	Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA)
1961# viapm		VIA VT82C586B/596B/686A and VT8233 Power Management Unit
1962#
1963device		smbus		# Bus support, required for smb below.
1964
1965device		intpm
1966device		alpm
1967device		ichsmb
1968device		viapm
1969
1970device		smb
1971
1972#
1973# I2C Bus
1974#
1975# Philips i2c bus support is provided by the `iicbus' device.
1976#
1977# Supported devices:
1978# ic	i2c network interface
1979# iic	i2c standard io
1980# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
1981#
1982# Supported interfaces:
1983# bktr	brooktree848 I2C software interface
1984#
1985# Other:
1986# iicbb	generic I2C bit-banging code (needed by lpbb, bktr)
1987#
1988device		iicbus		# Bus support, required for ic/iic/iicsmb below.
1989device		iicbb
1990
1991device		ic
1992device		iic
1993device		iicsmb		# smb over i2c bridge
1994
1995# Parallel-Port Bus
1996#
1997# Parallel port bus support is provided by the `ppbus' device.
1998# Multiple devices may be attached to the parallel port, devices
1999# are automatically probed and attached when found.
2000#
2001# Supported devices:
2002# vpo	Iomega Zip Drive
2003#	Requires SCSI disk support ('scbus' and 'da'), best
2004#	performance is achieved with ports in EPP 1.9 mode.
2005# lpt	Parallel Printer
2006# plip	Parallel network interface
2007# ppi	General-purpose I/O ("Geek Port") + IEEE1284 I/O
2008# pps	Pulse per second Timing Interface
2009# lpbb	Philips official parallel port I2C bit-banging interface
2010#
2011# Supported interfaces:
2012# ppc	ISA-bus parallel port interfaces.
2013#
2014
2015options 	PPC_PROBE_CHIPSET # Enable chipset specific detection
2016				  # (see flags in ppc(4))
2017options 	DEBUG_1284	# IEEE1284 signaling protocol debug
2018options 	PERIPH_1284	# Makes your computer act as a IEEE1284
2019				# compliant peripheral
2020options 	DONTPROBE_1284	# Avoid boot detection of PnP parallel devices
2021options 	VP0_DEBUG	# ZIP/ZIP+ debug
2022options 	LPT_DEBUG	# Printer driver debug
2023options 	PPC_DEBUG	# Parallel chipset level debug
2024options 	PLIP_DEBUG	# Parallel network IP interface debug
2025options 	PCFCLOCK_VERBOSE         # Verbose pcfclock driver
2026options 	PCFCLOCK_MAX_RETRIES=5   # Maximum read tries (default 10)
2027
2028device		ppc
2029hint.ppc.0.at="isa"
2030hint.ppc.0.irq="7"
2031device		ppbus
2032device		vpo
2033device		lpt
2034device		plip
2035device		ppi
2036device		pps
2037device		lpbb
2038device		pcfclock
2039
2040# Kernel BOOTP support
2041
2042options 	BOOTP		# Use BOOTP to obtain IP address/hostname
2043				# Requires NFSCLIENT and NFS_ROOT
2044options 	BOOTP_NFSROOT	# NFS mount root filesystem using BOOTP info
2045options 	BOOTP_NFSV3	# Use NFS v3 to NFS mount root
2046options 	BOOTP_COMPAT	# Workaround for broken bootp daemons.
2047options 	BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
2048
2049#
2050# Add tie-ins for a hardware watchdog.  This only enable the hooks;
2051# the user must still supply the actual driver.
2052#
2053options 	HW_WDOG
2054
2055#
2056# Disable swapping. This option removes all code which actually performs
2057# swapping, so it's not possible to turn it back on at run-time.
2058#
2059# This is sometimes usable for systems which don't have any swap space
2060# (see also sysctls "vm.defer_swapspace_pageouts" and
2061# "vm.disable_swapspace_pageouts")
2062#
2063#options 	NO_SWAPPING
2064
2065# Set the number of sf_bufs to allocate. sf_bufs are virtual buffers
2066# for sendfile(2) that are used to map file VM pages, and normally
2067# default to a quantity that is roughly 16*MAXUSERS+512. You would
2068# typically want about 4 of these for each simultaneous file send.
2069#
2070options 	NSFBUFS=1024
2071
2072#
2073# Enable extra debugging code for locks.  This stores the filename and
2074# line of whatever acquired the lock in the lock itself, and change a
2075# number of function calls to pass around the relevant data.  This is
2076# not at all useful unless you are debugging lock code.  Also note
2077# that it is likely to break e.g. fstat(1) unless you recompile your
2078# userland with -DDEBUG_LOCKS as well.
2079#
2080options 	DEBUG_LOCKS
2081
2082
2083#####################################################################
2084# USB support
2085# UHCI controller
2086device		uhci
2087# OHCI controller
2088device		ohci
2089# General USB code (mandatory for USB)
2090device		usb
2091#
2092# USB Double Bulk Pipe devices
2093device		udbp
2094# Generic USB device driver
2095device		ugen
2096# Human Interface Device (anything with buttons and dials)
2097device		uhid
2098# USB keyboard
2099device		ukbd
2100# USB printer
2101device		ulpt
2102# USB Iomega Zip 100 Drive (Requires scbus and da)
2103device		umass
2104# USB modem support
2105device		umodem
2106# USB mouse
2107device		ums
2108# Diamond Rio 500 Mp3 player
2109device		urio
2110# USB scanners
2111device		uscanner
2112# USB serial support
2113device		ucom
2114device		uplcom
2115# USB serial support for DDI pocket's PHS
2116device		uvscom
2117# USB Fm Radio
2118device		ufm
2119#
2120# ADMtek USB ethernet. Supports the LinkSys USB100TX,
2121# the Billionton USB100, the Melco LU-ATX, the D-Link DSB-650TX
2122# and the SMC 2202USB. Also works with the ADMtek AN986 Pegasus
2123# eval board.
2124device		aue
2125#
2126# CATC USB-EL1201A USB ethernet. Supports the CATC Netmate
2127# and Netmate II, and the Belkin F5U111.
2128device		cue
2129#
2130# Kawasaki LSI ethernet. Supports the LinkSys USB10T,
2131# Entrega USB-NET-E45, Peracom Ethernet Adapter, the
2132# 3Com 3c19250, the ADS Technologies USB-10BT, the ATen UC10T,
2133# the Netgear EA101, the D-Link DSB-650, the SMC 2102USB
2134# and 2104USB, and the Corega USB-T.
2135device		kue
2136
2137# debugging options for the USB subsystem
2138#
2139options 	UHCI_DEBUG
2140options 	OHCI_DEBUG
2141options 	USB_DEBUG
2142
2143options 	UGEN_DEBUG
2144options 	UHID_DEBUG
2145options 	UHUB_DEBUG
2146options 	UKBD_DEBUG
2147options 	ULPT_DEBUG
2148options 	UMASS_DEBUG
2149options 	UMS_DEBUG
2150options 	URIO_DEBUG
2151
2152# options for ukbd:
2153options 	UKBD_DFLT_KEYMAP	# specify the built-in keymap
2154makeoptions	UKBD_DFLT_KEYMAP=it.iso
2155
2156#
2157# Embedded system options:
2158#
2159# An embedded system might want to run something other than init.
2160options 	INIT_PATH="/sbin/init:/stand/sysinstall"
2161
2162# Debug options
2163options 	BUS_DEBUG	# enable newbus debugging
2164options 	DEBUG_VFS_LOCKS	# enable vfs lock debugging
2165options 	NPX_DEBUG	# enable npx debugging (FPU/math emu)
2166
2167#####################################################################
2168# SYSV IPC KERNEL PARAMETERS
2169#
2170# Maximum number of entries in a semaphore map.
2171options 	SEMMAP=31
2172
2173# Maximum number of System V semaphores that can be used on the system at
2174# one time.
2175options 	SEMMNI=11
2176
2177# Total number of semaphores system wide
2178options 	SEMMNS=61
2179
2180# Total number of undo structures in system
2181options 	SEMMNU=31
2182
2183# Maximum number of System V semaphores that can be used by a single process
2184# at one time.
2185options 	SEMMSL=61
2186
2187# Maximum number of operations that can be outstanding on a single System V
2188# semaphore at one time.
2189options 	SEMOPM=101
2190
2191# Maximum number of undo operations that can be outstanding on a single
2192# System V semaphore at one time.
2193options 	SEMUME=11
2194
2195# Maximum number of shared memory pages system wide.
2196options 	SHMALL=1025
2197
2198# Maximum size, in bytes, of a single System V shared memory region.
2199options 	SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
2200options 	SHMMAXPGS=1025
2201
2202# Minimum size, in bytes, of a single System V shared memory region.
2203options 	SHMMIN=2
2204
2205# Maximum number of shared memory regions that can be used on the system
2206# at one time.
2207options 	SHMMNI=33
2208
2209# Maximum number of System V shared memory regions that can be attached to
2210# a single process at one time.
2211options 	SHMSEG=9
2212
2213# Set the amount of time (in seconds) the system will wait before
2214# rebooting automatically when a kernel panic occurs.  If set to (-1),
2215# the system will wait indefinitely until a key is pressed on the
2216# console.
2217options 	PANIC_REBOOT_WAIT_TIME=16
2218
2219#####################################################################
2220
2221# More undocumented options for linting.
2222# Note that documenting these are not considered an affront.
2223
2224options 	CAM_DEBUG_DELAY
2225
2226# VFS cluster debugging.
2227options 	CLUSTERDEBUG
2228
2229options 	DEBUG
2230
2231# Kernel filelock debugging.
2232options 	LOCKF_DEBUG
2233
2234# System V compatible message queues
2235# Please note that the values provided here are used to test kernel
2236# building.  The defaults in the sources provide almost the same numbers.
2237# MSGSSZ must be a power of 2 between 8 and 1024.
2238options 	MSGMNB=2049	# Max number of chars in queue
2239options 	MSGMNI=41	# Max number of message queue identifiers
2240options 	MSGSEG=2049	# Max number of message segments
2241options 	MSGSSZ=16	# Size of a message segment
2242options 	MSGTQL=41	# Max number of messages in system
2243
2244options 	NBUF=512	# Number of buffer headers
2245
2246options 	NMBCLUSTERS=1024	# Number of mbuf clusters
2247
2248options 	SCSI_NCR_DEBUG
2249options 	SCSI_NCR_MAX_SYNC=10000
2250options 	SCSI_NCR_MAX_WIDE=1
2251options 	SCSI_NCR_MYADDR=7
2252
2253options 	SC_DEBUG_LEVEL=5	# Syscons debug level
2254options 	SC_RENDER_DEBUG	# syscons rendering debugging
2255
2256options 	SHOW_BUSYBUFS	# List buffers that prevent root unmount
2257options 	SLIP_IFF_OPTS
2258options 	VFS_BIO_DEBUG	# VFS buffer I/O debugging
2259
2260# Yet more undocumented options for linting.
2261options 	AAC_DEBUG
2262options 	ACD_DEBUG
2263options 	ACPI_MAX_THREADS=1
2264#!options 	ACPI_NO_SEMAPHORES
2265# Broken:
2266##options 	ASR_MEASURE_PERFORMANCE
2267options 	AST_DEBUG
2268options 	ATAPI_DEBUG
2269options 	ATA_DEBUG
2270# BKTR_ALLOC_PAGES has no effect except to cause warnings, and
2271# BROOKTREE_ALLOC_PAGES hasn't actually been superseded by it, since the
2272# driver still mostly spells this option BROOKTREE_ALLOC_PAGES.
2273##options 	BKTR_ALLOC_PAGES="(217*4+1)"
2274options 	BROOKTREE_ALLOC_PAGES="(217*4+1)"
2275options 	MAXFILES=999
2276# METEOR_TEST_VIDEO has no effect since meteor is broken.
2277options 	METEOR_TEST_VIDEO
2278options 	NDEVFSINO=1025
2279options 	NDEVFSOVERFLOW=32769
2280options 	NETGRAPH_BRIDGE
2281
2282# Yet more undocumented options for linting.
2283options 	VGA_DEBUG
2284