emx: Add EMX_TSO_DEBUG
[dragonfly.git] / sys / config / LINT
CommitLineData
984263bc
MD
1#
2# LINT -- config file for checking all the sources, tries to pull in
3# as much of the source tree as it can.
4#
5# $FreeBSD: src/sys/i386/conf/LINT,v 1.749.2.144 2003/06/04 17:56:59 sam Exp $
84bc65d9
TN
6#
7# See the kernconf(5) manual page for more information on the format of
8# this file.
984263bc
MD
9#
10# NB: You probably don't want to try running a kernel built from this
11# file. Instead, you should start from GENERIC, and add options from
12# this file as required.
13#
14
a9295349
MD
15# These directives are mandatory. The machine directive specifies the
16# platform and the machine_arch directive specifies the cpu architecture.
984263bc 17#
0955fd91
MD
18platform pc32
19machine i386
a9295349 20machine_arch i386
984263bc
MD
21
22#
23# This is the ``identification'' of the kernel. Usually this should
24# be the same as the name of your kernel.
25#
26ident LINT
27
28#
29# The `maxusers' parameter controls the static sizing of a number of
30# internal system tables by a formula defined in subr_param.c. Setting
31# maxusers to 0 will cause the system to auto-size based on physical
32# memory.
33#
34maxusers 10
35
36#
37# The `makeoptions' parameter allows variables to be passed to the
38# generated Makefile in the build area.
39#
40# CONF_CFLAGS gives some extra compiler flags that are added to ${CFLAGS}
41# after most other flags. Here we use it to inhibit use of non-optimal
42# gcc builtin functions (e.g., memcmp).
43#
44# DEBUG happens to be magic.
45# The following is equivalent to 'config -g KERNELNAME' and creates
46# 'kernel.debug' compiled with -g debugging as well as a normal
47# 'kernel'. Use 'make install.debug' to install the debug kernel
48# but that isn't normally necessary as the debug symbols are not loaded
49# by the kernel and are not useful there anyway.
50#
51# KERNEL can be overridden so that you can change the default name of your
52# kernel.
53#
54# MODULES_OVERRIDE can be used to limit modules built to a specific list.
55#
c2c83759
MD
56# INSTALLSTRIPPED can be set to cause installkernel to install stripped
57# kernels and modules rather than a kernel and modules with debug symbols.
58#
59# INSTALLSTRIPPEDMODULES can be set to allow a full debug kernel to be
60# installed, but to strip the installed modules.
61#
984263bc
MD
62makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc.
63#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
64#makeoptions KERNEL=foo #Build kernel "foo" and install "/foo"
65# Only build Linux API modules and plus those parts of the sound system I need.
66#makeoptions MODULES_OVERRIDE="linux sound/snd sound/pcm sound/driver/maestro3"
c2c83759
MD
67#makeoptions INSTALLSTRIPPED=1
68#makeoptions INSTALLSTRIPPEDMODULES=1
984263bc
MD
69
70#
71# Certain applications can grow to be larger than the 128M limit
fc29bf55 72# that DragonFly initially imposes. Below are some options to
984263bc
MD
73# allow that limit to grow to 256MB, and can be increased further
74# with changing the parameters. MAXDSIZ is the maximum that the
75# limit can be set to, and the DFLDSIZ is the default value for
76# the limit. MAXSSIZ is the maximum that the stack limit can be
d856dabc 77# set to. You might want to set the default lower than the max,
984263bc
MD
78# and explicitly set the maximum with a shell command for processes
79# that regularly exceed the limit like INND.
80#
81options MAXDSIZ="(256*1024*1024)"
82options MAXSSIZ="(256*1024*1024)"
83options DFLDSIZ="(256*1024*1024)"
84
85#
86# BLKDEV_IOSIZE sets the default block size used in user block
56be8454 87# device I/O. Note that this value will be overridden by the label
984263bc
MD
88# when specifying a block device from a label with a non-0
89# partition blocksize. The default is PAGE_SIZE.
90#
91options BLKDEV_IOSIZE=8192
92
984263bc
MD
93# This allows you to actually store this configuration file into
94# the kernel binary itself, where it may be later read by saying:
95# strings -n 3 /kernel | sed -n 's/^___//p' > MYKERNEL
96#
97options INCLUDE_CONFIG_FILE # Include this file in kernel
98
99#
100# The root device and filesystem type can be compiled in;
101# this provides a fallback option if the root device cannot
102# be correctly guessed by the bootstrap code, or an override if
103# the RB_DFLTROOT flag (-r) is specified when booting the kernel.
104#
105options ROOTDEVNAME=\"ufs:da0s2e\"
106
984263bc
MD
107#####################################################################
108# SMP OPTIONS:
109#
e93ca50a
SW
110# SMP enables building of a Symmetric MultiProcessor Kernel. It will
111# boot on both SMP and UP boxes.
984263bc
MD
112#
113# Notes:
114#
115# An SMP kernel will ONLY run on an Intel MP spec. qualified motherboard.
116#
4db955e1 117# Be sure to disable 'cpu I486_CPU' for SMP kernels.
984263bc
MD
118#
119# Check the 'Rogue SMP hardware' section to see if additional options
120# are required by your hardware.
121#
e93ca50a 122#options SMP # Symmetric MultiProcessor Kernel
984263bc 123
984263bc
MD
124#####################################################################
125# CPU OPTIONS
126
127#
128# You must specify at least one CPU (the one you intend to run on);
129# deleting the specification for CPUs you don't need to use may make
4db955e1 130# parts of the system run faster.
984263bc 131#
984263bc
MD
132cpu I486_CPU
133cpu I586_CPU # aka Pentium(tm)
134cpu I686_CPU # aka Pentium Pro(tm)
135
136#
137# Options for CPU features.
138#
139# CPU_ATHLON_SSE_HACK tries to enable SSE instructions when the BIOS has
140# forgotten to enable them.
141#
142# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
143# BlueLightning CPU. It works only with Cyrix FPU, and this option
144# should not be used with Intel FPU.
145#
146# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
147# CPU if CPU supports it. The default is double-clock mode on
148# BlueLightning CPU box.
149#
150# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
151#
152# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
153# mapped mode. Default is 2-way set associative mode.
154#
155# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
156# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
157# Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3)
158#
159# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e. enables
160# reorder). This option should not be used if you use memory mapped
161# I/O device(s).
162#
642a6e88 163# CPU_DISABLE_SSE disables SSE/MMX2 instructions support.
984263bc 164#
4600a59f
SW
165# CPU_ENABLE_EST enables support for Enhanced SpeedStep technology
166# found in Pentium(tm) M processors.
167#
bbfb0755
SW
168# CPU_ENABLE_LONGRUN enables support for Transmeta Crusoe LongRun
169# technology which allows to restrict power consumption of the CPU by
170# using group of hw.crusoe.* sysctls.
171#
18a582c9
JR
172# CPU_ENABLE_TCC enables Thermal Control Circuitry (TCC) found in some
173# Pentium(tm) 4 and (possibly) later CPUs. When enabled and detected,
174# TCC supports restricting power consumption using the hw.p4tcc.*
175# sysctls. This operates independently of SpeedStep and is useful on
176# systems where other mechanisms such as apm(4) or acpi(4) don't work.
177#
984263bc
MD
178# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
179#
90f4d7cd
SW
180# CPU_HAS_SSE2 will enable the lfence and mfence instructions in
181# cpu_lfence() and cpu_mfence(). If the CPU does not support them,
182# it will cause a panic.
183#
984263bc
MD
184# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
185# for i386 machines.
186#
187# CPU_IORT defines I/O clock delay time (NOTE 1). Default values of
188# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
189# (no clock delay).
190#
3f5e28f4 191# CPU_L2_LATENCY specified the L2 cache latency value. This option is used
984263bc
MD
192# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
193# The default value is 5.
194#
195# CPU_ELAN enables support for AMDs ElanSC520 CPU.
196#
80c3f755
AH
197# CPU_GEODE enables support for AMD Geode LX, Geode SC1100 and AMD CS5536
198#
984263bc
MD
199# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
200# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
201# 1).
202#
203# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option
204# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
205# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
206#
207# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
208#
209# CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU
210# enters suspend mode following execution of HALT instruction.
211#
212# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
213# K5/K6/K6-2 cpus.
214#
215# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
216# flush at hold state.
217#
218# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
219# without cache flush at hold state, and (2) write-back CPU cache on
220# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
221#
222# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
223# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
224# executed. This option is only needed if I586_CPU is also defined,
225# and should be included for any non-Pentium CPU that defines it.
226#
227# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
228# which indicates that the 15-16MB range is *definitely* not being
229# occupied by an ISA memory hole.
230#
a52bbb36
SW
231# NOTE 1: The CPU_BTB_EN, CPU_IORT, CPU_LOOP_EN and CPU_RSTK_EN options
232# should not be used because of CPU bugs. They may crash your system.
984263bc
MD
233#
234# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
235# in write-through mode when revision < 2.7. If revision of Cyrix
236# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
237#
238# NOTE 3: This option may cause failures for software that requires
239# locked cycles in order to operate correctly.
240#
241options CPU_ATHLON_SSE_HACK
242options CPU_BLUELIGHTNING_FPU_OP_CACHE
243options CPU_BLUELIGHTNING_3X
244options CPU_BTB_EN
e71347e9 245options CPU_CYRIX_NO_LOCK
984263bc
MD
246options CPU_DIRECT_MAPPED_CACHE
247options CPU_DISABLE_5X86_LSSER
e71347e9 248options CPU_DISABLE_SSE
984263bc 249options CPU_ELAN
5d327b77 250options CPU_ENABLE_EST
bbfb0755 251options CPU_ENABLE_LONGRUN
18a582c9 252options CPU_ENABLE_TCC
984263bc 253options CPU_FASTER_5X86_FPU
80c3f755 254options CPU_GEODE
90f4d7cd 255options CPU_HAS_SSE2
984263bc
MD
256options CPU_I486_ON_386
257options CPU_IORT
258options CPU_L2_LATENCY=5
259options CPU_LOOP_EN
260options CPU_PPRO2CELERON
261options CPU_RSTK_EN
262options CPU_SUSP_HLT
263options CPU_WT_ALLOC
264options CYRIX_CACHE_WORKS
265options CYRIX_CACHE_REALLY_WORKS
266#options NO_F00F_HACK
e71347e9 267options NO_MEMORY_HOLE
984263bc
MD
268
269#
270# A math emulator is mandatory if you wish to run on hardware which
6f535fd5 271# does not have a floating-point processor.
984263bc 272options MATH_EMULATE #Support for x87 emulation
ebea24c3 273
984263bc 274#####################################################################
d856dabc 275# COMPATIBILITY OPTIONS
984263bc
MD
276
277#
278# Implement system calls compatible with 4.3BSD and older versions of
279# FreeBSD. You probably do NOT want to remove this as much current code
280# still relies on the 4.3 emulation.
281#
282options COMPAT_43
283
284#
db37e804
JS
285# Implement system calls compatible with DragonFly 1.2 and older.
286#
287options COMPAT_DF12 #Compatible with DragonFly 1.2 and earlier
288
efba76b4
SW
289# Enable NDIS binary driver support
290options NDISAPI
291device ndis
292
db37e804 293#
984263bc
MD
294# These three options provide support for System V Interface
295# Definition-style interprocess communication, in the form of shared
296# memory, semaphores, and message queues, respectively.
297#
298# System V shared memory and tunable parameters
299options SYSVSHM # include support for shared memory
984263bc
MD
300options SHMMIN=2 # min shared memory segment size (bytes)
301options SHMMNI=33 # max number of shared memory identifiers
302options SHMSEG=9 # max shared memory segments per process
303
304# System V semaphores and tunable parameters
305options SYSVSEM # include support for semaphores
306options SEMMAP=31 # amount of entries in semaphore map
307options SEMMNI=11 # number of semaphore identifiers in the system
308options SEMMNS=61 # number of semaphores in the system
309options SEMMNU=31 # number of undo structures in the system
310options SEMMSL=61 # max number of semaphores per id
311options SEMOPM=101 # max number of operations per semop call
312options SEMUME=11 # max number of undo entries per process
313
314# System V message queues and tunable parameters
315options SYSVMSG # include support for message queues
316options MSGMNB=2049 # max characters per message queue
317options MSGMNI=41 # max number of message queue identifiers
318options MSGSEG=2049 # max number of message segments in the system
319options MSGSSZ=16 # size of a message segment MUST be power of 2
320options MSGTQL=41 # max amount of messages in the system
321
984263bc
MD
322#####################################################################
323# DEBUGGING OPTIONS
324
325#
326# Enable the kernel debugger.
327#
328options DDB
329
330#
4ad6607f
SW
331# Print a stack trace on kernel panic.
332#
333options DDB_TRACE
334
335#
984263bc
MD
336# Don't drop into DDB for a panic. Intended for unattended operation
337# where you may want to drop to DDB from the console, but still want
338# the machine to recover from a panic
339#
340options DDB_UNATTENDED
341
342#
343# If using GDB remote mode to debug the kernel, there's a non-standard
344# extension to the remote protocol that can be used to use the serial
345# port as both the debugging port and the system console. It's non-
346# standard and you're on your own if you enable it. See also the
fc29bf55 347# "remotechat" variables in the DragonFly specific version of gdb.
984263bc
MD
348#
349options GDB_REMOTE_CHAT
350
351#
352# KTRACE enables the system-call tracing facility ktrace(2).
353#
354options KTRACE #kernel tracing
355
356#
357# The INVARIANTS option is used in a number of source files to enable
358# extra sanity checking of internal structures. This support is not
359# enabled by default because of the extra time it would take to check
360# for these conditions, which can only occur as a result of
361# programming errors.
362#
363options INVARIANTS
364
365#
984263bc
MD
366# The DIAGNOSTIC option is used to enable extra debugging information
367# from some parts of the kernel. As this makes everything more noisy,
368# it is disabled by default.
369#
370options DIAGNOSTIC
371
372#
373# PERFMON causes the driver for Pentium/Pentium Pro performance counters
374# to be compiled. See perfmon(4) for more information.
375#
376options PERFMON
377
378
379#
380# This option let some drivers co-exist that can't co-exist in a running
381# system. This is used to be able to compile all kernel code in one go for
382# quality assurance purposes (like this file, which the option takes it name
383# from.)
384#
385options COMPILING_LINT
386
387
388# XXX - this doesn't belong here.
389# Allow ordinary users to take the console - this is useful for X.
390options UCONSOLE
391
392# XXX - this doesn't belong here either
393options USERCONFIG #boot -c editor
394options INTRO_USERCONFIG #imply -c and show intro screen
395options VISUAL_USERCONFIG #visual boot -c editor
396
984263bc
MD
397#####################################################################
398# NETWORKING OPTIONS
399
400#
401# Protocol families:
fc29bf55 402# Only the INET (Internet) family is officially supported in DragonFly.
984263bc
MD
403# Source code for the NS (Xerox Network Service) is provided for amusement
404# value.
405#
406options INET #Internet communications protocols
407options INET6 #IPv6 communications protocols
408options IPSEC #IP security
409options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
410options IPSEC_DEBUG #debug for IP security
411#
412# Set IPSEC_FILTERGIF to force packets coming through a gif tunnel
1cb3b2e4 413# to be processed by any configured packet filtering (ipfw).
984263bc
MD
414# The default is that packets coming from a tunnel are _not_ processed;
415# they are assumed trusted.
416#
417# Note that enabling this can be problematic as there are no mechanisms
418# in place for distinguishing packets coming out of a tunnel (e.g. no
419# encX devices as found on openbsd).
420#
421#options IPSEC_FILTERGIF #filter ipsec packets from a tunnel
422
423#
424# Experimental IPsec implementation that uses the kernel crypto
425# framework. This cannot be configured together with IPSEC and
426# (currently) supports only IPv4. To use this you must also
427# configure the crypto device (see below). Note that with this
428# you get all the IPsec protocols (e.g. there is no FAST_IPSEC_ESP).
429# IPSEC_DEBUG is used, as above, to configure debugging support
430# within the IPsec protocols.
431#
432#options FAST_IPSEC #new IPsec
433
434options IPX #IPX/SPX communications protocols
435options IPXIP #IPX in IP encapsulation (not available)
436options IPTUNNEL #IP in IPX encapsulation (not available)
437
438options NCP #NetWare Core protocol
439
b202117f
NA
440options MPLS #Multi-Protocol Label Switching
441
984263bc
MD
442#
443# SMB/CIFS requester
444# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
445# options.
446# NETSMBCRYPTO enables support for encrypted passwords.
447options NETSMB #SMB/CIFS requester
448options NETSMBCRYPTO #encrypted password support for SMB
449
450# mchain library. It can be either loaded as KLD or compiled into kernel
451options LIBMCHAIN #mbuf management library
452
453# netgraph(4). Enable the base netgraph code with the NETGRAPH option.
454# Individual node types can be enabled with the corresponding option
455# listed below; however, this is not strictly necessary as netgraph
456# will automatically load the corresponding KLD module if the node type
457# is not already compiled into the kernel. Each type below has a
4ad6607f 458# corresponding man page, e.g., ng_async(4).
984263bc
MD
459options NETGRAPH #netgraph(4) system
460options NETGRAPH_ASYNC
461options NETGRAPH_BPF
4ad6607f 462options NETGRAPH_BRIDGE
984263bc
MD
463options NETGRAPH_CISCO
464options NETGRAPH_ECHO
7dab44e5 465options NETGRAPH_EIFACE
984263bc
MD
466options NETGRAPH_ETHER
467options NETGRAPH_FRAME_RELAY
468options NETGRAPH_HOLE
469options NETGRAPH_IFACE
470options NETGRAPH_KSOCKET
471options NETGRAPH_L2TP
472options NETGRAPH_LMI
473# MPPC compression requires proprietary files (not included)
474#options NETGRAPH_MPPC_COMPRESSION
475options NETGRAPH_MPPC_ENCRYPTION
476options NETGRAPH_ONE2MANY
477options NETGRAPH_PPP
478options NETGRAPH_PPPOE
479options NETGRAPH_PPTPGRE
480options NETGRAPH_RFC1490
481options NETGRAPH_SOCKET
482options NETGRAPH_TEE
483options NETGRAPH_TTY
484options NETGRAPH_UI
485options NETGRAPH_VJC
486
487device mn # Munich32x/Falc54 Nx64kbit/sec cards.
488
489#
490# Network interfaces:
491# The `loop' pseudo-device is MANDATORY when networking is enabled.
492# The `ether' pseudo-device provides generic code to handle
493# Ethernets; it is MANDATORY when a Ethernet device driver is
b15531e9 494# configured.
984263bc 495# The `sppp' pseudo-device serves a similar role for certain types
9e2b517e 496# of synchronous PPP links (like `ar').
984263bc
MD
497# The `sl' pseudo-device implements the Serial Line IP (SLIP) service.
498# The `ppp' pseudo-device implements the Point-to-Point Protocol.
499# The `bpf' pseudo-device enables the Berkeley Packet Filter. Be
500# aware of the legal and administrative consequences of enabling this
501# option. The number of devices determines the maximum number of
502# simultaneous BPF clients programs runnable.
503# The `disc' pseudo-device implements a minimal network interface,
504# which throws away all packets sent and never receives any. It is
505# included for testing purposes. This shows up as the 'ds' interface.
506# The `tun' pseudo-device implements (user-)ppp and nos-tun
507# The `gif' pseudo-device implements IPv6 over IP4 tunneling,
508# IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling and
509# IPv6 over IPv6 tunneling.
510# The `gre' device implements two types of IP4 over IP4 tunneling:
511# GRE and MOBILE, as specified in the RFC1701 and RFC2004.
512# The `faith' pseudo-device captures packets sent to it and diverts them
513# to the IPv4/IPv6 translation daemon.
514# The `stf' device implements 6to4 encapsulation.
515# The `ef' pseudo-device provides support for multiple ethernet frame types
516# specified via ETHER_* options. See ef(4) for details.
517#
518# The PPP_BSDCOMP option enables support for compress(1) style entire
519# packet compression, the PPP_DEFLATE is for zlib/gzip style compression.
520# PPP_FILTER enables code for filtering the ppp data stream and selecting
521# events for resetting the demand dial activity timer - requires bpf.
522# See pppd(8) for more details.
523#
524pseudo-device ether #Generic Ethernet
525pseudo-device vlan 1 #VLAN support
db37145f 526pseudo-device bridge #Bridging support
984263bc
MD
527pseudo-device sppp #Generic Synchronous PPP
528pseudo-device loop #Network loopback device
529pseudo-device bpf #Berkeley packet filter
530pseudo-device disc #Discard device (ds0, ds1, etc)
ded7543c 531pseudo-device tap #Ethernet tunnel network interface
984263bc
MD
532pseudo-device tun #Tunnel driver (ppp(8), nos-tun(8))
533pseudo-device sl 2 #Serial Line IP
534pseudo-device gre #IP over IP tunneling
535pseudo-device ppp 2 #Point-to-point protocol
536options PPP_BSDCOMP #PPP BSD-compress support
537options PPP_DEFLATE #PPP zlib/deflate/gzip support
538options PPP_FILTER #enable bpf filtering (needs bpf)
539
540pseudo-device ef # Multiple ethernet frames support
541options ETHER_II # enable Ethernet_II frame
542options ETHER_8023 # enable Ethernet_802.3 (Novell) frame
543options ETHER_8022 # enable Ethernet_802.2 frame
544options ETHER_SNAP # enable Ethernet_802.2/SNAP frame
545
546# for IPv6
547pseudo-device gif #IPv6 and IPv4 tunneling
548pseudo-device faith 1 #for IPv6 and IPv4 translation
549pseudo-device stf #6to4 IPv6 over IPv4 encapsulation
550
551#
552# Internet family options:
553#
554# MROUTING enables the kernel multicast packet forwarder, which works
555# with mrouted(8).
556#
f1f552f6
JH
557# PIM enables Protocol Independent Multicast in the kernel.
558# Requires MROUTING enabled.
559#
984263bc
MD
560# IPFIREWALL enables support for IP firewall construction, in
561# conjunction with the `ipfw' program. IPFIREWALL_VERBOSE sends
562# logged packets to the system logger. IPFIREWALL_VERBOSE_LIMIT
563# limits the number of times a matching entry can be logged.
564#
565# WARNING: IPFIREWALL defaults to a policy of "deny ip from any to any"
566# and if you do not add other rules during startup to allow access,
567# YOU WILL LOCK YOURSELF OUT. It is suggested that you set firewall_type=open
568# in /etc/rc.conf when first enabling this feature, then refining the
569# firewall rules in /etc/rc.firewall after you've tested that the new kernel
570# feature works properly.
571#
572# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
573# allow everything. Use with care, if a cracker can crash your
574# firewall machine, they can get to your protected machines. However,
575# if you are using it as an as-needed filter for specific problems as
576# they arise, then this may be for you. Changing the default to 'allow'
577# means that you won't get stuck if the kernel and /sbin/ipfw binary get
578# out of sync.
579#
580# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''
581#
582# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
583# packets without touching the ttl). This can be useful to hide firewalls
584# from traceroute and similar tools.
585#
586# TCPDEBUG is undocumented.
587#
588options MROUTING # Multicast routing
f1f552f6 589options PIM # Protocol Independent Multicast
984263bc 590options IPFIREWALL #firewall
8d0865c8 591options IPFIREWALL_DEBUG #debug prints
984263bc 592options IPFIREWALL_VERBOSE #enable logging to syslogd(8)
984263bc
MD
593options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity
594options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default
595options IPV6FIREWALL #firewall for IPv6
596options IPV6FIREWALL_VERBOSE
597options IPV6FIREWALL_VERBOSE_LIMIT=100
598options IPV6FIREWALL_DEFAULT_TO_ACCEPT
599options IPDIVERT #divert sockets
984263bc
MD
600options IPSTEALTH #support for stealth forwarding
601options TCPDEBUG
602
02742ec6 603device pf
02742ec6
JS
604device pflog
605
0d16ba1d
MD
606#CARP
607pseudo-device carp
608options CARP
609
984263bc
MD
610# The MBUF_STRESS_TEST option enables options which create
611# various random failures / extreme cases related to mbuf
612# functions. See the mbuf(9) manpage for a list of available
613# test cases.
614options MBUF_STRESS_TEST
615
984263bc
MD
616# Statically link in accept filters
617options ACCEPT_FILTER_DATA
618options ACCEPT_FILTER_HTTP
619
b1992928
MD
620# TCP_SIGNATURE adds support for RFC 2385 (TCP-MD5) digests. These are
621# carried in TCP option 19. This option is commonly used to protect
622# TCP sessions (e.g. BGP) where IPSEC is not available nor desirable.
d912a10e
SW
623# This is enabled on a per-socket basis using the TCP_SIGNATURE_ENABLE
624# socket option.
b1992928
MD
625# This requires the use of 'device crypto', 'options IPSEC'
626# or 'device cryptodev'.
627options TCP_SIGNATURE #include support for RFC 2385
628
984263bc
MD
629#
630# TCP_DROP_SYNFIN adds support for ignoring TCP packets with SYN+FIN. This
631# prevents nmap et al. from identifying the TCP/IP stack, but breaks support
632# for RFC1644 extensions and is not recommended for web servers.
633#
634options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
635
636# ICMP_BANDLIM enables icmp error response bandwidth limiting. You
637# typically want this option as it will help protect the machine from
638# D.O.S. packet attacks.
639#
640options ICMP_BANDLIM
641
642# DUMMYNET enables the "dummynet" bandwidth limiter. You need
643# IPFIREWALL as well. See the dummynet(4) and ipfw(8) manpages for more info.
984263bc 644#
984263bc 645options DUMMYNET
a951f6d4 646options DUMMYNET_DEBUG
984263bc
MD
647
648#
649# ATM (HARP version) options
650#
651# ATM_CORE includes the base ATM functionality code. This must be included
652# for ATM support.
653#
654# ATM_IP includes support for running IP over ATM.
655#
656# At least one (and usually only one) of the following signalling managers
657# must be included (note that all signalling managers include PVC support):
658# ATM_SIGPVC includes support for the PVC-only signalling manager `sigpvc'.
659# ATM_SPANS includes support for the `spans' signalling manager, which runs
660# the FORE Systems's proprietary SPANS signalling protocol.
661# ATM_UNI includes support for the `uni30' and `uni31' signalling managers,
662# which run the ATM Forum UNI 3.x signalling protocols.
663#
664# The `hea' driver provides support for the Efficient Networks, Inc.
665# ENI-155p ATM PCI Adapter.
666#
667# The `hfa' driver provides support for the FORE Systems, Inc.
668# PCA-200E ATM PCI Adapter.
669#
670options ATM_CORE #core ATM protocol family
671options ATM_IP #IP over ATM support
672options ATM_SIGPVC #SIGPVC signalling manager
673options ATM_SPANS #SPANS signalling manager
674options ATM_UNI #UNI signalling manager
675device hea #Efficient ENI-155p ATM PCI
676device hfa #FORE PCA-200E ATM PCI
677
678# DEVICE_POLLING adds support for mixed interrupt-polling handling
679# of network device drivers, which has significant benefits in terms
680# of robustness to overloads and responsivity, as well as permitting
681# accurate scheduling of the CPU time between kernel network processing
84bc65d9
TN
682# and other activities. The drawback is a moderate (up to 1/pollhz seconds)
683# potential increase in response times. See polling(4) for further details.
d856dabc 684#
984263bc
MD
685options DEVICE_POLLING
686
6792e4fa
SZ
687# IFPOLL_ENABLE adds hardware queues' based polling
688options IFPOLL_ENABLE
689
984263bc
MD
690#####################################################################
691# FILESYSTEM OPTIONS
692
693#
694# Only the root, /usr, and /tmp filesystems need be statically
695# compiled; everything else will be automatically loaded at mount
86fab417 696# time. (Exception: the UFS family --- FFS, and MFS ---
84bc65d9
TN
697# cannot currently be demand-loaded.) Some people still prefer
698# to statically compile other filesystems as well.
984263bc 699#
36a06697 700# NB: The PORTAL and UNION filesystems are known to be
984263bc
MD
701# buggy, and WILL panic your system if you attempt to do anything with
702# them. They are included here as an incentive for some enterprising
703# soul to sit down and fix them.
704#
705
706# One of these is mandatory:
707options FFS #Fast filesystem
4ab1cc4a
DR
708options MFS #Memory filesystem
709options NFS #Network filesystem
984263bc
MD
710
711# The rest are optional:
712#options NFS_NOSERVER #Disable the NFS-server code.
713options CD9660 #ISO 9660 filesystem
714options FDESC #File descriptor filesystem
8124268f 715options HAMMER #HAMMER filesystem
7d7b24b8 716options HPFS #OS/2 File system
4ab1cc4a
DR
717options MSDOSFS #MS DOS filesystem
718options NTFS #NT filesystem
36a06697 719options NULLFS #NULL filesystem
984263bc
MD
720options NWFS #NetWare filesystem
721options PORTAL #Portal filesystem
722options PROCFS #Process filesystem
ab5617b3 723options PUFFS #Userspace file systems (e.g. ntfs-3g & sshfs)
984263bc 724options SMBFS #SMB/CIFS filesystem
7a2de9a4 725options TMPFS #Temporary filesystem
8124268f 726options UDF #UDF filesystem
9daa0298 727
03c6405b 728# YYY-DR Till we rework the VOP methods for this filesystem
03c6405b 729#options UNION #Union filesystem
984263bc 730# The xFS_ROOT options REQUIRE the associated ``options xFS''
984263bc
MD
731options FFS_ROOT #FFS usable as root device
732options NFS_ROOT #NFS usable as root device
733
84bc65d9 734# Soft updates is technique for improving UFS filesystem speed and
984263bc
MD
735# making abrupt shutdown less risky.
736options SOFTUPDATES
737
738# Directory hashing improves the speed of operations on very large
739# directories at the expense of some memory.
740options UFS_DIRHASH
741
742# Make space in the kernel for a root filesystem on a md device.
743# Define to the number of kilobytes to reserve for the filesystem.
744options MD_ROOT_SIZE=10
745
746# Make the md device a potential root device, either with preloaded
747# images of type mfs_root or md_root.
748options MD_ROOT
749
750# Specify double the default maximum size for malloc(9)-backed md devices.
751options MD_NSECT=40000
752
753# Allow this many swap-devices.
754#
755# In order to manage swap, the system must reserve bitmap space that
d856dabc 756# scales with the largest mounted swap device multiplied by NSWAPDEV,
531c762a 757# regardless of whether other swap devices exist or not. So it
984263bc
MD
758# is not a good idea to make this value too large.
759options NSWAPDEV=5
760
761# Disk quotas are supported when this option is enabled.
762options QUOTA #enable disk quotas
763
764# If you are running a machine just as a fileserver for PC and MAC
d22a69a4 765# users, e.g. using SAMBA, you may consider setting this option
984263bc
MD
766# and keeping all those users' directories on a filesystem that is
767# mounted with the suiddir option. This gives new files the same
768# ownership as the directory (similar to group). It's a security hole
769# if you let these users run programs, so confine it to file-servers
770# (but it'll save you lots of headaches in those cases). Root owned
771# directories are exempt and X bits are cleared. The suid bit must be
772# set on the directory as well; see chmod(1) PC owners can't see/set
773# ownerships so they keep getting their toes trodden on. This saves
774# you all the support calls as the filesystem it's used on will act as
775# they expect: "It's my dir so it must be my file".
776#
777options SUIDDIR
778
779# NFS options:
780options NFS_MINATTRTIMO=3 # VREG attrib cache timeout in sec
781options NFS_MAXATTRTIMO=60
782options NFS_MINDIRATTRTIMO=30 # VDIR attrib cache timeout in sec
783options NFS_MAXDIRATTRTIMO=60
784options NFS_GATHERDELAY=10 # Default write gather delay (msec)
785options NFS_UIDHASHSIZ=29 # Tune the size of nfssvc_sock with this
786options NFS_WDELAYHASHSIZ=16 # and with this
787options NFS_MUIDHASHSIZ=63 # Tune the size of nfsmount with this
788options NFS_DEBUG # Enable NFS Debugging
789
1b0988d0
AHJ
790# NTFS options:
791options NTFS_DEBUG
792
0e63c0c7
SW
793# MSDOSFS options:
794options MSDOSFS_DEBUG # Enable MSDOSFS Debugging
795
984263bc
MD
796#
797# Add support for the EXT2FS filesystem of Linux fame. Be a bit
798# careful with this - the ext2fs code has a tendency to lag behind
799# changes and not be exercised very much, so mounting read/write could
800# be dangerous (and even mounting read only could result in panics.)
801#
802options EXT2FS
803
7d7b24b8
SW
804# Optional character code conversion support with LIBICONV.
805# Each option requires their base file system and LIBICONV.
806options CD9660_ICONV
807options MSDOSFS_ICONV
808options NTFS_ICONV
809
984263bc
MD
810#####################################################################
811# POSIX P1003.1B
812
813# Real time extensions added in the 1993 Posix
814# P1003_1B: Infrastructure
815# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
816# _KPOSIX_VERSION: Version kernel is built for
817
818options P1003_1B
819options _KPOSIX_PRIORITY_SCHEDULING
820options _KPOSIX_VERSION=199309L
821
984263bc
MD
822#####################################################################
823# CLOCK OPTIONS
824
825# The granularity of operation is controlled by the kernel option HZ whose
826# default value (100) means a granularity of 10ms (1s/HZ).
984263bc
MD
827# Consider, however, that reducing the granularity too much might
828# cause excessive overhead in clock interrupt processing,
829# potentially causing ticks to be missed and thus actually reducing
830# the accuracy of operation.
831
832options HZ=100
833
834# The following options are used for debugging clock behavior only, and
835# should not be used for production systems.
d856dabc 836#
984263bc
MD
837# CLK_CALIBRATION_LOOP will run the clock calibration loop at startup
838# until the user presses a key.
839
840options CLK_CALIBRATION_LOOP
841
842# The following two options measure the frequency of the corresponding
843# clock relative to the RTC (onboard mc146818a).
844
845options CLK_USE_I8254_CALIBRATION
846options CLK_USE_TSC_CALIBRATION
847
984263bc
MD
848#####################################################################
849# SCSI DEVICES
850
851# SCSI DEVICE CONFIGURATION
852
853# The SCSI subsystem consists of the `base' SCSI code, a number of
854# high-level SCSI device `type' drivers, and the low-level host-adapter
855# device drivers. The host adapters are listed in the ISA and PCI
856# device configuration sections below.
857#
858# Beginning with FreeBSD 2.0.5 you can wire down your SCSI devices so
859# that a given bus, target, and LUN always come on line as the same
860# device unit. In earlier versions the unit numbers were assigned
861# in the order that the devices were probed on the SCSI bus. This
862# means that if you removed a disk drive, you may have had to rewrite
863# your /etc/fstab file, and also that you had to be careful when adding
864# a new disk as it may have been probed earlier and moved your device
865# configuration around.
866
867# This old behavior is maintained as the default behavior. The unit
868# assignment begins with the first non-wired down unit for a device
869# type. For example, if you wire a disk as "da3" then the first
870# non-wired disk will be assigned da4.
871
872# The syntax for wiring down devices is:
873
874# device scbus0 at ahc0 # Single bus device
875# device scbus1 at ahc1 bus 0 # Single bus device
876# device scbus3 at ahc2 bus 0 # Twin bus device
877# device scbus2 at ahc2 bus 1 # Twin bus device
878# device da0 at scbus0 target 0 unit 0
879# device da1 at scbus3 target 1
880# device da2 at scbus2 target 3
881# device sa1 at scbus1 target 6
882# device cd
883
884# "units" (SCSI logical unit number) that are not specified are
885# treated as if specified as LUN 0.
886
887# All SCSI devices allocate as many units as are required.
888
889# The "unknown" device (uk? in pre-2.0.5) is now part of the base SCSI
890# configuration and doesn't have to be explicitly configured.
891
892device scbus #base SCSI code
893device ch #SCSI media changers
894device da #SCSI direct access devices (aka disks)
895device sa #SCSI tapes
896device cd #SCSI CD-ROMs
897device pass #CAM passthrough driver
58c79c32 898device sg #Passthrough device (linux scsi generic)
984263bc
MD
899device pt #SCSI processor type
900device ses #SCSI SES/SAF-TE driver
901
61413047
AH
902# Options for device mapper
903device dm
7115a22b
AH
904device dm_target_crypt
905device dm_target_linear
906device dm_target_striped
61413047 907
e25c779e
MD
908# Options for iSCSI
909device iscsi_initiator
33805800 910options ISCSI_INITIATOR_DEBUG=8
e25c779e 911
984263bc
MD
912# CAM OPTIONS:
913# debugging options:
914# -- NOTE -- If you specify one of the bus/target/lun options, you must
915# specify them all!
916# CAMDEBUG: When defined enables debugging macros
917# CAM_DEBUG_BUS: Debug the given bus. Use -1 to debug all busses.
918# CAM_DEBUG_TARGET: Debug the given target. Use -1 to debug all targets.
919# CAM_DEBUG_LUN: Debug the given lun. Use -1 to debug all luns.
920# CAM_DEBUG_FLAGS: OR together CAM_DEBUG_INFO, CAM_DEBUG_TRACE,
921# CAM_DEBUG_SUBTRACE, and CAM_DEBUG_CDB
922#
923# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
924# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
925# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
926# SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter)
927# queue after a bus reset, and the number of milliseconds to
cf66c265
PA
928# freeze the device queue after a bus device reset. This
929# can be changed at boot and runtime with the
930# kern.cam.scsi_delay tunable/sysctl.
984263bc
MD
931options CAMDEBUG
932options CAM_DEBUG_BUS=-1
933options CAM_DEBUG_TARGET=-1
934options CAM_DEBUG_LUN=-1
935options CAM_DEBUG_FLAGS="CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB"
936options CAM_MAX_HIGHPOWER=4
937options SCSI_NO_SENSE_STRINGS
938options SCSI_NO_OP_STRINGS
939options SCSI_DELAY=8000 # Be pessimistic about Joe SCSI device
940
941# Options for the CAM CDROM driver:
942# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
943# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
944# enforced if there is I/O waiting for another LUN
945# The compiled in defaults for these variables are 2 and 10 seconds,
946# respectively.
947#
948# These can also be changed on the fly with the following sysctl variables:
949# kern.cam.cd.changer.min_busy_seconds
950# kern.cam.cd.changer.max_busy_seconds
951#
952options CHANGER_MIN_BUSY_SECONDS=2
953options CHANGER_MAX_BUSY_SECONDS=10
954
955# Options for the CAM sequential access driver:
956# SA_IO_TIMEOUT: Timeout for read/write/wfm operations, in minutes
957# SA_SPACE_TIMEOUT: Timeout for space operations, in minutes
958# SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes
959# SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes
960# SA_1FM_AT_EOD: Default to model which only has a default one filemark at EOT.
961options SA_IO_TIMEOUT="(4)"
962options SA_SPACE_TIMEOUT="(60)"
963options SA_REWIND_TIMEOUT="(2*60)"
964options SA_ERASE_TIMEOUT="(4*60)"
965options SA_1FM_AT_EOD
966
967# Optional timeout for the CAM processor target (pt) device
968# This is specified in seconds. The default is 60 seconds.
969options SCSI_PT_DEFAULT_TIMEOUT="60"
970
971# Optional enable of doing SES passthrough on other devices (e.g., disks)
972#
973# Normally disabled because a lot of newer SCSI disks report themselves
974# as having SES capabilities, but this can then clot up attempts to build
975# build a topology with the SES device that's on the box these drives
976# are in....
977options SES_ENABLE_PASSTHROUGH
978
984263bc
MD
979#####################################################################
980# MISCELLANEOUS DEVICES AND OPTIONS
981
982# The `pty' device usually turns out to be ``effectively mandatory'',
983# as it is required for `telnetd', `rlogind', `screen', `emacs', and
984# `xterm', among others.
985
986pseudo-device pty #Pseudo ttys
984263bc
MD
987pseudo-device gzip #Exec gzipped a.out's
988pseudo-device vn #Vnode driver (turns a file into a device)
989pseudo-device md #Memory/malloc disk
ab5617b3 990pseudo-device putter #for puffs and pud
984263bc
MD
991pseudo-device snp #Snoop device - to look at pty/vty/etc..
992pseudo-device ccd 4 #Concatenated disk driver
993
994# Configuring Vinum into the kernel is not necessary, since the kld
995# module gets started automatically when vinum(8) starts. This
996# device is also untested. Use at your own risk.
997#
998# The option VINUMDEBUG must match the value set in CFLAGS
999# in src/sbin/vinum/Makefile. Failure to do so will result in
1000# the following message from vinum(8):
1001#
1002# Can't get vinum config: Invalid argument
1003#
1004# see vinum(4) for more reasons not to use these options.
02bda9cd 1005pseudo-device vinum #Vinum concat/mirror/raid driver
984263bc
MD
1006options VINUMDEBUG #enable Vinum debugging hooks
1007
1008# Kernel side iconv library
1009options LIBICONV
1010
1011# Size of the kernel message buffer. Should be N * pagesize.
1012options MSGBUF_SIZE=40960
1013
984263bc
MD
1014#####################################################################
1015# HARDWARE DEVICE CONFIGURATION
1016
e842db4d 1017# ISA devices:
984263bc
MD
1018
1019#
1020# Mandatory ISA devices: isa, npx
1021#
1022device isa
1023
0e1cb2e2
JS
1024# ISA-PnP BIOS support
1025device pnpbios
1026
984263bc
MD
1027#
1028# Options for `isa':
1029#
1030# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
1031# interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
1032# This option breaks suspend/resume on some portables.
1033#
1034# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
1035# interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
fd7bbe3b 1036# Automatic EOI is documented not to work for the slave with the
984263bc
MD
1037# original i8259A, but it works for some clones and some integrated
1038# versions.
1039#
1040# MAXMEM specifies the amount of RAM on the machine; if this is not
fc29bf55 1041# specified, DragonFly will first read the amount of memory from the CMOS
984263bc
MD
1042# RAM, so the amount of memory will initially be limited to 64MB or 16MB
1043# depending on the BIOS. If the BIOS reports 64MB, a memory probe will
1044# then attempt to detect the installed amount of RAM. If this probe
1045# fails to detect >64MB RAM you will have to use the MAXMEM option.
1046# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
1047# be 131072 (128 * 1024).
1048#
1049# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
1050# reset the CPU for reboot. This is needed on some systems with broken
1051# keyboard controllers.
984263bc 1052
66cc79ca 1053options COMPAT_OLDISA #FreeBSD 2.2 and 3.x compatibility shims
984263bc
MD
1054options AUTO_EOI_1
1055#options AUTO_EOI_2
1056options MAXMEM="(128*1024)"
1057#options BROKEN_KEYBOARD_RESET
984263bc
MD
1058
1059# Enable support for the kernel PLL to use an external PPS signal,
1060# under supervision of [x]ntpd(8)
1061# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
1062
1063options PPS_SYNC
1064
984263bc
MD
1065# The keyboard controller; it controls the keyboard and the PS/2 mouse.
1066device atkbdc0 at isa? port IO_KBD
1067
1068# The AT keyboard
1069device atkbd0 at atkbdc? irq 1
1070
1071# Options for atkbd:
1072options ATKBD_DFLT_KEYMAP # specify the built-in keymap
1073makeoptions ATKBD_DFLT_KEYMAP="jp.106"
1074
1075# These options are valid for other keyboard drivers as well.
1076options KBD_DISABLE_KEYMAP_LOAD # refuse to load a keymap
1077options KBD_INSTALL_CDEV # install a CDEV entry in /dev
1078
1079# `flags' for atkbd:
1080# 0x01 Force detection of keyboard, else we always assume a keyboard
1081# 0x02 Don't reset keyboard, useful for some newer ThinkPads
1082# 0x03 Force detection and avoid reset, might help with certain
1083# dockingstations
1084# 0x04 Old-style (XT) keyboard support, useful for older ThinkPads
1085
1086# PS/2 mouse
1087device psm0 at atkbdc? irq 12
1088
1089# Options for psm:
1090options PSM_HOOKRESUME #hook the system resume event, useful
1091 #for some laptops
1092options PSM_RESETAFTERSUSPEND #reset the device at the resume event
1093
07cf6114
SW
1094device kbdmux # keyboard multiplexer
1095
984263bc
MD
1096# The video card driver.
1097device vga0 at isa?
1098
1099# Options for vga:
1100# Try the following option if the mouse pointer is not drawn correctly
1101# or font does not seem to be loaded properly. May cause flicker on
1102# some systems.
1103options VGA_ALT_SEQACCESS
1104
9c06b297
SW
1105options VGA_DEBUG=2 # enable VGA debug output
1106
fb5d6e26
SW
1107# If you experience problems switching back to 80x25 (or a derived mode),
1108# the following option might help.
1109#options VGA_KEEP_POWERON_MODE # use power-on settings for 80x25
1110
984263bc
MD
1111# If you can dispense with some vga driver features, you may want to
1112# use the following options to save some memory.
6fbe6059
SW
1113#options VGA_NO_FONT_LOADING # don't save/load font
1114#options VGA_NO_MODE_CHANGE # don't change video modes
984263bc 1115
984263bc
MD
1116# The following option probably won't work with the LCD displays.
1117options VGA_WIDTH90 # support 90 column modes
1118
1119# To include support for VESA video modes
1120options VESA
9c06b297 1121options VESA_DEBUG=2 # enable VESA debug output
d856dabc 1122
984263bc
MD
1123# Splash screen at start up! Screen savers require this too.
1124pseudo-device splash
1125
984263bc
MD
1126# The syscons console driver (sco color console compatible).
1127device sc0 at isa?
1128options MAXCONS=16 # number of virtual consoles
1129options SC_ALT_MOUSE_IMAGE # simplified mouse cursor in text mode
9c06b297 1130options SC_DEBUG_LEVEL=5 # enable debug output
984263bc
MD
1131options SC_DFLT_FONT # compile font in
1132makeoptions SC_DFLT_FONT=cp850
1133options SC_DISABLE_DDBKEY # disable `debug' key
1134options SC_DISABLE_REBOOT # disable reboot key sequence
1135options SC_HISTORY_SIZE=200 # number of history buffer lines
1136options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor
1137options SC_PIXEL_MODE # add support for the raster text mode
1138
1139# The following options will let you change the default colors of syscons.
1140options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)"
1141options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)"
1142options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
1143options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)"
1144
1145# If you have a two button mouse, you may want to add the following option
1146# to use the right button of the mouse to paste text.
1147options SC_TWOBUTTON_MOUSE
1148
1149# You can selectively disable features in syscons.
6fbe6059
SW
1150#options SC_NO_CUTPASTE
1151#options SC_NO_FONT_LOADING
1152#options SC_NO_HISTORY
1153#options SC_NO_SYSMOUSE
984263bc
MD
1154
1155#
1156# The Numeric Processing eXtension driver. In addition to this, you
1157# may configure a math emulator (see above). If your machine has a
1158# hardware FPU and the kernel configuration includes the npx device
1159# *and* a math emulator compiled into the kernel, the hardware FPU
1160# will be used, unless it is found to be broken or unless "flags" to
1161# npx0 includes "0x08", which requests preference for the emulator.
1162device npx0 at nexus? port IO_NPX flags 0x0 irq 13
1163
1164#
1165# `flags' for npx0:
1166# 0x01 don't use the npx registers to optimize bcopy.
1167# 0x02 don't use the npx registers to optimize bzero.
1168# 0x04 don't use the npx registers to optimize copyin or copyout.
1169# 0x08 use emulator even if hardware FPU is available.
1170# The npx registers are normally used to optimize copying and zeroing when
1171# all of the following conditions are satisfied:
1172# I586_CPU is an option
1173# the cpu is an i586 (perhaps not a Pentium)
1174# the probe for npx0 succeeds
1175# INT 16 exception handling works.
1176# Then copying and zeroing using the npx registers is normally 30-100% faster.
1177# The flags can be used to control cases where it doesn't work or is slower.
1178# Setting them at boot time using userconfig works right (the optimizations
1179# are not used until later in the bootstrap when npx0 is attached).
1180# Flag 0x08 automatically disables the i586 optimized routines.
1181#
1182
1183#
c67c071b 1184# SCSI host adapters: `bt'
984263bc
MD
1185#
1186# adv: All Narrow SCSI bus AdvanSys controllers.
1187# adw: Second Generation AdvanSys controllers including the ADV940UW.
984263bc 1188# ahc: Adaptec 274x/284x/294x
c67c071b 1189# aic: Adaptec 1460
984263bc
MD
1190# bt: Most Buslogic controllers
1191# ncv: NCR 53C500 based SCSI host adapters.
1192# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
1193# stg: TMC 18C30, 18C50 based ISA/PC Card SCSI host adapters.
1194#
1195# Note that the order is important in order for Buslogic cards to be
1196# probed correctly.
1197#
1198
1199device bt0 at isa? port IO_BT0
1200device adv0 at isa?
1201device adw
c67c071b 1202device aic
984263bc
MD
1203device ncv
1204device nsp
1205device stg0 at isa? port 0x140 irq 11
1206
1207#
1208# Adaptec FSA RAID controllers, including integrated DELL controller,
1209# the Dell PERC 2/QC and the HP NetRAID-4M
1210#
1211device aac
e9ae7f4f 1212options AAC_DEBUG
984263bc
MD
1213device aacp # SCSI Passthrough interface (optional, CAM required)
1214
1215#
1216# Compaq Smart RAID, Mylex DAC960 and AMI MegaRAID controllers. Only
1217# one entry is needed; the code will find and configure all supported
1218# controllers.
1219#
1220device ida # Compaq Smart RAID
1221device mlx # Mylex DAC960
1222device amr # AMI MegaRAID
1fcd0ba2 1223device amrp # SCSI Passthrough interface (optional, CAM req.)
2063b358 1224options AMR_DEBUG=3
249d29c8
SW
1225device mfi # LSI MegaRAID SAS
1226device mfip # LSI MegaRAID SAS passthrough, requires CAM
1227options MFI_DEBUG
984263bc
MD
1228
1229#
9c57a36d 1230# Areca RAID (CAM is required).
1901a965
SW
1231#
1232device arcmsr # Areca SATA II RAID
1233
1234#
35878b55
SW
1235# Highpoint RocketRAID 182x.
1236device hptmv
1237
1238#
b781666a
SW
1239# Highpoint RocketRaid 3xxx series SATA RAID
1240device hptiop
1241
1242#
984263bc
MD
1243# 3ware ATA RAID
1244#
1245device twe # 3ware ATA RAID
df54c2f9 1246device twa # 3ware 9000 series PATA/SATA RAID
4ad6607f 1247options TWA_DEBUG=10 # enable debug messages
33190b70 1248device tws # 3ware 9750 series SATA/SAS RAID
984263bc
MD
1249
1250#
e6f8991b
DR
1251# Promise Supertrack SX6000
1252#
1253device pst
1254
1255#
2114ec03
DR
1256# IBM ServeRAID
1257#
1258device ips
1259
a579f9bc
MD
1260# AHCI driver, this will override NATA for AHCI devices,
1261# both drivers may be included.
1262#
1263device ahci
1264
d856dabc 1265# SiI3124/3132 driver
7c5306ee
SW
1266#
1267device sili
1268
df75ede4
SW
1269# The 'NATA' driver supports all ATA and ATAPI devices.
1270# You only need one "device nata" for it to find all
1271# PCI ATA/ATAPI devices on modern machines.
1272#
f203b3ea
SW
1273device nata
1274device natadisk # ATA disk drives
1275device natapicd # ATAPI CD/DVD drives
1276device natapifd # ATAPI floppy drives
1277device natapist # ATAPI tape drives
1278device natapicam # ATAPI CAM layer emulation
1279device nataraid # support for ATA software RAID controllers
1280device natausb # ATA-over-USB support
984263bc 1281
df75ede4 1282# The following options are valid for the NATA driver:
984263bc
MD
1283#
1284# ATA_STATIC_ID: controller numbering is static (like the old driver)
1285# else the device numbers are dynamically allocated.
1286options ATA_STATIC_ID
1287
984263bc 1288# For older non-PCI systems, these are the lines to use:
df75ede4
SW
1289#
1290#device nata0 at isa? port IO_WD1 irq 14
1291#device nata1 at isa? port IO_WD2 irq 15
984263bc
MD
1292
1293#
984263bc
MD
1294# Standard floppy disk controllers: `fdc' and `fd'
1295#
1296device fdc0 at isa? port IO_FD1 irq 6 drq 2
1297#
1298# FDC_DEBUG enables floppy debugging. Since the debug output is huge, you
1299# gotta turn it actually on by setting the variable fd_debug with DDB,
1300# however.
1301options FDC_DEBUG
1302
1303device fd0 at fdc0 drive 0
1304device fd1 at fdc0 drive 1
1305
984263bc 1306#
984263bc
MD
1307# sio: serial ports (see sio(4))
1308
984263bc
MD
1309device sio0 at isa? port IO_COM1 flags 0x10 irq 4
1310
1311#
1312# `flags' for serial drivers that support consoles (only for sio now):
1313# 0x10 enable console support for this unit. The other console flags
1314# are ignored unless this is set. Enabling console support does
1315# not make the unit the preferred console - boot with -h or set
1316# the 0x20 flag for that. Currently, at most one unit can have
1317# console support; the first one (in config file order) with
1318# this flag set is preferred. Setting this flag for sio0 gives
1319# the old behaviour.
1320# 0x20 force this unit to be the console (unless there is another
1321# higher priority console). This replaces the COMCONSOLE option.
1322# 0x40 reserve this unit for low level console operations. Do not
1323# access the device in any normal way.
1324# 0x80 use this port for serial line gdb support in ddb.
1325#
1326# PnP `flags' (set via userconfig using pnp x flags y)
1327# 0x1 disable probing of this device. Used to prevent your modem
1328# from being attached as a PnP modem.
1329#
1330
1331# Options for serial drivers that support consoles (only for sio now):
1332options BREAK_TO_DEBUGGER #a BREAK on a comconsole goes to
1333 #DDB, if available.
1334options CONSPEED=115200 # speed for serial console
1335 # (default 9600)
1336
1337# Solaris implements a new BREAK which is initiated by a character
1338# sequence CR ~ ^b which is similar to a familiar pattern used on
1339# Sun servers by the Remote Console.
1340options ALT_BREAK_TO_DEBUGGER
1341
1342# Options for sio:
1343options COM_ESP #code for Hayes ESP
1344options COM_MULTIPORT #code for some cards with shared IRQs
1345
1346# Other flags for sio that aren't documented in the man page.
1347# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for
1348# ST16650A-compatible UARTs.
1349
1350# PCI Universal Communications driver
1351# Supports various single and multi port PCI serial cards. Maybe later
1352# also the parallel ports on combination serial/parallel cards. New cards
fc29bf55 1353# can be added in src/sys/dev/misc/puc/pucdata.c.
984263bc 1354device puc
984263bc
MD
1355
1356#
ad9f8794 1357# Network interfaces: `ed', `ep', `is', `lnc'
984263bc
MD
1358#
1359# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver (requires sppp)
984263bc 1360# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters
984263bc 1361# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
984263bc
MD
1362# ep: 3Com 3C509
1363# ex: Intel EtherExpress Pro/10 and other i82595-based adapters
1364# fe: Fujitsu MB86960A/MB86965A Ethernet
984263bc 1365# lnc: Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 & Am79C960)
984263bc
MD
1366# sbni: Granch SBNI12-xx adapters
1367# sbsh: Granch SBNI16 SHDSL modem PCI adapters
1368# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
984263bc
MD
1369# wi: Lucent WaveLAN/IEEE 802.11 PCMCIA adapters. Note: this supports both
1370# the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
1371# bridge with a PCMCIA adapter plugged into it.
1372# an: Aironet 4500/4800 802.11 wireless adapters. Supports the PCMCIA,
1373# PCI and ISA varieties.
1374# xe: Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller.
984263bc
MD
1375#
1376device ar0 at isa? port 0x300 irq 10 iomem 0xd0000
984263bc 1377device cs0 at isa? port 0x300
984263bc 1378device ed0 at isa? port 0x280 irq 5 iomem 0xd8000
984263bc
MD
1379device ep
1380device ex
1381device fe0 at isa? port 0x300
984263bc 1382device lnc0 at isa? port 0x280 irq 10 drq 0
984263bc 1383device sbni0 at isa? port 0x210 irq 5 flags 0xefdead
3fabb142 1384device sln
8b1bfc35 1385device sr
984263bc 1386device sn0 at isa? port 0x300 irq 10
d8a8ea86
JR
1387
1388# Wlan support is mandatory for some wireless LAN devices.
98091aa8
SW
1389options IEEE80211_DEBUG #enable debugging msgs
1390options IEEE80211_AMPDU_AGE #age frames in AMPDU reorder q's
1391options IEEE80211_SUPPORT_MESH #enable 802.11s D3.0 support
1392options IEEE80211_SUPPORT_TDMA #enable TDMA support
841ab66c
SZ
1393device wlan # 802.11 support
1394device wlan_acl # 802.11 MAC-based access control for AP
1395device wlan_ccmp # 802.11 CCMP support
1396device wlan_tkip # 802.11 TKIP support
1397device wlan_wep # 802.11 WEP support
1398device wlan_xauth # 802.11 WPA or 802.1x authentication for AP
e15de849 1399device wlan_amrr # 802.11 AMRR TX rate control algorithm
d8a8ea86 1400device an # Aironet Communications 4500/4800
54170488 1401device ath # Atheros AR521x
e0f55c69 1402options AH_SUPPORT_AR5416
54170488
SW
1403device ath_hal # Atheros Hardware Access Layer
1404#device ath_rate_amrr # Atheros AMRR TX rate control algorithm
1405#device ath_rate_onoe # Atheros Onoe TX rate control algorithm
1406device ath_rate_sample # Atheros Sample TX rate control algorithm
1407options ATH_DEBUG # turn on debugging output (see hw.ath.debug)
1408options ATH_DIAGAPI # diagnostic interface to the HAL
1409options ATH_RXBUF=80 # number of RX buffers to allocate
1410options ATH_TXBUF=400 # number of TX buffers to allocate
5c32bcdd 1411#device iwl # Intel PRO/Wireless 2100
1d97534a 1412device iwi # Intel PRO/Wireless 2200BG/2915ABG
8f13cc2d 1413device iwn # Intel WiFi Link 4965/1000/5000/5150/5300/6000/6050
d8a8ea86 1414device wi # WaveLAN/IEEE, PRISM-II, Spectrum24 802.11DS
5c32bcdd
RP
1415#device rtw # RealTek 8180
1416#device acx # TI ACX100/ACX111.
d8a8ea86 1417device xe # Xircom PCMCIA
5fdff524 1418device ral # Ralink Technology 802.11 wireless NIC
f37bbeda 1419device wpi
984263bc 1420
da226b53
SW
1421# IEEE 802.11 adapter firmware modules
1422
1423# iwifw: Intel PRO/Wireless 2200BG/2225BG/2915ABG firmware
8f13cc2d 1424# iwnfw: Intel WiFi Link 4965/1000/5000/5150/5300/6000/6050
da226b53
SW
1425# ralfw: Ralink Technology RT25xx and RT26xx firmware
1426# wpifw: Intel 3945ABG Wireless LAN Controller firmware
1427
1428device iwifw
8f13cc2d 1429device iwnfw
da226b53
SW
1430device ralfw
1431device wpifw
1432
22012581
SW
1433# Bluetooth Protocols
1434device bluetooth
1435
984263bc
MD
1436#
1437# ATM related options
1438#
1439# The `en' device provides support for Efficient Networks (ENI)
1440# ENI-155 PCI midway cards, and the Adaptec 155Mbps PCI ATM cards (ANA-59x0).
1441#
1442# atm pseudo-device provides generic atm functions and is required for
1443# atm devices.
1444# NATM enables the netnatm protocol family that can be used to
1445# bypass TCP/IP.
1446#
1447# the current driver supports only PVC operations (no atm-arp, no multicast).
1448# for more details, please read the original documents at
1449# http://www.ccrc.wustl.edu/pub/chuck/tech/bsdatm/bsdatm.html
1450#
1451pseudo-device atm
1452device en
1453options NATM #native ATM
1454
e798f335 1455# Sound drivers
984263bc
MD
1456#
1457# The flags of the device tells the device a bit more info about the
1458# device that normally is obtained through the PnP interface.
1459# bit 2..0 secondary DMA channel;
1460# bit 4 set if the board uses two dma channels;
1461# bit 15..8 board type, overrides autodetection; leave it
1462# zero if don't know what to put in (and you don't,
1463# since this is unsupported at the moment...).
1464#
e798f335
JS
1465# This driver will use the new PnP code if it's available. You might
1466# need PNPBIOS for ISA devices.
984263bc 1467#
984263bc
MD
1468# If you have a GUS-MAX card and want to use the CS4231 codec on the
1469# card the drqs for the gus max must be 8 bit (1, 2, or 3).
1470#
1471# If you would like to use the full duplex option on the gus, then define
1472# flags to be the ``read dma channel''.
1473#
984263bc 1474
558a398b 1475# Basic sound card support:
984263bc 1476device pcm
6ceb4487 1477# For PnP/PCI sound cards:
e2339ccc 1478device "snd_ad1816"
558a398b
SS
1479device "snd_als4000"
1480device "snd_atiixp"
1481device "snd_cmi"
1482device "snd_cs4281"
1483device "snd_csa"
1484device "snd_ds1"
1485device "snd_emu10k1"
1486device "snd_es137x"
e2339ccc 1487device "snd_ess"
558a398b 1488device "snd_fm801"
b9ad643d 1489device "snd_gusc"
e2339ccc 1490device "snd_hda"
558a398b
SS
1491device "snd_ich"
1492device "snd_maestro"
1493device "snd_maestro3"
e2339ccc 1494device "snd_mss"
558a398b 1495device "snd_neomagic"
e2339ccc
SW
1496device "snd_sb16"
1497device "snd_sb8"
1498device "snd_sbc"
558a398b
SS
1499device "snd_solo"
1500device "snd_t4dwave"
1501device "snd_via8233"
1502device "snd_via82c686"
1503device "snd_vibes"
e798f335 1504# For non-pnp sound cards:
558a398b 1505device pcm0 at isa? irq 10 drq 1 flags 0x0
e2339ccc 1506# USB
558a398b 1507device "snd_uaudio"
984263bc 1508
984263bc
MD
1509#
1510# Miscellaneous hardware:
1511#
984263bc 1512# apm: Laptop Advanced Power Management (experimental)
984263bc
MD
1513# bktr: Brooktree bt848/848a/849a/878/879 video capture and TV Tuner board
1514# cy: Cyclades serial driver
e147701e 1515# ecc: ECC memory controller
984263bc 1516# joy: joystick
d912a10e 1517# nrp: Comtrol Rocketport(ISA) - single card
984263bc
MD
1518# si: Specialix SI/XIO 4-32 port terminal multiplexor
1519# spic: Sony Programmable I/O controller (VAIO notebooks)
1520# stl: Stallion EasyIO and EasyConnection 8/32 (ISA and PCI), EasyConnection 8/64 PCI
e842db4d 1521# stli: Stallion EasyConnection 8/64 ISA, ONboard, Brumby (intelligent)
984263bc
MD
1522# nmdm: nullmodem terminal driver (see nmdm(4))
1523
1524# Notes on APM
1525# The flags takes the following meaning for apm0:
1526# 0x0020 Statclock is broken.
1527# If apm is omitted, some systems require sysctl -w kern.timecounter.method=1
1528# for correct timekeeping.
1529
984263bc
MD
1530# Notes on the Comtrol Rocketport driver:
1531#
d912a10e 1532# The exact values used for nrp0 depend on how many boards you have
984263bc
MD
1533# in the system. The manufacturer's sample configs are listed as:
1534#
1535# Comtrol Rocketport ISA single card
d912a10e 1536# device nrp0 at isa? port 0x280
984263bc
MD
1537#
1538# If instead you have two ISA cards, one installed at 0x100 and the
1539# second installed at 0x180, then you should add the following to
1540# your kernel configuration file:
1541#
d912a10e
SW
1542# device nrp0 at isa? port 0x100
1543# device nrp1 at isa? port 0x180
984263bc
MD
1544#
1545# For 4 ISA cards, it might be something like this:
1546#
d912a10e
SW
1547# device nrp0 at isa? port 0x180
1548# device nrp1 at isa? port 0x100
1549# device nrp2 at isa? port 0x340
1550# device nrp3 at isa? port 0x240
984263bc
MD
1551#
1552# And for PCI cards, you only need say:
1553#
d912a10e 1554# device nrp
984263bc 1555
984263bc
MD
1556# Notes on the Specialix SI/XIO driver:
1557# **This is NOT a Specialix supported Driver!**
1558# The host card is memory, not IO mapped.
1559# The Rev 1 host cards use a 64K chunk, on a 32K boundary.
1560# The Rev 2 host cards use a 32K chunk, on a 32K boundary.
1561# The cards can use an IRQ of 11, 12 or 15.
1562
1563# Notes on the Stallion stl and stli drivers:
fc29bf55 1564# See src/sys/platform/pc32/isa/README.stl for complete instructions.
984263bc
MD
1565# This is version 2.0.0, unsupported by Stallion.
1566# The stl driver has a secondary IO port hard coded at 0x280. You need
fc29bf55 1567# to change src/sys/dev/serial/stl/stallion.c if you reconfigure this on the boards.
984263bc
MD
1568# The "flags" and "iosiz" settings on the stli driver depend on the board:
1569# EasyConnection 8/64 ISA: flags 23 iosiz 0x1000
984263bc 1570# ONboard ISA: flags 4 iosiz 0x10000
984263bc
MD
1571# Brumby: flags 2 iosiz 0x4000
1572# Stallion: flags 1 iosiz 0x10000
1573# For the PCI cards, "device stl" will suffice.
1574
984263bc 1575device apm0
e147701e 1576device ecc
984263bc
MD
1577device joy0 at isa? port IO_GAME
1578device cy0 at isa? irq 10 iomem 0xd4000 iosiz 0x2000
49ec7c3b 1579device nrp
984263bc 1580device si0 at isa? iomem 0xd0000 irq 12
984263bc
MD
1581device spic0 at isa? irq 0 port 0x10a0
1582device stl0 at isa? port 0x2a0 irq 10
1583device stli0 at isa? port 0x2a0 iomem 0xcc000 flags 23 iosiz 0x1000
984263bc
MD
1584# nullmodem terminal driver
1585device nmdm
1586
984263bc 1587# The `ahc' device provides support for the Adaptec 274X and 284X
e842db4d 1588# adapters.
984263bc 1589device ahc
984263bc
MD
1590
1591# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1592# controllers that have it configured only if this option is set. Unfortunately,
1593# this doesn't work on some motherboards, which prevents it from being the
1594# default.
1595options AHC_ALLOW_MEMIO
1596
1597# The adw driver will attempt to use memory mapped I/O for all PCI
1598# controllers that have it configured only if this option is set.
1599options ADW_ALLOW_MEMIO
1600
984263bc
MD
1601#
1602# PCI devices & PCI options:
1603#
1604# The main PCI bus device is `pci'. It provides auto-detection and
1605# configuration support for all devices on the PCI bus, using either
1606# configuration mode defined in the PCI specification.
1607
1608device pci
1609
1610# PCI options
1611#
dc5a7bd2 1612options COMPAT_OLDPCI #FreeBSD 2.2 and 3.x compatibility shims
984263bc
MD
1613
1614# AGP GART support
1615#
1616device agp
1617
1618
1619# The `ahc' device provides support for the Adaptec 29/3940(U)(W)
1620# and motherboard based AIC7870/AIC7880 adapters.
4ad6607f
SW
1621options AHC_DEBUG
1622options AHC_DEBUG_OPTS=0xffffffff
1623options AHC_REG_PRETTY_PRINT
1624options AHC_TMODE_ENABLE
984263bc
MD
1625#
1626# The 'ahd' device provides support for the Adaptec 79xx Ultra320
1627# SCSI adapters. Options are documented in the ahd(4) manpage:
1628options AHD_DEBUG
1629options AHD_DEBUG_OPTS=0xffffffff
1630options AHD_REG_PRETTY_PRINT
1631#options AHD_TMODE_ENABLE=0xff
1632#
1633# The `amd' device provides support for the AMD 53C974 SCSI host
1634# adapter chip as found on devices such as the Tekram DC-390(T).
1635#
1636# The `bge' device provides support for gigabit ethernet adapters
3f625015 1637# based on the Broadcom BCM570x family of controllers, including the
984263bc
MD
1638# 3Com 3c996-T, the Netgear GA302T, the SysKonnect SK-9D21 and SK-9D41,
1639# and the embedded gigE NICs on Dell PowerEdge 2550 servers.
1640#
1641# The `ncr' device provides support for the NCR 53C810 and 53C825
1642# self-contained SCSI host adapters.
1643#
1644# The `isp' device provides support for the Qlogic ISP 1020, 1040
1645# nd 1040B PCI SCSI host adapters, ISP 1240 Dual Ultra SCSI,
1646# ISP 1080 and 1280 (Dual) Ultra2, ISP 12160 Ultra3 SCSI, as well as
1647# the Qlogic ISP 2100 and ISP 2200 Fibre Channel Host Adapters.
1648#
1649# The `dc' device provides support for PCI fast ethernet adapters
1650# based on the DEC/Intel 21143 and various workalikes including:
1651# the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics
1652# AX88140A and AX88141, the Davicom DM9100 and DM9102, the Lite-On
1653# 82c168 and 82c169 PNIC, the Lite-On/Macronix LC82C115 PNIC II
1654# and the Macronix 98713/98713A/98715/98715A/98725 PMAC. This driver
1655# replaces the old al, ax, dm, pn and mx drivers. List of brands:
d856dabc
TN
1656# Digital DE500-BA, Kingston KNE100TX, D-Link DFE-570TX, SOHOware SFA110,
1657# SVEC PN102-TX, CNet Pro110B, 120A, and 120B, Compex RL100-TX,
984263bc
MD
1658# LinkSys LNE100TX, LNE100TX V2.0, Jaton XpressNet, Alfa Inc GFC2204,
1659# KNE110TX.
1660#
1661# The `de' device provides support for the Digital Equipment DC21040
1662# self-contained Ethernet adapter.
1663#
1664# The `em' device provides support for the Intel Pro/1000 Family of Gigabit
1665# adapters (82542, 82543, 82544, 82540).
1666#
d217d4d9
SZ
1667# The `et' device provides support for the Agere ET1310 10/100/1000 PCIe
1668# adapters.
1669#
984263bc
MD
1670# The `fxp' device provides support for the Intel EtherExpress Pro/100B
1671# PCI Fast Ethernet adapters.
1672#
984263bc
MD
1673# The 'lge' device provides support for PCI gigabit ethernet adapters
1674# based on the Level 1 LXT1001 NetCellerator chipset. This includes the
1675# D-Link DGE-500SX, SMC TigerCard 1000 (SMC9462SX), and some Addtron cards.
1676#
1677# The 'my' device provides support for the Myson MTD80X and MTD89X PCI
1678# Fast Ethernet adapters.
1679#
1680# The 'nge' device provides support for PCI gigabit ethernet adapters
1681# based on the National Semiconductor DP83820 and DP83821 chipset. This
1682# includes the SMC EZ Card 1000 (SMC9462TX), D-Link DGE-500T, Asante
1683# FriendlyNet GigaNIX 1000TA and 1000TPC, the Addtron AEG320T, the
1684# LinkSys EG1032 and EG1064, the Surecom EP-320G-TX and the Netgear GA622T.
1685#
1686# The 'pcn' device provides support for PCI fast ethernet adapters based
1687# on the AMD Am79c97x chipsets, including the PCnet/FAST, PCnet/FAST+,
1688# PCnet/PRO and PCnet/Home. These were previously handled by the lnc
1689# driver (and still will be if you leave this driver out of the kernel).
1690#
44ac28ea
JS
1691# Te 're' device provides support for PCI GigaBit ethernet adapters based
1692# on the RealTek 8169 chipset. It also supports the 8139C+ and is the
56be8454 1693# preferred driver for that chip.
44ac28ea 1694#
984263bc
MD
1695# The 'rl' device provides support for PCI fast ethernet adapters based
1696# on the RealTek 8129/8139 chipset. Note that the RealTek driver defaults
1697# to using programmed I/O to do register accesses because memory mapped
1698# mode seems to cause severe lockups on SMP hardware. This driver also
1699# supports the Accton EN1207D `Cheetah' adapter, which uses a chip called
1700# the MPX 5030/5038, which is either a RealTek in disguise or a RealTek
1701# workalike. Note that the D-Link DFE-530TX+ uses the RealTek chipset
1702# and is supported by this driver, not the 'vr' driver.
1703#
1704# The 'sf' device provides support for Adaptec Duralink PCI fast
1705# ethernet adapters based on the Adaptec AIC-6915 "starfire" controller.
1706# This includes dual and quad port cards, as well as one 100baseFX card.
1707# Most of these are 64-bit PCI devices, except for one single port
1708# card which is 32-bit.
1709#
1710# The 'ste' device provides support for adapters based on the Sundance
1711# Technologies ST201 PCI fast ethernet controller. This includes the
1712# D-Link DFE-550TX.
1713#
1714# The 'sis' device provides support for adapters based on the Silicon
1715# Integrated Systems SiS 900 and SiS 7016 PCI fast ethernet controller
1716# chips.
1717#
1718# The 'sk' device provides support for the SysKonnect SK-984x series
1719# PCI gigabit ethernet NICs. This includes the SK-9841 and SK-9842
1720# single port cards (single mode and multimode fiber) and the
1721# SK-9843 and SK-9844 dual port cards (also single mode and multimode).
1722# The driver will autodetect the number of ports on the card and
1723# attach each one as a separate network interface.
1724#
1725# The 'ti' device provides support for PCI gigabit ethernet NICs based
1726# on the Alteon Networks Tigon 1 and Tigon 2 chipsets. This includes the
1727# Alteon AceNIC, the 3Com 3c985, the Netgear GA620 and various others.
1728# Note that you will probably want to bump up NMBCLUSTERS a lot to use
1729# this driver.
1730#
1731# The 'tl' device provides support for the Texas Instruments TNETE100
1732# series 'ThunderLAN' cards and integrated ethernet controllers. This
1733# includes several Compaq Netelligent 10/100 cards and the built-in
1734# ethernet controllers in several Compaq Prosignia, Proliant and
1735# Deskpro systems. It also supports several Olicom 10Mbps and 10/100
1736# boards.
1737#
1738# The `tx' device provides support for the SMC 9432 TX, BTX and FTX cards.
1739#
1740# The `txp' device provides support for the 3Com 3cR990 "Typhoon"
1741# 10/100 adapters.
1742#
1743# The `vr' device provides support for various fast ethernet adapters
1744# based on the VIA Technologies VT3043 `Rhine I' and VT86C100A `Rhine II'
d856dabc 1745# chips, including the D-Link DFE530TX (see 'rl' for DFE530TX+), the Hawking
984263bc
MD
1746# Technologies PN102TX, and the AOpen/Acer ALN-320.
1747#
1748# The `vx' device provides support for the 3Com 3C590 and 3C595
1749# early support
1750#
1751# The `wb' device provides support for various fast ethernet adapters
1752# based on the Winbond W89C840F chip. Note: this is not the same as
1753# the Winbond W89C940F, which is an NE2000 clone.
1754#
984263bc
MD
1755# The `xl' device provides support for the 3Com 3c900, 3c905 and
1756# 3c905B (Fast) Etherlink XL cards and integrated controllers. This
1757# includes the integrated 3c905B-TX chips in certain Dell Optiplex and
1758# Dell Precision desktop machines and the integrated 3c905-TX chips
1759# in Dell Latitude laptop docking stations.
1760#
984263bc
MD
1761# The 'bktr' device is a PCI video capture device using the Brooktree
1762# bt848/bt848a/bt849a/bt878/bt879 chipset. When used with a TV Tuner it forms a
1763# TV card, eg Miro PC/TV, Hauppauge WinCast/TV WinTV, VideoLogic Captivator,
1764# Intel Smart Video III, AverMedia, IMS Turbo, FlyVideo.
1765#
1766# options OVERRIDE_CARD=xxx
1767# options OVERRIDE_TUNER=xxx
1768# options OVERRIDE_MSP=1
1769# options OVERRIDE_DBX=1
1770# These options can be used to override the auto detection
fc29bf55 1771# The current values for xxx are found in src/sys/dev/video/bktr/bktr_card.h
984263bc
MD
1772# Using sysctl(8) run-time overrides on a per-card basis can be made
1773#
4ad6607f 1774# options BKTR_SYSTEM_DEFAULT=BROOKTREE_PAL
984263bc 1775# or
4ad6607f 1776# options BKTR_SYSTEM_DEFAULT=BROOKTREE_NTSC
984263bc
MD
1777# Specifes the default video capture mode.
1778# This is required for Dual Crystal (28&35Mhz) boards where PAL is used
1779# to prevent hangs during initialisation. eg VideoLogic Captivator PCI.
1780#
1781# options BKTR_USE_PLL
1782# PAL or SECAM users who have a 28Mhz crystal (and no 35Mhz crystal)
1783# must enable PLL mode with this option. eg some new Bt878 cards.
1784#
1785# options BKTR_GPIO_ACCESS
1786# This enable IOCTLs which give user level access to the GPIO port.
1787#
1788# options BKTR_NO_MSP_RESET
1789# Prevents the MSP34xx reset. Good if you initialise the MSP in another OS first
1790#
1791# options BKTR_430_FX_MODE
1792# Switch Bt878/879 cards into Intel 430FX chipset compatibility mode.
1793#
1794# options BKTR_SIS_VIA_MODE
1795# Switch Bt878/879 cards into SIS/VIA chipset compatibility mode which is
1796# needed for some old SiS and VIA chipset motherboards.
1797# This also allows Bt878/879 chips to work on old OPTi (<1997) chipset
1798# motherboards and motherboards with bad or incomplete PCI 2.1 support.
1799# As a rough guess, old = before 1998
1800#
a35cc233
JS
1801# options BKTR_NEW_MSP34XX_DRIVER
1802# Use new, more complete initialization scheme for the msp34* soundchip.
1803# Should fix stereo autodetection if the old driver does only output
1804# mono sound.
1805#
4ad6607f
SW
1806# options BKTR_OVERRIDE_CARD=xxx
1807# options BKTR_OVERRIDE_DBX=xxx
1808# options BKTR_OVERRIDE_MSP=xxx
1809# options BKTR_OVERRIDE_TUNER=xxx
1810# These options can be used to select a specific device, regardless of
1811# the autodetection and i2c device checks (see comments in bktr_card.c).
1812#
984263bc
MD
1813device ahc # AHA2940 and onboard AIC7xxx devices
1814device ahd # AIC79xx devices
1815device amd # AMD 53C974 (Tekram DC-390(T))
1816device isp # Qlogic family
1817device ispfw # Firmware for QLogic HBAs
07ee0d26 1818device mpt # LSI '909 FC adapters
ad8cf91c 1819device mps # LSI-Logic MPT-Fusion 2
984263bc
MD
1820device ncr # NCR/Symbios Logic
1821device sym # NCR/Symbios Logic (newer chipsets)
1822device trm # Tekram DC395U/UW/F and DC315U
1823#
1824# Options for ISP
1825#
1826# ISP_TARGET_MODE - enable target mode operation
1827#options ISP_TARGET_MODE=1
1828
47a69c3f 1829# Options used in dev/disk/sym/ (Symbios SCSI driver).
984263bc
MD
1830#options SYM_SETUP_LP_PROBE_MAP #-Low Priority Probe Map (bits)
1831 # Allows the ncr to take precedence
1832 # 1 (1<<0) -> 810a, 860
1833 # 2 (1<<1) -> 825a, 875, 885, 895
d856dabc 1834 # 4 (1<<2) -> 895a, 896, 1510d
984263bc
MD
1835#options SYM_SETUP_SCSI_DIFF #-HVD support for 825a, 875, 885
1836 # disabled:0 (default), enabled:1
1837#options SYM_SETUP_PCI_PARITY #-PCI parity checking
1838 # disabled:0, enabled:1 (default)
1839#options SYM_SETUP_MAX_LUN #-Number of LUNs supported
1840 # default:8, range:[1..64]
1841
1842
1843# MII bus support is required for some PCI 10/100 ethernet NICs,
1844# namely those which use MII-compliant transceivers or implement
3f625015 1845# transceiver control interfaces that operate like an MII. Adding
984263bc
MD
1846# "device miibus0" to the kernel config pulls in support for
1847# the generic miibus API and all of the PHY drivers, including a
1848# generic one for PHYs that aren't specifically handled by an
1849# individual driver.
1850device miibus
1851
1852# PCI Ethernet NICs that use the common MII bus controller code.
e8e8c780 1853device ae # Attansic/Atheros L2 Fast Ethernet
da7d5358 1854device alc # Atheros AR8131/AR8132
8466ae84 1855device ale # Atheros AR8121/AR8113/AR8114
bcf4d50c 1856device age # Attansic/Atheros L1 Gigabit Ethernet
43c2aeb0 1857device bce # Broadcom NetXtreme II Gigabit Ethernet
7f186839 1858device bfe # Broadcom BCM440x 10/100 Ethernet
6c8d8ecc 1859device bnx # Broadcom NetXtreme 5718/57785 Gigabit Ethernet
984263bc
MD
1860device dc # DEC/Intel 21143 and various workalikes
1861device fxp # Intel EtherExpress PRO/100B (82557, 82558)
1862device my # Myson Fast Ethernet (MTD80X, MTD89X)
1863device pcn # AMD Am79C97x PCI 10/100 NICs
44ac28ea 1864device re # RealTek 8139C+/8169
984263bc
MD
1865device rl # RealTek 8129/8139
1866device sbsh # Granch SBNI16 SHDSL modem
1867device sf # Adaptec AIC-6915 (``Starfire'')
1868device sis # Silicon Integrated Systems SiS 900/SiS 7016
1869device ste # Sundance ST201 (D-Link DFE-550TX)
1870device tl # Texas Instruments ThunderLAN
1871device tx # SMC EtherPower II (83c17x ``EPIC'')
13bca4c6 1872device vge # VIA 612x GigE
984263bc
MD
1873device vr # VIA Rhine, Rhine II
1874device wb # Winbond W89C840F
1875device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
1876
1877# PCI Ethernet NICs.
1878device de # DEC/Intel DC21x4x (``Tulip'')
1879device txp # 3Com 3cR990 (``Typhoon'')
1880device vx # 3Com 3c590, 3c595 (``Vortex'')
1881
1882# Gigabit Ethernet NICs.
1883device bge # Broadcom BCM570x (``Tigon III'')
5330213c
SZ
1884device em # Intel Pro/1000 (8254x,8257x)
1885 # Requires ig_hal
1886device emx # Intel Pro/1000 (8257{1,2,3,4})
1887 # Requires ig_hal
37be18d6
SZ
1888device igb # Intel Pro/1000 (82575, 82576, 82580, i350)
1889 # Requires ig_hal
9c80d176 1890device ig_hal # Intel Pro/1000 hardware abstraction layer
9407f759 1891device ixgbe # Intel PRO/10GbE PCIE Ethernet Family
d217d4d9 1892device et # Agere ET1310 10/100/1000 Ethernet
984263bc 1893device lge # Level 1 LXT1001 (``Mercury'')
d47346da 1894device mxge # Myricom Myri-10G 10GbE NIC
ffb8a862 1895device nfe # nVidia nForce2/3 MCP04/51/55 CK804
984263bc 1896device nge # NatSemi DP83820 and DP83821
0db5ca13 1897device sk # SysKonnect GEnesis, LinkSys EG1023, D-Link
984263bc 1898device ti # Alteon (``Tigon I'', ``Tigon II'')
1da2c9db 1899device stge # Sundance/Tamarack TC9021 Gigabit Ethernet
2d586421 1900device msk # Marvell/SysKonnect Yukon II Gigabit Ethernet
e7a389e6 1901device jme # JMicron Gigabit/Fast Ethernet
984263bc 1902
984263bc
MD
1903# Brooktree driver has been ported to the new I2C framework. Thus,
1904# you'll need to have the following 3 lines in the kernel config.
1905# device smbus
1906# device iicbus
1907# device iicbb
1908# The iic and smb devices are only needed if you want to control other
1909# I2C slaves connected to the external connector of some cards.
1910#
1911device bktr
a35cc233 1912options BKTR_NEW_MSP34XX_DRIVER
984263bc 1913
e9afadfd
SW
1914# WinTV PVR-250/350 driver
1915device cxm
1916
984263bc
MD
1917#
1918# PCCARD/PCMCIA
1919#
666d2603 1920# pccard: pccard slots
6f535fd5 1921# cardbus/cbb: cardbus bridge
666d2603
JS
1922device pccard
1923device cardbus
1924device cbb
984263bc
MD
1925
1926#
1927# Laptop/Notebook options:
1928#
1929# See also:
1930# apm under `Miscellaneous hardware'
1931# above.
1932
1933# For older notebooks that signal a powerfail condition (external
1934# power supply dropped, or battery state low) by issuing an NMI:
1935
1936options POWERFAIL_NMI # make it beep instead of panicing
1937
1938#
d6644679
SW
1939# MMC/SD
1940#
1941# mmc MMC/SD bus
1942# mmcsd MMC/SD memory card
1943# sdhci Generic PCI SD Host Controller
1944#
1945device mmc
1946device mmcsd
1947device sdhci
1948
1949#
984263bc
MD
1950# SMB bus
1951#
1952# System Management Bus support is provided by the 'smbus' device.
1953# Access to the SMBus device is via the 'smb' device (/dev/smb*),
1954# which is a child of the 'smbus' device.
1955#
1956# Supported devices:
1957# smb standard io through /dev/smb*
1958#
1959# Supported SMB interfaces:
1960# iicsmb I2C to SMB bridge with any iicbus interface
1961# bktr brooktree848 I2C hardware interface
1962# intpm Intel PIIX4 (82371AB, 82443MX) Power Management Unit
1963# alpm Acer Aladdin-IV/V/Pro2 Power Management Unit
1964# ichsmb Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA)
1965# viapm VIA VT82C586B,596,686A and VT8233 SMBus controllers
1966# amdpm AMD 756 Power Management Unit
6f4e0622 1967# amdsmb AMD 8111 SMBus 2.0 Controller
984263bc
MD
1968#
1969device smbus # Bus support, required for smb below.
1970
1971device intpm
1972device alpm
1973device ichsmb
1974device viapm
1975device amdpm
6f4e0622 1976device amdsmb
984263bc
MD
1977
1978device smb
1979
1980#
1981# I2C Bus
1982#
1983# Philips i2c bus support is provided by the `iicbus' device.
1984#
1985# Supported devices:
1986# ic i2c network interface
1987# iic i2c standard io
1988# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
1989#
1990# Supported interfaces:
1991# pcf Philips PCF8584 ISA-bus controller
1992# bktr brooktree848 I2C software interface
1993#
1994# Other:
1995# iicbb generic I2C bit-banging code (needed by lpbb, bktr)
1996#
1997device iicbus # Bus support, required for ic/iic/iicsmb below.
1998device iicbb
1999
2000device ic
2001device iic
2002device iicsmb # smb over i2c bridge
2003
2004device pcf0 at isa? port 0x320 irq 5
2005
3a514b87
HT
2006# Intel Core and newer CPUs on-die digital thermal sensor support
2007device coretemp
2008
39990074
CM
2009# AMD Family 0Fh, 10h and 11h temperature sensors
2010device kate
2011device km
2012
23e32507
CM
2013# ThinkPad Active Protection System accelerometer
2014device aps0 at isa? port 0x1600
2015
80c3f755 2016# HW monitoring devices lm(4), it(4) and nsclpcsio.
1d03db02
HT
2017device lm0 at isa? port 0x290
2018device it0 at isa? port 0x290
2019device it1 at isa? port 0xc00
2020device it2 at isa? port 0xd00
fe2da6de 2021device it3 at isa? port 0x228
80c3f755
AH
2022device nsclpcsio0 at isa? port 0x2e
2023device nsclpcsio1 at isa? port 0x4e
f81520ed
CM
2024device wbsio0 at isa? port 0x2e
2025device wbsio1 at isa? port 0x4e
2026device lm#3 at wbsio?
b7609e3d 2027device uguru0 at isa? port 0xe0 # ABIT uGuru
1d03db02 2028
984263bc
MD
2029# Parallel-Port Bus
2030#
2031# Parallel port bus support is provided by the `ppbus' device.
2032# Multiple devices may be attached to the parallel port, devices
2033# are automatically probed and attached when found.
2034#
2035# Supported devices:
2036# vpo Iomega Zip Drive
2037# Requires SCSI disk support ('scbus' and 'da'); the best
2038# performance is achieved with ports in EPP 1.9 mode.
2039# lpt Parallel Printer
2040# plip Parallel network interface
2041# ppi General-purpose I/O ("Geek Port") + IEEE1284 I/O
2042# pps Pulse per second Timing Interface
2043# lpbb Philips official parallel port I2C bit-banging interface
2044#
2045# Supported interfaces:
2046# ppc ISA-bus parallel port interfaces.
2047#
2048
2049options PPC_PROBE_CHIPSET # Enable chipset specific detection
2050 # (see flags in ppc(4))
2051options DEBUG_1284 # IEEE1284 signaling protocol debug
2052options PERIPH_1284 # Makes your computer act as a IEEE1284
2053 # compliant peripheral
2054options DONTPROBE_1284 # Avoid boot detection of PnP parallel devices
2055options VP0_DEBUG # ZIP/ZIP+ debug
2056options LPT_DEBUG # Printer driver debug
969dee2c 2057options PPC_DEBUG=2 # Parallel chipset level debug
984263bc
MD
2058options PLIP_DEBUG # Parallel network IP interface debug
2059options PCFCLOCK_VERBOSE # Verbose pcfclock driver
2060options PCFCLOCK_MAX_RETRIES=5 # Maximum read tries (default 10)
2061
2062device ppc0 at isa? irq 7
2063device ppbus
2064device vpo
2065device lpt
2066device plip
2067device ppi
2068device pps
2069device lpbb
2070device pcfclock
2071
2072# Kernel BOOTP support
2073
2074options BOOTP # Use BOOTP to obtain IP address/hostname
2075options BOOTP_NFSROOT # NFS mount root filesystem using BOOTP info
2076options BOOTP_NFSV3 # Use NFS v3 to NFS mount root
2077options BOOTP_COMPAT # Workaround for broken bootp daemons.
2078options BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
2079
2080#
984263bc
MD
2081# Set the number of PV entries per process. Increasing this can
2082# stop panics related to heavy use of shared memory. However, that can
2083# (combined with large amounts of physical memory) cause panics at
2084# boot time due the kernel running out of VM space.
2085#
2086# If you're tweaking this, you might also want to increase the sysctls
2087# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
2088#
2089# The value below is the one more than the default.
2090#
2091options PMAP_SHPGPERPROC=201
2092
2093#
2094# Change the size of the kernel virtual address space. Due to
2095# constraints in loader(8) on i386, this must be a multiple of 4.
2096# 256 = 1 GB of kernel address space. Increasing this also causes
2097# a reduction of the address space in user processes. 512 splits
2098# the 4GB cpu address space in half (2GB user, 2GB kernel).
2099#
2100options KVA_PAGES=260
2101
2102#
2103# Disable swapping. This option removes all code which actually performs
2104# swapping, so it's not possible to turn it back on at run-time.
2105#
2106# This is sometimes usable for systems which don't have any swap space
2107# (see also sysctls "vm.defer_swapspace_pageouts" and
2108# "vm.disable_swapspace_pageouts")
2109#
2110#options NO_SWAPPING
2111
984263bc
MD
2112# Set the size of the buffer cache KVM reservation, in buffers. This is
2113# scaled by approximately 16384 bytes. The system will auto-size the buffer
2114# cache if this option is not specified.
2115#
2116options NBUF=512
2117
2118# Set the size of the mbuf KVM reservation, in clusters. This is scaled
2119# by approximately 2048 bytes. The system will auto-size the mbuf area
2120# to (512 + maxusers*16) if this option is not specified.
2121# maxusers is in turn computed at boot time depending on available memory
2122# or set to the value specified by "options MAXUSERS=x" (x=0 means
2123# autoscaling).
2124# So, to take advantage of autoscaling, you have to remove both
2125# NMBCLUSTERS and MAXUSERS (and NMBUFS) from your kernel config.
2126#
2127options NMBCLUSTERS=1024
2128
2129# Set the number of mbufs available in the system. Each mbuf
2130# consumes 256 bytes. The system will autosize this (to 4 times
2131# the number of NMBCLUSTERS, depending on other constraints)
2132# if this option is not specified.
2133#
2134options NMBUFS=4096
2135
984263bc
MD
2136# Tune the buffer cache maximum KVA reservation, in bytes. The maximum is
2137# usually capped at 200 MB, effecting machines with > 1GB of ram. Note
2138# that the buffer cache only really governs write buffering and disk block
2139# translations. The VM page cache is our primary disk cache and is not
2140# effected by the size of the buffer cache.
2141#
2142options VM_BCACHE_SIZE_MAX="(100*1024*1024)"
2143
2144# Tune the swap zone KVA reservation, in bytes. The default is typically
2145# 70 MB, giving the system the ability to manage a maximum of 28GB worth
d856dabc 2146# of swapped out data.
984263bc
MD
2147#
2148options VM_SWZONE_SIZE_MAX="(50*1024*1024)"
2149
2150#
2151# Enable extra debugging code for locks. This stores the filename and
2152# line of whatever acquired the lock in the lock itself, and change a
2153# number of function calls to pass around the relevant data. This is
2154# not at all useful unless you are debugging lock code. Also note
2155# that it is likely to break e.g. fstat(1) unless you recompile your
2156# userland with -DDEBUG_LOCKS as well.
2157#
9ec899f4
SW
2158# DEBUG_LOCKS_LATENCY adds a sysctl to add a forced latency loop
2159# (count to N) in front of any spinlock or gettoken.
2160#
984263bc 2161options DEBUG_LOCKS
9ec899f4 2162options DEBUG_LOCKS_LATENCY
984263bc
MD
2163
2164# Set the amount of time (in seconds) the system will wait before
2165# rebooting automatically when a kernel panic occurs. If set to (-1),
2166# the system will wait indefinitely until a key is pressed on the
2167# console.
2168options PANIC_REBOOT_WAIT_TIME=16
2169
2170# Attempt to bypass the buffer cache and put data directly into the
2171# userland buffer for read operation when O_DIRECT flag is set on the
2172# file. Both offset and length of the read operation must be
d856dabc 2173# multiples of the physical media sector size.
984263bc 2174#
1ff70875 2175options DIRECTIO
984263bc
MD
2176
2177# Specify a lower limit for the number of swap I/O buffers. They are
2178# (among other things) used when bypassing the buffer cache due to
2179# DIRECTIO kernel option enabled and O_DIRECT flag set on file.
2180#
2181#options NSWBUF_MIN=120
2182
984263bc
MD
2183# The 'asr' driver provides support for current DPT/Adaptec SCSI RAID
2184# controllers (SmartRAID V and VI and later).
2185# These controllers require the CAM infrastructure.
2186#
2187device asr
7b0cd042 2188options ASR_COMPAT
984263bc
MD
2189
2190# The 'dpt' driver provides support for DPT controllers (http://www.dpt.com/).
2191# These have hardware RAID-{0,1,5} support, and do multi-initiator I/O.
2192# The DPT controllers are commonly re-licensed under other brand-names -
2193# some controllers by Olivetti, Dec, HP, AT&T, SNI, AST, Alphatronic, NEC and
2194# Compaq are actually DPT controllers.
2195#
fc29bf55 2196# See src/sys/dev/raid/dpt for debugging and other subtle options.
984263bc
MD
2197# DPT_MEASURE_PERFORMANCE Enables a set of (semi)invasive metrics. Various
2198# instruments are enabled. The tools in
2199# /usr/sbin/dpt_* assume these to be enabled.
2200# DPT_HANDLE_TIMEOUTS Normally device timeouts are handled by the DPT.
2201# If you ant the driver to handle timeouts, enable
2202# this option. If your system is very busy, this
2203# option will create more trouble than solve.
2204# DPT_TIMEOUT_FACTOR Used to compute the excessive amount of time to
2205# wait when timing out with the above option.
47a69c3f 2206# DPT_DEBUG_xxxx These are controllable from sys/dev/raid/dpt/dpt.h
984263bc
MD
2207# DPT_LOST_IRQ When enabled, will try, once per second, to catch
2208# any interrupt that got lost. Seems to help in some
2209# DPT-firmware/Motherboard combinations. Minimal
2210# cost, great benefit.
2211# DPT_RESET_HBA Make "reset" actually reset the controller
2212# instead of fudging it. Only enable this if you
2213# are 100% certain you need it.
2214
2215device dpt
2216
2217# DPT options
2218#!CAM# options DPT_MEASURE_PERFORMANCE
2219#!CAM# options DPT_HANDLE_TIMEOUTS
2220options DPT_TIMEOUT_FACTOR=4
2221options DPT_LOST_IRQ
2222options DPT_RESET_HBA
984263bc
MD
2223
2224#
2225# Compaq "CISS" RAID controllers (SmartRAID 5* series)
2226# These controllers have a SCSI-like interface, and require the
2227# CAM infrastructure.
2228#
2229device ciss
2230
2231#
2232# Intel Integrated RAID controllers.
7acc60b5
SW
2233# This driver is supported and maintained by
2234# "Leubner, Achim" <Achim_Leubner@adaptec.com>.
984263bc
MD
2235#
2236device iir
2237
2238#
2239# Mylex AcceleRAID and eXtremeRAID controllers with v6 and later
2240# firmware. These controllers have a SCSI-like interface, and require
2241# the CAM infrastructure.
2242#
2243device mly
2244
2245# USB support
2246# UHCI controller
2247device uhci
2248# OHCI controller
2249device ohci
dc1d8198
JR
2250# EHCI controller
2251device ehci
984263bc
MD
2252# General USB code (mandatory for USB)
2253device usb
2254#
89e45f2f
SW
2255# USB Bluetooth
2256device ubt
984263bc
MD
2257# Fm Radio
2258device ufm
2259# Generic USB device driver
2260device ugen
2261# Human Interface Device (anything with buttons and dials)
2262device uhid
2263# USB keyboard
2264device ukbd
2265# USB printer
2266device ulpt
2267# USB Iomega Zip 100 Drive (Requires scbus and da)
2268device umass
2269# USB modem support
2270device umodem
2271# USB mouse
2272device ums
2273# USB Rio (MP3 Player)
2274device urio
2275# USB scanners
2276device uscanner
2277# USB com devices
bfe2a61e 2278device moscom
474e48cc
HT
2279device uark
2280device ubsa
c2318dc6 2281device uchcom
984263bc 2282device ucom
474e48cc 2283device uftdi
86906a69 2284device ugensa
3ff11514 2285device umct
984263bc 2286device uplcom
5926abe5 2287device uslcom
474e48cc 2288device uticom
984263bc 2289device uvisor
474e48cc 2290device uvscom
984263bc
MD
2291
2292#
2293# ADMtek USB ethernet. Supports the LinkSys USB100TX,
2294# the Billionton USB100, the Melco LU-ATX, the D-Link DSB-650TX
2295# and the SMC 2202USB. Also works with the ADMtek AN986 Pegasus
2296# eval board.
2297device aue
2298#
204496c7
SW
2299# ASIX Electronics AX88172 USB 2.0 ethernet driver. Used in the
2300# LinkSys USB200M and various other adapters.
2301device axe
2302#
984263bc
MD
2303# CATC USB-EL1201A USB ethernet. Supports the CATC Netmate
2304# and Netmate II, and the Belkin F5U111.
2305device cue
2306#
2307# Kawasaki LSI ethernet. Supports the LinkSys USB10T,
2308# Entrega USB-NET-E45, Peracom Ethernet Adapter, the
2309# 3Com 3c19250, the ADS Technologies USB-10BT, the ATen UC10T,
2310# the Netgear EA101, the D-Link DSB-650, the SMC 2102USB
2311# and 2104USB, and the Corega USB-T.
2312device kue
3c374c15 2313#
a700a71b
SW
2314# USB CDC ethernet. Supports the LG P-500 smartphone.
2315device lgue
2316#
3c374c15
SZ
2317# RealTek 8150 based USB ethernet device:
2318# Melco LUA-KTX
2319# GREEN HOUSE GH-USB100B
2320# Billionton ThumbLAN USBKR2-100B
2321device rue
984263bc 2322
e15de849 2323# USB wireless NICs, requires wlan_amrr
428b19ed
SZ
2324#
2325# Ralink Technology RT2501USB/RT2601USB
5c32bcdd 2326#device rum
428b19ed
SZ
2327#
2328# Ralink Technology RT2500USB
5c32bcdd 2329#device ural
428b19ed 2330
984263bc
MD
2331# debugging options for the USB subsystem
2332#
2333options USB_DEBUG
2334
2335# options for ukbd:
2336options UKBD_DFLT_KEYMAP # specify the built-in keymap
2337makeoptions UKBD_DFLT_KEYMAP=it.iso
2338
2339# Firewire support
2340device firewire # Firewire bus code
2341device sbp # SCSI over Firewire (Requires scbus and da)
2342device fwe # Ethernet over Firewire (non-standard!)
2343
ca9d2ae7
HS
2344# dcons support (Dumb Console Device)
2345device dcons # dumb console driver
2346device dcons_crom # FireWire attachment
2347options DCONS_BUF_SIZE=16384 # buffer size
2348options DCONS_POLL_HZ=100 # polling rate
2349options DCONS_FORCE_CONSOLE=1 # force to be the primary console
2350options DCONS_FORCE_GDB=1 # force to be the gdb device
2351
984263bc
MD
2352#####################################################################
2353# crypto subsystem
2354#
2355# This is a port of the openbsd crypto framework. Include this when
2356# configuring IPsec and when you have a h/w crypto device to accelerate
2357# user applications that link to openssl.
2358#
2359# Drivers are ports from openbsd with some simple enhancements that have
2360# been fed back to openbsd (and hopefully will be included).
2361
2362pseudo-device crypto # core crypto support
2363pseudo-device cryptodev # /dev/crypto for access to h/w
2364
2365device rndtest # FIPS 140-2 entropy tester
2366
2367device hifn # Hifn 7951, 7781, etc.
2368options HIFN_DEBUG # enable debugging support: hw.hifn.debug
4ad6607f 2369#options HIFN_NO_RNG # for devices without RNG
984263bc
MD
2370options HIFN_RNDTEST # enable rndtest support
2371
25638cf4
SW
2372device safe # SafeNet 1141
2373options SAFE_DEBUG # enable debugging support: hw.safe.debug
8690ff8f 2374#options SAFE_NO_RNG # for devices without RNG
25638cf4
SW
2375options SAFE_RNDTEST # enable rndtest support
2376
984263bc
MD
2377device ubsec # Broadcom 5501, 5601, 58xx
2378options UBSEC_DEBUG # enable debugging support: hw.ubsec.debug
4ad6607f 2379#options UBSEC_NO_RNG # for devices without RNG
984263bc
MD
2380options UBSEC_RNDTEST # enable rndtest support
2381
5adb7adb 2382device aesni # hardware crypto/RNG for AES-NI
80c3f755 2383device glxsb # Geode LX Security Block
661c401f 2384device padlock # hardware crypto/RNG for VIA C3/C7/Eden
c5761ad0 2385device rdrand # hardware RNG for RdRand
80c3f755 2386
f1de7f2b
SW
2387#
2388# ACPI support using the Intel ACPI Component Architecture reference
2389# implementation.
2390#
2391# ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer
2392# kernel environment variables to select initial debugging levels for the
2393# Intel ACPICA code.
2394#
2395# Note that building ACPI into the kernel is deprecated; the module is
2396# normally loaded automatically by the loader.
2397
2398device acpi
2399options ACPI_DEBUG
2400
554257bc
SW
2401# ACPI WMI Mapping driver
2402device acpi_wmi
2403
f1de7f2b
SW
2404# ACPI Asus Extras (LCD backlight/brightness, video output, etc.)
2405device acpi_asus
2406
2407# ACPI Fujitsu Extras (Buttons)
2408device acpi_fujitsu
2409
2410# ACPI extras driver for HP laptops
554257bc 2411device acpi_hp
f1de7f2b
SW
2412
2413# ACPI Panasonic Extras (LCD backlight/brightness, video output, etc.)
2414device acpi_panasonic
2415
2416# ACPI Sony extra (LCD brightness)
2417device acpi_sony
2418
2419# ACPI extras driver for ThinkPad laptops
2420device acpi_thinkpad
2421
2422# ACPI Toshiba Extras (LCD backlight/brightness, video output, etc.)
2423device acpi_toshiba
2424
2425# ACPI Video Extensions (LCD backlight/brightness, video output, etc.)
2426device acpi_video
2427
ca767207 2428device aibs # ASUSTeK AI Booster (ACPI ASOC ATK0110)
3af1933a 2429device pmtimer # adjust the system clock after resume
a62a1fac 2430
984263bc 2431# DRM options:
7f3c3d6f
HT
2432# drm: General DRM code
2433# i915drm: Intel i830, i845, i915, i945, i965, G33/35
2434# mach64drm: ATI Mach64 cards - Rage and 3D Rage series
2435# mgadrm: AGP Matrox G200, G400, G450, G550
2436# r128drm: ATI Rage 128 cards
2437# radeondrm: ATI Radeon cards
2438# savagedrm: Savage cards
2439# sisdrm: Sis cards
2440# tdfxdrm: 3dfx Voodoo 3/4/5 and Banshee
2441#
2442# DRM_DEBUG: include debug printfs, very slow
2443#
2444# DRM requires AGP in the kernel.
2445
2446device drm
2447device "i915drm"
2448device "mach64drm"
984263bc
MD
2449device mgadrm
2450device "r128drm"
2451device radeondrm
7f3c3d6f
HT
2452device savagedrm
2453device sisdrm
984263bc
MD
2454device tdfxdrm
2455
2456options DRM_DEBUG
4ad6607f 2457options DRM_LINUX
984263bc
MD
2458
2459#
c4bf625e
HT
2460# Misc devices
2461#
2462device cmx # Omnikey CardMan 4040 smartcard reader
21e876fb 2463device amdsbwd # AMD South Bridge watchdog
80c3f755 2464device gpio # Enable support for the gpio framework
ace1ab86 2465device ichwd # Intel ICH watchdog interrupt timer
ea2c6782 2466device tbridge # regression testing
c4bf625e
HT
2467
2468#
984263bc
MD
2469# Embedded system options:
2470#
2471# An embedded system might want to run something other than init.
22628b14 2472options INIT_PATH="/sbin/init:/sbin/oinit"
984263bc
MD
2473
2474# Debug options
2475options BUS_DEBUG # enable newbus debugging
984263bc 2476options NPX_DEBUG # enable npx debugging (FPU/math emu)
8f2c9819 2477options RSS_DEBUG # enable RSS (Receive Side Scaling) debugging
984263bc 2478
8a4ec68a
SW
2479# Record the program counter of the code interrupted by the statistics
2480# clock interrupt. Use pctrack(8) to dump this information.
2481options DEBUG_PCTRACK
2482
984263bc
MD
2483# More undocumented options for linting.
2484# Note that documenting these are not considered an affront.
2485
4ad6607f 2486#options ACPI_NO_SEMAPHORES
984263bc 2487options AHC_DUMP_EEPROM
4ad6607f 2488#options BKTR_ALLOC_PAGES=xxx
984263bc
MD
2489options CAM_DEBUG_DELAY
2490options CLUSTERDEBUG
2491options COMPAT_LINUX
4ad6607f 2492options COMPAT_SUNOS
984263bc 2493options DEBUG
4ad6607f
SW
2494options DEBUG_CRIT_SECTIONS
2495options DEBUG_INTERRUPTS
984263bc 2496#options DISABLE_PSE
43c2aeb0 2497options BCE_DEBUG
69647051 2498options BNX_TSO_DEBUG
e6cde6e6 2499options EMX_RSS_DEBUG
0c0e1638 2500options EMX_TSO_DEBUG
93bfe1b8 2501options JME_RSS_DEBUG
8d6600da 2502options IGB_RSS_DEBUG
9c0ecdcc 2503options IGB_MSIX_DEBUG
4ad6607f 2504#options ED_NO_MIIBUS
984263bc 2505options ENABLE_ALART
969dee2c 2506options FB_DEBUG=2
984263bc
MD
2507options FB_INSTALL_CDEV
2508options FE_8BIT_SUPPORT
984263bc 2509options I586_PMC_GUPROF=0x70000
98091aa8
SW
2510#options IEEE80211_DEBUG_REFCNT
2511options IEEE80211_SUPPORT_SUPERG
969dee2c 2512options KBDIO_DEBUG=10
984263bc
MD
2513options KBD_MAXRETRY=4
2514options KBD_MAXWAIT=6
2515options KBD_RESETDELAY=201
4ad6607f 2516options KERN_TIMESTAMP
984263bc 2517options KEY
4ad6607f 2518options LINPROCFS
984263bc 2519options LOCKF_DEBUG
4ad6607f 2520#options MAXFILES=xxx
5054c0b0 2521options MBUF_DEBUG
4ad6607f 2522options PANIC_DEBUG
3558dcda 2523options PMAP_DEBUG
969dee2c 2524options PSM_DEBUG=4
984263bc
MD
2525options SCSI_NCR_DEBUG
2526options SCSI_NCR_MAX_SYNC=10000
2527options SCSI_NCR_MAX_WIDE=1
2528options SCSI_NCR_MYADDR=7
984263bc 2529options SHOW_BUSYBUFS # List buffers that prevent root unmount
984263bc 2530options SI_DEBUG
603198e6 2531options SLAB_DEBUG
984263bc 2532options SLIP_IFF_OPTS
4ad6607f 2533options SOCKBUF_DEBUG
98091aa8
SW
2534options TDMA_BINTVAL_DEFAULT=5
2535options TDMA_SLOTCNT_DEFAULT=2
2536options TDMA_SLOTLEN_DEFAULT=10*1000
2537options TDMA_TXRATE_11A_DEFAULT=2*24
2538options TDMA_TXRATE_11B_DEFAULT=2*11
2539options TDMA_TXRATE_11G_DEFAULT=2*24
2540options TDMA_TXRATE_11NA_DEFAULT="(4|IEEE80211_RATE_MCS)"
2541options TDMA_TXRATE_11NG_DEFAULT="(4|IEEE80211_RATE_MCS)"
2542options TDMA_TXRATE_HALF_DEFAULT=2*12
2543options TDMA_TXRATE_QUARTER_DEFAULT=2*6
2544options TDMA_TXRATE_TURBO_DEFAULT=2*24
984263bc
MD
2545options TIMER_FREQ="((14318182+6)/12)"
2546options VFS_BIO_DEBUG
603198e6 2547options VM_PAGE_DEBUG
984263bc 2548options XBONEHACK
81540c2d
EN
2549
2550options KTR
243308a2
SW
2551options KTR_ALL
2552options KTR_ENTRIES=1024
2553options KTR_VERBOSE=1
d9f18464 2554#options KTR_CTXSW
243308a2 2555#options KTR_DMCRYPT
aabeb187 2556#options KTR_DSCHED_BFQ
f3e0b5f0 2557#options KTR_ETHERNET
f3e0b5f0 2558#options KTR_HAMMER
243308a2 2559#options KTR_IFQ
c112b277
SW
2560#options KTR_IF_BGE
2561#options KTR_IF_EM
5330213c 2562#options KTR_IF_EMX
9db4b353 2563#options KTR_IF_START
4ad6607f 2564#options KTR_IPIQ
d0377f9b 2565#options KTR_KERNENTRY
4ad6607f 2566#options KTR_MEMORY
d16c94f7 2567#options KTR_POLLING
d0377f9b 2568#options KTR_SERIALIZER
c112b277
SW
2569#options KTR_SPIN_CONTENTION
2570#options KTR_TESTLOG
4ad6607f 2571#options KTR_TOKENS
95a12b8b 2572#options KTR_TSLEEP
4ad6607f 2573#options KTR_USB_MEMORY
4d723e5a
JS
2574
2575# ALTQ
2576options ALTQ #alternate queueing
2577options ALTQ_CBQ #class based queueing
2578options ALTQ_RED #random early detection
2579options ALTQ_RIO #triple red for diffserv (needs RED)
2580options ALTQ_HFSC #hierarchical fair service curve
2581options ALTQ_PRIQ #priority queue
5950bf01 2582options ALTQ_FAIRQ #fair queue
4d723e5a
JS
2583#options ALTQ_NOPCC #don't use processor cycle counter
2584options ALTQ_DEBUG #for debugging
2585# you might want to set kernel timer to 1kHz if you use CBQ,
2586# especially with 100baseT
2587#options HZ=1000
5e937ff0
EN
2588
2589# SCTP
2590options SCTP
d856dabc 2591options SCTP_DEBUG
5e937ff0
EN
2592options SCTP_USE_ADLER32
2593options SCTP_HIGH_SPEED
2594options SCTP_STAT_LOGGING
2595options SCTP_CWND_LOGGING
2596options SCTP_BLK_LOGGING
2597options SCTP_STR_LOGGING
2598options SCTP_FR_LOGGING
2599options SCTP_MAP_LOGGING
21fa6062 2600
e4734395 2601# DSCHED stuff
b3fc94f8 2602options DSCHED_AS
aabeb187 2603options DSCHED_BFQ
b3fc94f8 2604options DSCHED_FQ
e4734395 2605
80c3f755 2606# WATCHDOG
80c3f755
AH
2607options WDOG_DISABLE_ON_PANIC # Automatically disable watchdogs on panic
2608
2609# LED
0210859c 2610options ERROR_LED_ON_PANIC # If an error led is present, light it up on panic