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