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