xref: /freebsd/sys/conf/NOTES (revision f5e9c916afed4a948fe5c03bfaee038d165e12ab)
1# $FreeBSD$
2#
3# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
4#
5# Lines that begin with 'device', 'options', 'machine', 'ident', 'maxusers',
6# 'makeoptions', 'hints', etc. go into the kernel configuration that you
7# run config(8) with.
8#
9# Lines that begin with 'hint.' are NOT for config(8), they go into your
10# hints file.  See /boot/device.hints and/or the 'hints' config(8) directive.
11#
12# Please use ``make LINT'' to create an old-style LINT file if you want to
13# do kernel test-builds.
14#
15# This file contains machine independent kernel configuration notes.  For
16# machine dependent notes, look in /sys/<arch>/conf/NOTES.
17#
18
19#
20# NOTES conventions and style guide:
21#
22# Large block comments should begin and end with a line containing only a
23# comment character.
24#
25# To describe a particular object, a block comment (if it exists) should
26# come first.  Next should come device, options, and hints lines in that
27# order.  All device and option lines must be described by a comment that
28# doesn't just expand the device or option name.  Use only a concise
29# comment on the same line if possible.  Very detailed descriptions of
30# devices and subsystems belong in man pages.
31#
32# A space followed by a tab separates 'options' from an option name.  Two
33# spaces followed by a tab separate 'device' from a device name.  Comments
34# after an option or device should use one space after the comment character.
35# To comment out a negative option that disables code and thus should not be
36# enabled for LINT builds, precede 'options' with "#!".
37#
38
39#
40# This is the ``identification'' of the kernel.  Usually this should
41# be the same as the name of your kernel.
42#
43ident		LINT
44
45#
46# The `maxusers' parameter controls the static sizing of a number of
47# internal system tables by a formula defined in subr_param.c.
48# Omitting this parameter or setting it to 0 will cause the system to
49# auto-size based on physical memory.
50#
51maxusers	10
52
53# To statically compile in device wiring instead of /boot/device.hints
54#hints		"LINT.hints"		# Default places to look for devices.
55
56# Use the following to compile in values accessible to the kernel
57# through getenv() (or kenv(1) in userland). The format of the file
58# is 'variable=value', see kenv(1)
59#
60#env		"LINT.env"
61
62#
63# The `makeoptions' parameter allows variables to be passed to the
64# generated Makefile in the build area.
65#
66# CONF_CFLAGS gives some extra compiler flags that are added to ${CFLAGS}
67# after most other flags.  Here we use it to inhibit use of non-optimal
68# gcc built-in functions (e.g., memcmp).
69#
70# DEBUG happens to be magic.
71# The following is equivalent to 'config -g KERNELNAME' and creates
72# 'kernel.debug' compiled with -g debugging as well as a normal
73# 'kernel'.  Use 'make install.debug' to install the debug kernel
74# but that isn't normally necessary as the debug symbols are not loaded
75# by the kernel and are not useful there anyway.
76#
77# KERNEL can be overridden so that you can change the default name of your
78# kernel.
79#
80# MODULES_OVERRIDE can be used to limit modules built to a specific list.
81#
82makeoptions	CONF_CFLAGS=-fno-builtin  #Don't allow use of memcmp, etc.
83#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
84#makeoptions	KERNEL=foo		#Build kernel "foo" and install "/foo"
85# Only build ext2fs module plus those parts of the sound system I need.
86#makeoptions	MODULES_OVERRIDE="ext2fs sound/sound sound/driver/maestro3"
87makeoptions	DESTDIR=/tmp
88
89#
90# FreeBSD processes are subject to certain limits to their consumption
91# of system resources.  See getrlimit(2) for more details.  Each
92# resource limit has two values, a "soft" limit and a "hard" limit.
93# The soft limits can be modified during normal system operation, but
94# the hard limits are set at boot time.  Their default values are
95# in sys/<arch>/include/vmparam.h.  There are two ways to change them:
96#
97# 1.  Set the values at kernel build time.  The options below are one
98#     way to allow that limit to grow to 1GB.  They can be increased
99#     further by changing the parameters:
100#
101# 2.  In /boot/loader.conf, set the tunables kern.maxswzone,
102#     kern.maxbcache, kern.maxtsiz, kern.dfldsiz, kern.maxdsiz,
103#     kern.dflssiz, kern.maxssiz and kern.sgrowsiz.
104#
105# The options in /boot/loader.conf override anything in the kernel
106# configuration file.  See the function init_param1 in
107# sys/kern/subr_param.c for more details.
108#
109
110options 	MAXDSIZ=(1024UL*1024*1024)
111options 	MAXSSIZ=(128UL*1024*1024)
112options 	DFLDSIZ=(1024UL*1024*1024)
113
114#
115# BLKDEV_IOSIZE sets the default block size used in user block
116# device I/O.  Note that this value will be overridden by the label
117# when specifying a block device from a label with a non-0
118# partition blocksize.  The default is PAGE_SIZE.
119#
120options 	BLKDEV_IOSIZE=8192
121
122#
123# MAXPHYS and DFLTPHYS
124#
125# These are the maximal and safe 'raw' I/O block device access sizes.
126# Reads and writes will be split into MAXPHYS chunks for known good
127# devices and DFLTPHYS for the rest. Some applications have better
128# performance with larger raw I/O access sizes. Note that certain VM
129# parameters are derived from these values and making them too large
130# can make an unbootable kernel.
131#
132# The defaults are 64K and 128K respectively.
133options 	DFLTPHYS=(64*1024)
134options 	MAXPHYS=(128*1024)
135
136
137# This allows you to actually store this configuration file into
138# the kernel binary itself. See config(8) for more details.
139#
140options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
141
142#
143# Compile-time defaults for various boot parameters
144#
145options 	BOOTVERBOSE=1
146options 	BOOTHOWTO=RB_MULTIPLE
147
148options 	GEOM_AES		# Don't use, use GEOM_BDE
149options 	GEOM_BDE		# Disk encryption.
150options 	GEOM_BSD		# BSD disklabels
151options 	GEOM_CACHE		# Disk cache.
152options 	GEOM_CONCAT		# Disk concatenation.
153options 	GEOM_ELI		# Disk encryption.
154options 	GEOM_FOX		# Redundant path mitigation
155options 	GEOM_GATE		# Userland services.
156options 	GEOM_JOURNAL		# Journaling.
157options 	GEOM_LABEL		# Providers labelization.
158options 	GEOM_LINUX_LVM		# Linux LVM2 volumes
159options 	GEOM_MAP		# Map based partitioning
160options 	GEOM_MBR		# DOS/MBR partitioning
161options 	GEOM_MIRROR		# Disk mirroring.
162options 	GEOM_MULTIPATH		# Disk multipath
163options 	GEOM_NOP		# Test class.
164options 	GEOM_PART_APM		# Apple partitioning
165options 	GEOM_PART_BSD		# BSD disklabel
166options 	GEOM_PART_BSD64		# BSD disklabel64
167options 	GEOM_PART_EBR		# Extended Boot Records
168options 	GEOM_PART_EBR_COMPAT	# Backward compatible partition names
169options 	GEOM_PART_GPT		# GPT partitioning
170options 	GEOM_PART_LDM		# Logical Disk Manager
171options 	GEOM_PART_MBR		# MBR partitioning
172options 	GEOM_PART_PC98		# PC-9800 disk partitioning
173options 	GEOM_PART_VTOC8		# SMI VTOC8 disk label
174options 	GEOM_PC98		# NEC PC9800 partitioning
175options 	GEOM_RAID		# Soft RAID functionality.
176options 	GEOM_RAID3		# RAID3 functionality.
177options 	GEOM_SHSEC		# Shared secret.
178options 	GEOM_STRIPE		# Disk striping.
179options 	GEOM_SUNLABEL		# Sun/Solaris partitioning
180options 	GEOM_UZIP		# Read-only compressed disks
181options 	GEOM_VINUM		# Vinum logical volume manager
182options 	GEOM_VIRSTOR		# Virtual storage.
183options 	GEOM_VOL		# Volume names from UFS superblock
184options 	GEOM_ZERO		# Performance testing helper.
185
186#
187# The root device and filesystem type can be compiled in;
188# this provides a fallback option if the root device cannot
189# be correctly guessed by the bootstrap code, or an override if
190# the RB_DFLTROOT flag (-r) is specified when booting the kernel.
191#
192options 	ROOTDEVNAME=\"ufs:da0s2e\"
193
194
195#####################################################################
196# Scheduler options:
197#
198# Specifying one of SCHED_4BSD or SCHED_ULE is mandatory.  These options
199# select which scheduler is compiled in.
200#
201# SCHED_4BSD is the historical, proven, BSD scheduler.  It has a global run
202# queue and no CPU affinity which makes it suboptimal for SMP.  It has very
203# good interactivity and priority selection.
204#
205# SCHED_ULE provides significant performance advantages over 4BSD on many
206# workloads on SMP machines.  It supports cpu-affinity, per-cpu runqueues
207# and scheduler locks.  It also has a stronger notion of interactivity
208# which leads to better responsiveness even on uniprocessor machines.  This
209# is the default scheduler.
210#
211# SCHED_STATS is a debugging option which keeps some stats in the sysctl
212# tree at 'kern.sched.stats' and is useful for debugging scheduling decisions.
213#
214options 	SCHED_4BSD
215options 	SCHED_STATS
216#options 	SCHED_ULE
217
218#####################################################################
219# SMP OPTIONS:
220#
221# SMP enables building of a Symmetric MultiProcessor Kernel.
222
223# Mandatory:
224options 	SMP			# Symmetric MultiProcessor Kernel
225
226# MAXCPU defines the maximum number of CPUs that can boot in the system.
227# A default value should be already present, for every architecture.
228options 	MAXCPU=32
229
230# MAXMEMDOM defines the maximum number of memory domains that can boot in the
231# system.  A default value should already be defined by every architecture.
232options 	MAXMEMDOM=1
233
234# ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin
235# if the thread that currently owns the mutex is executing on another
236# CPU.  This behavior is enabled by default, so this option can be used
237# to disable it.
238options 	NO_ADAPTIVE_MUTEXES
239
240# ADAPTIVE_RWLOCKS changes the behavior of reader/writer locks to spin
241# if the thread that currently owns the rwlock is executing on another
242# CPU.  This behavior is enabled by default, so this option can be used
243# to disable it.
244options 	NO_ADAPTIVE_RWLOCKS
245
246# ADAPTIVE_SX changes the behavior of sx locks to spin if the thread that
247# currently owns the sx lock is executing on another CPU.
248# This behavior is enabled by default, so this option can be used to
249# disable it.
250options 	NO_ADAPTIVE_SX
251
252# MUTEX_NOINLINE forces mutex operations to call functions to perform each
253# operation rather than inlining the simple cases.  This can be used to
254# shrink the size of the kernel text segment.  Note that this behavior is
255# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
256# and WITNESS options.
257options 	MUTEX_NOINLINE
258
259# RWLOCK_NOINLINE forces rwlock operations to call functions to perform each
260# operation rather than inlining the simple cases.  This can be used to
261# shrink the size of the kernel text segment.  Note that this behavior is
262# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
263# and WITNESS options.
264options 	RWLOCK_NOINLINE
265
266# SX_NOINLINE forces sx lock operations to call functions to perform each
267# operation rather than inlining the simple cases.  This can be used to
268# shrink the size of the kernel text segment.  Note that this behavior is
269# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
270# and WITNESS options.
271options 	SX_NOINLINE
272
273# SMP Debugging Options:
274#
275# CALLOUT_PROFILING enables rudimentary profiling of the callwheel data
276#	  structure used as backend in callout(9).
277# PREEMPTION allows the threads that are in the kernel to be preempted by
278#	  higher priority [interrupt] threads.  It helps with interactivity
279#	  and allows interrupt threads to run sooner rather than waiting.
280#	  WARNING! Only tested on amd64 and i386.
281# FULL_PREEMPTION instructs the kernel to preempt non-realtime kernel
282#	  threads.  Its sole use is to expose race conditions and other
283#	  bugs during development.  Enabling this option will reduce
284#	  performance and increase the frequency of kernel panics by
285#	  design.  If you aren't sure that you need it then you don't.
286#	  Relies on the PREEMPTION option.  DON'T TURN THIS ON.
287# MUTEX_DEBUG enables various extra assertions in the mutex code.
288# SLEEPQUEUE_PROFILING enables rudimentary profiling of the hash table
289#	  used to hold active sleep queues as well as sleep wait message
290#	  frequency.
291# TURNSTILE_PROFILING enables rudimentary profiling of the hash table
292#	  used to hold active lock queues.
293# UMTX_PROFILING enables rudimentary profiling of the hash table used
294	  to hold active lock queues.
295# WITNESS enables the witness code which detects deadlocks and cycles
296#         during locking operations.
297# WITNESS_KDB causes the witness code to drop into the kernel debugger if
298#	  a lock hierarchy violation occurs or if locks are held when going to
299#	  sleep.
300# WITNESS_SKIPSPIN disables the witness checks on spin mutexes.
301options 	PREEMPTION
302options 	FULL_PREEMPTION
303options 	MUTEX_DEBUG
304options 	WITNESS
305options 	WITNESS_KDB
306options 	WITNESS_SKIPSPIN
307
308# LOCK_PROFILING - Profiling locks.  See LOCK_PROFILING(9) for details.
309options 	LOCK_PROFILING
310# Set the number of buffers and the hash size.  The hash size MUST be larger
311# than the number of buffers.  Hash size should be prime.
312options 	MPROF_BUFFERS="1536"
313options 	MPROF_HASH_SIZE="1543"
314
315# Profiling for the callout(9) backend.
316options 	CALLOUT_PROFILING
317
318# Profiling for internal hash tables.
319options 	SLEEPQUEUE_PROFILING
320options 	TURNSTILE_PROFILING
321options 	UMTX_PROFILING
322
323
324#####################################################################
325# COMPATIBILITY OPTIONS
326
327#
328# Implement system calls compatible with 4.3BSD and older versions of
329# FreeBSD.  You probably do NOT want to remove this as much current code
330# still relies on the 4.3 emulation.  Note that some architectures that
331# are supported by FreeBSD do not include support for certain important
332# aspects of this compatibility option, namely those related to the
333# signal delivery mechanism.
334#
335options 	COMPAT_43
336
337# Old tty interface.
338options 	COMPAT_43TTY
339
340# Note that as a general rule, COMPAT_FREEBSD<n> depends on
341# COMPAT_FREEBSD<n+1>, COMPAT_FREEBSD<n+2>, etc.
342
343# Enable FreeBSD4 compatibility syscalls
344options 	COMPAT_FREEBSD4
345
346# Enable FreeBSD5 compatibility syscalls
347options 	COMPAT_FREEBSD5
348
349# Enable FreeBSD6 compatibility syscalls
350options 	COMPAT_FREEBSD6
351
352# Enable FreeBSD7 compatibility syscalls
353options 	COMPAT_FREEBSD7
354
355# Enable FreeBSD9 compatibility syscalls
356options 	COMPAT_FREEBSD9
357
358# Enable FreeBSD10 compatibility syscalls
359options 	COMPAT_FREEBSD10
360
361# Enable Linux Kernel Programming Interface
362options 	COMPAT_LINUXKPI
363
364#
365# These three options provide support for System V Interface
366# Definition-style interprocess communication, in the form of shared
367# memory, semaphores, and message queues, respectively.
368#
369options 	SYSVSHM
370options 	SYSVSEM
371options 	SYSVMSG
372
373
374#####################################################################
375# DEBUGGING OPTIONS
376
377#
378# Compile with kernel debugger related code.
379#
380options 	KDB
381
382#
383# Print a stack trace of the current thread on the console for a panic.
384#
385options 	KDB_TRACE
386
387#
388# Don't enter the debugger for a panic. Intended for unattended operation
389# where you may want to enter the debugger from the console, but still want
390# the machine to recover from a panic.
391#
392options 	KDB_UNATTENDED
393
394#
395# Enable the ddb debugger backend.
396#
397options 	DDB
398
399#
400# Print the numerical value of symbols in addition to the symbolic
401# representation.
402#
403options 	DDB_NUMSYM
404
405#
406# Enable the remote gdb debugger backend.
407#
408options 	GDB
409
410#
411# SYSCTL_DEBUG enables a 'sysctl' debug tree that can be used to dump the
412# contents of the registered sysctl nodes on the console.  It is disabled by
413# default because it generates excessively verbose console output that can
414# interfere with serial console operation.
415#
416options 	SYSCTL_DEBUG
417
418#
419# Enable textdump by default, this disables kernel core dumps.
420#
421options		TEXTDUMP_PREFERRED
422
423#
424# Enable extra debug messages while performing textdumps.
425#
426options		TEXTDUMP_VERBOSE
427
428#
429# NO_SYSCTL_DESCR omits the sysctl node descriptions to save space in the
430# resulting kernel.
431options		NO_SYSCTL_DESCR
432
433#
434# MALLOC_DEBUG_MAXZONES enables multiple uma zones for malloc(9)
435# allocations that are smaller than a page.  The purpose is to isolate
436# different malloc types into hash classes, so that any buffer
437# overruns or use-after-free will usually only affect memory from
438# malloc types in that hash class.  This is purely a debugging tool;
439# by varying the hash function and tracking which hash class was
440# corrupted, the intersection of the hash classes from each instance
441# will point to a single malloc type that is being misused.  At this
442# point inspection or memguard(9) can be used to catch the offending
443# code.
444#
445options 	MALLOC_DEBUG_MAXZONES=8
446
447#
448# DEBUG_MEMGUARD builds and enables memguard(9), a replacement allocator
449# for the kernel used to detect modify-after-free scenarios.  See the
450# memguard(9) man page for more information on usage.
451#
452options 	DEBUG_MEMGUARD
453
454#
455# DEBUG_REDZONE enables buffer underflows and buffer overflows detection for
456# malloc(9).
457#
458options 	DEBUG_REDZONE
459
460#
461# EARLY_PRINTF enables support for calling a special printf (eprintf)
462# very early in the kernel (before cn_init() has been called).  This
463# should only be used for debugging purposes early in boot.  Normally,
464# it is not defined.  It is commented out here because this feature
465# isn't generally available. And the required eputc() isn't defined.
466#
467#options	EARLY_PRINTF
468
469#
470# KTRACE enables the system-call tracing facility ktrace(2).  To be more
471# SMP-friendly, KTRACE uses a worker thread to process most trace events
472# asynchronously to the thread generating the event.  This requires a
473# pre-allocated store of objects representing trace events.  The
474# KTRACE_REQUEST_POOL option specifies the initial size of this store.
475# The size of the pool can be adjusted both at boottime and runtime via
476# the kern.ktrace_request_pool tunable and sysctl.
477#
478options 	KTRACE			#kernel tracing
479options 	KTRACE_REQUEST_POOL=101
480
481#
482# KTR is a kernel tracing facility imported from BSD/OS.  It is
483# enabled with the KTR option.  KTR_ENTRIES defines the number of
484# entries in the circular trace buffer; it may be an arbitrary number.
485# KTR_BOOT_ENTRIES defines the number of entries during the early boot,
486# before malloc(9) is functional.
487# KTR_COMPILE defines the mask of events to compile into the kernel as
488# defined by the KTR_* constants in <sys/ktr.h>.  KTR_MASK defines the
489# initial value of the ktr_mask variable which determines at runtime
490# what events to trace.  KTR_CPUMASK determines which CPU's log
491# events, with bit X corresponding to CPU X.  The layout of the string
492# passed as KTR_CPUMASK must match a series of bitmasks each of them
493# separated by the "," character (ie:
494# KTR_CPUMASK=0xAF,0xFFFFFFFFFFFFFFFF).  KTR_VERBOSE enables
495# dumping of KTR events to the console by default.  This functionality
496# can be toggled via the debug.ktr_verbose sysctl and defaults to off
497# if KTR_VERBOSE is not defined.  See ktr(4) and ktrdump(8) for details.
498#
499options 	KTR
500options 	KTR_BOOT_ENTRIES=1024
501options 	KTR_ENTRIES=(128*1024)
502options 	KTR_COMPILE=(KTR_ALL)
503options 	KTR_MASK=KTR_INTR
504options 	KTR_CPUMASK=0x3
505options 	KTR_VERBOSE
506
507#
508# ALQ(9) is a facility for the asynchronous queuing of records from the kernel
509# to a vnode, and is employed by services such as ktr(4) to produce trace
510# files based on a kernel event stream.  Records are written asynchronously
511# in a worker thread.
512#
513options 	ALQ
514options 	KTR_ALQ
515
516#
517# The INVARIANTS option is used in a number of source files to enable
518# extra sanity checking of internal structures.  This support is not
519# enabled by default because of the extra time it would take to check
520# for these conditions, which can only occur as a result of
521# programming errors.
522#
523options 	INVARIANTS
524
525#
526# The INVARIANT_SUPPORT option makes us compile in support for
527# verifying some of the internal structures.  It is a prerequisite for
528# 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be
529# called.  The intent is that you can set 'INVARIANTS' for single
530# source files (by changing the source file or specifying it on the
531# command line) if you have 'INVARIANT_SUPPORT' enabled.  Also, if you
532# wish to build a kernel module with 'INVARIANTS', then adding
533# 'INVARIANT_SUPPORT' to your kernel will provide all the necessary
534# infrastructure without the added overhead.
535#
536options 	INVARIANT_SUPPORT
537
538#
539# The DIAGNOSTIC option is used to enable extra debugging information
540# from some parts of the kernel.  As this makes everything more noisy,
541# it is disabled by default.
542#
543options 	DIAGNOSTIC
544
545#
546# REGRESSION causes optional kernel interfaces necessary only for regression
547# testing to be enabled.  These interfaces may constitute security risks
548# when enabled, as they permit processes to easily modify aspects of the
549# run-time environment to reproduce unlikely or unusual (possibly normally
550# impossible) scenarios.
551#
552options 	REGRESSION
553
554#
555# This option lets some drivers co-exist that can't co-exist in a running
556# system.  This is used to be able to compile all kernel code in one go for
557# quality assurance purposes (like this file, which the option takes it name
558# from.)
559#
560options 	COMPILING_LINT
561
562#
563# STACK enables the stack(9) facility, allowing the capture of kernel stack
564# for the purpose of procinfo(1), etc.  stack(9) will also be compiled in
565# automatically if DDB(4) is compiled into the kernel.
566#
567options 	STACK
568
569
570#####################################################################
571# PERFORMANCE MONITORING OPTIONS
572
573#
574# The hwpmc driver that allows the use of in-CPU performance monitoring
575# counters for performance monitoring.  The base kernel needs to be configured
576# with the 'options' line, while the hwpmc device can be either compiled
577# in or loaded as a loadable kernel module.
578#
579# Additional configuration options may be required on specific architectures,
580# please see hwpmc(4).
581
582device		hwpmc			# Driver (also a loadable module)
583options 	HWPMC_DEBUG
584options 	HWPMC_HOOKS		# Other necessary kernel hooks
585
586
587#####################################################################
588# NETWORKING OPTIONS
589
590#
591# Protocol families
592#
593options 	INET			#Internet communications protocols
594options 	INET6			#IPv6 communications protocols
595
596options 	ROUTETABLES=2		# allocated fibs up to 65536. default is 1.
597					# but that would be a bad idea as they are large.
598
599options 	TCP_OFFLOAD		# TCP offload support.
600
601# In order to enable IPSEC you MUST also add device crypto to
602# your kernel configuration
603options 	IPSEC			#IP security (requires device crypto)
604#options 	IPSEC_DEBUG		#debug for IP security
605#
606# #DEPRECATED#
607# Set IPSEC_FILTERTUNNEL to change the default of the sysctl to force packets
608# coming through a tunnel to be processed by any configured packet filtering
609# twice. The default is that packets coming out of a tunnel are _not_ processed;
610# they are assumed trusted.
611#
612# IPSEC history is preserved for such packets, and can be filtered
613# using ipfw(8)'s 'ipsec' keyword, when this option is enabled.
614#
615#options 	IPSEC_FILTERTUNNEL	#filter ipsec packets from a tunnel
616#
617# Set IPSEC_NAT_T to enable NAT-Traversal support.  This enables
618# optional UDP encapsulation of ESP packets.
619#
620options		IPSEC_NAT_T		#NAT-T support, UDP encap of ESP
621
622#
623# SMB/CIFS requester
624# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
625# options.
626options 	NETSMB			#SMB/CIFS requester
627
628# mchain library. It can be either loaded as KLD or compiled into kernel
629options 	LIBMCHAIN
630
631# libalias library, performing NAT
632options 	LIBALIAS
633
634# flowtable cache
635options 	FLOWTABLE
636
637#
638# SCTP is a NEW transport protocol defined by
639# RFC2960 updated by RFC3309 and RFC3758.. and
640# soon to have a new base RFC and many many more
641# extensions. This release supports all the extensions
642# including many drafts (most about to become RFC's).
643# It is the reference implementation of SCTP
644# and is quite well tested.
645#
646# Note YOU MUST have both INET and INET6 defined.
647# You don't have to enable V6, but SCTP is
648# dual stacked and so far we have not torn apart
649# the V6 and V4.. since an association can span
650# both a V6 and V4 address at the SAME time :-)
651#
652options 	SCTP
653# There are bunches of options:
654# this one turns on all sorts of
655# nastily printing that you can
656# do. It's all controlled by a
657# bit mask (settable by socket opt and
658# by sysctl). Including will not cause
659# logging until you set the bits.. but it
660# can be quite verbose.. so without this
661# option we don't do any of the tests for
662# bits and prints.. which makes the code run
663# faster.. if you are not debugging don't use.
664options 	SCTP_DEBUG
665#
666# This option turns off the CRC32c checksum. Basically,
667# you will not be able to talk to anyone else who
668# has not done this. Its more for experimentation to
669# see how much CPU the CRC32c really takes. Most new
670# cards for TCP support checksum offload.. so this
671# option gives you a "view" into what SCTP would be
672# like with such an offload (which only exists in
673# high in iSCSI boards so far). With the new
674# splitting 8's algorithm its not as bad as it used
675# to be.. but it does speed things up try only
676# for in a captured lab environment :-)
677options 	SCTP_WITH_NO_CSUM
678#
679
680#
681# All that options after that turn on specific types of
682# logging. You can monitor CWND growth, flight size
683# and all sorts of things. Go look at the code and
684# see. I have used this to produce interesting
685# charts and graphs as well :->
686#
687# I have not yet committed the tools to get and print
688# the logs, I will do that eventually .. before then
689# if you want them send me an email rrs@freebsd.org
690# You basically must have ktr(4) enabled for these
691# and you then set the sysctl to turn on/off various
692# logging bits. Use ktrdump(8) to pull the log and run
693# it through a display program.. and graphs and other
694# things too.
695#
696options 	SCTP_LOCK_LOGGING
697options 	SCTP_MBUF_LOGGING
698options 	SCTP_MBCNT_LOGGING
699options 	SCTP_PACKET_LOGGING
700options 	SCTP_LTRACE_CHUNKS
701options 	SCTP_LTRACE_ERRORS
702
703
704# altq(9). Enable the base part of the hooks with the ALTQ option.
705# Individual disciplines must be built into the base system and can not be
706# loaded as modules at this point. ALTQ requires a stable TSC so if yours is
707# broken or changes with CPU throttling then you must also have the ALTQ_NOPCC
708# option.
709options 	ALTQ
710options 	ALTQ_CBQ	# Class Based Queueing
711options 	ALTQ_RED	# Random Early Detection
712options 	ALTQ_RIO	# RED In/Out
713options 	ALTQ_HFSC	# Hierarchical Packet Scheduler
714options		ALTQ_FAIRQ	# Fair Packet Scheduler
715options 	ALTQ_CDNR	# Traffic conditioner
716options 	ALTQ_PRIQ	# Priority Queueing
717options 	ALTQ_NOPCC	# Required if the TSC is unusable
718options 	ALTQ_DEBUG
719
720# netgraph(4). Enable the base netgraph code with the NETGRAPH option.
721# Individual node types can be enabled with the corresponding option
722# listed below; however, this is not strictly necessary as netgraph
723# will automatically load the corresponding KLD module if the node type
724# is not already compiled into the kernel. Each type below has a
725# corresponding man page, e.g., ng_async(8).
726options 	NETGRAPH		# netgraph(4) system
727options 	NETGRAPH_DEBUG		# enable extra debugging, this
728					# affects netgraph(4) and nodes
729# Node types
730options 	NETGRAPH_ASYNC
731options 	NETGRAPH_ATMLLC
732options 	NETGRAPH_ATM_ATMPIF
733options 	NETGRAPH_BLUETOOTH		# ng_bluetooth(4)
734options 	NETGRAPH_BLUETOOTH_BT3C		# ng_bt3c(4)
735options 	NETGRAPH_BLUETOOTH_HCI		# ng_hci(4)
736options 	NETGRAPH_BLUETOOTH_L2CAP	# ng_l2cap(4)
737options 	NETGRAPH_BLUETOOTH_SOCKET	# ng_btsocket(4)
738options 	NETGRAPH_BLUETOOTH_UBT		# ng_ubt(4)
739options 	NETGRAPH_BLUETOOTH_UBTBCMFW	# ubtbcmfw(4)
740options 	NETGRAPH_BPF
741options 	NETGRAPH_BRIDGE
742options 	NETGRAPH_CAR
743options 	NETGRAPH_CISCO
744options 	NETGRAPH_DEFLATE
745options 	NETGRAPH_DEVICE
746options 	NETGRAPH_ECHO
747options 	NETGRAPH_EIFACE
748options 	NETGRAPH_ETHER
749options 	NETGRAPH_FRAME_RELAY
750options 	NETGRAPH_GIF
751options 	NETGRAPH_GIF_DEMUX
752options 	NETGRAPH_HOLE
753options 	NETGRAPH_IFACE
754options 	NETGRAPH_IP_INPUT
755options 	NETGRAPH_IPFW
756options 	NETGRAPH_KSOCKET
757options 	NETGRAPH_L2TP
758options 	NETGRAPH_LMI
759# MPPC compression requires proprietary files (not included)
760#options 	NETGRAPH_MPPC_COMPRESSION
761options 	NETGRAPH_MPPC_ENCRYPTION
762options 	NETGRAPH_NETFLOW
763options 	NETGRAPH_NAT
764options 	NETGRAPH_ONE2MANY
765options 	NETGRAPH_PATCH
766options 	NETGRAPH_PIPE
767options 	NETGRAPH_PPP
768options 	NETGRAPH_PPPOE
769options 	NETGRAPH_PPTPGRE
770options 	NETGRAPH_PRED1
771options 	NETGRAPH_RFC1490
772options 	NETGRAPH_SOCKET
773options 	NETGRAPH_SPLIT
774options 	NETGRAPH_SPPP
775options 	NETGRAPH_TAG
776options 	NETGRAPH_TCPMSS
777options 	NETGRAPH_TEE
778options 	NETGRAPH_UI
779options 	NETGRAPH_VJC
780options 	NETGRAPH_VLAN
781
782# NgATM - Netgraph ATM
783options 	NGATM_ATM
784options 	NGATM_ATMBASE
785options 	NGATM_SSCOP
786options 	NGATM_SSCFU
787options 	NGATM_UNI
788options 	NGATM_CCATM
789
790device		mn	# Munich32x/Falc54 Nx64kbit/sec cards.
791
792# Network stack virtualization.
793#options	VIMAGE
794#options	VNET_DEBUG	# debug for VIMAGE
795
796#
797# Network interfaces:
798#  The `loop' device is MANDATORY when networking is enabled.
799device		loop
800
801#  The `ether' device provides generic code to handle
802#  Ethernets; it is MANDATORY when an Ethernet device driver is
803#  configured or token-ring is enabled.
804device		ether
805
806#  The `vlan' device implements the VLAN tagging of Ethernet frames
807#  according to IEEE 802.1Q.
808device		vlan
809
810# The `vxlan' device implements the VXLAN encapsulation of Ethernet
811# frames in UDP packets according to RFC7348.
812device		vxlan
813
814#  The `wlan' device provides generic code to support 802.11
815#  drivers, including host AP mode; it is MANDATORY for the wi,
816#  and ath drivers and will eventually be required by all 802.11 drivers.
817device		wlan
818options 	IEEE80211_DEBUG		#enable debugging msgs
819options 	IEEE80211_AMPDU_AGE	#age frames in AMPDU reorder q's
820options 	IEEE80211_SUPPORT_MESH	#enable 802.11s D3.0 support
821options 	IEEE80211_SUPPORT_TDMA	#enable TDMA support
822
823#  The `wlan_wep', `wlan_tkip', and `wlan_ccmp' devices provide
824#  support for WEP, TKIP, and AES-CCMP crypto protocols optionally
825#  used with 802.11 devices that depend on the `wlan' module.
826device		wlan_wep
827device		wlan_ccmp
828device		wlan_tkip
829
830#  The `wlan_xauth' device provides support for external (i.e. user-mode)
831#  authenticators for use with 802.11 drivers that use the `wlan'
832#  module and support 802.1x and/or WPA security protocols.
833device		wlan_xauth
834
835#  The `wlan_acl' device provides a MAC-based access control mechanism
836#  for use with 802.11 drivers operating in ap mode and using the
837#  `wlan' module.
838#  The 'wlan_amrr' device provides AMRR transmit rate control algorithm
839device		wlan_acl
840device		wlan_amrr
841
842# Generic TokenRing
843device		token
844
845#  The `fddi' device provides generic code to support FDDI.
846device		fddi
847
848#  The `arcnet' device provides generic code to support Arcnet.
849device		arcnet
850
851#  The `sppp' device serves a similar role for certain types
852#  of synchronous PPP links (like `cx', `ar').
853device		sppp
854
855#  The `bpf' device enables the Berkeley Packet Filter.  Be
856#  aware of the legal and administrative consequences of enabling this
857#  option.  DHCP requires bpf.
858device		bpf
859
860#  The `netmap' device implements memory-mapped access to network
861#  devices from userspace, enabling wire-speed packet capture and
862#  generation even at 10Gbit/s. Requires support in the device
863#  driver. Supported drivers are ixgbe, e1000, re.
864device		netmap
865
866#  The `disc' device implements a minimal network interface,
867#  which throws away all packets sent and never receives any.  It is
868#  included for testing and benchmarking purposes.
869device		disc
870
871# The `epair' device implements a virtual back-to-back connected Ethernet
872# like interface pair.
873device		epair
874
875#  The `edsc' device implements a minimal Ethernet interface,
876#  which discards all packets sent and receives none.
877device		edsc
878
879#  The `tap' device is a pty-like virtual Ethernet interface
880device		tap
881
882#  The `tun' device implements (user-)ppp and nos-tun(8)
883device		tun
884
885#  The `gif' device implements IPv6 over IP4 tunneling,
886#  IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling and
887#  IPv6 over IPv6 tunneling.
888#  The `gre' device implements GRE (Generic Routing Encapsulation) tunneling,
889#  as specified in the RFC 2784 and RFC 2890.
890#  The `me' device implements Minimal Encapsulation within IPv4 as
891#  specified in the RFC 2004.
892#  The XBONEHACK option allows the same pair of addresses to be configured on
893#  multiple gif interfaces.
894device		gif
895device		gre
896device		me
897options 	XBONEHACK
898
899#  The `stf' device implements 6to4 encapsulation.
900device		stf
901
902# The pf packet filter consists of three devices:
903#  The `pf' device provides /dev/pf and the firewall code itself.
904#  The `pflog' device provides the pflog0 interface which logs packets.
905#  The `pfsync' device provides the pfsync0 interface used for
906#   synchronization of firewall state tables (over the net).
907device		pf
908device		pflog
909device		pfsync
910
911# Bridge interface.
912device		if_bridge
913
914# Common Address Redundancy Protocol. See carp(4) for more details.
915device		carp
916
917# IPsec interface.
918device		enc
919
920# Link aggregation interface.
921device		lagg
922
923#
924# Internet family options:
925#
926# MROUTING enables the kernel multicast packet forwarder, which works
927# with mrouted and XORP.
928#
929# IPFIREWALL enables support for IP firewall construction, in
930# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
931# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
932# limits the number of times a matching entry can be logged.
933#
934# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
935# and if you do not add other rules during startup to allow access,
936# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set firewall_type=open
937# in /etc/rc.conf when first enabling this feature, then refining the
938# firewall rules in /etc/rc.firewall after you've tested that the new kernel
939# feature works properly.
940#
941# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
942# allow everything.  Use with care, if a cracker can crash your
943# firewall machine, they can get to your protected machines.  However,
944# if you are using it as an as-needed filter for specific problems as
945# they arise, then this may be for you.  Changing the default to 'allow'
946# means that you won't get stuck if the kernel and /sbin/ipfw binary get
947# out of sync.
948#
949# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''.  It
950# depends on IPFIREWALL if compiled into the kernel.
951#
952# IPFIREWALL_NAT adds support for in kernel nat in ipfw, and it requires
953# LIBALIAS.
954#
955# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
956# packets without touching the TTL).  This can be useful to hide firewalls
957# from traceroute and similar tools.
958#
959# PF_DEFAULT_TO_DROP causes the default pf(4) rule to deny everything.
960#
961# TCPDEBUG enables code which keeps traces of the TCP state machine
962# for sockets with the SO_DEBUG option set, which can then be examined
963# using the trpt(8) utility.
964#
965# TCPPCAP enables code which keeps the last n packets sent and received
966# on a TCP socket.
967#
968# RADIX_MPATH provides support for equal-cost multi-path routing.
969#
970options 	MROUTING		# Multicast routing
971options 	IPFIREWALL		#firewall
972options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
973options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
974options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
975options 	IPFIREWALL_NAT		#ipfw kernel nat support
976options 	IPDIVERT		#divert sockets
977options 	IPFILTER		#ipfilter support
978options 	IPFILTER_LOG		#ipfilter logging
979options 	IPFILTER_LOOKUP		#ipfilter pools
980options 	IPFILTER_DEFAULT_BLOCK	#block all packets by default
981options 	IPSTEALTH		#support for stealth forwarding
982options 	PF_DEFAULT_TO_DROP	#drop everything by default
983options 	TCPDEBUG
984options 	TCPPCAP
985options 	RADIX_MPATH
986
987# The MBUF_STRESS_TEST option enables options which create
988# various random failures / extreme cases related to mbuf
989# functions.  See mbuf(9) for a list of available test cases.
990# MBUF_PROFILING enables code to profile the mbuf chains
991# exiting the system (via participating interfaces) and
992# return a logarithmic histogram of monitored parameters
993# (e.g. packet size, wasted space, number of mbufs in chain).
994options 	MBUF_STRESS_TEST
995options 	MBUF_PROFILING
996
997# Statically link in accept filters
998options 	ACCEPT_FILTER_DATA
999options 	ACCEPT_FILTER_DNS
1000options 	ACCEPT_FILTER_HTTP
1001
1002# TCP_SIGNATURE adds support for RFC 2385 (TCP-MD5) digests. These are
1003# carried in TCP option 19. This option is commonly used to protect
1004# TCP sessions (e.g. BGP) where IPSEC is not available nor desirable.
1005# This is enabled on a per-socket basis using the TCP_MD5SIG socket option.
1006# This requires the use of 'device crypto' and 'options IPSEC'.
1007options 	TCP_SIGNATURE		#include support for RFC 2385
1008
1009# DUMMYNET enables the "dummynet" bandwidth limiter.  You need IPFIREWALL
1010# as well.  See dummynet(4) and ipfw(8) for more info.  When you run
1011# DUMMYNET it is advisable to also have at least "options HZ=1000" to achieve
1012# a smooth scheduling of the traffic.
1013options 	DUMMYNET
1014
1015#####################################################################
1016# FILESYSTEM OPTIONS
1017
1018#
1019# Only the root filesystem needs to be statically compiled or preloaded
1020# as module; everything else will be automatically loaded at mount
1021# time.  Some people still prefer to statically compile other
1022# filesystems as well.
1023#
1024# NB: The UNION filesystem was known to be buggy in the past.  It is now
1025# being actively maintained, although there are still some issues being
1026# resolved.
1027#
1028
1029# One of these is mandatory:
1030options 	FFS			#Fast filesystem
1031options 	NFSCL			#Network File System client
1032
1033# The rest are optional:
1034options 	AUTOFS			#Automounter filesystem
1035options 	CD9660			#ISO 9660 filesystem
1036options 	FDESCFS			#File descriptor filesystem
1037options 	FUSE			#FUSE support module
1038options 	MSDOSFS			#MS DOS File System (FAT, FAT32)
1039options 	NFSLOCKD		#Network Lock Manager
1040options 	NFSD			#Network Filesystem Server
1041options 	KGSSAPI			#Kernel GSSAPI implementation
1042
1043options 	NULLFS			#NULL filesystem
1044options 	PROCFS			#Process filesystem (requires PSEUDOFS)
1045options 	PSEUDOFS		#Pseudo-filesystem framework
1046options 	PSEUDOFS_TRACE		#Debugging support for PSEUDOFS
1047options 	SMBFS			#SMB/CIFS filesystem
1048options 	TMPFS			#Efficient memory filesystem
1049options 	UDF			#Universal Disk Format
1050options 	UNIONFS			#Union filesystem
1051# The xFS_ROOT options REQUIRE the associated ``options xFS''
1052options 	NFS_ROOT		#NFS usable as root device
1053
1054# Soft updates is a technique for improving filesystem speed and
1055# making abrupt shutdown less risky.
1056#
1057options 	SOFTUPDATES
1058
1059# Extended attributes allow additional data to be associated with files,
1060# and is used for ACLs, Capabilities, and MAC labels.
1061# See src/sys/ufs/ufs/README.extattr for more information.
1062options 	UFS_EXTATTR
1063options 	UFS_EXTATTR_AUTOSTART
1064
1065# Access Control List support for UFS filesystems.  The current ACL
1066# implementation requires extended attribute support, UFS_EXTATTR,
1067# for the underlying filesystem.
1068# See src/sys/ufs/ufs/README.acls for more information.
1069options 	UFS_ACL
1070
1071# Directory hashing improves the speed of operations on very large
1072# directories at the expense of some memory.
1073options 	UFS_DIRHASH
1074
1075# Gjournal-based UFS journaling support.
1076options 	UFS_GJOURNAL
1077
1078# Make space in the kernel for a root filesystem on a md device.
1079# Define to the number of kilobytes to reserve for the filesystem.
1080# This is now optional.
1081# If not defined, the root filesystem passed in as the MFS_IMAGE makeoption
1082# will be automatically embedded in the kernel during linking. Its exact size
1083# will be consumed within the kernel.
1084# If defined, the old way of embedding the filesystem in the kernel will be
1085# used. That is to say MD_ROOT_SIZE KB will be allocated in the kernel and
1086# later, the filesystem image passed in as the MFS_IMAGE makeoption will be
1087# dd'd into the reserved space if it fits.
1088options 	MD_ROOT_SIZE=10
1089
1090# Make the md device a potential root device, either with preloaded
1091# images of type mfs_root or md_root.
1092options 	MD_ROOT
1093
1094# Disk quotas are supported when this option is enabled.
1095options 	QUOTA			#enable disk quotas
1096
1097# If you are running a machine just as a fileserver for PC and MAC
1098# users, using SAMBA, you may consider setting this option
1099# and keeping all those users' directories on a filesystem that is
1100# mounted with the suiddir option. This gives new files the same
1101# ownership as the directory (similar to group). It's a security hole
1102# if you let these users run programs, so confine it to file-servers
1103# (but it'll save you lots of headaches in those cases). Root owned
1104# directories are exempt and X bits are cleared. The suid bit must be
1105# set on the directory as well; see chmod(1). PC owners can't see/set
1106# ownerships so they keep getting their toes trodden on. This saves
1107# you all the support calls as the filesystem it's used on will act as
1108# they expect: "It's my dir so it must be my file".
1109#
1110options 	SUIDDIR
1111
1112# NFS options:
1113options 	NFS_MINATTRTIMO=3	# VREG attrib cache timeout in sec
1114options 	NFS_MAXATTRTIMO=60
1115options 	NFS_MINDIRATTRTIMO=30	# VDIR attrib cache timeout in sec
1116options 	NFS_MAXDIRATTRTIMO=60
1117options 	NFS_DEBUG		# Enable NFS Debugging
1118
1119#
1120# Add support for the EXT2FS filesystem of Linux fame.  Be a bit
1121# careful with this - the ext2fs code has a tendency to lag behind
1122# changes and not be exercised very much, so mounting read/write could
1123# be dangerous (and even mounting read only could result in panics.)
1124#
1125options 	EXT2FS
1126
1127#
1128# Add support for the ReiserFS filesystem (used in Linux). Currently,
1129# this is limited to read-only access.
1130#
1131options 	REISERFS
1132
1133# Cryptographically secure random number generator; /dev/random
1134device		random
1135
1136# The system memory devices; /dev/mem, /dev/kmem
1137device		mem
1138
1139# The kernel symbol table device; /dev/ksyms
1140device		ksyms
1141
1142# Optional character code conversion support with LIBICONV.
1143# Each option requires their base file system and LIBICONV.
1144options 	CD9660_ICONV
1145options 	MSDOSFS_ICONV
1146options 	UDF_ICONV
1147
1148
1149#####################################################################
1150# POSIX P1003.1B
1151
1152# Real time extensions added in the 1993 POSIX
1153# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
1154
1155options 	_KPOSIX_PRIORITY_SCHEDULING
1156# p1003_1b_semaphores are very experimental,
1157# user should be ready to assist in debugging if problems arise.
1158options 	P1003_1B_SEMAPHORES
1159
1160# POSIX message queue
1161options 	P1003_1B_MQUEUE
1162
1163#####################################################################
1164# SECURITY POLICY PARAMETERS
1165
1166# Support for BSM audit
1167options 	AUDIT
1168
1169# Support for Mandatory Access Control (MAC):
1170options 	MAC
1171options 	MAC_BIBA
1172options 	MAC_BSDEXTENDED
1173options 	MAC_IFOFF
1174options 	MAC_LOMAC
1175options 	MAC_MLS
1176options 	MAC_NONE
1177options 	MAC_PARTITION
1178options 	MAC_PORTACL
1179options 	MAC_SEEOTHERUIDS
1180options 	MAC_STUB
1181options 	MAC_TEST
1182
1183# Support for Capsicum
1184options 	CAPABILITIES	# fine-grained rights on file descriptors
1185options 	CAPABILITY_MODE	# sandboxes with no global namespace access
1186
1187
1188#####################################################################
1189# CLOCK OPTIONS
1190
1191# The granularity of operation is controlled by the kernel option HZ whose
1192# default value (1000 on most architectures) means a granularity of 1ms
1193# (1s/HZ).  Historically, the default was 100, but finer granularity is
1194# required for DUMMYNET and other systems on modern hardware.  There are
1195# reasonable arguments that HZ should, in fact, be 100 still; consider,
1196# that reducing the granularity too much might cause excessive overhead in
1197# clock interrupt processing, potentially causing ticks to be missed and thus
1198# actually reducing the accuracy of operation.
1199
1200options 	HZ=100
1201
1202# Enable support for the kernel PLL to use an external PPS signal,
1203# under supervision of [x]ntpd(8)
1204# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
1205
1206options 	PPS_SYNC
1207
1208# Enable support for generic feed-forward clocks in the kernel.
1209# The feed-forward clock support is an alternative to the feedback oriented
1210# ntpd/system clock approach, and is to be used with a feed-forward
1211# synchronization algorithm such as the RADclock:
1212# More info here: http://www.synclab.org/radclock
1213
1214options 	FFCLOCK
1215
1216
1217#####################################################################
1218# SCSI DEVICES
1219
1220# SCSI DEVICE CONFIGURATION
1221
1222# The SCSI subsystem consists of the `base' SCSI code, a number of
1223# high-level SCSI device `type' drivers, and the low-level host-adapter
1224# device drivers.  The host adapters are listed in the ISA and PCI
1225# device configuration sections below.
1226#
1227# It is possible to wire down your SCSI devices so that a given bus,
1228# target, and LUN always come on line as the same device unit.  In
1229# earlier versions the unit numbers were assigned in the order that
1230# the devices were probed on the SCSI bus.  This means that if you
1231# removed a disk drive, you may have had to rewrite your /etc/fstab
1232# file, and also that you had to be careful when adding a new disk
1233# as it may have been probed earlier and moved your device configuration
1234# around.  (See also option GEOM_VOL for a different solution to this
1235# problem.)
1236
1237# This old behavior is maintained as the default behavior.  The unit
1238# assignment begins with the first non-wired down unit for a device
1239# type.  For example, if you wire a disk as "da3" then the first
1240# non-wired disk will be assigned da4.
1241
1242# The syntax for wiring down devices is:
1243
1244hint.scbus.0.at="ahc0"
1245hint.scbus.1.at="ahc1"
1246hint.scbus.1.bus="0"
1247hint.scbus.3.at="ahc2"
1248hint.scbus.3.bus="0"
1249hint.scbus.2.at="ahc2"
1250hint.scbus.2.bus="1"
1251hint.da.0.at="scbus0"
1252hint.da.0.target="0"
1253hint.da.0.unit="0"
1254hint.da.1.at="scbus3"
1255hint.da.1.target="1"
1256hint.da.2.at="scbus2"
1257hint.da.2.target="3"
1258hint.sa.1.at="scbus1"
1259hint.sa.1.target="6"
1260
1261# "units" (SCSI logical unit number) that are not specified are
1262# treated as if specified as LUN 0.
1263
1264# All SCSI devices allocate as many units as are required.
1265
1266# The ch driver drives SCSI Media Changer ("jukebox") devices.
1267#
1268# The da driver drives SCSI Direct Access ("disk") and Optical Media
1269# ("WORM") devices.
1270#
1271# The sa driver drives SCSI Sequential Access ("tape") devices.
1272#
1273# The cd driver drives SCSI Read Only Direct Access ("cd") devices.
1274#
1275# The ses driver drives SCSI Environment Services ("ses") and
1276# SAF-TE ("SCSI Accessible Fault-Tolerant Enclosure") devices.
1277#
1278# The pt driver drives SCSI Processor devices.
1279#
1280# The sg driver provides a passthrough API that is compatible with the
1281# Linux SG driver.  It will work in conjunction with the COMPAT_LINUX
1282# option to run linux SG apps.  It can also stand on its own and provide
1283# source level API compatibility for porting apps to FreeBSD.
1284#
1285# Target Mode support is provided here but also requires that a SIM
1286# (SCSI Host Adapter Driver) provide support as well.
1287#
1288# The targ driver provides target mode support as a Processor type device.
1289# It exists to give the minimal context necessary to respond to Inquiry
1290# commands. There is a sample user application that shows how the rest
1291# of the command support might be done in /usr/share/examples/scsi_target.
1292#
1293# The targbh driver provides target mode support and exists to respond
1294# to incoming commands that do not otherwise have a logical unit assigned
1295# to them.
1296#
1297# The pass driver provides a passthrough API to access the CAM subsystem.
1298
1299device		scbus		#base SCSI code
1300device		ch		#SCSI media changers
1301device		da		#SCSI direct access devices (aka disks)
1302device		sa		#SCSI tapes
1303device		cd		#SCSI CD-ROMs
1304device		ses		#Enclosure Services (SES and SAF-TE)
1305device		pt		#SCSI processor
1306device		targ		#SCSI Target Mode Code
1307device		targbh		#SCSI Target Mode Blackhole Device
1308device		pass		#CAM passthrough driver
1309device		sg		#Linux SCSI passthrough
1310device		ctl		#CAM Target Layer
1311
1312# CAM OPTIONS:
1313# debugging options:
1314# CAMDEBUG		Compile in all possible debugging.
1315# CAM_DEBUG_COMPILE	Debug levels to compile in.
1316# CAM_DEBUG_FLAGS	Debug levels to enable on boot.
1317# CAM_DEBUG_BUS		Limit debugging to the given bus.
1318# CAM_DEBUG_TARGET	Limit debugging to the given target.
1319# CAM_DEBUG_LUN		Limit debugging to the given lun.
1320# CAM_DEBUG_DELAY	Delay in us after printing each debug line.
1321#
1322# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
1323# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
1324# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
1325# SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter)
1326#             queue after a bus reset, and the number of milliseconds to
1327#             freeze the device queue after a bus device reset.  This
1328#             can be changed at boot and runtime with the
1329#             kern.cam.scsi_delay tunable/sysctl.
1330options 	CAMDEBUG
1331options 	CAM_DEBUG_COMPILE=-1
1332options 	CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH)
1333options 	CAM_DEBUG_BUS=-1
1334options 	CAM_DEBUG_TARGET=-1
1335options 	CAM_DEBUG_LUN=-1
1336options 	CAM_DEBUG_DELAY=1
1337options 	CAM_MAX_HIGHPOWER=4
1338options 	SCSI_NO_SENSE_STRINGS
1339options 	SCSI_NO_OP_STRINGS
1340options 	SCSI_DELAY=5000	# Be pessimistic about Joe SCSI device
1341
1342# Options for the CAM CDROM driver:
1343# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
1344# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
1345#                           enforced if there is I/O waiting for another LUN
1346# The compiled in defaults for these variables are 2 and 10 seconds,
1347# respectively.
1348#
1349# These can also be changed on the fly with the following sysctl variables:
1350# kern.cam.cd.changer.min_busy_seconds
1351# kern.cam.cd.changer.max_busy_seconds
1352#
1353options 	CHANGER_MIN_BUSY_SECONDS=2
1354options 	CHANGER_MAX_BUSY_SECONDS=10
1355
1356# Options for the CAM sequential access driver:
1357# SA_IO_TIMEOUT: Timeout for read/write/wfm  operations, in minutes
1358# SA_SPACE_TIMEOUT: Timeout for space operations, in minutes
1359# SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes
1360# SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes
1361# SA_1FM_AT_EOD: Default to model which only has a default one filemark at EOT.
1362options 	SA_IO_TIMEOUT=4
1363options 	SA_SPACE_TIMEOUT=60
1364options 	SA_REWIND_TIMEOUT=(2*60)
1365options 	SA_ERASE_TIMEOUT=(4*60)
1366options 	SA_1FM_AT_EOD
1367
1368# Optional timeout for the CAM processor target (pt) device
1369# This is specified in seconds.  The default is 60 seconds.
1370options 	SCSI_PT_DEFAULT_TIMEOUT=60
1371
1372# Optional enable of doing SES passthrough on other devices (e.g., disks)
1373#
1374# Normally disabled because a lot of newer SCSI disks report themselves
1375# as having SES capabilities, but this can then clot up attempts to build
1376# a topology with the SES device that's on the box these drives are in....
1377options 	SES_ENABLE_PASSTHROUGH
1378
1379
1380#####################################################################
1381# MISCELLANEOUS DEVICES AND OPTIONS
1382
1383device		pty		#BSD-style compatibility pseudo ttys
1384device		nmdm		#back-to-back tty devices
1385device		md		#Memory/malloc disk
1386device		snp		#Snoop device - to look at pty/vty/etc..
1387device		ccd		#Concatenated disk driver
1388device		firmware	#firmware(9) support
1389
1390# Kernel side iconv library
1391options 	LIBICONV
1392
1393# Size of the kernel message buffer.  Should be N * pagesize.
1394options 	MSGBUF_SIZE=40960
1395
1396
1397#####################################################################
1398# HARDWARE DEVICE CONFIGURATION
1399
1400# For ISA the required hints are listed.
1401# EISA, MCA, PCI, CardBus, SD/MMC and pccard are self identifying buses, so
1402# no hints are needed.
1403
1404#
1405# Mandatory devices:
1406#
1407
1408# These options are valid for other keyboard drivers as well.
1409options 	KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
1410options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
1411
1412options 	FB_DEBUG		# Frame buffer debugging
1413
1414device		splash			# Splash screen and screen saver support
1415
1416# Various screen savers.
1417device		blank_saver
1418device		daemon_saver
1419device		dragon_saver
1420device		fade_saver
1421device		fire_saver
1422device		green_saver
1423device		logo_saver
1424device		rain_saver
1425device		snake_saver
1426device		star_saver
1427device		warp_saver
1428
1429# The syscons console driver (SCO color console compatible).
1430device		sc
1431hint.sc.0.at="isa"
1432options 	MAXCONS=16		# number of virtual consoles
1433options 	SC_ALT_MOUSE_IMAGE	# simplified mouse cursor in text mode
1434options 	SC_DFLT_FONT		# compile font in
1435makeoptions	SC_DFLT_FONT=cp850
1436options 	SC_DISABLE_KDBKEY	# disable `debug' key
1437options 	SC_DISABLE_REBOOT	# disable reboot key sequence
1438options 	SC_HISTORY_SIZE=200	# number of history buffer lines
1439options 	SC_MOUSE_CHAR=0x3	# char code for text mode mouse cursor
1440options 	SC_PIXEL_MODE		# add support for the raster text mode
1441
1442# The following options will let you change the default colors of syscons.
1443options 	SC_NORM_ATTR=(FG_GREEN|BG_BLACK)
1444options 	SC_NORM_REV_ATTR=(FG_YELLOW|BG_GREEN)
1445options 	SC_KERNEL_CONS_ATTR=(FG_RED|BG_BLACK)
1446options 	SC_KERNEL_CONS_REV_ATTR=(FG_BLACK|BG_RED)
1447
1448# The following options will let you change the default behavior of
1449# cut-n-paste feature
1450options 	SC_CUT_SPACES2TABS	# convert leading spaces into tabs
1451options 	SC_CUT_SEPCHARS=\"x09\"	# set of characters that delimit words
1452					# (default is single space - \"x20\")
1453
1454# If you have a two button mouse, you may want to add the following option
1455# to use the right button of the mouse to paste text.
1456options 	SC_TWOBUTTON_MOUSE
1457
1458# You can selectively disable features in syscons.
1459options 	SC_NO_CUTPASTE
1460options 	SC_NO_FONT_LOADING
1461options 	SC_NO_HISTORY
1462options 	SC_NO_MODE_CHANGE
1463options 	SC_NO_SYSMOUSE
1464options 	SC_NO_SUSPEND_VTYSWITCH
1465
1466# `flags' for sc
1467#	0x80	Put the video card in the VESA 800x600 dots, 16 color mode
1468#	0x100	Probe for a keyboard device periodically if one is not present
1469
1470# Enable experimental features of the syscons terminal emulator (teken).
1471options 	TEKEN_CONS25		# cons25-style terminal emulation
1472options 	TEKEN_UTF8		# UTF-8 output handling
1473
1474# The vt video console driver.
1475device		vt
1476options		VT_ALT_TO_ESC_HACK=1	# Prepend ESC sequence to ALT keys
1477options		VT_MAXWINDOWS=16	# Number of virtual consoles
1478options		VT_TWOBUTTON_MOUSE	# Use right mouse button to paste
1479
1480# The following options set the default framebuffer size.
1481options		VT_FB_DEFAULT_HEIGHT=480
1482options		VT_FB_DEFAULT_WIDTH=640
1483
1484# The following options will let you change the default vt terminal colors.
1485options		TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)
1486options		TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)
1487
1488#
1489# Optional devices:
1490#
1491
1492#
1493# SCSI host adapters:
1494#
1495# adv: All Narrow SCSI bus AdvanSys controllers.
1496# adw: Second Generation AdvanSys controllers including the ADV940UW.
1497# aha: Adaptec 154x/1535/1640
1498# ahb: Adaptec 174x EISA controllers
1499# ahc: Adaptec 274x/284x/2910/293x/294x/394x/3950x/3960x/398X/4944/
1500#      19160x/29160x, aic7770/aic78xx
1501# ahd: Adaptec 29320/39320 Controllers.
1502# aic: Adaptec 6260/6360, APA-1460 (PC Card), NEC PC9801-100 (C-BUS)
1503# bt:  Most Buslogic controllers: including BT-445, BT-54x, BT-64x, BT-74x,
1504#      BT-75x, BT-946, BT-948, BT-956, BT-958, SDC3211B, SDC3211F, SDC3222F
1505# esp: Emulex ESP, NCR 53C9x and QLogic FAS families based controllers
1506#      including the AMD Am53C974 (found on devices such as the Tekram
1507#      DC-390(T)) and the Sun ESP and FAS families of controllers
1508# isp: Qlogic ISP 1020, 1040 and 1040B PCI SCSI host adapters,
1509#      ISP 1240 Dual Ultra SCSI, ISP 1080 and 1280 (Dual) Ultra2,
1510#      ISP 12160 Ultra3 SCSI,
1511#      Qlogic ISP 2100 and ISP 2200 1Gb Fibre Channel host adapters.
1512#      Qlogic ISP 2300 and ISP 2312 2Gb Fibre Channel host adapters.
1513#      Qlogic ISP 2322 and ISP 6322 2Gb Fibre Channel host adapters.
1514# ispfw: Firmware module for Qlogic host adapters
1515# mpt: LSI-Logic MPT/Fusion 53c1020 or 53c1030 Ultra4
1516#      or FC9x9 Fibre Channel host adapters.
1517# ncr: NCR 53C810, 53C825 self-contained SCSI host adapters.
1518# sym: Symbios/Logic 53C8XX family of PCI-SCSI I/O processors:
1519#      53C810, 53C810A, 53C815, 53C825,  53C825A, 53C860, 53C875,
1520#      53C876, 53C885,  53C895, 53C895A, 53C896,  53C897, 53C1510D,
1521#      53C1010-33, 53C1010-66.
1522# trm: Tekram DC395U/UW/F DC315U adapters.
1523# wds: WD7000
1524
1525#
1526# Note that the order is important in order for Buslogic ISA/EISA cards to be
1527# probed correctly.
1528#
1529device		bt
1530hint.bt.0.at="isa"
1531hint.bt.0.port="0x330"
1532device		adv
1533hint.adv.0.at="isa"
1534device		adw
1535device		aha
1536hint.aha.0.at="isa"
1537device		aic
1538hint.aic.0.at="isa"
1539device		ahb
1540device		ahc
1541device		ahd
1542device		esp
1543device		iscsi_initiator
1544device		isp
1545hint.isp.0.disable="1"
1546hint.isp.0.role="3"
1547hint.isp.0.prefer_iomap="1"
1548hint.isp.0.prefer_memmap="1"
1549hint.isp.0.fwload_disable="1"
1550hint.isp.0.ignore_nvram="1"
1551hint.isp.0.fullduplex="1"
1552hint.isp.0.topology="lport"
1553hint.isp.0.topology="nport"
1554hint.isp.0.topology="lport-only"
1555hint.isp.0.topology="nport-only"
1556# we can't get u_int64_t types, nor can we get strings if it's got
1557# a leading 0x, hence this silly dodge.
1558hint.isp.0.portwnn="w50000000aaaa0000"
1559hint.isp.0.nodewnn="w50000000aaaa0001"
1560device		ispfw
1561device		mpt
1562device		ncr
1563device		sym
1564device		trm
1565device		wds
1566hint.wds.0.at="isa"
1567hint.wds.0.port="0x350"
1568hint.wds.0.irq="11"
1569hint.wds.0.drq="6"
1570
1571# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1572# controllers that have it configured only if this option is set. Unfortunately,
1573# this doesn't work on some motherboards, which prevents it from being the
1574# default.
1575options 	AHC_ALLOW_MEMIO
1576
1577# Dump the contents of the ahc controller configuration PROM.
1578options 	AHC_DUMP_EEPROM
1579
1580# Bitmap of units to enable targetmode operations.
1581options 	AHC_TMODE_ENABLE
1582
1583# Compile in Aic7xxx Debugging code.
1584options 	AHC_DEBUG
1585
1586# Aic7xxx driver debugging options. See sys/dev/aic7xxx/aic7xxx.h
1587options 	AHC_DEBUG_OPTS
1588
1589# Print register bitfields in debug output.  Adds ~128k to driver
1590# See ahc(4).
1591options 	AHC_REG_PRETTY_PRINT
1592
1593# Compile in aic79xx debugging code.
1594options 	AHD_DEBUG
1595
1596# Aic79xx driver debugging options.  Adds ~215k to driver.  See ahd(4).
1597options 	AHD_DEBUG_OPTS=0xFFFFFFFF
1598
1599# Print human-readable register definitions when debugging
1600options 	AHD_REG_PRETTY_PRINT
1601
1602# Bitmap of units to enable targetmode operations.
1603options 	AHD_TMODE_ENABLE
1604
1605# The adw driver will attempt to use memory mapped I/O for all PCI
1606# controllers that have it configured only if this option is set.
1607options 	ADW_ALLOW_MEMIO
1608
1609# Options used in dev/iscsi (Software iSCSI stack)
1610#
1611options 	ISCSI_INITIATOR_DEBUG=9
1612
1613# Options used in dev/isp/ (Qlogic SCSI/FC driver).
1614#
1615#	ISP_TARGET_MODE		-	enable target mode operation
1616#
1617options 	ISP_TARGET_MODE=1
1618#
1619#	ISP_DEFAULT_ROLES	-	default role
1620#		none=0
1621#		target=1
1622#		initiator=2
1623#		both=3			(not supported currently)
1624#
1625#	ISP_INTERNAL_TARGET		(trivial internal disk target, for testing)
1626#
1627options 	ISP_DEFAULT_ROLES=0
1628
1629# Options used in dev/sym/ (Symbios SCSI driver).
1630#options 	SYM_SETUP_LP_PROBE_MAP	#-Low Priority Probe Map (bits)
1631					# Allows the ncr to take precedence
1632					# 1 (1<<0) -> 810a, 860
1633					# 2 (1<<1) -> 825a, 875, 885, 895
1634					# 4 (1<<2) -> 895a, 896, 1510d
1635#options 	SYM_SETUP_SCSI_DIFF	#-HVD support for 825a, 875, 885
1636					# disabled:0 (default), enabled:1
1637#options 	SYM_SETUP_PCI_PARITY	#-PCI parity checking
1638					# disabled:0, enabled:1 (default)
1639#options 	SYM_SETUP_MAX_LUN	#-Number of LUNs supported
1640					# default:8, range:[1..64]
1641
1642# The 'dpt' driver provides support for old DPT controllers (http://www.dpt.com/).
1643# These have hardware RAID-{0,1,5} support, and do multi-initiator I/O.
1644# The DPT controllers are commonly re-licensed under other brand-names -
1645# some controllers by Olivetti, Dec, HP, AT&T, SNI, AST, Alphatronic, NEC and
1646# Compaq are actually DPT controllers.
1647#
1648# See src/sys/dev/dpt for debugging and other subtle options.
1649#  DPT_MEASURE_PERFORMANCE  Enables a set of (semi)invasive metrics. Various
1650#                           instruments are enabled.  The tools in
1651#                           /usr/sbin/dpt_* assume these to be enabled.
1652#  DPT_DEBUG_xxxx           These are controllable from sys/dev/dpt/dpt.h
1653#  DPT_RESET_HBA            Make "reset" actually reset the controller
1654#                           instead of fudging it.  Only enable this if you
1655#			    are 100% certain you need it.
1656
1657device		dpt
1658
1659# DPT options
1660#!CAM# options 	DPT_MEASURE_PERFORMANCE
1661options 	DPT_RESET_HBA
1662
1663#
1664# Compaq "CISS" RAID controllers (SmartRAID 5* series)
1665# These controllers have a SCSI-like interface, and require the
1666# CAM infrastructure.
1667#
1668device		ciss
1669
1670#
1671# Intel Integrated RAID controllers.
1672# This driver was developed and is maintained by Intel.  Contacts
1673# at Intel for this driver are
1674# "Kannanthanam, Boji T" <boji.t.kannanthanam@intel.com> and
1675# "Leubner, Achim" <achim.leubner@intel.com>.
1676#
1677device		iir
1678
1679#
1680# Mylex AcceleRAID and eXtremeRAID controllers with v6 and later
1681# firmware.  These controllers have a SCSI-like interface, and require
1682# the CAM infrastructure.
1683#
1684device		mly
1685
1686#
1687# Compaq Smart RAID, Mylex DAC960 and AMI MegaRAID controllers.  Only
1688# one entry is needed; the code will find and configure all supported
1689# controllers.
1690#
1691device		ida		# Compaq Smart RAID
1692device		mlx		# Mylex DAC960
1693device		amr		# AMI MegaRAID
1694device		amrp		# SCSI Passthrough interface (optional, CAM req.)
1695device		mfi		# LSI MegaRAID SAS
1696device		mfip		# LSI MegaRAID SAS passthrough, requires CAM
1697options 	MFI_DEBUG
1698device		mrsas		# LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s
1699
1700#
1701# 3ware ATA RAID
1702#
1703device		twe		# 3ware ATA RAID
1704
1705#
1706# Serial ATA host controllers:
1707#
1708# ahci: Advanced Host Controller Interface (AHCI) compatible
1709# mvs:  Marvell 88SX50XX/88SX60XX/88SX70XX/SoC controllers
1710# siis: SiliconImage SiI3124/SiI3132/SiI3531 controllers
1711#
1712# These drivers are part of cam(4) subsystem. They supersede less featured
1713# ata(4) subsystem drivers, supporting same hardware.
1714
1715device		ahci
1716device		mvs
1717device		siis
1718
1719#
1720# The 'ATA' driver supports all legacy ATA/ATAPI controllers, including
1721# PC Card devices. You only need one "device ata" for it to find all
1722# PCI and PC Card ATA/ATAPI devices on modern machines.
1723# Alternatively, individual bus and chipset drivers may be chosen by using
1724# the 'atacore' driver then selecting the drivers on a per vendor basis.
1725# For example to build a system which only supports a VIA chipset,
1726# omit 'ata' and include the 'atacore', 'atapci' and 'atavia' drivers.
1727device		ata
1728
1729# Modular ATA
1730#device		atacore		# Core ATA functionality
1731#device		atacard		# CARDBUS support
1732#device		atabus		# PC98 cbus support
1733#device		ataisa		# ISA bus support
1734#device		atapci		# PCI bus support; only generic chipset support
1735
1736# PCI ATA chipsets
1737#device		ataacard	# ACARD
1738#device		ataacerlabs	# Acer Labs Inc. (ALI)
1739#device		ataamd		# American Micro Devices (AMD)
1740#device		ataati		# ATI
1741#device		atacenatek	# Cenatek
1742#device		atacypress	# Cypress
1743#device		atacyrix	# Cyrix
1744#device		atahighpoint	# HighPoint
1745#device		ataintel	# Intel
1746#device		ataite		# Integrated Technology Inc. (ITE)
1747#device		atajmicron	# JMicron
1748#device		atamarvell	# Marvell
1749#device		atamicron	# Micron
1750#device		atanational	# National
1751#device		atanetcell	# NetCell
1752#device		atanvidia	# nVidia
1753#device		atapromise	# Promise
1754#device		ataserverworks	# ServerWorks
1755#device		atasiliconimage	# Silicon Image Inc. (SiI) (formerly CMD)
1756#device		atasis		# Silicon Integrated Systems Corp.(SiS)
1757#device		atavia		# VIA Technologies Inc.
1758
1759#
1760# For older non-PCI, non-PnPBIOS systems, these are the hints lines to add:
1761hint.ata.0.at="isa"
1762hint.ata.0.port="0x1f0"
1763hint.ata.0.irq="14"
1764hint.ata.1.at="isa"
1765hint.ata.1.port="0x170"
1766hint.ata.1.irq="15"
1767
1768#
1769# The following options are valid on the ATA driver:
1770#
1771# ATA_REQUEST_TIMEOUT:	the number of seconds to wait for an ATA request
1772#			before timing out.
1773
1774#options 	ATA_REQUEST_TIMEOUT=10
1775
1776#
1777# Standard floppy disk controllers and floppy tapes, supports
1778# the Y-E DATA External FDD (PC Card)
1779#
1780device		fdc
1781hint.fdc.0.at="isa"
1782hint.fdc.0.port="0x3F0"
1783hint.fdc.0.irq="6"
1784hint.fdc.0.drq="2"
1785#
1786# FDC_DEBUG enables floppy debugging.  Since the debug output is huge, you
1787# gotta turn it actually on by setting the variable fd_debug with DDB,
1788# however.
1789options 	FDC_DEBUG
1790#
1791# Activate this line if you happen to have an Insight floppy tape.
1792# Probing them proved to be dangerous for people with floppy disks only,
1793# so it's "hidden" behind a flag:
1794#hint.fdc.0.flags="1"
1795
1796# Specify floppy devices
1797hint.fd.0.at="fdc0"
1798hint.fd.0.drive="0"
1799hint.fd.1.at="fdc0"
1800hint.fd.1.drive="1"
1801
1802#
1803# uart: newbusified driver for serial interfaces.  It consolidates the sio(4),
1804#	sab(4) and zs(4) drivers.
1805#
1806device		uart
1807
1808# Options for uart(4)
1809options 	UART_PPS_ON_CTS		# Do time pulse capturing using CTS
1810					# instead of DCD.
1811options 	UART_POLL_FREQ		# Set polling rate, used when hw has
1812					# no interrupt support (50 Hz default).
1813
1814# The following hint should only be used for pure ISA devices.  It is not
1815# needed otherwise.  Use of hints is strongly discouraged.
1816hint.uart.0.at="isa"
1817
1818# The following 3 hints are used when the UART is a system device (i.e., a
1819# console or debug port), but only on platforms that don't have any other
1820# means to pass the information to the kernel.  The unit number of the hint
1821# is only used to bundle the hints together.  There is no relation to the
1822# unit number of the probed UART.
1823hint.uart.0.port="0x3f8"
1824hint.uart.0.flags="0x10"
1825hint.uart.0.baud="115200"
1826
1827# `flags' for serial drivers that support consoles like sio(4) and uart(4):
1828#	0x10	enable console support for this unit.  Other console flags
1829#		(if applicable) are ignored unless this is set.  Enabling
1830#		console support does not make the unit the preferred console.
1831#		Boot with -h or set boot_serial=YES in the loader.  For sio(4)
1832#		specifically, the 0x20 flag can also be set (see above).
1833#		Currently, at most one unit can have console support; the
1834#		first one (in config file order) with this flag set is
1835#		preferred.  Setting this flag for sio0 gives the old behavior.
1836#	0x80	use this port for serial line gdb support in ddb.  Also known
1837#		as debug port.
1838#
1839
1840# Options for serial drivers that support consoles:
1841options 	BREAK_TO_DEBUGGER	# A BREAK/DBG on the console goes to
1842					# ddb, if available.
1843
1844# Solaris implements a new BREAK which is initiated by a character
1845# sequence CR ~ ^b which is similar to a familiar pattern used on
1846# Sun servers by the Remote Console.  There are FreeBSD extensions:
1847# CR ~ ^p requests force panic and CR ~ ^r requests a clean reboot.
1848options 	ALT_BREAK_TO_DEBUGGER
1849
1850# Serial Communications Controller
1851# Supports the Siemens SAB 82532 and Zilog Z8530 multi-channel
1852# communications controllers.
1853device		scc
1854
1855# PCI Universal Communications driver
1856# Supports various multi port PCI I/O cards.
1857device		puc
1858
1859#
1860# Network interfaces:
1861#
1862# MII bus support is required for many PCI Ethernet NICs,
1863# namely those which use MII-compliant transceivers or implement
1864# transceiver control interfaces that operate like an MII.  Adding
1865# "device miibus" to the kernel config pulls in support for the generic
1866# miibus API, the common support for for bit-bang'ing the MII and all
1867# of the PHY drivers, including a generic one for PHYs that aren't
1868# specifically handled by an individual driver.  Support for specific
1869# PHYs may be built by adding "device mii", "device mii_bitbang" if
1870# needed by the NIC driver and then adding the appropriate PHY driver.
1871device  	mii		# Minimal MII support
1872device  	mii_bitbang	# Common module for bit-bang'ing the MII
1873device  	miibus		# MII support w/ bit-bang'ing and all PHYs
1874
1875device  	acphy		# Altima Communications AC101
1876device  	amphy		# AMD AM79c873 / Davicom DM910{1,2}
1877device  	atphy		# Attansic/Atheros F1
1878device  	axphy		# Asix Semiconductor AX88x9x
1879device  	bmtphy		# Broadcom BCM5201/BCM5202 and 3Com 3c905C
1880device  	brgphy		# Broadcom BCM54xx/57xx 1000baseTX
1881device  	ciphy		# Cicada/Vitesse CS/VSC8xxx
1882device  	e1000phy	# Marvell 88E1000 1000/100/10-BT
1883device  	gentbi		# Generic 10-bit 1000BASE-{LX,SX} fiber ifaces
1884device  	icsphy		# ICS ICS1889-1893
1885device  	ip1000phy	# IC Plus IP1000A/IP1001
1886device  	jmphy		# JMicron JMP211/JMP202
1887device  	lxtphy		# Level One LXT-970
1888device  	mlphy		# Micro Linear 6692
1889device  	nsgphy		# NatSemi DP8361/DP83865/DP83891
1890device  	nsphy		# NatSemi DP83840A
1891device  	nsphyter	# NatSemi DP83843/DP83815
1892device  	pnaphy		# HomePNA
1893device  	qsphy		# Quality Semiconductor QS6612
1894device  	rdcphy		# RDC Semiconductor R6040
1895device  	rgephy		# RealTek 8169S/8110S/8211B/8211C
1896device  	rlphy		# RealTek 8139
1897device  	rlswitch	# RealTek 8305
1898device  	smcphy		# SMSC LAN91C111
1899device  	tdkphy		# TDK 89Q2120
1900device  	tlphy		# Texas Instruments ThunderLAN
1901device  	truephy		# LSI TruePHY
1902device		xmphy		# XaQti XMAC II
1903
1904# an:   Aironet 4500/4800 802.11 wireless adapters. Supports the PCMCIA,
1905#       PCI and ISA varieties.
1906# ae:   Support for gigabit ethernet adapters based on the Attansic/Atheros
1907#       L2 PCI-Express FastEthernet controllers.
1908# age:  Support for gigabit ethernet adapters based on the Attansic/Atheros
1909#       L1 PCI express gigabit ethernet controllers.
1910# alc:  Support for Atheros AR8131/AR8132 PCIe ethernet controllers.
1911# ale:  Support for Atheros AR8121/AR8113/AR8114 PCIe ethernet controllers.
1912# ath:  Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
1913# bce:	Broadcom NetXtreme II (BCM5706/BCM5708) PCI/PCIe Gigabit Ethernet
1914#       adapters.
1915# bfe:	Broadcom BCM4401 Ethernet adapter.
1916# bge:	Support for gigabit ethernet adapters based on the Broadcom
1917#	BCM570x family of controllers, including the 3Com 3c996-T,
1918#	the Netgear GA302T, the SysKonnect SK-9D21 and SK-9D41, and
1919#	the embedded gigE NICs on Dell PowerEdge 2550 servers.
1920# bxe:	Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet
1921#       adapters.
1922# bwi:	Broadcom BCM430* and BCM431* family of wireless adapters.
1923# bwn:	Broadcom BCM43xx family of wireless adapters.
1924# cas:	Sun Cassini/Cassini+ and National Semiconductor DP83065 Saturn
1925# cm:	Arcnet SMC COM90c26 / SMC COM90c56
1926#	(and SMC COM90c66 in '56 compatibility mode) adapters.
1927# cxgb: Chelsio T3 based 1GbE/10GbE PCIe Ethernet adapters.
1928# cxgbe:Chelsio T4 and T5 based 1GbE/10GbE/40GbE PCIe Ethernet adapters.
1929# dc:   Support for PCI fast ethernet adapters based on the DEC/Intel 21143
1930#       and various workalikes including:
1931#       the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics
1932#       AX88140A and AX88141, the Davicom DM9100 and DM9102, the Lite-On
1933#       82c168 and 82c169 PNIC, the Lite-On/Macronix LC82C115 PNIC II
1934#       and the Macronix 98713/98713A/98715/98715A/98725 PMAC. This driver
1935#       replaces the old al, ax, dm, pn and mx drivers.  List of brands:
1936#       Digital DE500-BA, Kingston KNE100TX, D-Link DFE-570TX, SOHOware SFA110,
1937#       SVEC PN102-TX, CNet Pro110B, 120A, and 120B, Compex RL100-TX,
1938#       LinkSys LNE100TX, LNE100TX V2.0, Jaton XpressNet, Alfa Inc GFC2204,
1939#       KNE110TX.
1940# de:   Digital Equipment DC21040
1941# em:   Intel Pro/1000 Gigabit Ethernet 82542, 82543, 82544 based adapters.
1942# igb:  Intel Pro/1000 PCI Express Gigabit Ethernet: 82575 and later adapters.
1943# ep:   3Com 3C509, 3C529, 3C556, 3C562D, 3C563D, 3C572, 3C574X, 3C579, 3C589
1944#       and PC Card devices using these chipsets.
1945# ex:   Intel EtherExpress Pro/10 and other i82595-based adapters,
1946#       Olicom Ethernet PC Card devices.
1947# fe:   Fujitsu MB86960A/MB86965A Ethernet
1948# fea:  DEC DEFEA EISA FDDI adapter
1949# fpa:  Support for the Digital DEFPA PCI FDDI. `device fddi' is also needed.
1950# fxp:  Intel EtherExpress Pro/100B
1951#	(hint of prefer_iomap can be done to prefer I/O instead of Mem mapping)
1952# gem:  Apple GMAC/Sun ERI/Sun GEM
1953# hme:  Sun HME (Happy Meal Ethernet)
1954# jme:  JMicron JMC260 Fast Ethernet/JMC250 Gigabit Ethernet based adapters.
1955# le:   AMD Am7900 LANCE and Am79C9xx PCnet
1956# lge:	Support for PCI gigabit ethernet adapters based on the Level 1
1957#	LXT1001 NetCellerator chipset. This includes the D-Link DGE-500SX,
1958#	SMC TigerCard 1000 (SMC9462SX), and some Addtron cards.
1959# malo: Marvell Libertas wireless NICs.
1960# mwl:  Marvell 88W8363 802.11n wireless NICs.
1961#	Requires the mwl firmware module
1962# mwlfw: Marvell 88W8363 firmware
1963# msk:	Support for gigabit ethernet adapters based on the Marvell/SysKonnect
1964#	Yukon II Gigabit controllers, including 88E8021, 88E8022, 88E8061,
1965#	88E8062, 88E8035, 88E8036, 88E8038, 88E8050, 88E8052, 88E8053,
1966#	88E8055, 88E8056 and D-Link 560T/550SX.
1967# lmc:	Support for the LMC/SBE wide-area network interface cards.
1968# mlx5:	Mellanox ConnectX-4 and ConnectX-4 LX IB and Eth shared code module.
1969# mlx5en:Mellanox ConnectX-4 and ConnectX-4 LX PCIe Ethernet adapters.
1970# my:	Myson Fast Ethernet (MTD80X, MTD89X)
1971# nge:	Support for PCI gigabit ethernet adapters based on the National
1972#	Semiconductor DP83820 and DP83821 chipset. This includes the
1973#	SMC EZ Card 1000 (SMC9462TX), D-Link DGE-500T, Asante FriendlyNet
1974#	GigaNIX 1000TA and 1000TPC, the Addtron AEG320T, the Surecom
1975#	EP-320G-TX and the Netgear GA622T.
1976# oce:	Emulex 10 Gbit adapters (OneConnect Ethernet)
1977# pcn:	Support for PCI fast ethernet adapters based on the AMD Am79c97x
1978#	PCnet-FAST, PCnet-FAST+, PCnet-FAST III, PCnet-PRO and PCnet-Home
1979#	chipsets. These can also be handled by the le(4) driver if the
1980#	pcn(4) driver is left out of the kernel. The le(4) driver does not
1981#	support the additional features like the MII bus and burst mode of
1982#	the PCnet-FAST and greater chipsets though.
1983# ral:	Ralink Technology IEEE 802.11 wireless adapter
1984# re:   RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter
1985# rl:   Support for PCI fast ethernet adapters based on the RealTek 8129/8139
1986#       chipset.  Note that the RealTek driver defaults to using programmed
1987#       I/O to do register accesses because memory mapped mode seems to cause
1988#       severe lockups on SMP hardware.  This driver also supports the
1989#       Accton EN1207D `Cheetah' adapter, which uses a chip called
1990#       the MPX 5030/5038, which is either a RealTek in disguise or a
1991#       RealTek workalike.  Note that the D-Link DFE-530TX+ uses the RealTek
1992#       chipset and is supported by this driver, not the 'vr' driver.
1993# sf:   Support for Adaptec Duralink PCI fast ethernet adapters based on the
1994#       Adaptec AIC-6915 "starfire" controller.
1995#       This includes dual and quad port cards, as well as one 100baseFX card.
1996#       Most of these are 64-bit PCI devices, except for one single port
1997#       card which is 32-bit.
1998# sge:  Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet adapter
1999# sis:  Support for NICs based on the Silicon Integrated Systems SiS 900,
2000#       SiS 7016 and NS DP83815 PCI fast ethernet controller chips.
2001# sk:   Support for the SysKonnect SK-984x series PCI gigabit ethernet NICs.
2002#       This includes the SK-9841 and SK-9842 single port cards (single mode
2003#       and multimode fiber) and the SK-9843 and SK-9844 dual port cards
2004#       (also single mode and multimode).
2005#       The driver will autodetect the number of ports on the card and
2006#       attach each one as a separate network interface.
2007# sn:   Support for ISA and PC Card Ethernet devices using the
2008#       SMC91C90/92/94/95 chips.
2009# ste:  Sundance Technologies ST201 PCI fast ethernet controller, includes
2010#       the D-Link DFE-550TX.
2011# stge: Support for gigabit ethernet adapters based on the Sundance/Tamarack
2012#       TC9021 family of controllers, including the Sundance ST2021/ST2023,
2013#       the Sundance/Tamarack TC9021, the D-Link DL-4000 and ASUS NX1101.
2014# ti:   Support for PCI gigabit ethernet NICs based on the Alteon Networks
2015#       Tigon 1 and Tigon 2 chipsets.  This includes the Alteon AceNIC, the
2016#       3Com 3c985, the Netgear GA620 and various others.  Note that you will
2017#       probably want to bump up kern.ipc.nmbclusters a lot to use this driver.
2018# tl:   Support for the Texas Instruments TNETE100 series 'ThunderLAN'
2019#       cards and integrated ethernet controllers.  This includes several
2020#       Compaq Netelligent 10/100 cards and the built-in ethernet controllers
2021#       in several Compaq Prosignia, Proliant and Deskpro systems.  It also
2022#       supports several Olicom 10Mbps and 10/100 boards.
2023# tx:   SMC 9432 TX, BTX and FTX cards. (SMC EtherPower II series)
2024# txp:	Support for 3Com 3cR990 cards with the "Typhoon" chipset
2025# vr:   Support for various fast ethernet adapters based on the VIA
2026#       Technologies VT3043 `Rhine I' and VT86C100A `Rhine II' chips,
2027#       including the D-Link DFE520TX and D-Link DFE530TX (see 'rl' for
2028#       DFE530TX+), the Hawking Technologies PN102TX, and the AOpen/Acer ALN-320.
2029# vte:  DM&P Vortex86 RDC R6040 Fast Ethernet
2030# vx:   3Com 3C590 and 3C595
2031# wb:   Support for fast ethernet adapters based on the Winbond W89C840F chip.
2032#       Note: this is not the same as the Winbond W89C940F, which is a
2033#       NE2000 clone.
2034# wi:   Lucent WaveLAN/IEEE 802.11 PCMCIA adapters. Note: this supports both
2035#       the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
2036#       bridge with a PCMCIA adapter plugged into it.
2037# xe:   Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller,
2038#       Accton Fast EtherCard-16, Compaq Netelligent 10/100 PC Card,
2039#       Toshiba 10/100 Ethernet PC Card, Xircom 16-bit Ethernet + Modem 56
2040# xl:   Support for the 3Com 3c900, 3c905, 3c905B and 3c905C (Fast)
2041#       Etherlink XL cards and integrated controllers.  This includes the
2042#       integrated 3c905B-TX chips in certain Dell Optiplex and Dell
2043#       Precision desktop machines and the integrated 3c905-TX chips
2044#       in Dell Latitude laptop docking stations.
2045#       Also supported: 3Com 3c980(C)-TX, 3Com 3cSOHO100-TX, 3Com 3c450-TX
2046
2047# Order for ISA/EISA devices is important here
2048
2049device		cm
2050hint.cm.0.at="isa"
2051hint.cm.0.port="0x2e0"
2052hint.cm.0.irq="9"
2053hint.cm.0.maddr="0xdc000"
2054device		ep
2055device		ex
2056device		fe
2057hint.fe.0.at="isa"
2058hint.fe.0.port="0x300"
2059device		fea
2060device		sn
2061hint.sn.0.at="isa"
2062hint.sn.0.port="0x300"
2063hint.sn.0.irq="10"
2064device		an
2065device		wi
2066device		xe
2067
2068# PCI Ethernet NICs that use the common MII bus controller code.
2069device		ae		# Attansic/Atheros L2 FastEthernet
2070device		age		# Attansic/Atheros L1 Gigabit Ethernet
2071device		alc		# Atheros AR8131/AR8132 Ethernet
2072device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
2073device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
2074device		bfe		# Broadcom BCM440x 10/100 Ethernet
2075device		bge		# Broadcom BCM570xx Gigabit Ethernet
2076device		cas		# Sun Cassini/Cassini+ and NS DP83065 Saturn
2077device		cxgb		# Chelsio T3 10 Gigabit Ethernet
2078device		cxgb_t3fw	# Chelsio T3 10 Gigabit Ethernet firmware
2079device		cxgbe		# Chelsio T4 and T5 1GbE/10GbE/40GbE
2080device		dc		# DEC/Intel 21143 and various workalikes
2081device		et		# Agere ET1310 10/100/Gigabit Ethernet
2082device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
2083hint.fxp.0.prefer_iomap="0"
2084device		gem		# Apple GMAC/Sun ERI/Sun GEM
2085device		hme		# Sun HME (Happy Meal Ethernet)
2086device		jme		# JMicron JMC250 Gigabit/JMC260 Fast Ethernet
2087device		lge		# Level 1 LXT1001 gigabit Ethernet
2088device		mlx5		# Shared code module between IB and Ethernet
2089device		mlx5en		# Mellanox ConnectX-4 and ConnectX-4 LX
2090device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
2091device		my		# Myson Fast Ethernet (MTD80X, MTD89X)
2092device		nge		# NatSemi DP83820 gigabit Ethernet
2093device		re		# RealTek 8139C+/8169/8169S/8110S
2094device		rl		# RealTek 8129/8139
2095device		pcn		# AMD Am79C97x PCI 10/100 NICs
2096device		sf		# Adaptec AIC-6915 (``Starfire'')
2097device		sge		# Silicon Integrated Systems SiS190/191
2098device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
2099device		sk		# SysKonnect SK-984x & SK-982x gigabit Ethernet
2100device		ste		# Sundance ST201 (D-Link DFE-550TX)
2101device		stge		# Sundance/Tamarack TC9021 gigabit Ethernet
2102device		tl		# Texas Instruments ThunderLAN
2103device		tx		# SMC EtherPower II (83c170 ``EPIC'')
2104device		vr		# VIA Rhine, Rhine II
2105device		vte		# DM&P Vortex86 RDC R6040 Fast Ethernet
2106device		wb		# Winbond W89C840F
2107device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
2108
2109# PCI Ethernet NICs.
2110device		de		# DEC/Intel DC21x4x (``Tulip'')
2111device		em		# Intel Pro/1000 Gigabit Ethernet
2112device		igb		# Intel Pro/1000 PCIE Gigabit Ethernet
2113device		ixgb		# Intel Pro/10Gbe PCI-X Ethernet
2114device		ix		# Intel Pro/10Gbe PCIE Ethernet
2115device		ixv		# Intel Pro/10Gbe PCIE Ethernet VF
2116device		le		# AMD Am7900 LANCE and Am79C9xx PCnet
2117device		mxge		# Myricom Myri-10G 10GbE NIC
2118device		nxge		# Neterion Xframe 10GbE Server/Storage Adapter
2119device		oce		# Emulex 10 GbE (OneConnect Ethernet)
2120device		ti		# Alteon Networks Tigon I/II gigabit Ethernet
2121device		txp		# 3Com 3cR990 (``Typhoon'')
2122device		vx		# 3Com 3c590, 3c595 (``Vortex'')
2123device		vxge		# Exar/Neterion XFrame 3100 10GbE
2124
2125# PCI FDDI NICs.
2126device		fpa
2127
2128# PCI WAN adapters.
2129device		lmc
2130
2131# PCI IEEE 802.11 Wireless NICs
2132device		ath		# Atheros pci/cardbus NIC's
2133device		ath_hal		# pci/cardbus chip support
2134#device		ath_ar5210	# AR5210 chips
2135#device		ath_ar5211	# AR5211 chips
2136#device		ath_ar5212	# AR5212 chips
2137#device		ath_rf2413
2138#device		ath_rf2417
2139#device		ath_rf2425
2140#device		ath_rf5111
2141#device		ath_rf5112
2142#device		ath_rf5413
2143#device		ath_ar5416	# AR5416 chips
2144options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
2145# All of the AR5212 parts have a problem when paired with the AR71xx
2146# CPUS.  These parts have a bug that triggers a fatal bus error on the AR71xx
2147# only.  Details of the exact nature of the bug are sketchy, but some can be
2148# found at https://forum.openwrt.org/viewtopic.php?pid=70060 on pages 4, 5 and
2149# 6.  This option enables this workaround.  There is a performance penalty
2150# for this work around, but without it things don't work at all.  The DMA
2151# from the card usually bursts 128 bytes, but on the affected CPUs, only
2152# 4 are safe.
2153options	   	AH_RXCFG_SDMAMW_4BYTES
2154#device		ath_ar9160	# AR9160 chips
2155#device		ath_ar9280	# AR9280 chips
2156#device		ath_ar9285	# AR9285 chips
2157device		ath_rate_sample	# SampleRate tx rate control for ath
2158device		bwi		# Broadcom BCM430* BCM431*
2159device		bwn		# Broadcom BCM43xx
2160device		malo		# Marvell Libertas wireless NICs.
2161device		mwl		# Marvell 88W8363 802.11n wireless NICs.
2162device		mwlfw
2163device		ral		# Ralink Technology RT2500 wireless NICs.
2164
2165# Use sf_buf(9) interface for jumbo buffers on ti(4) controllers.
2166#options 	TI_SF_BUF_JUMBO
2167# Turn on the header splitting option for the ti(4) driver firmware.  This
2168# only works for Tigon II chips, and has no effect for Tigon I chips.
2169# This option requires the TI_SF_BUF_JUMBO option above.
2170#options 	TI_JUMBO_HDRSPLIT
2171
2172# These two options allow manipulating the mbuf cluster size and mbuf size,
2173# respectively.  Be very careful with NIC driver modules when changing
2174# these from their default values, because that can potentially cause a
2175# mismatch between the mbuf size assumed by the kernel and the mbuf size
2176# assumed by a module.  The only driver that currently has the ability to
2177# detect a mismatch is ti(4).
2178options 	MCLSHIFT=12	# mbuf cluster shift in bits, 12 == 4KB
2179options 	MSIZE=512	# mbuf size in bytes
2180
2181#
2182# ATM related options (Cranor version)
2183# (note: this driver cannot be used with the HARP ATM stack)
2184#
2185# The `en' device provides support for Efficient Networks (ENI)
2186# ENI-155 PCI midway cards, and the Adaptec 155Mbps PCI ATM cards (ANA-59x0).
2187#
2188# The `hatm' device provides support for Fore/Marconi HE155 and HE622
2189# ATM PCI cards.
2190#
2191# The `fatm' device provides support for Fore PCA200E ATM PCI cards.
2192#
2193# The `patm' device provides support for IDT77252 based cards like
2194# ProSum's ProATM-155 and ProATM-25 and IDT's evaluation boards.
2195#
2196# atm device provides generic atm functions and is required for
2197# atm devices.
2198# NATM enables the netnatm protocol family that can be used to
2199# bypass TCP/IP.
2200#
2201# utopia provides the access to the ATM PHY chips and is required for en,
2202# hatm and fatm.
2203#
2204# the current driver supports only PVC operations (no atm-arp, no multicast).
2205# for more details, please read the original documents at
2206# http://www.ccrc.wustl.edu/pub/chuck/tech/bsdatm/bsdatm.html
2207#
2208device		atm
2209device		en
2210device		fatm			#Fore PCA200E
2211device		hatm			#Fore/Marconi HE155/622
2212device		patm			#IDT77252 cards (ProATM and IDT)
2213device		utopia			#ATM PHY driver
2214options 	NATM			#native ATM
2215
2216options 	LIBMBPOOL		#needed by patm, iatm
2217
2218#
2219# Sound drivers
2220#
2221# sound: The generic sound driver.
2222#
2223
2224device		sound
2225
2226#
2227# snd_*: Device-specific drivers.
2228#
2229# The flags of the device tell the device a bit more info about the
2230# device that normally is obtained through the PnP interface.
2231#	bit  2..0   secondary DMA channel;
2232#	bit  4      set if the board uses two dma channels;
2233#	bit 15..8   board type, overrides autodetection; leave it
2234#		    zero if don't know what to put in (and you don't,
2235#		    since this is unsupported at the moment...).
2236#
2237# snd_ad1816:		Analog Devices AD1816 ISA PnP/non-PnP.
2238# snd_als4000:		Avance Logic ALS4000 PCI.
2239# snd_atiixp:		ATI IXP 200/300/400 PCI.
2240# snd_audiocs:		Crystal Semiconductor CS4231 SBus/EBus. Only
2241#			for sparc64.
2242# snd_cmi:		CMedia CMI8338/CMI8738 PCI.
2243# snd_cs4281:		Crystal Semiconductor CS4281 PCI.
2244# snd_csa:		Crystal Semiconductor CS461x/428x PCI. (except
2245#			4281)
2246# snd_ds1:		Yamaha DS-1 PCI.
2247# snd_emu10k1:		Creative EMU10K1 PCI and EMU10K2 (Audigy) PCI.
2248# snd_emu10kx:		Creative SoundBlaster Live! and Audigy
2249# snd_envy24:		VIA Envy24 and compatible, needs snd_spicds.
2250# snd_envy24ht:		VIA Envy24HT and compatible, needs snd_spicds.
2251# snd_es137x:		Ensoniq AudioPCI ES137x PCI.
2252# snd_ess:		Ensoniq ESS ISA PnP/non-PnP, to be used in
2253#			conjunction with snd_sbc.
2254# snd_fm801:		Forte Media FM801 PCI.
2255# snd_gusc:		Gravis UltraSound ISA PnP/non-PnP.
2256# snd_hda:		Intel High Definition Audio (Controller) and
2257#			compatible.
2258# snd_hdspe:		RME HDSPe AIO and RayDAT.
2259# snd_ich:		Intel ICH AC'97 and some more audio controllers
2260#			embedded in a chipset, for example nVidia
2261#			nForce controllers.
2262# snd_maestro:		ESS Technology Maestro-1/2x PCI.
2263# snd_maestro3:		ESS Technology Maestro-3/Allegro PCI.
2264# snd_mss:		Microsoft Sound System ISA PnP/non-PnP.
2265# snd_neomagic:		Neomagic 256 AV/ZX PCI.
2266# snd_sb16:		Creative SoundBlaster16, to be used in
2267#			conjunction with snd_sbc.
2268# snd_sb8:		Creative SoundBlaster (pre-16), to be used in
2269#			conjunction with snd_sbc.
2270# snd_sbc:		Creative SoundBlaster ISA PnP/non-PnP.
2271#			Supports ESS and Avance ISA chips as well.
2272# snd_solo:		ESS Solo-1x PCI.
2273# snd_spicds:		SPI codec driver, needed by Envy24/Envy24HT drivers.
2274# snd_t4dwave:		Trident 4DWave DX/NX PCI, Sis 7018 PCI and Acer Labs
2275#			M5451 PCI.
2276# snd_uaudio:		USB audio.
2277# snd_via8233:		VIA VT8233x PCI.
2278# snd_via82c686:	VIA VT82C686A PCI.
2279# snd_vibes:		S3 Sonicvibes PCI.
2280
2281device		snd_ad1816
2282device		snd_als4000
2283device		snd_atiixp
2284#device		snd_audiocs
2285device		snd_cmi
2286device		snd_cs4281
2287device		snd_csa
2288device		snd_ds1
2289device		snd_emu10k1
2290device		snd_emu10kx
2291device		snd_envy24
2292device		snd_envy24ht
2293device		snd_es137x
2294device		snd_ess
2295device		snd_fm801
2296device		snd_gusc
2297device		snd_hda
2298device		snd_hdspe
2299device		snd_ich
2300device		snd_maestro
2301device		snd_maestro3
2302device		snd_mss
2303device		snd_neomagic
2304device		snd_sb16
2305device		snd_sb8
2306device		snd_sbc
2307device		snd_solo
2308device		snd_spicds
2309device		snd_t4dwave
2310device		snd_uaudio
2311device		snd_via8233
2312device		snd_via82c686
2313device		snd_vibes
2314
2315# For non-PnP sound cards:
2316hint.pcm.0.at="isa"
2317hint.pcm.0.irq="10"
2318hint.pcm.0.drq="1"
2319hint.pcm.0.flags="0x0"
2320hint.sbc.0.at="isa"
2321hint.sbc.0.port="0x220"
2322hint.sbc.0.irq="5"
2323hint.sbc.0.drq="1"
2324hint.sbc.0.flags="0x15"
2325hint.gusc.0.at="isa"
2326hint.gusc.0.port="0x220"
2327hint.gusc.0.irq="5"
2328hint.gusc.0.drq="1"
2329hint.gusc.0.flags="0x13"
2330
2331#
2332# Following options are intended for debugging/testing purposes:
2333#
2334# SND_DEBUG                    Enable extra debugging code that includes
2335#                              sanity checking and possible increase of
2336#                              verbosity.
2337#
2338# SND_DIAGNOSTIC               Similar in a spirit of INVARIANTS/DIAGNOSTIC,
2339#                              zero tolerance against inconsistencies.
2340#
2341# SND_FEEDER_MULTIFORMAT       By default, only 16/32 bit feeders are compiled
2342#                              in. This options enable most feeder converters
2343#                              except for 8bit. WARNING: May bloat the kernel.
2344#
2345# SND_FEEDER_FULL_MULTIFORMAT  Ditto, but includes 8bit feeders as well.
2346#
2347# SND_FEEDER_RATE_HP           (feeder_rate) High precision 64bit arithmetic
2348#                              as much as possible (the default trying to
2349#                              avoid it). Possible slowdown.
2350#
2351# SND_PCM_64                   (Only applicable for i386/32bit arch)
2352#                              Process 32bit samples through 64bit
2353#                              integer/arithmetic. Slight increase of dynamic
2354#                              range at a cost of possible slowdown.
2355#
2356# SND_OLDSTEREO                Only 2 channels are allowed, effectively
2357#                              disabling multichannel processing.
2358#
2359options		SND_DEBUG
2360options		SND_DIAGNOSTIC
2361options		SND_FEEDER_MULTIFORMAT
2362options		SND_FEEDER_FULL_MULTIFORMAT
2363options		SND_FEEDER_RATE_HP
2364options		SND_PCM_64
2365options		SND_OLDSTEREO
2366
2367#
2368# Miscellaneous hardware:
2369#
2370# scd: Sony CD-ROM using proprietary (non-ATAPI) interface
2371# mcd: Mitsumi CD-ROM using proprietary (non-ATAPI) interface
2372# bktr: Brooktree bt848/848a/849a/878/879 video capture and TV Tuner board
2373# joy: joystick (including IO DATA PCJOY PC Card joystick)
2374# cmx: OmniKey CardMan 4040 pccard smartcard reader
2375
2376# Mitsumi CD-ROM
2377device		mcd
2378hint.mcd.0.at="isa"
2379hint.mcd.0.port="0x300"
2380# for the Sony CDU31/33A CDROM
2381device		scd
2382hint.scd.0.at="isa"
2383hint.scd.0.port="0x230"
2384device		joy			# PnP aware, hints for non-PnP only
2385hint.joy.0.at="isa"
2386hint.joy.0.port="0x201"
2387device		cmx
2388
2389#
2390# The 'bktr' device is a PCI video capture device using the Brooktree
2391# bt848/bt848a/bt849a/bt878/bt879 chipset. When used with a TV Tuner it forms a
2392# TV card, e.g. Miro PC/TV, Hauppauge WinCast/TV WinTV, VideoLogic Captivator,
2393# Intel Smart Video III, AverMedia, IMS Turbo, FlyVideo.
2394#
2395# options 	OVERRIDE_CARD=xxx
2396# options 	OVERRIDE_TUNER=xxx
2397# options 	OVERRIDE_MSP=1
2398# options 	OVERRIDE_DBX=1
2399# These options can be used to override the auto detection
2400# The current values for xxx are found in src/sys/dev/bktr/bktr_card.h
2401# Using sysctl(8) run-time overrides on a per-card basis can be made
2402#
2403# options 	BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
2404# or
2405# options 	BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_NTSC
2406# Specifies the default video capture mode.
2407# This is required for Dual Crystal (28&35MHz) boards where PAL is used
2408# to prevent hangs during initialization, e.g. VideoLogic Captivator PCI.
2409#
2410# options 	BKTR_USE_PLL
2411# This is required for PAL or SECAM boards with a 28MHz crystal and no 35MHz
2412# crystal, e.g. some new Bt878 cards.
2413#
2414# options 	BKTR_GPIO_ACCESS
2415# This enables IOCTLs which give user level access to the GPIO port.
2416#
2417# options 	BKTR_NO_MSP_RESET
2418# Prevents the MSP34xx reset. Good if you initialize the MSP in another OS first
2419#
2420# options 	BKTR_430_FX_MODE
2421# Switch Bt878/879 cards into Intel 430FX chipset compatibility mode.
2422#
2423# options 	BKTR_SIS_VIA_MODE
2424# Switch Bt878/879 cards into SIS/VIA chipset compatibility mode which is
2425# needed for some old SiS and VIA chipset motherboards.
2426# This also allows Bt878/879 chips to work on old OPTi (<1997) chipset
2427# motherboards and motherboards with bad or incomplete PCI 2.1 support.
2428# As a rough guess, old = before 1998
2429#
2430# options 	BKTR_NEW_MSP34XX_DRIVER
2431# Use new, more complete initialization scheme for the msp34* soundchip.
2432# Should fix stereo autodetection if the old driver does only output
2433# mono sound.
2434
2435#
2436# options 	BKTR_USE_FREEBSD_SMBUS
2437# Compile with FreeBSD SMBus implementation
2438#
2439# Brooktree driver has been ported to the new I2C framework. Thus,
2440# you'll need to have the following 3 lines in the kernel config.
2441#     device smbus
2442#     device iicbus
2443#     device iicbb
2444#     device iicsmb
2445# The iic and smb devices are only needed if you want to control other
2446# I2C slaves connected to the external connector of some cards.
2447#
2448device		bktr
2449
2450#
2451# PC Card/PCMCIA and Cardbus
2452#
2453# cbb: pci/cardbus bridge implementing YENTA interface
2454# pccard: pccard slots
2455# cardbus: cardbus slots
2456device		cbb
2457device		pccard
2458device		cardbus
2459
2460#
2461# MMC/SD
2462#
2463# mmc 		MMC/SD bus
2464# mmcsd		MMC/SD memory card
2465# sdhci		Generic PCI SD Host Controller
2466#
2467device		mmc
2468device		mmcsd
2469device		sdhci
2470
2471#
2472# SMB bus
2473#
2474# System Management Bus support is provided by the 'smbus' device.
2475# Access to the SMBus device is via the 'smb' device (/dev/smb*),
2476# which is a child of the 'smbus' device.
2477#
2478# Supported devices:
2479# smb		standard I/O through /dev/smb*
2480#
2481# Supported SMB interfaces:
2482# iicsmb	I2C to SMB bridge with any iicbus interface
2483# bktr		brooktree848 I2C hardware interface
2484# intpm		Intel PIIX4 (82371AB, 82443MX) Power Management Unit
2485# alpm		Acer Aladdin-IV/V/Pro2 Power Management Unit
2486# ichsmb	Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA)
2487# viapm		VIA VT82C586B/596B/686A and VT8233 Power Management Unit
2488# amdpm		AMD 756 Power Management Unit
2489# amdsmb	AMD 8111 SMBus 2.0 Controller
2490# nfpm		NVIDIA nForce Power Management Unit
2491# nfsmb		NVIDIA nForce2/3/4 MCP SMBus 2.0 Controller
2492# ismt		Intel SMBus 2.0 controller chips (on Atom S1200, C2000)
2493#
2494device		smbus		# Bus support, required for smb below.
2495
2496device		intpm
2497device		alpm
2498device		ichsmb
2499device		viapm
2500device		amdpm
2501device		amdsmb
2502device		nfpm
2503device		nfsmb
2504device		ismt
2505
2506device		smb
2507
2508#
2509# I2C Bus
2510#
2511# Philips i2c bus support is provided by the `iicbus' device.
2512#
2513# Supported devices:
2514# ic	i2c network interface
2515# iic	i2c standard io
2516# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
2517# iicoc simple polling driver for OpenCores I2C controller
2518#
2519# Supported interfaces:
2520# bktr	brooktree848 I2C software interface
2521#
2522# Other:
2523# iicbb	generic I2C bit-banging code (needed by lpbb, bktr)
2524#
2525device		iicbus		# Bus support, required for ic/iic/iicsmb below.
2526device		iicbb
2527
2528device		ic
2529device		iic
2530device		iicsmb		# smb over i2c bridge
2531device		iicoc		# OpenCores I2C controller support
2532
2533# I2C peripheral devices
2534#
2535# ds133x	Dallas Semiconductor DS1337, DS1338 and DS1339 RTC
2536# ds1374	Dallas Semiconductor DS1374 RTC
2537# ds1672	Dallas Semiconductor DS1672 RTC
2538# s35390a	Seiko Instruments S-35390A RTC
2539#
2540device		ds133x
2541device		ds1374
2542device		ds1672
2543device		s35390a
2544
2545# Parallel-Port Bus
2546#
2547# Parallel port bus support is provided by the `ppbus' device.
2548# Multiple devices may be attached to the parallel port, devices
2549# are automatically probed and attached when found.
2550#
2551# Supported devices:
2552# vpo	Iomega Zip Drive
2553#	Requires SCSI disk support ('scbus' and 'da'), best
2554#	performance is achieved with ports in EPP 1.9 mode.
2555# lpt	Parallel Printer
2556# plip	Parallel network interface
2557# ppi	General-purpose I/O ("Geek Port") + IEEE1284 I/O
2558# pps	Pulse per second Timing Interface
2559# lpbb	Philips official parallel port I2C bit-banging interface
2560# pcfclock Parallel port clock driver.
2561#
2562# Supported interfaces:
2563# ppc	ISA-bus parallel port interfaces.
2564#
2565
2566options 	PPC_PROBE_CHIPSET # Enable chipset specific detection
2567				  # (see flags in ppc(4))
2568options 	DEBUG_1284	# IEEE1284 signaling protocol debug
2569options 	PERIPH_1284	# Makes your computer act as an IEEE1284
2570				# compliant peripheral
2571options 	DONTPROBE_1284	# Avoid boot detection of PnP parallel devices
2572options 	VP0_DEBUG	# ZIP/ZIP+ debug
2573options 	LPT_DEBUG	# Printer driver debug
2574options 	PPC_DEBUG	# Parallel chipset level debug
2575options 	PLIP_DEBUG	# Parallel network IP interface debug
2576options 	PCFCLOCK_VERBOSE         # Verbose pcfclock driver
2577options 	PCFCLOCK_MAX_RETRIES=5   # Maximum read tries (default 10)
2578
2579device		ppc
2580hint.ppc.0.at="isa"
2581hint.ppc.0.irq="7"
2582device		ppbus
2583device		vpo
2584device		lpt
2585device		plip
2586device		ppi
2587device		pps
2588device		lpbb
2589device		pcfclock
2590
2591#
2592# Etherswitch framework and drivers
2593#
2594# etherswitch	The etherswitch(4) framework
2595# miiproxy	Proxy device for miibus(4) functionality
2596#
2597# Switch hardware support:
2598# arswitch	Atheros switches
2599# ip17x 	IC+ 17x family switches
2600# rtl8366r	Realtek RTL8366 switches
2601# ukswitch	Multi-PHY switches
2602#
2603device		etherswitch
2604device		miiproxy
2605device		arswitch
2606device		ip17x
2607device		rtl8366rb
2608device		ukswitch
2609
2610# Kernel BOOTP support
2611
2612options 	BOOTP		# Use BOOTP to obtain IP address/hostname
2613				# Requires NFSCL and NFS_ROOT
2614options 	BOOTP_NFSROOT	# NFS mount root filesystem using BOOTP info
2615options 	BOOTP_NFSV3	# Use NFS v3 to NFS mount root
2616options 	BOOTP_COMPAT	# Workaround for broken bootp daemons.
2617options 	BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
2618options 	BOOTP_BLOCKSIZE=8192 # Override NFS block size
2619
2620#
2621# Add software watchdog routines.
2622#
2623options 	SW_WATCHDOG
2624
2625#
2626# Add the software deadlock resolver thread.
2627#
2628options 	DEADLKRES
2629
2630#
2631# Disable swapping of stack pages.  This option removes all
2632# code which actually performs swapping, so it's not possible to turn
2633# it back on at run-time.
2634#
2635# This is sometimes usable for systems which don't have any swap space
2636# (see also sysctls "vm.defer_swapspace_pageouts" and
2637# "vm.disable_swapspace_pageouts")
2638#
2639#options 	NO_SWAPPING
2640
2641# Set the number of sf_bufs to allocate. sf_bufs are virtual buffers
2642# for sendfile(2) that are used to map file VM pages, and normally
2643# default to a quantity that is roughly 16*MAXUSERS+512. You would
2644# typically want about 4 of these for each simultaneous file send.
2645#
2646options 	NSFBUFS=1024
2647
2648#
2649# Enable extra debugging code for locks.  This stores the filename and
2650# line of whatever acquired the lock in the lock itself, and changes a
2651# number of function calls to pass around the relevant data.  This is
2652# not at all useful unless you are debugging lock code.  Note that
2653# modules should be recompiled as this option modifies KBI.
2654#
2655options 	DEBUG_LOCKS
2656
2657
2658#####################################################################
2659# USB support
2660# UHCI controller
2661device		uhci
2662# OHCI controller
2663device		ohci
2664# EHCI controller
2665device		ehci
2666# XHCI controller
2667device		xhci
2668# SL811 Controller
2669#device		slhci
2670# General USB code (mandatory for USB)
2671device		usb
2672#
2673# USB Double Bulk Pipe devices
2674device		udbp
2675# USB Fm Radio
2676device		ufm
2677# USB temperature meter
2678device		ugold
2679# USB LED
2680device		uled
2681# Human Interface Device (anything with buttons and dials)
2682device		uhid
2683# USB keyboard
2684device		ukbd
2685# USB printer
2686device		ulpt
2687# USB mass storage driver (Requires scbus and da)
2688device		umass
2689# USB mass storage driver for device-side mode
2690device		usfs
2691# USB support for Belkin F5U109 and Magic Control Technology serial adapters
2692device		umct
2693# USB modem support
2694device		umodem
2695# USB mouse
2696device		ums
2697# USB touchpad(s)
2698device		atp
2699device		wsp
2700# eGalax USB touch screen
2701device		uep
2702# Diamond Rio 500 MP3 player
2703device		urio
2704#
2705# USB serial support
2706device		ucom
2707# USB support for 3G modem cards by Option, Novatel, Huawei and Sierra
2708device		u3g
2709# USB support for Technologies ARK3116 based serial adapters
2710device		uark
2711# USB support for Belkin F5U103 and compatible serial adapters
2712device		ubsa
2713# USB support for serial adapters based on the FT8U100AX and FT8U232AM
2714device		uftdi
2715# USB support for some Windows CE based serial communication.
2716device		uipaq
2717# USB support for Prolific PL-2303 serial adapters
2718device		uplcom
2719# USB support for Silicon Laboratories CP2101/CP2102 based USB serial adapters
2720device		uslcom
2721# USB Visor and Palm devices
2722device		uvisor
2723# USB serial support for DDI pocket's PHS
2724device		uvscom
2725#
2726# USB ethernet support
2727device		uether
2728# ADMtek USB ethernet. Supports the LinkSys USB100TX,
2729# the Billionton USB100, the Melco LU-ATX, the D-Link DSB-650TX
2730# and the SMC 2202USB. Also works with the ADMtek AN986 Pegasus
2731# eval board.
2732device		aue
2733
2734# ASIX Electronics AX88172 USB 2.0 ethernet driver. Used in the
2735# LinkSys USB200M and various other adapters.
2736device		axe
2737# ASIX Electronics AX88178A/AX88179 USB 2.0/3.0 gigabit ethernet driver.
2738device		axge
2739
2740#
2741# Devices which communicate using Ethernet over USB, particularly
2742# Communication Device Class (CDC) Ethernet specification. Supports
2743# Sharp Zaurus PDAs, some DOCSIS cable modems and so on.
2744device		cdce
2745#
2746# CATC USB-EL1201A USB ethernet. Supports the CATC Netmate
2747# and Netmate II, and the Belkin F5U111.
2748device		cue
2749#
2750# Kawasaki LSI ethernet. Supports the LinkSys USB10T,
2751# Entrega USB-NET-E45, Peracom Ethernet Adapter, the
2752# 3Com 3c19250, the ADS Technologies USB-10BT, the ATen UC10T,
2753# the Netgear EA101, the D-Link DSB-650, the SMC 2102USB
2754# and 2104USB, and the Corega USB-T.
2755device		kue
2756#
2757# RealTek RTL8150 USB to fast ethernet. Supports the Melco LUA-KTX
2758# and the GREEN HOUSE GH-USB100B.
2759device		rue
2760#
2761# Davicom DM9601E USB to fast ethernet. Supports the Corega FEther USB-TXC.
2762device		udav
2763#
2764# RealTek RTL8152 USB to fast ethernet.
2765device		ure
2766#
2767# Moschip MCS7730/MCS7840 USB to fast ethernet. Supports the Sitecom LN030.
2768device		mos
2769#
2770# HSxPA devices from Option N.V
2771device		uhso
2772
2773# Realtek RTL8188SU/RTL8191SU/RTL8192SU wireless driver
2774device		rsu
2775#
2776# Ralink Technology RT2501USB/RT2601USB wireless driver
2777device		rum
2778# Ralink Technology RT2700U/RT2800U/RT3000U wireless driver
2779device		run
2780#
2781# Atheros AR5523 wireless driver
2782device		uath
2783#
2784# Conexant/Intersil PrismGT wireless driver
2785device		upgt
2786#
2787# Ralink Technology RT2500USB wireless driver
2788device		ural
2789#
2790# RNDIS USB ethernet driver
2791device		urndis
2792# Realtek RTL8187B/L wireless driver
2793device		urtw
2794#
2795# Realtek RTL8188CU/RTL8192CU wireless driver
2796device		urtwn
2797#
2798# ZyDas ZD1211/ZD1211B wireless driver
2799device		zyd
2800#
2801# Sierra USB wireless driver
2802device		usie
2803
2804#
2805# debugging options for the USB subsystem
2806#
2807options 	USB_DEBUG
2808options 	U3G_DEBUG
2809
2810# options for ukbd:
2811options 	UKBD_DFLT_KEYMAP	# specify the built-in keymap
2812makeoptions	UKBD_DFLT_KEYMAP=jp.pc98
2813
2814# options for uplcom:
2815options 	UPLCOM_INTR_INTERVAL=100	# interrupt pipe interval
2816						# in milliseconds
2817
2818# options for uvscom:
2819options 	UVSCOM_DEFAULT_OPKTSIZE=8	# default output packet size
2820options 	UVSCOM_INTR_INTERVAL=100	# interrupt pipe interval
2821						# in milliseconds
2822
2823#####################################################################
2824# FireWire support
2825
2826device		firewire	# FireWire bus code
2827device		sbp		# SCSI over Firewire (Requires scbus and da)
2828device		sbp_targ	# SBP-2 Target mode  (Requires scbus and targ)
2829device		fwe		# Ethernet over FireWire (non-standard!)
2830device		fwip		# IP over FireWire (RFC2734 and RFC3146)
2831
2832#####################################################################
2833# dcons support (Dumb Console Device)
2834
2835device		dcons			# dumb console driver
2836device		dcons_crom		# FireWire attachment
2837options 	DCONS_BUF_SIZE=16384	# buffer size
2838options 	DCONS_POLL_HZ=100	# polling rate
2839options 	DCONS_FORCE_CONSOLE=0	# force to be the primary console
2840options 	DCONS_FORCE_GDB=1	# force to be the gdb device
2841
2842#####################################################################
2843# crypto subsystem
2844#
2845# This is a port of the OpenBSD crypto framework.  Include this when
2846# configuring IPSEC and when you have a h/w crypto device to accelerate
2847# user applications that link to OpenSSL.
2848#
2849# Drivers are ports from OpenBSD with some simple enhancements that have
2850# been fed back to OpenBSD.
2851
2852device		crypto		# core crypto support
2853
2854# Only install the cryptodev device if you are running tests, or know
2855# specifically why you need it.  In most cases, it is not needed and
2856# will make things slower.
2857device		cryptodev	# /dev/crypto for access to h/w
2858
2859device		rndtest		# FIPS 140-2 entropy tester
2860
2861device		hifn		# Hifn 7951, 7781, etc.
2862options 	HIFN_DEBUG	# enable debugging support: hw.hifn.debug
2863options 	HIFN_RNDTEST	# enable rndtest support
2864
2865device		ubsec		# Broadcom 5501, 5601, 58xx
2866options 	UBSEC_DEBUG	# enable debugging support: hw.ubsec.debug
2867options 	UBSEC_RNDTEST	# enable rndtest support
2868
2869#####################################################################
2870
2871
2872#
2873# Embedded system options:
2874#
2875# An embedded system might want to run something other than init.
2876options 	INIT_PATH=/sbin/init:/rescue/init
2877
2878# Debug options
2879options 	BUS_DEBUG	# enable newbus debugging
2880options 	DEBUG_VFS_LOCKS	# enable VFS lock debugging
2881options 	SOCKBUF_DEBUG	# enable sockbuf last record/mb tail checking
2882options 	IFMEDIA_DEBUG	# enable debugging in net/if_media.c
2883
2884#
2885# Verbose SYSINIT
2886#
2887# Make the SYSINIT process performed by mi_startup() verbose.  This is very
2888# useful when porting to a new architecture.  If DDB is also enabled, this
2889# will print function names instead of addresses.
2890options 	VERBOSE_SYSINIT
2891
2892#####################################################################
2893# SYSV IPC KERNEL PARAMETERS
2894#
2895# Maximum number of System V semaphores that can be used on the system at
2896# one time.
2897options 	SEMMNI=11
2898
2899# Total number of semaphores system wide
2900options 	SEMMNS=61
2901
2902# Total number of undo structures in system
2903options 	SEMMNU=31
2904
2905# Maximum number of System V semaphores that can be used by a single process
2906# at one time.
2907options 	SEMMSL=61
2908
2909# Maximum number of operations that can be outstanding on a single System V
2910# semaphore at one time.
2911options 	SEMOPM=101
2912
2913# Maximum number of undo operations that can be outstanding on a single
2914# System V semaphore at one time.
2915options 	SEMUME=11
2916
2917# Maximum number of shared memory pages system wide.
2918options 	SHMALL=1025
2919
2920# Maximum size, in bytes, of a single System V shared memory region.
2921options 	SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
2922options 	SHMMAXPGS=1025
2923
2924# Minimum size, in bytes, of a single System V shared memory region.
2925options 	SHMMIN=2
2926
2927# Maximum number of shared memory regions that can be used on the system
2928# at one time.
2929options 	SHMMNI=33
2930
2931# Maximum number of System V shared memory regions that can be attached to
2932# a single process at one time.
2933options 	SHMSEG=9
2934
2935# Set the amount of time (in seconds) the system will wait before
2936# rebooting automatically when a kernel panic occurs.  If set to (-1),
2937# the system will wait indefinitely until a key is pressed on the
2938# console.
2939options 	PANIC_REBOOT_WAIT_TIME=16
2940
2941# Attempt to bypass the buffer cache and put data directly into the
2942# userland buffer for read operation when O_DIRECT flag is set on the
2943# file.  Both offset and length of the read operation must be
2944# multiples of the physical media sector size.
2945#
2946options 	DIRECTIO
2947
2948# Specify a lower limit for the number of swap I/O buffers.  They are
2949# (among other things) used when bypassing the buffer cache due to
2950# DIRECTIO kernel option enabled and O_DIRECT flag set on file.
2951#
2952options 	NSWBUF_MIN=120
2953
2954#####################################################################
2955
2956# More undocumented options for linting.
2957# Note that documenting these is not considered an affront.
2958
2959options 	CAM_DEBUG_DELAY
2960
2961# VFS cluster debugging.
2962options 	CLUSTERDEBUG
2963
2964options 	DEBUG
2965
2966# Kernel filelock debugging.
2967options 	LOCKF_DEBUG
2968
2969# System V compatible message queues
2970# Please note that the values provided here are used to test kernel
2971# building.  The defaults in the sources provide almost the same numbers.
2972# MSGSSZ must be a power of 2 between 8 and 1024.
2973options 	MSGMNB=2049	# Max number of chars in queue
2974options 	MSGMNI=41	# Max number of message queue identifiers
2975options 	MSGSEG=2049	# Max number of message segments
2976options 	MSGSSZ=16	# Size of a message segment
2977options 	MSGTQL=41	# Max number of messages in system
2978
2979options 	NBUF=512	# Number of buffer headers
2980
2981options 	SCSI_NCR_DEBUG
2982options 	SCSI_NCR_MAX_SYNC=10000
2983options 	SCSI_NCR_MAX_WIDE=1
2984options 	SCSI_NCR_MYADDR=7
2985
2986options 	SC_DEBUG_LEVEL=5	# Syscons debug level
2987options 	SC_RENDER_DEBUG	# syscons rendering debugging
2988
2989options 	VFS_BIO_DEBUG	# VFS buffer I/O debugging
2990
2991options 	KSTACK_MAX_PAGES=32 # Maximum pages to give the kernel stack
2992options 	KSTACK_USAGE_PROF
2993
2994# Adaptec Array Controller driver options
2995options 	AAC_DEBUG	# Debugging levels:
2996				# 0 - quiet, only emit warnings
2997				# 1 - noisy, emit major function
2998				#     points and things done
2999				# 2 - extremely noisy, emit trace
3000				#     items in loops, etc.
3001
3002# Resource Accounting
3003options 	RACCT
3004
3005# Resource Limits
3006options 	RCTL
3007
3008# Yet more undocumented options for linting.
3009# BKTR_ALLOC_PAGES has no effect except to cause warnings, and
3010# BROOKTREE_ALLOC_PAGES hasn't actually been superseded by it, since the
3011# driver still mostly spells this option BROOKTREE_ALLOC_PAGES.
3012##options 	BKTR_ALLOC_PAGES=(217*4+1)
3013options 	BROOKTREE_ALLOC_PAGES=(217*4+1)
3014options 	MAXFILES=999
3015
3016# Random number generator
3017# Only ONE of the below two may be used; they are mutually exclusive.
3018# If neither is present, then the Fortuna algorithm is selected.
3019#options 	RANDOM_YARROW	# Yarrow CSPRNG (old default)
3020#options 	RANDOM_LOADABLE	# Allow the algorithm to be loaded as
3021				# a module.
3022# Select this to allow high-rate but potentially expensive
3023# harvesting of Slab-Allocator entropy. In very high-rate
3024# situations the value of doing this is dubious at best.
3025options 	RANDOM_ENABLE_UMA	# slab allocator
3026
3027# Module to enable execution of application via emulators like QEMU
3028options         IMAGACT_BINMISC
3029
3030# Intel em(4) driver
3031options		EM_MULTIQUEUE # Activate multiqueue features/disable MSI-X
3032
3033# zlib I/O stream support
3034# This enables support for compressed core dumps.
3035options 	GZIO
3036