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