xref: /freebsd/sys/conf/NOTES (revision f621b087c00776de713944ae6561e44f83e7b541)
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 'envvar hint.' should go into your hints file.
10# 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
148#
149# Compile-time defaults for dmesg boot tagging
150#
151# Default boot tag; may use 'kern.boot_tag' loader tunable to override.  The
152# current boot's tag is also exposed via the 'kern.boot_tag' sysctl.
153options 	BOOT_TAG=\"\"
154# Maximum boot tag size the kernel's static buffer should accommodate.  Maximum
155# size for both BOOT_TAG and the assocated tunable.
156options 	BOOT_TAG_SZ=32
157
158options 	GEOM_BDE		# Disk encryption.
159options 	GEOM_CACHE		# Disk cache.
160options 	GEOM_CONCAT		# Disk concatenation.
161options 	GEOM_ELI		# Disk encryption.
162options 	GEOM_GATE		# Userland services.
163options 	GEOM_JOURNAL		# Journaling.
164options 	GEOM_LABEL		# Providers labelization.
165options 	GEOM_LINUX_LVM		# Linux LVM2 volumes
166options 	GEOM_MAP		# Map based partitioning
167options 	GEOM_MIRROR		# Disk mirroring.
168options 	GEOM_MULTIPATH		# Disk multipath
169options 	GEOM_NOP		# Test class.
170options 	GEOM_PART_APM		# Apple partitioning
171options 	GEOM_PART_BSD		# BSD disklabel
172options 	GEOM_PART_BSD64		# BSD disklabel64
173options 	GEOM_PART_EBR		# Extended Boot Records
174options 	GEOM_PART_GPT		# GPT partitioning
175options 	GEOM_PART_LDM		# Logical Disk Manager
176options 	GEOM_PART_MBR		# MBR partitioning
177options 	GEOM_PART_VTOC8		# SMI VTOC8 disk label
178options 	GEOM_RAID		# Soft RAID functionality.
179options 	GEOM_RAID3		# RAID3 functionality.
180options 	GEOM_SHSEC		# Shared secret.
181options 	GEOM_STRIPE		# Disk striping.
182options 	GEOM_UZIP		# Read-only compressed disks
183options 	GEOM_VINUM		# Vinum logical volume manager
184options 	GEOM_VIRSTOR		# Virtual storage.
185options 	GEOM_ZERO		# Performance testing helper.
186
187#
188# The root device and filesystem type can be compiled in;
189# this provides a fallback option if the root device cannot
190# be correctly guessed by the bootstrap code, or an override if
191# the RB_DFLTROOT flag (-r) is specified when booting the kernel.
192#
193options 	ROOTDEVNAME=\"ufs:da0s2e\"
194
195
196#####################################################################
197# Scheduler options:
198#
199# Specifying one of SCHED_4BSD or SCHED_ULE is mandatory.  These options
200# select which scheduler is compiled in.
201#
202# SCHED_4BSD is the historical, proven, BSD scheduler.  It has a global run
203# queue and no CPU affinity which makes it suboptimal for SMP.  It has very
204# good interactivity and priority selection.
205#
206# SCHED_ULE provides significant performance advantages over 4BSD on many
207# workloads on SMP machines.  It supports cpu-affinity, per-cpu runqueues
208# and scheduler locks.  It also has a stronger notion of interactivity
209# which leads to better responsiveness even on uniprocessor machines.  This
210# is the default scheduler.
211#
212# SCHED_STATS is a debugging option which keeps some stats in the sysctl
213# tree at 'kern.sched.stats' and is useful for debugging scheduling decisions.
214#
215options 	SCHED_4BSD
216options 	SCHED_STATS
217#options 	SCHED_ULE
218
219#####################################################################
220# SMP OPTIONS:
221#
222# SMP enables building of a Symmetric MultiProcessor Kernel.
223
224# Mandatory:
225options 	SMP			# Symmetric MultiProcessor Kernel
226
227# EARLY_AP_STARTUP releases the Application Processors earlier in the
228# kernel startup process (before devices are probed) rather than at the
229# end.  This is a temporary option for use during the transition from
230# late to early AP startup.
231options 	EARLY_AP_STARTUP
232
233# MAXCPU defines the maximum number of CPUs that can boot in the system.
234# A default value should be already present, for every architecture.
235options 	MAXCPU=32
236
237# NUMA enables use of Non-Uniform Memory Access policies in various kernel
238# subsystems.
239options 	NUMA
240
241# MAXMEMDOM defines the maximum number of memory domains that can boot in the
242# system.  A default value should already be defined by every architecture.
243options 	MAXMEMDOM=2
244
245# ADAPTIVE_MUTEXES changes the behavior of blocking mutexes to spin
246# if the thread that currently owns the mutex is executing on another
247# CPU.  This behavior is enabled by default, so this option can be used
248# to disable it.
249options 	NO_ADAPTIVE_MUTEXES
250
251# ADAPTIVE_RWLOCKS changes the behavior of reader/writer locks to spin
252# if the thread that currently owns the rwlock is executing on another
253# CPU.  This behavior is enabled by default, so this option can be used
254# to disable it.
255options 	NO_ADAPTIVE_RWLOCKS
256
257# ADAPTIVE_SX changes the behavior of sx locks to spin if the thread that
258# currently owns the sx lock is executing on another CPU.
259# This behavior is enabled by default, so this option can be used to
260# disable it.
261options 	NO_ADAPTIVE_SX
262
263# MUTEX_NOINLINE forces mutex operations to call functions to perform each
264# operation rather than inlining the simple cases.  This can be used to
265# shrink the size of the kernel text segment.  Note that this behavior is
266# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
267# and WITNESS options.
268options 	MUTEX_NOINLINE
269
270# RWLOCK_NOINLINE forces rwlock operations to call functions to perform each
271# operation rather than inlining the simple cases.  This can be used to
272# shrink the size of the kernel text segment.  Note that this behavior is
273# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
274# and WITNESS options.
275options 	RWLOCK_NOINLINE
276
277# SX_NOINLINE forces sx lock operations to call functions to perform each
278# operation rather than inlining the simple cases.  This can be used to
279# shrink the size of the kernel text segment.  Note that this behavior is
280# already implied by the INVARIANT_SUPPORT, INVARIANTS, KTR, LOCK_PROFILING,
281# and WITNESS options.
282options 	SX_NOINLINE
283
284# SMP Debugging Options:
285#
286# CALLOUT_PROFILING enables rudimentary profiling of the callwheel data
287#	  structure used as backend in callout(9).
288# PREEMPTION allows the threads that are in the kernel to be preempted by
289#	  higher priority [interrupt] threads.  It helps with interactivity
290#	  and allows interrupt threads to run sooner rather than waiting.
291# FULL_PREEMPTION instructs the kernel to preempt non-realtime kernel
292#	  threads.  Its sole use is to expose race conditions and other
293#	  bugs during development.  Enabling this option will reduce
294#	  performance and increase the frequency of kernel panics by
295#	  design.  If you aren't sure that you need it then you don't.
296#	  Relies on the PREEMPTION option.  DON'T TURN THIS ON.
297# SLEEPQUEUE_PROFILING enables rudimentary profiling of the hash table
298#	  used to hold active sleep queues as well as sleep wait message
299#	  frequency.
300# TURNSTILE_PROFILING enables rudimentary profiling of the hash table
301#	  used to hold active lock queues.
302# UMTX_PROFILING enables rudimentary profiling of the hash table used
303#	  to hold active lock queues.
304# WITNESS enables the witness code which detects deadlocks and cycles
305#         during locking operations.
306# WITNESS_KDB causes the witness code to drop into the kernel debugger if
307#	  a lock hierarchy violation occurs or if locks are held when going to
308#	  sleep.
309# WITNESS_SKIPSPIN disables the witness checks on spin mutexes.
310options 	PREEMPTION
311options 	FULL_PREEMPTION
312options 	WITNESS
313options 	WITNESS_KDB
314options 	WITNESS_SKIPSPIN
315
316# LOCK_PROFILING - Profiling locks.  See LOCK_PROFILING(9) for details.
317options 	LOCK_PROFILING
318# Set the number of buffers and the hash size.  The hash size MUST be larger
319# than the number of buffers.  Hash size should be prime.
320options 	MPROF_BUFFERS="1536"
321options 	MPROF_HASH_SIZE="1543"
322
323# Profiling for the callout(9) backend.
324options 	CALLOUT_PROFILING
325
326# Profiling for internal hash tables.
327options 	SLEEPQUEUE_PROFILING
328options 	TURNSTILE_PROFILING
329options 	UMTX_PROFILING
330
331# Debugging traces for epoch(9) misuse
332options 	EPOCH_TRACE
333
334#####################################################################
335# COMPATIBILITY OPTIONS
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 FreeBSD11 compatibility syscalls
362options 	COMPAT_FREEBSD11
363
364# Enable FreeBSD12 compatibility syscalls
365options 	COMPAT_FREEBSD12
366
367# Enable FreeBSD13 compatibility syscalls
368options 	COMPAT_FREEBSD13
369
370# Enable Linux Kernel Programming Interface
371options 	COMPAT_LINUXKPI
372
373#
374# These three options provide support for System V Interface
375# Definition-style interprocess communication, in the form of shared
376# memory, semaphores, and message queues, respectively.
377#
378options 	SYSVSHM
379options 	SYSVSEM
380options 	SYSVMSG
381
382
383#####################################################################
384# DEBUGGING OPTIONS
385
386#
387# Compile with kernel debugger related code.
388#
389options 	KDB
390
391#
392# Print a stack trace of the current thread on the console for a panic.
393#
394options 	KDB_TRACE
395
396#
397# Don't enter the debugger for a panic. Intended for unattended operation
398# where you may want to enter the debugger from the console, but still want
399# the machine to recover from a panic.
400#
401options 	KDB_UNATTENDED
402
403#
404# Enable the ddb debugger backend.
405#
406options 	DDB
407
408#
409# Print the numerical value of symbols in addition to the symbolic
410# representation.
411#
412options 	DDB_NUMSYM
413
414#
415# Enable the remote gdb debugger backend.
416#
417options 	GDB
418
419#
420# Trashes list pointers when they become invalid (i.e., the element is
421# removed from a list).  Relatively inexpensive to enable.
422#
423options 	QUEUE_MACRO_DEBUG_TRASH
424
425#
426# Stores information about the last caller to modify the list object
427# in the list object.  Requires additional memory overhead.
428#
429#options 	QUEUE_MACRO_DEBUG_TRACE
430
431#
432# SYSCTL_DEBUG enables a 'sysctl' debug tree that can be used to dump the
433# contents of the registered sysctl nodes on the console.  It is disabled by
434# default because it generates excessively verbose console output that can
435# interfere with serial console operation.
436#
437options 	SYSCTL_DEBUG
438
439#
440# Enable textdump by default, this disables kernel core dumps.
441#
442options 	TEXTDUMP_PREFERRED
443
444#
445# Enable extra debug messages while performing textdumps.
446#
447options 	TEXTDUMP_VERBOSE
448
449#
450# NO_SYSCTL_DESCR omits the sysctl node descriptions to save space in the
451# resulting kernel.
452options 	NO_SYSCTL_DESCR
453
454#
455# MALLOC_DEBUG_MAXZONES enables multiple uma zones for malloc(9)
456# allocations that are smaller than a page.  The purpose is to isolate
457# different malloc types into hash classes, so that any buffer
458# overruns or use-after-free will usually only affect memory from
459# malloc types in that hash class.  This is purely a debugging tool;
460# by varying the hash function and tracking which hash class was
461# corrupted, the intersection of the hash classes from each instance
462# will point to a single malloc type that is being misused.  At this
463# point inspection or memguard(9) can be used to catch the offending
464# code.
465#
466options 	MALLOC_DEBUG_MAXZONES=8
467
468#
469# DEBUG_MEMGUARD builds and enables memguard(9), a replacement allocator
470# for the kernel used to detect modify-after-free scenarios.  See the
471# memguard(9) man page for more information on usage.
472#
473options 	DEBUG_MEMGUARD
474
475#
476# DEBUG_REDZONE enables buffer underflows and buffer overflows detection for
477# malloc(9).
478#
479options 	DEBUG_REDZONE
480
481#
482# EARLY_PRINTF enables support for calling a special printf (eprintf)
483# very early in the kernel (before cn_init() has been called).  This
484# should only be used for debugging purposes early in boot.  Normally,
485# it is not defined.  It is commented out here because this feature
486# isn't generally available. And the required eputc() isn't defined.
487#
488#options 	EARLY_PRINTF
489
490#
491# KTRACE enables the system-call tracing facility ktrace(2).  To be more
492# SMP-friendly, KTRACE uses a worker thread to process most trace events
493# asynchronously to the thread generating the event.  This requires a
494# pre-allocated store of objects representing trace events.  The
495# KTRACE_REQUEST_POOL option specifies the initial size of this store.
496# The size of the pool can be adjusted both at boottime and runtime via
497# the kern.ktrace_request_pool tunable and sysctl.
498#
499options 	KTRACE			#kernel tracing
500options 	KTRACE_REQUEST_POOL=101
501
502#
503# KTR is a kernel tracing facility imported from BSD/OS.  It is
504# enabled with the KTR option.  KTR_ENTRIES defines the number of
505# entries in the circular trace buffer; it may be an arbitrary number.
506# KTR_BOOT_ENTRIES defines the number of entries during the early boot,
507# before malloc(9) is functional.
508# KTR_COMPILE defines the mask of events to compile into the kernel as
509# defined by the KTR_* constants in <sys/ktr.h>.  KTR_MASK defines the
510# initial value of the ktr_mask variable which determines at runtime
511# what events to trace.  KTR_CPUMASK determines which CPU's log
512# events, with bit X corresponding to CPU X.  The layout of the string
513# passed as KTR_CPUMASK must match a series of bitmasks each of them
514# separated by the "," character (ie:
515# KTR_CPUMASK=0xAF,0xFFFFFFFFFFFFFFFF).  KTR_VERBOSE enables
516# dumping of KTR events to the console by default.  This functionality
517# can be toggled via the debug.ktr_verbose sysctl and defaults to off
518# if KTR_VERBOSE is not defined.  See ktr(4) and ktrdump(8) for details.
519#
520options 	KTR
521options 	KTR_BOOT_ENTRIES=1024
522options 	KTR_ENTRIES=(128*1024)
523options 	KTR_COMPILE=(KTR_ALL)
524options 	KTR_MASK=KTR_INTR
525options 	KTR_CPUMASK=0x3
526options 	KTR_VERBOSE
527
528#
529# ALQ(9) is a facility for the asynchronous queuing of records from the kernel
530# to a vnode, and is employed by services such as ktr(4) to produce trace
531# files based on a kernel event stream.  Records are written asynchronously
532# in a worker thread.
533#
534options 	ALQ
535options 	KTR_ALQ
536
537#
538# The INVARIANTS option is used in a number of source files to enable
539# extra sanity checking of internal structures.  This support is not
540# enabled by default because of the extra time it would take to check
541# for these conditions, which can only occur as a result of
542# programming errors.
543#
544options 	INVARIANTS
545
546#
547# The INVARIANT_SUPPORT option makes us compile in support for
548# verifying some of the internal structures.  It is a prerequisite for
549# 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be
550# called.  The intent is that you can set 'INVARIANTS' for single
551# source files (by changing the source file or specifying it on the
552# command line) if you have 'INVARIANT_SUPPORT' enabled.  Also, if you
553# wish to build a kernel module with 'INVARIANTS', then adding
554# 'INVARIANT_SUPPORT' to your kernel will provide all the necessary
555# infrastructure without the added overhead.
556#
557options 	INVARIANT_SUPPORT
558
559#
560# The KASSERT_PANIC_OPTIONAL option allows kasserts to fire without
561# necessarily inducing a panic.  Panic is the default behavior, but
562# runtime options can configure it either entirely off, or off with a
563# limit.
564#
565options 	KASSERT_PANIC_OPTIONAL
566
567#
568# The DIAGNOSTIC option is used to enable extra debugging information
569# and invariants checking.  The added checks are too expensive or noisy
570# for an INVARIANTS kernel and thus are disabled by default.  It is
571# expected that a kernel configured with DIAGNOSTIC will also have the
572# INVARIANTS option enabled.
573#
574options 	DIAGNOSTIC
575
576#
577# REGRESSION causes optional kernel interfaces necessary only for regression
578# testing to be enabled.  These interfaces may constitute security risks
579# when enabled, as they permit processes to easily modify aspects of the
580# run-time environment to reproduce unlikely or unusual (possibly normally
581# impossible) scenarios.
582#
583options 	REGRESSION
584
585#
586# This option lets some drivers co-exist that can't co-exist in a running
587# system.  This is used to be able to compile all kernel code in one go for
588# quality assurance purposes (like this file, which the option takes it name
589# from.)
590#
591options 	COMPILING_LINT
592
593#
594# STACK enables the stack(9) facility, allowing the capture of kernel stack
595# for the purpose of procinfo(1), etc.  stack(9) will also be compiled in
596# automatically if DDB(4) is compiled into the kernel.
597#
598options 	STACK
599
600#
601# The NUM_CORE_FILES option specifies the limit for the number of core
602# files generated by a particular process, when the core file format
603# specifier includes the %I pattern. Since we only have 1 character for
604# the core count in the format string, meaning the range will be 0-9, the
605# maximum value allowed for this option is 10.
606# This core file limit can be adjusted at runtime via the debug.ncores
607# sysctl.
608#
609options 	NUM_CORE_FILES=5
610
611#
612# The TSLOG option enables timestamped logging of events, especially
613# function entries/exits, in order to track the time spent by the kernel.
614# In particular, this is useful when investigating the early boot process,
615# before it is possible to use more sophisticated tools like DTrace.
616# The TSLOGSIZE option controls the size of the (preallocated, fixed
617# length) buffer used for storing these events (default: 262144 records).
618#
619# For security reasons the TSLOG option should not be enabled on systems
620# used in production.
621#
622options 	TSLOG
623options 	TSLOGSIZE=262144
624
625
626#####################################################################
627# PERFORMANCE MONITORING OPTIONS
628
629#
630# The hwpmc driver that allows the use of in-CPU performance monitoring
631# counters for performance monitoring.  The base kernel needs to be configured
632# with the 'options' line, while the hwpmc device can be either compiled
633# in or loaded as a loadable kernel module.
634#
635# Additional configuration options may be required on specific architectures,
636# please see hwpmc(4).
637
638device		hwpmc			# Driver (also a loadable module)
639options 	HWPMC_DEBUG
640options 	HWPMC_HOOKS		# Other necessary kernel hooks
641
642
643#####################################################################
644# NETWORKING OPTIONS
645
646#
647# Protocol families
648#
649options 	INET			#Internet communications protocols
650options 	INET6			#IPv6 communications protocols
651#
652# Note if you include INET/INET6 or both options
653# You *must* define at least one of the congestion control
654# options or the compile will fail. GENERIC defines
655# options CC_CUBIC. You may want to specify a default
656# if multiple congestion controls are compiled in.
657# The string in default is the name of the
658# cc module as it would appear in the sysctl for
659# setting the default. The code defines CUBIC
660# as default, or the sole cc_module compiled in.
661#
662options 	CC_CDG
663options 	CC_CHD
664options 	CC_CUBIC
665options 	CC_DCTCP
666options 	CC_HD
667options 	CC_HTCP
668options 	CC_NEWRENO
669options 	CC_VEGAS
670options 	CC_DEFAULT=\"cubic\"
671options 	RATELIMIT		# TX rate limiting support
672
673options 	ROUTETABLES=2		# allocated fibs up to 65536. default is 1.
674					# but that would be a bad idea as they are large.
675
676options 	TCP_OFFLOAD		# TCP offload support.
677options  	TCP_RFC7413		# TCP Fast Open
678
679options  	TCPHPTS
680makeoptions	WITH_EXTRA_TCP_STACKS=1	# RACK and BBR TCP kernel modules
681
682# In order to enable IPSEC you MUST also add device crypto to
683# your kernel configuration
684options 	IPSEC			#IP security (requires device crypto)
685
686# Option IPSEC_SUPPORT does not enable IPsec, but makes it possible to
687# load it as a kernel module. You still MUST add device crypto to your kernel
688# configuration.
689options 	IPSEC_SUPPORT
690#options 	IPSEC_DEBUG		#debug for IP security
691
692
693# TLS framing and encryption/decryption of data over TCP sockets.
694options 	KERN_TLS		# TLS transmit and receive offload
695
696# Netlink kernel/user<>kernel/user messaging interface
697options 	NETLINK
698
699#
700# SMB/CIFS requester
701# NETSMB enables support for SMB protocol, it requires LIBMCHAIN and LIBICONV
702# options.
703options 	NETSMB			#SMB/CIFS requester
704
705# mchain library. It can be either loaded as KLD or compiled into kernel
706options 	LIBMCHAIN
707
708# libalias library, performing NAT
709options 	LIBALIAS
710
711#
712# SCTP is a NEW transport protocol defined by
713# RFC2960 updated by RFC3309 and RFC3758.. and
714# soon to have a new base RFC and many many more
715# extensions. This release supports all the extensions
716# including many drafts (most about to become RFC's).
717# It is the reference implementation of SCTP
718# and is quite well tested.
719#
720# Note YOU MUST have both INET and INET6 defined.
721# You don't have to enable V6, but SCTP is
722# dual stacked and so far we have not torn apart
723# the V6 and V4.. since an association can span
724# both a V6 and V4 address at the SAME time :-)
725#
726# The SCTP_SUPPORT option does not enable SCTP, but provides the necessary
727# support for loading SCTP as a loadable kernel module.
728#
729options 	SCTP
730options 	SCTP_SUPPORT
731
732# There are bunches of options:
733# this one turns on all sorts of
734# nastily printing that you can
735# do. It's all controlled by a
736# bit mask (settable by socket opt and
737# by sysctl). Including will not cause
738# logging until you set the bits.. but it
739# can be quite verbose.. so without this
740# option we don't do any of the tests for
741# bits and prints.. which makes the code run
742# faster.. if you are not debugging don't use.
743options 	SCTP_DEBUG
744
745#
746# All that options after that turn on specific types of
747# logging. You can monitor CWND growth, flight size
748# and all sorts of things. Go look at the code and
749# see. I have used this to produce interesting
750# charts and graphs as well :->
751#
752# I have not yet committed the tools to get and print
753# the logs, I will do that eventually .. before then
754# if you want them send me an email rrs@freebsd.org
755# You basically must have ktr(4) enabled for these
756# and you then set the sysctl to turn on/off various
757# logging bits. Use ktrdump(8) to pull the log and run
758# it through a display program.. and graphs and other
759# things too.
760#
761options 	SCTP_LOCK_LOGGING
762options 	SCTP_MBUF_LOGGING
763options 	SCTP_MBCNT_LOGGING
764options 	SCTP_PACKET_LOGGING
765options 	SCTP_LTRACE_CHUNKS
766options 	SCTP_LTRACE_ERRORS
767
768# altq(9). Enable the base part of the hooks with the ALTQ option.
769# Individual disciplines must be built into the base system and can not be
770# loaded as modules at this point. ALTQ requires a stable TSC so if yours is
771# broken or changes with CPU throttling then you must also have the ALTQ_NOPCC
772# option.
773options 	ALTQ
774options 	ALTQ_CBQ	# Class Based Queueing
775options 	ALTQ_RED	# Random Early Detection
776options 	ALTQ_RIO	# RED In/Out
777options 	ALTQ_CODEL	# CoDel Active Queueing
778options 	ALTQ_HFSC	# Hierarchical Packet Scheduler
779options 	ALTQ_FAIRQ	# Fair Packet Scheduler
780options 	ALTQ_CDNR	# Traffic conditioner
781options 	ALTQ_PRIQ	# Priority Queueing
782options 	ALTQ_NOPCC	# Required if the TSC is unusable
783options 	ALTQ_DEBUG
784
785# netgraph(4). Enable the base netgraph code with the NETGRAPH option.
786# Individual node types can be enabled with the corresponding option
787# listed below; however, this is not strictly necessary as netgraph
788# will automatically load the corresponding KLD module if the node type
789# is not already compiled into the kernel. Each type below has a
790# corresponding man page, e.g., ng_async(8).
791options 	NETGRAPH		# netgraph(4) system
792options 	NETGRAPH_DEBUG		# enable extra debugging, this
793					# affects netgraph(4) and nodes
794# Node types
795options 	NETGRAPH_ASYNC
796options 	NETGRAPH_BLUETOOTH		# ng_bluetooth(4)
797options 	NETGRAPH_BLUETOOTH_HCI		# ng_hci(4)
798options 	NETGRAPH_BLUETOOTH_L2CAP	# ng_l2cap(4)
799options 	NETGRAPH_BLUETOOTH_SOCKET	# ng_btsocket(4)
800options 	NETGRAPH_BLUETOOTH_UBT		# ng_ubt(4)
801options 	NETGRAPH_BLUETOOTH_UBTBCMFW	# ubtbcmfw(4)
802options 	NETGRAPH_BPF
803options 	NETGRAPH_BRIDGE
804options 	NETGRAPH_CAR
805options 	NETGRAPH_CHECKSUM
806options 	NETGRAPH_CISCO
807options 	NETGRAPH_DEFLATE
808options 	NETGRAPH_DEVICE
809options 	NETGRAPH_ECHO
810options 	NETGRAPH_EIFACE
811options 	NETGRAPH_ETHER
812options 	NETGRAPH_FRAME_RELAY
813options 	NETGRAPH_GIF
814options 	NETGRAPH_GIF_DEMUX
815options 	NETGRAPH_HOLE
816options 	NETGRAPH_IFACE
817options 	NETGRAPH_IP_INPUT
818options 	NETGRAPH_IPFW
819options 	NETGRAPH_KSOCKET
820options 	NETGRAPH_L2TP
821options 	NETGRAPH_LMI
822options 	NETGRAPH_MPPC_COMPRESSION
823options 	NETGRAPH_MPPC_ENCRYPTION
824options 	NETGRAPH_NETFLOW
825options 	NETGRAPH_NAT
826options 	NETGRAPH_ONE2MANY
827options 	NETGRAPH_PATCH
828options 	NETGRAPH_PIPE
829options 	NETGRAPH_PPP
830options 	NETGRAPH_PPPOE
831options 	NETGRAPH_PPTPGRE
832options 	NETGRAPH_PRED1
833options 	NETGRAPH_RFC1490
834options 	NETGRAPH_SOCKET
835options 	NETGRAPH_SPLIT
836options 	NETGRAPH_TAG
837options 	NETGRAPH_TCPMSS
838options 	NETGRAPH_TEE
839options 	NETGRAPH_UI
840options 	NETGRAPH_VJC
841options 	NETGRAPH_VLAN
842
843# Network stack virtualization.
844options 	VIMAGE
845options 	VNET_DEBUG	# debug for VIMAGE
846
847#
848# Network interfaces:
849#  The `loop' device is MANDATORY when networking is enabled.
850device		loop
851
852#  The `ether' device provides generic code to handle
853#  Ethernets; it is MANDATORY when an Ethernet device driver is
854#  configured.
855device		ether
856
857#  The `vlan' device implements the VLAN tagging of Ethernet frames
858#  according to IEEE 802.1Q.
859device		vlan
860
861# The `vxlan' device implements the VXLAN encapsulation of Ethernet
862# frames in UDP packets according to RFC7348.
863device		vxlan
864
865#  The `wlan' device provides generic code to support 802.11
866#  drivers, including host AP mode; it is MANDATORY for the wi,
867#  and ath drivers and will eventually be required by all 802.11 drivers.
868device		wlan
869options 	IEEE80211_DEBUG		#enable debugging msgs
870options 	IEEE80211_SUPPORT_MESH	#enable 802.11s D3.0 support
871options 	IEEE80211_SUPPORT_TDMA	#enable TDMA support
872
873#  The `wlan_wep', `wlan_tkip', and `wlan_ccmp' devices provide
874#  support for WEP, TKIP, and AES-CCMP crypto protocols optionally
875#  used with 802.11 devices that depend on the `wlan' module.
876device		wlan_wep
877device		wlan_ccmp
878device		wlan_tkip
879
880#  The `wlan_xauth' device provides support for external (i.e. user-mode)
881#  authenticators for use with 802.11 drivers that use the `wlan'
882#  module and support 802.1x and/or WPA security protocols.
883device		wlan_xauth
884
885#  The `wlan_acl' device provides a MAC-based access control mechanism
886#  for use with 802.11 drivers operating in ap mode and using the
887#  `wlan' module.
888#  The 'wlan_amrr' device provides AMRR transmit rate control algorithm
889device		wlan_acl
890device		wlan_amrr
891
892#  The `bpf' device enables the Berkeley Packet Filter.  Be
893#  aware of the legal and administrative consequences of enabling this
894#  option.  DHCP requires bpf.
895device		bpf
896
897#  The `netmap' device implements memory-mapped access to network
898#  devices from userspace, enabling wire-speed packet capture and
899#  generation even at 10Gbit/s. Requires support in the device
900#  driver. Supported drivers are ixgbe, e1000, re.
901device		netmap
902
903#  The `disc' device implements a minimal network interface,
904#  which throws away all packets sent and never receives any.  It is
905#  included for testing and benchmarking purposes.
906device		disc
907
908# The `epair' device implements a virtual back-to-back connected Ethernet
909# like interface pair.
910device		epair
911
912#  The `edsc' device implements a minimal Ethernet interface,
913#  which discards all packets sent and receives none.
914device		edsc
915
916#  The `tuntap' device implements (user-)ppp, nos-tun(8) and a pty-like virtual
917#  Ethernet interface
918device		tuntap
919
920#  The `gif' device implements IPv6 over IP4 tunneling,
921#  IPv4 over IPv6 tunneling, IPv4 over IPv4 tunneling and
922#  IPv6 over IPv6 tunneling.
923#  The `gre' device implements GRE (Generic Routing Encapsulation) tunneling,
924#  as specified in the RFC 2784 and RFC 2890.
925#  The `me' device implements Minimal Encapsulation within IPv4 as
926#  specified in the RFC 2004.
927#  The XBONEHACK option allows the same pair of addresses to be configured on
928#  multiple gif interfaces.
929device		gif
930device		gre
931device		me
932options 	XBONEHACK
933
934#  The `stf' device implements 6to4 encapsulation.
935device		stf
936
937# The pf packet filter consists of three devices:
938#  The `pf' device provides /dev/pf and the firewall code itself.
939#  The `pflog' device provides the pflog0 interface which logs packets.
940#  The `pfsync' device provides the pfsync0 interface used for
941#   synchronization of firewall state tables (over the net).
942device		pf
943device		pflog
944device		pfsync
945
946# Bridge interface.
947device		if_bridge
948
949# Common Address Redundancy Protocol. See carp(4) for more details.
950device		carp
951
952# IPsec interface.
953device		enc
954
955# Link aggregation interface.
956device		lagg
957
958# WireGuard interface.
959device		wg
960
961#
962# Internet family options:
963#
964# MROUTING enables the kernel multicast packet forwarder, which works
965# with mrouted and XORP.
966#
967# IPFIREWALL enables support for IP firewall construction, in
968# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
969# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
970# limits the number of times a matching entry can be logged.
971#
972# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
973# and if you do not add other rules during startup to allow access,
974# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set firewall_type=open
975# in /etc/rc.conf when first enabling this feature, then refining the
976# firewall rules in /etc/rc.firewall after you've tested that the new kernel
977# feature works properly.
978#
979# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
980# allow everything.  Use with care, if a cracker can crash your
981# firewall machine, they can get to your protected machines.  However,
982# if you are using it as an as-needed filter for specific problems as
983# they arise, then this may be for you.  Changing the default to 'allow'
984# means that you won't get stuck if the kernel and /sbin/ipfw binary get
985# out of sync.
986#
987# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''.  It
988# depends on IPFIREWALL if compiled into the kernel.
989#
990# IPFIREWALL_NAT adds support for in kernel nat in ipfw, and it requires
991# LIBALIAS.
992#
993# IPFIREWALL_NAT64 adds support for in kernel NAT64 in ipfw.
994#
995# IPFIREWALL_NPTV6 adds support for in kernel NPTv6 in ipfw.
996#
997# IPFIREWALL_PMOD adds support for protocols modification module. Currently
998# it supports only TCP MSS modification.
999#
1000# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
1001# packets without touching the TTL).  This can be useful to hide firewalls
1002# from traceroute and similar tools.
1003#
1004# PF_DEFAULT_TO_DROP causes the default pf(4) rule to deny everything.
1005#
1006# TCPPCAP enables code which keeps the last n packets sent and received
1007# on a TCP socket.
1008#
1009# TCP_BLACKBOX enables enhanced TCP event logging.
1010#
1011# TCP_HHOOK enables the hhook(9) framework hooks for the TCP stack.
1012#
1013# ROUTE_MPATH provides support for multipath routing.
1014#
1015options 	MROUTING		# Multicast routing
1016options 	IPFIREWALL		#firewall
1017options 	IPFIREWALL_VERBOSE	#enable logging to syslogd(8)
1018options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
1019options 	IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
1020options 	IPFIREWALL_NAT		#ipfw kernel nat support
1021options 	IPFIREWALL_NAT64	#ipfw kernel NAT64 support
1022options 	IPFIREWALL_NPTV6	#ipfw kernel IPv6 NPT support
1023options 	IPDIVERT		#divert sockets
1024options 	IPFILTER		#ipfilter support
1025options 	IPFILTER_LOG		#ipfilter logging
1026options 	IPFILTER_LOOKUP		#ipfilter pools
1027options 	IPFILTER_DEFAULT_BLOCK	#block all packets by default
1028options 	IPSTEALTH		#support for stealth forwarding
1029options 	PF_DEFAULT_TO_DROP	#drop everything by default
1030options 	TCPPCAP
1031options 	TCP_BLACKBOX
1032options 	TCP_HHOOK
1033options 	ROUTE_MPATH
1034
1035# The MBUF_STRESS_TEST option enables options which create
1036# various random failures / extreme cases related to mbuf
1037# functions.  See mbuf(9) for a list of available test cases.
1038# MBUF_PROFILING enables code to profile the mbuf chains
1039# exiting the system (via participating interfaces) and
1040# return a logarithmic histogram of monitored parameters
1041# (e.g. packet size, wasted space, number of mbufs in chain).
1042options 	MBUF_STRESS_TEST
1043options 	MBUF_PROFILING
1044
1045# Statically link in accept filters
1046options 	ACCEPT_FILTER_DATA
1047options 	ACCEPT_FILTER_DNS
1048options 	ACCEPT_FILTER_HTTP
1049
1050# TCP_SIGNATURE adds support for RFC 2385 (TCP-MD5) digests. These are
1051# carried in TCP option 19. This option is commonly used to protect
1052# TCP sessions (e.g. BGP) where IPSEC is not available nor desirable.
1053# This is enabled on a per-socket basis using the TCP_MD5SIG socket option.
1054# This requires the use of 'device crypto' and either 'options IPSEC' or
1055# 'options IPSEC_SUPPORT'.
1056options 	TCP_SIGNATURE		#include support for RFC 2385
1057
1058# DUMMYNET enables the "dummynet" bandwidth limiter.  You need IPFIREWALL
1059# as well.  See dummynet(4) and ipfw(8) for more info.  When you run
1060# DUMMYNET, HZ/kern.hz should be at least 1000 for adequate response.
1061options 	DUMMYNET
1062
1063# The DEBUGNET option enables a basic debug/panic-time networking API.  It
1064# is used by NETDUMP and NETGDB.
1065options 	DEBUGNET
1066
1067# The NETDUMP option enables netdump(4) client support in the kernel.
1068# This allows a panicking kernel to transmit a kernel dump to a remote host.
1069options 	NETDUMP
1070
1071# The NETGDB option enables netgdb(4) support in the kernel.  This allows a
1072# panicking kernel to be debugged as a GDB remote over the network.
1073options 	NETGDB
1074
1075#####################################################################
1076# FILESYSTEM OPTIONS
1077
1078#
1079# Only the root filesystem needs to be statically compiled or preloaded
1080# as module; everything else will be automatically loaded at mount
1081# time.  Some people still prefer to statically compile other
1082# filesystems as well.
1083#
1084# NB: The UNION filesystem was known to be buggy in the past.  It is now
1085# being actively maintained, although there are still some issues being
1086# resolved.
1087#
1088
1089# One of these is mandatory:
1090options 	FFS			#Fast filesystem
1091options 	NFSCL			#Network File System client
1092
1093# The rest are optional:
1094options 	AUTOFS			#Automounter filesystem
1095options 	CD9660			#ISO 9660 filesystem
1096options 	FDESCFS			#File descriptor filesystem
1097options 	FUSEFS			#FUSEFS support module
1098options 	MSDOSFS			#MS DOS File System (FAT, FAT32)
1099options 	NFSLOCKD		#Network Lock Manager
1100options 	NFSD			#Network Filesystem Server
1101options 	KGSSAPI			#Kernel GSSAPI implementation
1102
1103options 	NULLFS			#NULL filesystem
1104options 	PROCFS			#Process filesystem (requires PSEUDOFS)
1105options 	PSEUDOFS		#Pseudo-filesystem framework
1106options 	PSEUDOFS_TRACE		#Debugging support for PSEUDOFS
1107options 	SMBFS			#SMB/CIFS filesystem
1108options 	TMPFS			#Efficient memory filesystem
1109options 	UDF			#Universal Disk Format
1110options 	UNIONFS			#Union filesystem
1111# The xFS_ROOT options REQUIRE the associated ``options xFS''
1112options 	NFS_ROOT		#NFS usable as root device
1113
1114# Soft updates is a technique for improving filesystem speed and
1115# making abrupt shutdown less risky.
1116#
1117options 	SOFTUPDATES
1118
1119# Extended attributes allow additional data to be associated with files,
1120# and is used for ACLs, Capabilities, and MAC labels.
1121# See src/sys/ufs/ufs/README.extattr for more information.
1122options 	UFS_EXTATTR
1123options 	UFS_EXTATTR_AUTOSTART
1124
1125# Access Control List support for UFS filesystems.  The current ACL
1126# implementation requires extended attribute support, UFS_EXTATTR,
1127# for the underlying filesystem.
1128# See src/sys/ufs/ufs/README.acls for more information.
1129options 	UFS_ACL
1130
1131# Directory hashing improves the speed of operations on very large
1132# directories at the expense of some memory.
1133options 	UFS_DIRHASH
1134
1135# Gjournal-based UFS journaling support.
1136options 	UFS_GJOURNAL
1137
1138# Make space in the kernel for a root filesystem on a md device.
1139# Define to the number of kilobytes to reserve for the filesystem.
1140# This is now optional.
1141# If not defined, the root filesystem passed in as the MFS_IMAGE makeoption
1142# will be automatically embedded in the kernel during linking. Its exact size
1143# will be consumed within the kernel.
1144# If defined, the old way of embedding the filesystem in the kernel will be
1145# used. That is to say MD_ROOT_SIZE KB will be allocated in the kernel and
1146# later, the filesystem image passed in as the MFS_IMAGE makeoption will be
1147# dd'd into the reserved space if it fits.
1148options 	MD_ROOT_SIZE=10
1149
1150# Make the md device a potential root device, either with preloaded
1151# images of type mfs_root or md_root.
1152options 	MD_ROOT
1153
1154# Write-protect the md root device so that it may not be mounted writeable.
1155options 	MD_ROOT_READONLY
1156
1157# Allow to read MD image from external memory regions
1158options 	MD_ROOT_MEM
1159
1160# Disk quotas are supported when this option is enabled.
1161options 	QUOTA			#enable disk quotas
1162
1163# If you are running a machine just as a fileserver for PC and MAC
1164# users, using SAMBA, you may consider setting this option
1165# and keeping all those users' directories on a filesystem that is
1166# mounted with the suiddir option. This gives new files the same
1167# ownership as the directory (similar to group). It's a security hole
1168# if you let these users run programs, so confine it to file-servers
1169# (but it'll save you lots of headaches in those cases). Root owned
1170# directories are exempt and X bits are cleared. The suid bit must be
1171# set on the directory as well; see chmod(1). PC owners can't see/set
1172# ownerships so they keep getting their toes trodden on. This saves
1173# you all the support calls as the filesystem it's used on will act as
1174# they expect: "It's my dir so it must be my file".
1175#
1176options 	SUIDDIR
1177
1178# NFS options:
1179options 	NFS_MINATTRTIMO=3	# VREG attrib cache timeout in sec
1180options 	NFS_MAXATTRTIMO=60
1181options 	NFS_MINDIRATTRTIMO=30	# VDIR attrib cache timeout in sec
1182options 	NFS_MAXDIRATTRTIMO=60
1183options 	NFS_DEBUG		# Enable NFS Debugging
1184
1185#
1186# Add support for the EXT2FS filesystem of Linux fame.  Be a bit
1187# careful with this - the ext2fs code has a tendency to lag behind
1188# changes and not be exercised very much, so mounting read/write could
1189# be dangerous (and even mounting read only could result in panics.)
1190#
1191options 	EXT2FS
1192
1193# The system memory devices; /dev/mem, /dev/kmem
1194device		mem
1195
1196# The kernel symbol table device; /dev/ksyms
1197device		ksyms
1198
1199# Optional character code conversion support with LIBICONV.
1200# Each option requires their base file system and LIBICONV.
1201options 	CD9660_ICONV
1202options 	MSDOSFS_ICONV
1203options 	UDF_ICONV
1204
1205
1206#####################################################################
1207# POSIX P1003.1B
1208
1209# Real time extensions added in the 1993 POSIX
1210# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
1211
1212options 	_KPOSIX_PRIORITY_SCHEDULING
1213# p1003_1b_semaphores are very experimental,
1214# user should be ready to assist in debugging if problems arise.
1215options 	P1003_1B_SEMAPHORES
1216
1217# POSIX message queue
1218options 	P1003_1B_MQUEUE
1219
1220#####################################################################
1221# SECURITY POLICY PARAMETERS
1222
1223# Support for BSM audit
1224options 	AUDIT
1225
1226# Support for Mandatory Access Control (MAC):
1227options 	MAC
1228options 	MAC_BIBA
1229options 	MAC_BSDEXTENDED
1230options 	MAC_DDB
1231options 	MAC_IFOFF
1232options 	MAC_LOMAC
1233options 	MAC_MLS
1234options 	MAC_NONE
1235options 	MAC_NTPD
1236options 	MAC_PARTITION
1237options 	MAC_PORTACL
1238options 	MAC_PRIORITY
1239options 	MAC_SEEOTHERUIDS
1240options 	MAC_STUB
1241options 	MAC_TEST
1242options 	MAC_VERIEXEC
1243options 	MAC_VERIEXEC_SHA1
1244options 	MAC_VERIEXEC_SHA256
1245options 	MAC_VERIEXEC_SHA384
1246options 	MAC_VERIEXEC_SHA512
1247device		mac_veriexec_parser
1248
1249# Support for Capsicum
1250options 	CAPABILITIES	# fine-grained rights on file descriptors
1251options 	CAPABILITY_MODE	# sandboxes with no global namespace access
1252
1253
1254#####################################################################
1255# CLOCK OPTIONS
1256
1257# The granularity of operation is controlled by the kernel option HZ (default
1258# frequency of 1000 Hz or a period 1ms between calls). Virtual machine guests
1259# use a value of 100. Lower values may lower overhead at the expense of accuracy
1260# of scheduling, though the adaptive tick code reduces that overhead.
1261
1262options 	HZ=100
1263
1264# Enable support for the kernel PLL to use an external PPS signal,
1265# under supervision of [x]ntpd(8)
1266# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
1267
1268options 	PPS_SYNC
1269
1270# Enable support for generic feed-forward clocks in the kernel.
1271# The feed-forward clock support is an alternative to the feedback oriented
1272# ntpd/system clock approach, and is to be used with a feed-forward
1273# synchronization algorithm such as the RADclock:
1274# More info here: http://www.synclab.org/radclock
1275
1276options 	FFCLOCK
1277
1278
1279#####################################################################
1280# SCSI DEVICES
1281
1282# SCSI DEVICE CONFIGURATION
1283
1284# The SCSI subsystem consists of the `base' SCSI code, a number of
1285# high-level SCSI device `type' drivers, and the low-level host-adapter
1286# device drivers.  The host adapters are listed in the ISA and PCI
1287# device configuration sections below.
1288#
1289# It is possible to wire down your SCSI devices so that a given bus,
1290# target, and LUN always come on line as the same device unit.  In
1291# earlier versions the unit numbers were assigned in the order that
1292# the devices were probed on the SCSI bus.  This means that if you
1293# removed a disk drive, you may have had to rewrite your /etc/fstab
1294# file, and also that you had to be careful when adding a new disk
1295# as it may have been probed earlier and moved your device configuration
1296# around.
1297
1298# This old behavior is maintained as the default behavior.  The unit
1299# assignment begins with the first non-wired down unit for a device
1300# type.  For example, if you wire a disk as "da3" then the first
1301# non-wired disk will be assigned da4.
1302
1303# The syntax for wiring down devices is:
1304
1305envvar		hint.scbus.0.at="ahc0"
1306envvar		hint.scbus.1.at="ahc1"
1307envvar		hint.scbus.1.bus="0"
1308envvar		hint.scbus.3.at="ahc2"
1309envvar		hint.scbus.3.bus="0"
1310envvar		hint.scbus.2.at="ahc2"
1311envvar		hint.scbus.2.bus="1"
1312envvar		hint.da.0.at="scbus0"
1313envvar		hint.da.0.target="0"
1314envvar		hint.da.0.unit="0"
1315envvar		hint.da.1.at="scbus3"
1316envvar		hint.da.1.target="1"
1317envvar		hint.da.2.at="scbus2"
1318envvar		hint.da.2.target="3"
1319envvar		hint.sa.1.at="scbus1"
1320envvar		hint.sa.1.target="6"
1321
1322# "units" (SCSI logical unit number) that are not specified are
1323# treated as if specified as LUN 0.
1324
1325# All SCSI devices allocate as many units as are required.
1326
1327# The ch driver drives SCSI Media Changer ("jukebox") devices.
1328#
1329# The da driver drives SCSI Direct Access ("disk") and Optical Media
1330# ("WORM") devices.
1331#
1332# The sa driver drives SCSI Sequential Access ("tape") devices.
1333#
1334# The cd driver drives SCSI Read Only Direct Access ("cd") devices.
1335#
1336# The ses driver drives SCSI Environment Services ("ses") and
1337# SAF-TE ("SCSI Accessible Fault-Tolerant Enclosure") devices.
1338#
1339# The pt driver drives SCSI Processor devices.
1340#
1341# The sg driver provides a passthrough API that is compatible with the
1342# Linux SG driver.  It will work in conjunction with the Linuxulator
1343# to run linux SG apps.  It can also stand on its own and provide
1344# source level API compatibility for porting apps to FreeBSD.
1345#
1346# Target Mode support is provided here but also requires that a SIM
1347# (SCSI Host Adapter Driver) provide support as well.
1348#
1349# The targ driver provides target mode support as a Processor type device.
1350# It exists to give the minimal context necessary to respond to Inquiry
1351# commands. There is a sample user application that shows how the rest
1352# of the command support might be done in /usr/share/examples/scsi_target.
1353#
1354# The targbh driver provides target mode support and exists to respond
1355# to incoming commands that do not otherwise have a logical unit assigned
1356# to them.
1357#
1358# The pass driver provides a passthrough API to access the CAM subsystem.
1359
1360device		scbus		#base SCSI code
1361device		ch		#SCSI media changers
1362device		da		#SCSI direct access devices (aka disks)
1363device		sa		#SCSI tapes
1364device		cd		#SCSI CD-ROMs
1365device		ses		#Enclosure Services (SES and SAF-TE)
1366device		pt		#SCSI processor
1367device		targ		#SCSI Target Mode Code
1368device		targbh		#SCSI Target Mode Blackhole Device
1369device		pass		#CAM passthrough driver
1370device		sg		#Linux SCSI passthrough
1371device		ctl		#CAM Target Layer
1372
1373# CAM OPTIONS:
1374# debugging options:
1375# CAMDEBUG		Compile in all possible debugging.
1376# CAM_DEBUG_COMPILE	Debug levels to compile in.
1377# CAM_DEBUG_FLAGS	Debug levels to enable on boot.
1378# CAM_DEBUG_BUS		Limit debugging to the given bus.
1379# CAM_DEBUG_TARGET	Limit debugging to the given target.
1380# CAM_DEBUG_LUN		Limit debugging to the given lun.
1381# CAM_DEBUG_DELAY	Delay in us after printing each debug line.
1382# CAM_IO_STATS		Publish additional CAM device statics by sysctl
1383#
1384# CAM_MAX_HIGHPOWER: Maximum number of concurrent high power (start unit) cmds
1385# SCSI_NO_SENSE_STRINGS: When defined disables sense descriptions
1386# SCSI_NO_OP_STRINGS: When defined disables opcode descriptions
1387# SCSI_DELAY: The number of MILLISECONDS to freeze the SIM (scsi adapter)
1388#             queue after a bus reset, and the number of milliseconds to
1389#             freeze the device queue after a bus device reset.  This
1390#             can be changed at boot and runtime with the
1391#             kern.cam.scsi_delay tunable/sysctl.
1392options 	CAMDEBUG
1393options 	CAM_DEBUG_COMPILE=-1
1394options 	CAM_DEBUG_FLAGS=(CAM_DEBUG_INFO|CAM_DEBUG_PROBE|CAM_DEBUG_PERIPH)
1395options 	CAM_DEBUG_BUS=-1
1396options 	CAM_DEBUG_TARGET=-1
1397options 	CAM_DEBUG_LUN=-1
1398options 	CAM_DEBUG_DELAY=1
1399options 	CAM_MAX_HIGHPOWER=4
1400options 	SCSI_NO_SENSE_STRINGS
1401options 	SCSI_NO_OP_STRINGS
1402options 	SCSI_DELAY=5000	# Be pessimistic about Joe SCSI device
1403options 	CAM_IOSCHED_DYNAMIC
1404options 	CAM_IO_STATS
1405options 	CAM_TEST_FAILURE
1406
1407# Options for the CAM CDROM driver:
1408# CHANGER_MIN_BUSY_SECONDS: Guaranteed minimum time quantum for a changer LUN
1409# CHANGER_MAX_BUSY_SECONDS: Maximum time quantum per changer LUN, only
1410#                           enforced if there is I/O waiting for another LUN
1411# The compiled in defaults for these variables are 2 and 10 seconds,
1412# respectively.
1413#
1414# These can also be changed on the fly with the following sysctl variables:
1415# kern.cam.cd.changer.min_busy_seconds
1416# kern.cam.cd.changer.max_busy_seconds
1417#
1418options 	CHANGER_MIN_BUSY_SECONDS=2
1419options 	CHANGER_MAX_BUSY_SECONDS=10
1420
1421# Options for the CAM sequential access driver:
1422# SA_IO_TIMEOUT: Timeout for read/write/wfm  operations, in minutes
1423# SA_SPACE_TIMEOUT: Timeout for space operations, in minutes
1424# SA_REWIND_TIMEOUT: Timeout for rewind operations, in minutes
1425# SA_ERASE_TIMEOUT: Timeout for erase operations, in minutes
1426# SA_1FM_AT_EOD: Default to model which only has a default one filemark at EOT.
1427options 	SA_IO_TIMEOUT=4
1428options 	SA_SPACE_TIMEOUT=60
1429options 	SA_REWIND_TIMEOUT=(2*60)
1430options 	SA_ERASE_TIMEOUT=(4*60)
1431options 	SA_1FM_AT_EOD
1432
1433# Optional timeout for the CAM processor target (pt) device
1434# This is specified in seconds.  The default is 60 seconds.
1435options 	SCSI_PT_DEFAULT_TIMEOUT=60
1436
1437# Optional enable of doing SES passthrough on other devices (e.g., disks)
1438#
1439# Normally disabled because a lot of newer SCSI disks report themselves
1440# as having SES capabilities, but this can then clot up attempts to build
1441# a topology with the SES device that's on the box these drives are in....
1442options 	SES_ENABLE_PASSTHROUGH
1443
1444
1445#####################################################################
1446# MISCELLANEOUS DEVICES AND OPTIONS
1447
1448device		pty		#BSD-style compatibility pseudo ttys
1449device		nmdm		#back-to-back tty devices
1450device		md		#Memory/malloc disk
1451device		snp		#Snoop device - to look at pty/vty/etc..
1452device		ccd		#Concatenated disk driver
1453device		firmware	#firmware(9) support
1454
1455# Kernel side iconv library
1456options 	LIBICONV
1457
1458# Size of the kernel message buffer.  Should be N * pagesize.
1459options 	MSGBUF_SIZE=40960
1460
1461
1462#####################################################################
1463# HARDWARE BUS CONFIGURATION
1464
1465#
1466# PCI bus & PCI options:
1467#
1468device		pci
1469options 	PCI_HP			# PCI-Express native HotPlug
1470options 	PCI_IOV			# PCI SR-IOV support
1471
1472
1473#####################################################################
1474# HARDWARE DEVICE CONFIGURATION
1475
1476# For ISA the required hints are listed.
1477# PCI, CardBus, and SD/MMC are self identifying buses, so
1478# no hints are needed.
1479
1480#
1481# Mandatory devices:
1482#
1483
1484# These options are valid for other keyboard drivers as well.
1485options 	KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
1486options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
1487
1488# Define keyboard latency (try 200/15 for a snappy interactive console)
1489options 	KBD_DELAY1=200		# define initial key delay
1490options 	KBD_DELAY2=15		# define key delay
1491
1492device		kbdmux			# keyboard multiplexer
1493options 	KBDMUX_DFLT_KEYMAP	# specify the built-in keymap
1494makeoptions	KBDMUX_DFLT_KEYMAP=it.iso
1495
1496options 	FB_DEBUG		# Frame buffer debugging
1497
1498# Enable experimental features of the syscons terminal emulator (teken).
1499options 	TEKEN_CONS25		# cons25-style terminal emulation
1500options 	TEKEN_UTF8		# UTF-8 output handling
1501
1502# The vt video console driver.
1503device		vt
1504options 	VT_ALT_TO_ESC_HACK=1	# Prepend ESC sequence to ALT keys
1505options 	VT_MAXWINDOWS=16	# Number of virtual consoles
1506options 	VT_TWOBUTTON_MOUSE	# Use right mouse button to paste
1507
1508# The following options set the maximum framebuffer size.
1509options 	VT_FB_MAX_HEIGHT=480
1510options 	VT_FB_MAX_WIDTH=640
1511
1512# The following options will let you change the default vt terminal colors.
1513options 	TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)
1514options 	TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)
1515
1516#
1517# Optional devices:
1518#
1519
1520#
1521# SCSI host adapters:
1522#
1523# aacraid: Adaptec by PMC RAID controllers, Series 6/7/8 and upcoming
1524#          families. Container interface, CAM required.
1525# ahc: Adaptec 274x/284x/2910/293x/294x/394x/3950x/3960x/398X/4944/
1526#      19160x/29160x, aic7770/aic78xx
1527# ahd: Adaptec 29320/39320 Controllers.
1528# isp: Qlogic ISP 1020, 1040 and 1040B PCI SCSI host adapters,
1529#      ISP 1240 Dual Ultra SCSI, ISP 1080 and 1280 (Dual) Ultra2,
1530#      ISP 12160 Ultra3 SCSI,
1531#      Qlogic ISP 2100 and ISP 2200 1Gb Fibre Channel host adapters.
1532#      Qlogic ISP 2300 and ISP 2312 2Gb Fibre Channel host adapters.
1533#      Qlogic ISP 2322 and ISP 6322 2Gb Fibre Channel host adapters.
1534# ispfw: Firmware module for Qlogic host adapters
1535# mpr: LSI-Logic MPT/Fusion Gen 3
1536# mps: LSI-Logic MPT/Fusion Gen 2
1537# mpt: LSI-Logic MPT/Fusion 53c1020 or 53c1030 Ultra4
1538#      or FC9x9 Fibre Channel host adapters.
1539# sym: Symbios/Logic 53C8XX family of PCI-SCSI I/O processors:
1540#      53C810, 53C810A, 53C815, 53C825,  53C825A, 53C860, 53C875,
1541#      53C876, 53C885,  53C895, 53C895A, 53C896,  53C897, 53C1510D,
1542#      53C1010-33, 53C1010-66.
1543
1544device		aacraid
1545device		ahc
1546device		ahd
1547device		isp
1548envvar		hint.isp.0.disable="1"
1549envvar		hint.isp.0.role="3"
1550envvar		hint.isp.0.prefer_iomap="1"
1551envvar		hint.isp.0.prefer_memmap="1"
1552envvar		hint.isp.0.fwload_disable="1"
1553envvar		hint.isp.0.ignore_nvram="1"
1554envvar		hint.isp.0.fullduplex="1"
1555envvar		hint.isp.0.topology="lport"
1556envvar		hint.isp.0.topology="nport"
1557envvar		hint.isp.0.topology="lport-only"
1558envvar		hint.isp.0.topology="nport-only"
1559# we can't get u_int64_t types, nor can we get strings if it's got
1560# a leading 0x, hence this silly dodge.
1561envvar		hint.isp.0.portwnn="w50000000aaaa0000"
1562envvar		hint.isp.0.nodewnn="w50000000aaaa0001"
1563device		ispfw
1564device		mpr			# LSI-Logic MPT-Fusion 3
1565device		mps			# LSI-Logic MPT-Fusion 2
1566device		mpt			# LSI-Logic MPT-Fusion
1567device		sym
1568
1569# The aic7xxx driver will attempt to use memory mapped I/O for all PCI
1570# controllers that have it configured only if this option is set. Unfortunately,
1571# this doesn't work on some motherboards, which prevents it from being the
1572# default.
1573options 	AHC_ALLOW_MEMIO
1574
1575# Dump the contents of the ahc controller configuration PROM.
1576options 	AHC_DUMP_EEPROM
1577
1578# Bitmap of units to enable targetmode operations.
1579options 	AHC_TMODE_ENABLE
1580
1581# Compile in Aic7xxx Debugging code.
1582options 	AHC_DEBUG
1583
1584# Aic7xxx driver debugging options. See sys/dev/aic7xxx/aic7xxx.h
1585options 	AHC_DEBUG_OPTS
1586
1587# Print register bitfields in debug output.  Adds ~128k to driver
1588# See ahc(4).
1589options 	AHC_REG_PRETTY_PRINT
1590
1591# Compile in aic79xx debugging code.
1592options 	AHD_DEBUG
1593
1594# Aic79xx driver debugging options.  Adds ~215k to driver.  See ahd(4).
1595options 	AHD_DEBUG_OPTS=0xFFFFFFFF
1596
1597# Print human-readable register definitions when debugging
1598options 	AHD_REG_PRETTY_PRINT
1599
1600# Bitmap of units to enable targetmode operations.
1601options 	AHD_TMODE_ENABLE
1602
1603# Options used in dev/iscsi (Software iSCSI stack)
1604#
1605options 	ISCSI_INITIATOR_DEBUG=9
1606
1607# Options used in dev/isp/ (Qlogic SCSI/FC driver).
1608#
1609#	ISP_TARGET_MODE		-	enable target mode operation
1610#
1611options 	ISP_TARGET_MODE=1
1612#
1613#	ISP_DEFAULT_ROLES	-	default role
1614#		none=0
1615#		target=1
1616#		initiator=2
1617#		both=3			(not supported currently)
1618#
1619#	ISP_INTERNAL_TARGET		(trivial internal disk target, for testing)
1620#
1621options 	ISP_DEFAULT_ROLES=0
1622
1623#options 	SYM_SETUP_SCSI_DIFF	#-HVD support for 825a, 875, 885
1624					# disabled:0 (default), enabled:1
1625#options 	SYM_SETUP_PCI_PARITY	#-PCI parity checking
1626					# disabled:0, enabled:1 (default)
1627#options 	SYM_SETUP_MAX_LUN	#-Number of LUNs supported
1628					# default:8, range:[1..64]
1629
1630#
1631# Compaq "CISS" RAID controllers (SmartRAID 5* series)
1632# These controllers have a SCSI-like interface, and require the
1633# CAM infrastructure.
1634#
1635device		ciss
1636
1637#
1638# Compaq Smart RAID, Mylex DAC960 and AMI MegaRAID controllers.  Only
1639# one entry is needed; the code will find and configure all supported
1640# controllers.
1641#
1642device		ida		# Compaq Smart RAID
1643device		mlx		# Mylex DAC960
1644device		mfi		# LSI MegaRAID SAS
1645device		mfip		# LSI MegaRAID SAS passthrough, requires CAM
1646options 	MFI_DEBUG
1647device		mrsas		# LSI/Avago MegaRAID SAS/SATA, 6Gb/s and 12Gb/s
1648
1649#
1650# 3ware ATA RAID
1651#
1652device		twe		# 3ware ATA RAID
1653
1654#
1655# Serial ATA host controllers:
1656#
1657# ahci: Advanced Host Controller Interface (AHCI) compatible
1658# mvs:  Marvell 88SX50XX/88SX60XX/88SX70XX/SoC controllers
1659# siis: SiliconImage SiI3124/SiI3132/SiI3531 controllers
1660#
1661# These drivers are part of cam(4) subsystem. They supersede less featured
1662# ata(4) subsystem drivers, supporting same hardware.
1663
1664device		ahci
1665device		mvs
1666device		siis
1667
1668#
1669# The 'ATA' driver supports all legacy ATA/ATAPI controllers, including
1670# PC Card devices. You only need one "device ata" for it to find all
1671# PCI and PC Card ATA/ATAPI devices on modern machines.
1672# Alternatively, individual bus and chipset drivers may be chosen by using
1673# the 'atacore' driver then selecting the drivers on a per vendor basis.
1674# For example to build a system which only supports a VIA chipset,
1675# omit 'ata' and include the 'atacore', 'atapci' and 'atavia' drivers.
1676device		ata
1677
1678# Modular ATA
1679#device		atacore		# Core ATA functionality
1680#device		ataisa		# ISA bus support
1681#device		atapci		# PCI bus support; only generic chipset support
1682
1683# PCI ATA chipsets
1684#device		ataacard	# ACARD
1685#device		ataacerlabs	# Acer Labs Inc. (ALI)
1686#device		ataamd		# American Micro Devices (AMD)
1687#device		ataati		# ATI
1688#device		atacenatek	# Cenatek
1689#device		atacypress	# Cypress
1690#device		atacyrix	# Cyrix
1691#device		atahighpoint	# HighPoint
1692#device		ataintel	# Intel
1693#device		ataite		# Integrated Technology Inc. (ITE)
1694#device		atajmicron	# JMicron
1695#device		atamarvell	# Marvell
1696#device		atamicron	# Micron
1697#device		atanational	# National
1698#device		atanetcell	# NetCell
1699#device		atanvidia	# nVidia
1700#device		atapromise	# Promise
1701#device		ataserverworks	# ServerWorks
1702#device		atasiliconimage	# Silicon Image Inc. (SiI) (formerly CMD)
1703#device		atasis		# Silicon Integrated Systems Corp.(SiS)
1704#device		atavia		# VIA Technologies Inc.
1705
1706#
1707# For older non-PCI, non-PnPBIOS systems, these are the hints lines to add:
1708envvar		hint.ata.0.at="isa"
1709envvar		hint.ata.0.port="0x1f0"
1710envvar		hint.ata.0.irq="14"
1711envvar		hint.ata.1.at="isa"
1712envvar		hint.ata.1.port="0x170"
1713envvar		hint.ata.1.irq="15"
1714
1715#
1716# uart: generic driver for serial interfaces.
1717#
1718device		uart
1719
1720# Options for uart(4)
1721options 	UART_PPS_ON_CTS		# Do time pulse capturing using CTS
1722					# instead of DCD.
1723options 	UART_POLL_FREQ		# Set polling rate, used when hw has
1724					# no interrupt support (50 Hz default).
1725
1726# The following hint should only be used for pure ISA devices.  It is not
1727# needed otherwise.  Use of hints is strongly discouraged.
1728envvar		hint.uart.0.at="isa"
1729
1730# The following 3 hints are used when the UART is a system device (i.e., a
1731# console or debug port), but only on platforms that don't have any other
1732# means to pass the information to the kernel.  The unit number of the hint
1733# is only used to bundle the hints together.  There is no relation to the
1734# unit number of the probed UART.
1735envvar		hint.uart.0.port="0x3f8"
1736envvar		hint.uart.0.flags="0x10"
1737envvar		hint.uart.0.baud="115200"
1738
1739# `flags' for serial drivers that support consoles, like uart(4):
1740#	0x10	enable console support for this unit.  Other console flags
1741#		(if applicable) are ignored unless this is set.  Enabling
1742#		console support does not make the unit the preferred console.
1743#		Boot with -h or set boot_serial=YES in the loader.
1744#		Currently, at most one unit can have console support; the
1745#		first one (in config file order) with this flag set is
1746#		preferred.
1747#	0x80	use this port for serial line gdb support in ddb.  Also known
1748#		as debug port.
1749#
1750
1751# Options for serial drivers that support consoles:
1752options 	BREAK_TO_DEBUGGER	# A BREAK/DBG on the console goes to
1753					# ddb, if available.
1754
1755# Solaris implements a new BREAK which is initiated by a character
1756# sequence CR ~ ^b which is similar to a familiar pattern used on
1757# Sun servers by the Remote Console.  There are FreeBSD extensions:
1758# CR ~ ^p requests force panic and CR ~ ^r requests a clean reboot.
1759options 	ALT_BREAK_TO_DEBUGGER
1760
1761# Serial Communications Controller
1762# Supports the Freescale/NXP QUad Integrated and Zilog Z8530 multi-channel
1763# communications controllers.
1764device		scc
1765
1766# PCI Universal Communications driver
1767# Supports various multi port PCI I/O cards.
1768device		puc
1769
1770#
1771# Network interfaces:
1772#
1773# MII bus support is required for many PCI Ethernet NICs,
1774# namely those which use MII-compliant transceivers or implement
1775# transceiver control interfaces that operate like an MII.  Adding
1776# "device miibus" to the kernel config pulls in support for the generic
1777# miibus API, the common support for bit-bang'ing the MII and all
1778# of the PHY drivers, including a generic one for PHYs that aren't
1779# specifically handled by an individual driver.  Support for specific
1780# PHYs may be built by adding "device mii", "device mii_bitbang" if
1781# needed by the NIC driver and then adding the appropriate PHY driver.
1782device  	mii		# Minimal MII support
1783device  	mii_bitbang	# Common module for bit-bang'ing the MII
1784device  	miibus		# MII support w/ bit-bang'ing and all PHYs
1785
1786device  	acphy		# Altima Communications AC101
1787device  	amphy		# AMD AM79c873 / Davicom DM910{1,2}
1788device  	atphy		# Attansic/Atheros F1
1789device  	axphy		# Asix Semiconductor AX88x9x
1790device  	bmtphy		# Broadcom BCM5201/BCM5202 and 3Com 3c905C
1791device		bnxt		# Broadcom NetXtreme-C/NetXtreme-E
1792device  	brgphy		# Broadcom BCM54xx/57xx 1000baseTX
1793device  	cgem		# Cadence GEM Gigabit Ethernet
1794device  	ciphy		# Cicada/Vitesse CS/VSC8xxx
1795device  	e1000phy	# Marvell 88E1000 1000/100/10-BT
1796device  	gentbi		# Generic 10-bit 1000BASE-{LX,SX} fiber ifaces
1797device  	icsphy		# ICS ICS1889-1893
1798device  	ip1000phy	# IC Plus IP1000A/IP1001
1799device  	jmphy		# JMicron JMP211/JMP202
1800device  	lxtphy		# Level One LXT-970
1801device  	nsgphy		# NatSemi DP8361/DP83865/DP83891
1802device  	nsphy		# NatSemi DP83840A
1803device  	nsphyter	# NatSemi DP83843/DP83815
1804device  	pnaphy		# HomePNA
1805device  	qsphy		# Quality Semiconductor QS6612
1806device  	rdcphy		# RDC Semiconductor R6040
1807device  	rgephy		# RealTek 8169S/8110S/8211B/8211C
1808device  	rlphy		# RealTek 8139
1809device  	rlswitch	# RealTek 8305
1810device  	smcphy		# SMSC LAN91C111
1811device  	tdkphy		# TDK 89Q2120
1812device  	truephy		# LSI TruePHY
1813device		xmphy		# XaQti XMAC II
1814
1815# ae:   Support for gigabit ethernet adapters based on the Attansic/Atheros
1816#       L2 PCI-Express FastEthernet controllers.
1817# age:  Support for gigabit ethernet adapters based on the Attansic/Atheros
1818#       L1 PCI express gigabit ethernet controllers.
1819# alc:  Support for Atheros AR8131/AR8132 PCIe ethernet controllers.
1820# ale:  Support for Atheros AR8121/AR8113/AR8114 PCIe ethernet controllers.
1821# ath:  Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
1822# bce:	Broadcom NetXtreme II (BCM5706/BCM5708) PCI/PCIe Gigabit Ethernet
1823#       adapters.
1824# bfe:	Broadcom BCM4401 Ethernet adapter.
1825# bge:	Support for gigabit ethernet adapters based on the Broadcom
1826#	BCM570x family of controllers, including the 3Com 3c996-T,
1827#	the Netgear GA302T, the SysKonnect SK-9D21 and SK-9D41, and
1828#	the embedded gigE NICs on Dell PowerEdge 2550 servers.
1829# bnxt:	Broadcom NetXtreme-C and NetXtreme-E PCIe 10/25/50G Ethernet adapters.
1830# bxe:	Broadcom NetXtreme II (BCM5771X/BCM578XX) PCIe 10Gb Ethernet
1831#       adapters.
1832# bwi:	Broadcom BCM430* and BCM431* family of wireless adapters.
1833# bwn:	Broadcom BCM43xx family of wireless adapters.
1834# cas:	Sun Cassini/Cassini+ and National Semiconductor DP83065 Saturn
1835# cxgb: Chelsio T3 based 1GbE/10GbE PCIe Ethernet adapters.
1836# cxgbe:Chelsio T4, T5, and T6-based 1/10/25/40/100GbE PCIe Ethernet
1837#	adapters.
1838# cxgbev: Chelsio T4, T5, and T6-based PCIe Virtual Functions.
1839# dc:   Support for PCI fast ethernet adapters based on the DEC/Intel 21143
1840#       and various workalikes including:
1841#       the ADMtek AL981 Comet and AN985 Centaur, the ASIX Electronics
1842#       AX88140A and AX88141, the Davicom DM9100 and DM9102, the Lite-On
1843#       82c168 and 82c169 PNIC, the Lite-On/Macronix LC82C115 PNIC II
1844#       and the Macronix 98713/98713A/98715/98715A/98725 PMAC. This driver
1845#       replaces the old al, ax, dm, pn and mx drivers.  List of brands:
1846#       Digital DE500-BA, Kingston KNE100TX, D-Link DFE-570TX, SOHOware SFA110,
1847#       SVEC PN102-TX, CNet Pro110B, 120A, and 120B, Compex RL100-TX,
1848#       LinkSys LNE100TX, LNE100TX V2.0, Jaton XpressNet, Alfa Inc GFC2204,
1849#       KNE110TX.
1850# em:   Intel Pro/1000 Gigabit Ethernet 82542, 82543, 82544 based adapters.
1851# fxp:  Intel EtherExpress Pro/100B
1852#	(hint of prefer_iomap can be done to prefer I/O instead of Mem mapping)
1853# gem:  Apple GMAC/Sun ERI/Sun GEM
1854# jme:  JMicron JMC260 Fast Ethernet/JMC250 Gigabit Ethernet based adapters.
1855# le:   AMD Am7900 LANCE and Am79C9xx PCnet
1856# lge:	Support for PCI gigabit ethernet adapters based on the Level 1
1857#	LXT1001 NetCellerator chipset. This includes the D-Link DGE-500SX,
1858#	SMC TigerCard 1000 (SMC9462SX), and some Addtron cards.
1859# lio:  Support for Cavium 23XX Ethernet adapters
1860# malo: Marvell Libertas wireless NICs.
1861# mwl:  Marvell 88W8363 802.11n wireless NICs.
1862#	Requires the mwl firmware module
1863# mwlfw: Marvell 88W8363 firmware
1864# msk:	Support for gigabit ethernet adapters based on the Marvell/SysKonnect
1865#	Yukon II Gigabit controllers, including 88E8021, 88E8022, 88E8061,
1866#	88E8062, 88E8035, 88E8036, 88E8038, 88E8050, 88E8052, 88E8053,
1867#	88E8055, 88E8056 and D-Link 560T/550SX.
1868# mlxfw: Mellanox firmware update module.
1869# mlx5:	Mellanox ConnectX-4 and ConnectX-4 LX IB and Eth shared code module.
1870# mlx5en:Mellanox ConnectX-4 and ConnectX-4 LX PCIe Ethernet adapters.
1871# my:	Myson Fast Ethernet (MTD80X, MTD89X)
1872# nge:	Support for PCI gigabit ethernet adapters based on the National
1873#	Semiconductor DP83820 and DP83821 chipset. This includes the
1874#	SMC EZ Card 1000 (SMC9462TX), D-Link DGE-500T, Asante FriendlyNet
1875#	GigaNIX 1000TA and 1000TPC, the Addtron AEG320T, the Surecom
1876#	EP-320G-TX and the Netgear GA622T.
1877# oce:	Emulex 10 Gbit adapters (OneConnect Ethernet)
1878# ral:	Ralink Technology IEEE 802.11 wireless adapter
1879# re:   RealTek 8139C+/8169/816xS/811xS/8101E PCI/PCIe Ethernet adapter
1880# rl:   Support for PCI fast ethernet adapters based on the RealTek 8129/8139
1881#       chipset.  Note that the RealTek driver defaults to using programmed
1882#       I/O to do register accesses because memory mapped mode seems to cause
1883#       severe lockups on SMP hardware.  This driver also supports the
1884#       Accton EN1207D `Cheetah' adapter, which uses a chip called
1885#       the MPX 5030/5038, which is either a RealTek in disguise or a
1886#       RealTek workalike.  Note that the D-Link DFE-530TX+ uses the RealTek
1887#       chipset and is supported by this driver, not the 'vr' driver.
1888# rtwn: RealTek wireless adapters.
1889# rtwnfw: RealTek wireless firmware.
1890# sge:  Silicon Integrated Systems SiS190/191 Fast/Gigabit Ethernet adapter
1891# sis:  Support for NICs based on the Silicon Integrated Systems SiS 900,
1892#       SiS 7016 and NS DP83815 PCI fast ethernet controller chips.
1893# sk:   Support for the SysKonnect SK-984x series PCI gigabit ethernet NICs.
1894#       This includes the SK-9841 and SK-9842 single port cards (single mode
1895#       and multimode fiber) and the SK-9843 and SK-9844 dual port cards
1896#       (also single mode and multimode).
1897#       The driver will autodetect the number of ports on the card and
1898#       attach each one as a separate network interface.
1899# ste:  Sundance Technologies ST201 PCI fast ethernet controller, includes
1900#       the D-Link DFE-550TX.
1901# stge: Support for gigabit ethernet adapters based on the Sundance/Tamarack
1902#       TC9021 family of controllers, including the Sundance ST2021/ST2023,
1903#       the Sundance/Tamarack TC9021, the D-Link DL-4000 and ASUS NX1101.
1904# ti:   Support for PCI gigabit ethernet NICs based on the Alteon Networks
1905#       Tigon 1 and Tigon 2 chipsets.  This includes the Alteon AceNIC, the
1906#       3Com 3c985, the Netgear GA620 and various others.  Note that you will
1907#       probably want to bump up kern.ipc.nmbclusters a lot to use this driver.
1908# vr:   Support for various fast ethernet adapters based on the VIA
1909#       Technologies VT3043 `Rhine I' and VT86C100A `Rhine II' chips,
1910#       including the D-Link DFE520TX and D-Link DFE530TX (see 'rl' for
1911#       DFE530TX+), the Hawking Technologies PN102TX, and the AOpen/Acer ALN-320.
1912# vte:  DM&P Vortex86 RDC R6040 Fast Ethernet
1913# xl:   Support for the 3Com 3c900, 3c905, 3c905B and 3c905C (Fast)
1914#       Etherlink XL cards and integrated controllers.  This includes the
1915#       integrated 3c905B-TX chips in certain Dell Optiplex and Dell
1916#       Precision desktop machines and the integrated 3c905-TX chips
1917#       in Dell Latitude laptop docking stations.
1918#       Also supported: 3Com 3c980(C)-TX, 3Com 3cSOHO100-TX, 3Com 3c450-TX
1919
1920# PCI Ethernet NICs that use the common MII bus controller code.
1921device		ae		# Attansic/Atheros L2 FastEthernet
1922device		age		# Attansic/Atheros L1 Gigabit Ethernet
1923device		alc		# Atheros AR8131/AR8132 Ethernet
1924device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
1925device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
1926device		bfe		# Broadcom BCM440x 10/100 Ethernet
1927device		bge		# Broadcom BCM570xx Gigabit Ethernet
1928device		cas		# Sun Cassini/Cassini+ and NS DP83065 Saturn
1929device		dc		# DEC/Intel 21143 and various workalikes
1930device		et		# Agere ET1310 10/100/Gigabit Ethernet
1931device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
1932envvar		hint.fxp.0.prefer_iomap="0"
1933device		gem		# Apple GMAC/Sun ERI/Sun GEM
1934device		jme		# JMicron JMC250 Gigabit/JMC260 Fast Ethernet
1935device		lge		# Level 1 LXT1001 gigabit Ethernet
1936device		lio		# Support for Cavium 23XX Ethernet adapters
1937device		mlxfw		# Mellanox firmware update module
1938device		mlx5		# Shared code module between IB and Ethernet
1939device		mlx5en		# Mellanox ConnectX-4 and ConnectX-4 LX
1940device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
1941device		my		# Myson Fast Ethernet (MTD80X, MTD89X)
1942device		nge		# NatSemi DP83820 gigabit Ethernet
1943device		re		# RealTek 8139C+/8169/8169S/8110S
1944device		rl		# RealTek 8129/8139
1945device		sge		# Silicon Integrated Systems SiS190/191
1946device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
1947device		sk		# SysKonnect SK-984x & SK-982x gigabit Ethernet
1948device		ste		# Sundance ST201 (D-Link DFE-550TX)
1949device		stge		# Sundance/Tamarack TC9021 gigabit Ethernet
1950device		vr		# VIA Rhine, Rhine II
1951device		vte		# DM&P Vortex86 RDC R6040 Fast Ethernet
1952device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
1953
1954# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
1955device		iflib
1956device		em		# Intel Pro/1000 Gigabit Ethernet
1957device		ix		# Intel Pro/10Gbe PCIE Ethernet
1958device		ixv		# Intel Pro/10Gbe PCIE Ethernet VF
1959
1960# PCI Ethernet NICs.
1961device		cxgb		# Chelsio T3 10 Gigabit Ethernet
1962device		cxgb_t3fw	# Chelsio T3 10 Gigabit Ethernet firmware
1963device		cxgbe		# Chelsio T4-T6 1/10/25/40/100 Gigabit Ethernet
1964device		cxgbev		# Chelsio T4-T6 Virtual Functions
1965device		le		# AMD Am7900 LANCE and Am79C9xx PCnet
1966device		mxge		# Myricom Myri-10G 10GbE NIC
1967device		oce		# Emulex 10 GbE (OneConnect Ethernet)
1968device		ti		# Alteon Networks Tigon I/II gigabit Ethernet
1969
1970# PCI IEEE 802.11 Wireless NICs
1971device		ath		# Atheros pci/cardbus NIC's
1972device		ath_hal		# pci/cardbus chip support
1973#device		ath_ar5210	# AR5210 chips
1974#device		ath_ar5211	# AR5211 chips
1975#device		ath_ar5212	# AR5212 chips
1976#device		ath_rf2413
1977#device		ath_rf2417
1978#device		ath_rf2425
1979#device		ath_rf5111
1980#device		ath_rf5112
1981#device		ath_rf5413
1982#device		ath_ar5416	# AR5416 chips
1983# All of the AR5212 parts have a problem when paired with the AR71xx
1984# CPUS.  These parts have a bug that triggers a fatal bus error on the AR71xx
1985# only.  Details of the exact nature of the bug are sketchy, but some can be
1986# found at https://forum.openwrt.org/viewtopic.php?pid=70060 on pages 4, 5 and
1987# 6.  This option enables this workaround.  There is a performance penalty
1988# for this work around, but without it things don't work at all.  The DMA
1989# from the card usually bursts 128 bytes, but on the affected CPUs, only
1990# 4 are safe.
1991options    	AH_RXCFG_SDMAMW_4BYTES
1992#device		ath_ar9160	# AR9160 chips
1993#device		ath_ar9280	# AR9280 chips
1994#device		ath_ar9285	# AR9285 chips
1995device		ath_rate_sample	# SampleRate tx rate control for ath
1996device		bwi		# Broadcom BCM430* BCM431*
1997device		bwn		# Broadcom BCM43xx
1998device		malo		# Marvell Libertas wireless NICs.
1999device		mwl		# Marvell 88W8363 802.11n wireless NICs.
2000device		mwlfw
2001device		ral		# Ralink Technology RT2500 wireless NICs.
2002device		rtwn		# Realtek wireless NICs
2003device		rtwnfw
2004
2005# Use sf_buf(9) interface for jumbo buffers on ti(4) controllers.
2006#options 	TI_SF_BUF_JUMBO
2007# Turn on the header splitting option for the ti(4) driver firmware.  This
2008# only works for Tigon II chips, and has no effect for Tigon I chips.
2009# This option requires the TI_SF_BUF_JUMBO option above.
2010#options 	TI_JUMBO_HDRSPLIT
2011
2012# These two options allow manipulating the mbuf cluster size and mbuf size,
2013# respectively.  Be very careful with NIC driver modules when changing
2014# these from their default values, because that can potentially cause a
2015# mismatch between the mbuf size assumed by the kernel and the mbuf size
2016# assumed by a module.  The only driver that currently has the ability to
2017# detect a mismatch is ti(4).
2018options 	MCLSHIFT=11	# mbuf cluster shift in bits, 11 == 2KB
2019options 	MSIZE=256	# mbuf size in bytes
2020
2021#
2022# Sound drivers
2023#
2024# sound: The generic sound driver.
2025#
2026
2027device		sound
2028
2029#
2030# snd_*: Device-specific drivers.
2031#
2032# The flags of the device tell the device a bit more info about the
2033# device that normally is obtained through the PnP interface.
2034#	bit  2..0   secondary DMA channel;
2035#	bit  4      set if the board uses two dma channels;
2036#	bit 15..8   board type, overrides autodetection; leave it
2037#		    zero if don't know what to put in (and you don't,
2038#		    since this is unsupported at the moment...).
2039#
2040# snd_als4000:		Avance Logic ALS4000 PCI.
2041# snd_atiixp:		ATI IXP 200/300/400 PCI.
2042# snd_cmi:		CMedia CMI8338/CMI8738 PCI.
2043# snd_cs4281:		Crystal Semiconductor CS4281 PCI.
2044# snd_csa:		Crystal Semiconductor CS461x/428x PCI. (except
2045#			4281)
2046# snd_emu10k1:		Creative EMU10K1 PCI and EMU10K2 (Audigy) PCI.
2047# snd_emu10kx:		Creative SoundBlaster Live! and Audigy
2048# snd_envy24:		VIA Envy24 and compatible, needs snd_spicds.
2049# snd_envy24ht:		VIA Envy24HT and compatible, needs snd_spicds.
2050# snd_es137x:		Ensoniq AudioPCI ES137x PCI.
2051# snd_fm801:		Forte Media FM801 PCI.
2052# snd_hda:		Intel High Definition Audio (Controller) and
2053#			compatible.
2054# snd_hdspe:		RME HDSPe AIO and RayDAT.
2055# snd_ich:		Intel ICH AC'97 and some more audio controllers
2056#			embedded in a chipset, for example nVidia
2057#			nForce controllers.
2058# snd_maestro3:		ESS Technology Maestro-3/Allegro PCI.
2059# snd_neomagic:		Neomagic 256 AV/ZX PCI.
2060# snd_solo:		ESS Solo-1x PCI.
2061# snd_spicds:		SPI codec driver, needed by Envy24/Envy24HT drivers.
2062# snd_t4dwave:		Trident 4DWave DX/NX PCI, Sis 7018 PCI and Acer Labs
2063#			M5451 PCI.
2064# snd_uaudio:		USB audio.
2065# snd_via8233:		VIA VT8233x PCI.
2066# snd_via82c686:	VIA VT82C686A PCI.
2067# snd_vibes:		S3 Sonicvibes PCI.
2068
2069device		snd_als4000
2070device		snd_atiixp
2071device		snd_cmi
2072device		snd_cs4281
2073device		snd_csa
2074device		snd_emu10k1
2075device		snd_emu10kx
2076device		snd_envy24
2077device		snd_envy24ht
2078device		snd_es137x
2079device		snd_fm801
2080device		snd_hda
2081device		snd_hdspe
2082device		snd_ich
2083device		snd_maestro3
2084device		snd_neomagic
2085device		snd_solo
2086device		snd_spicds
2087device		snd_t4dwave
2088device		snd_uaudio
2089device		snd_via8233
2090device		snd_via82c686
2091device		snd_vibes
2092
2093# For non-PnP sound cards:
2094envvar		hint.pcm.0.at="isa"
2095envvar		hint.pcm.0.irq="10"
2096envvar		hint.pcm.0.drq="1"
2097envvar		hint.pcm.0.flags="0x0"
2098envvar		hint.sbc.0.at="isa"
2099envvar		hint.sbc.0.port="0x220"
2100envvar		hint.sbc.0.irq="5"
2101envvar		hint.sbc.0.drq="1"
2102envvar		hint.sbc.0.flags="0x15"
2103envvar		hint.gusc.0.at="isa"
2104envvar		hint.gusc.0.port="0x220"
2105envvar		hint.gusc.0.irq="5"
2106envvar		hint.gusc.0.drq="1"
2107envvar		hint.gusc.0.flags="0x13"
2108
2109#
2110# Following options are intended for debugging/testing purposes:
2111#
2112# SND_DEBUG                    Enable extra debugging code that includes
2113#                              sanity checking and possible increase of
2114#                              verbosity.
2115#
2116# SND_DIAGNOSTIC               Similar in a spirit of INVARIANTS/DIAGNOSTIC,
2117#                              zero tolerance against inconsistencies.
2118#
2119# SND_FEEDER_MULTIFORMAT       By default, only 16/32 bit feeders are compiled
2120#                              in. This options enable most feeder converters
2121#                              except for 8bit. WARNING: May bloat the kernel.
2122#
2123# SND_FEEDER_FULL_MULTIFORMAT  Ditto, but includes 8bit feeders as well.
2124#
2125# SND_FEEDER_RATE_HP           (feeder_rate) High precision 64bit arithmetic
2126#                              as much as possible (the default trying to
2127#                              avoid it). Possible slowdown.
2128#
2129# SND_PCM_64                   (Only applicable for i386/32bit arch)
2130#                              Process 32bit samples through 64bit
2131#                              integer/arithmetic. Slight increase of dynamic
2132#                              range at a cost of possible slowdown.
2133#
2134# SND_OLDSTEREO                Only 2 channels are allowed, effectively
2135#                              disabling multichannel processing.
2136#
2137options 	SND_DEBUG
2138options 	SND_DIAGNOSTIC
2139options 	SND_FEEDER_MULTIFORMAT
2140options 	SND_FEEDER_FULL_MULTIFORMAT
2141options 	SND_FEEDER_RATE_HP
2142options 	SND_PCM_64
2143options 	SND_OLDSTEREO
2144
2145#
2146# Cardbus
2147#
2148# cbb: pci/CardBus bridge implementing YENTA interface
2149# cardbus: CardBus slots
2150device		cbb
2151device		cardbus
2152
2153#
2154# MMC/SD
2155#
2156# mmc 		MMC/SD bus
2157# mmcsd		MMC/SD memory card
2158# sdhci		Generic PCI SD Host Controller
2159# rtsx		Realtek SD card reader (RTS5209, RTS5227, ...)
2160device		mmc
2161device		mmcsd
2162device		sdhci
2163device		rtsx
2164
2165#
2166# SMB bus
2167#
2168# System Management Bus support is provided by the 'smbus' device.
2169# Access to the SMBus device is via the 'smb' device (/dev/smb*),
2170# which is a child of the 'smbus' device.
2171#
2172# Supported devices:
2173# smb		standard I/O through /dev/smb*
2174#
2175# Supported SMB interfaces:
2176# iicsmb	I2C to SMB bridge with any iicbus interface
2177# intpm		Intel PIIX4 (82371AB, 82443MX) Power Management Unit
2178# alpm		Acer Aladdin-IV/V/Pro2 Power Management Unit
2179# ichsmb	Intel ICH SMBus controller chips (82801AA, 82801AB, 82801BA)
2180# viapm		VIA VT82C586B/596B/686A and VT8233 Power Management Unit
2181# amdpm		AMD 756 Power Management Unit
2182# amdsmb	AMD 8111 SMBus 2.0 Controller
2183# nfpm		NVIDIA nForce Power Management Unit
2184# nfsmb		NVIDIA nForce2/3/4 MCP SMBus 2.0 Controller
2185# ismt		Intel SMBus 2.0 controller chips (on Atom S1200, C2000)
2186#
2187device		smbus		# Bus support, required for smb below.
2188
2189device		intpm
2190device		alpm
2191device		ichsmb
2192device		viapm
2193device		amdpm
2194device		amdsmb
2195device		nfpm
2196device		nfsmb
2197device		ismt
2198
2199device		smb
2200
2201# SMBus peripheral devices
2202#
2203# jedec_dimm	Asset and temperature reporting for DDR3 and DDR4 DIMMs
2204#
2205device		jedec_dimm
2206
2207# I2C Bus
2208#
2209# Philips i2c bus support is provided by the `iicbus' device.
2210#
2211# Supported devices:
2212# ic	i2c network interface
2213# iic	i2c standard io
2214# iicsmb i2c to smb bridge. Allow i2c i/o with smb commands.
2215# iicoc simple polling driver for OpenCores I2C controller
2216#
2217# Other:
2218# iicbb	generic I2C bit-banging code (needed by lpbb)
2219#
2220device		iicbus		# Bus support, required for ic/iic/iicsmb below.
2221device		iicbb		# bitbang driver; implements i2c on a pair of gpio pins
2222
2223device		ic
2224device		iic		# userland access to i2c slave devices via ioctl(8)
2225device		iicsmb		# smb over i2c bridge
2226device		iicoc		# OpenCores I2C controller support
2227
2228# I2C bus multiplexer (mux) devices
2229device		iicmux		# i2c mux core driver
2230device		iic_gpiomux	# i2c mux hardware controlled via gpio pins
2231device		ltc430x		# LTC4305 and LTC4306 i2c mux chips
2232
2233# I2C peripheral devices
2234#
2235device		ad7418		# Analog Devices temp and voltage sensor
2236device		ads111x		# Texas Instruments ADS101x and ADS111x ADCs
2237device		ds1307		# Dallas DS1307 RTC and compatible
2238device		ds13rtc		# All Dallas/Maxim ds13xx chips
2239device		ds1672		# Dallas DS1672 RTC
2240device		ds3231		# Dallas DS3231 RTC + temperature
2241device		fan53555	# Fairchild Semi FAN53555/SYR82x Regulator
2242device		icee		# AT24Cxxx and compatible EEPROMs
2243device		isl12xx		# Intersil ISL12xx RTC
2244device		lm75		# LM75 compatible temperature sensor
2245device		nxprtc		# NXP RTCs: PCA/PFC212x PCA/PCF85xx
2246device		rtc8583		# Epson RTC-8583
2247device		s35390a		# Seiko Instruments S-35390A RTC
2248device		sy8106a		# Silergy Corp. SY8106A buck regulator
2249
2250# Parallel-Port Bus
2251#
2252# Parallel port bus support is provided by the `ppbus' device.
2253# Multiple devices may be attached to the parallel port, devices
2254# are automatically probed and attached when found.
2255#
2256# Supported devices:
2257# lpt	Parallel Printer
2258# plip	Parallel network interface
2259# ppi	General-purpose I/O ("Geek Port") + IEEE1284 I/O
2260# pps	Pulse per second Timing Interface
2261# lpbb	Philips official parallel port I2C bit-banging interface
2262# pcfclock Parallel port clock driver.
2263#
2264# Supported interfaces:
2265# ppc	ISA-bus parallel port interfaces.
2266#
2267
2268options 	PPC_PROBE_CHIPSET # Enable chipset specific detection
2269				  # (see flags in ppc(4))
2270options 	DEBUG_1284	# IEEE1284 signaling protocol debug
2271options 	PERIPH_1284	# Makes your computer act as an IEEE1284
2272				# compliant peripheral
2273options 	DONTPROBE_1284	# Avoid boot detection of PnP parallel devices
2274options 	LPT_DEBUG	# Printer driver debug
2275options 	PPC_DEBUG	# Parallel chipset level debug
2276options 	PLIP_DEBUG	# Parallel network IP interface debug
2277options 	PCFCLOCK_VERBOSE         # Verbose pcfclock driver
2278options 	PCFCLOCK_MAX_RETRIES=5   # Maximum read tries (default 10)
2279
2280device		ppc
2281envvar		hint.ppc.0.at="isa"
2282envvar		hint.ppc.0.irq="7"
2283device		ppbus
2284device		lpt
2285device		plip
2286device		ppi
2287device		pps
2288device		lpbb
2289device		pcfclock
2290
2291# General Purpose I/O pins
2292device		dwgpio		# Synopsys DesignWare APB GPIO Controller
2293device  	gpio		# gpio interfaces and bus support
2294device  	gpiobacklight	# sysctl control of gpio-based backlight
2295device  	gpioiic		# i2c via gpio bitbang
2296device  	gpiokeys	# kbd(4) glue for gpio-based key input
2297device  	gpioled		# led(4) gpio glue
2298device  	gpiopower	# event handler for gpio-based powerdown
2299device  	gpiopps		# Pulse per second input from gpio pin
2300device  	gpioregulator	# extres/regulator glue for gpio pin
2301device  	gpiospi		# SPI via gpio bitbang
2302device  	gpioths		# 1-wire temp/humidity sensor on gpio pin
2303
2304# Pulse width modulation
2305device  	pwmbus		# pwm interface and bus support
2306device  	pwmc		# userland control access to pwm outputs
2307
2308#
2309# Etherswitch framework and drivers
2310#
2311# etherswitch	The etherswitch(4) framework
2312# miiproxy	Proxy device for miibus(4) functionality
2313#
2314# Switch hardware support:
2315# arswitch	Atheros switches
2316# ip17x 	IC+ 17x family switches
2317# rtl8366r	Realtek RTL8366 switches
2318# ukswitch	Multi-PHY switches
2319#
2320device		etherswitch
2321device		miiproxy
2322device		arswitch
2323device		ip17x
2324device		rtl8366rb
2325device		ukswitch
2326
2327# Kernel BOOTP support
2328
2329options 	BOOTP		# Use BOOTP to obtain IP address/hostname
2330				# Requires NFSCL and NFS_ROOT
2331options 	BOOTP_NFSROOT	# NFS mount root filesystem using BOOTP info
2332options 	BOOTP_NFSV3	# Use NFS v3 to NFS mount root
2333options 	BOOTP_COMPAT	# Workaround for broken bootp daemons.
2334options 	BOOTP_WIRED_TO=fxp0 # Use interface fxp0 for BOOTP
2335options 	BOOTP_BLOCKSIZE=8192 # Override NFS block size
2336
2337#
2338# Enable software watchdog routines, even if hardware watchdog is present.
2339# By default, software watchdog timer is enabled only if no hardware watchdog
2340# is present.
2341#
2342options 	SW_WATCHDOG
2343
2344#
2345# Add the software deadlock resolver thread.
2346#
2347options 	DEADLKRES
2348
2349#
2350# Disable swapping of stack pages.  This option removes all
2351# code which actually performs swapping, so it's not possible to turn
2352# it back on at run-time.
2353#
2354# This is sometimes usable for systems which don't have any swap space
2355# (see also sysctl "vm.disable_swapspace_pageouts")
2356#
2357#options 	NO_SWAPPING
2358
2359# Set the number of sf_bufs to allocate. sf_bufs are virtual buffers
2360# for sendfile(2) that are used to map file VM pages, and normally
2361# default to a quantity that is roughly 16*MAXUSERS+512. You would
2362# typically want about 4 of these for each simultaneous file send.
2363#
2364options 	NSFBUFS=1024
2365
2366#
2367# Enable extra debugging code for locks.  This stores the filename and
2368# line of whatever acquired the lock in the lock itself, and changes a
2369# number of function calls to pass around the relevant data.  This is
2370# not at all useful unless you are debugging lock code.  Note that
2371# modules should be recompiled as this option modifies KBI.
2372#
2373options 	DEBUG_LOCKS
2374
2375#####################################################################
2376# HID support
2377device		hid		# Generic HID support
2378options 	HID_DEBUG	# enable debug msgs
2379device		hidbus		# HID bus
2380device		hidmap		# HID to evdev mapping
2381device		hidraw		# Raw access driver
2382options 	HIDRAW_MAKE_UHID_ALIAS	# install /dev/uhid alias
2383device		hconf		# Multitouch configuration TLC
2384device		hcons		# Consumer controls
2385device		hgame		# Generic game controllers
2386device		hkbd		# HID keyboard
2387device		hms		# HID mouse
2388device		hmt		# HID multitouch (MS-compatible)
2389device		hpen		# Generic pen driver
2390device		hsctrl		# System controls
2391device		ps4dshock	# Sony PS4 DualShock 4 gamepad driver
2392device		xb360gp		# XBox 360 gamepad driver
2393
2394#####################################################################
2395# USB support
2396# UHCI controller
2397device		uhci
2398# OHCI controller
2399device		ohci
2400# EHCI controller
2401device		ehci
2402# XHCI controller
2403device		xhci
2404# SL811 Controller
2405#device		slhci
2406# General USB code (mandatory for USB)
2407device		usb
2408#
2409# USB Double Bulk Pipe devices
2410device		udbp
2411# USB temperature meter
2412device		ugold
2413# USB LED
2414device		uled
2415# Human Interface Device (anything with buttons and dials)
2416device		uhid
2417# USB keyboard
2418device		ukbd
2419# USB printer
2420device		ulpt
2421# USB mass storage driver (Requires scbus and da)
2422device		umass
2423# USB mass storage driver for device-side mode
2424device		usfs
2425# USB support for Belkin F5U109 and Magic Control Technology serial adapters
2426device		umct
2427# USB modem support
2428device		umodem
2429# USB mouse
2430device		ums
2431# USB touchpad(s)
2432device		atp
2433device		wsp
2434# eGalax USB touch screen
2435device		uep
2436# Diamond Rio 500 MP3 player
2437device		urio
2438# HID-over-USB driver
2439device		usbhid
2440
2441#
2442# USB serial support
2443device		ucom
2444# USB support for 3G modem cards by Option, Novatel, Huawei and Sierra
2445device		u3g
2446# USB support for Technologies ARK3116 based serial adapters
2447device		uark
2448# USB support for Belkin F5U103 and compatible serial adapters
2449device		ubsa
2450# USB support for serial adapters based on the FT8U100AX and FT8U232AM
2451device		uftdi
2452# USB support for some Windows CE based serial communication.
2453device		uipaq
2454# USB support for Prolific PL-2303 serial adapters
2455device		uplcom
2456# USB support for Silicon Laboratories CP2101/CP2102 based USB serial adapters
2457device		uslcom
2458# USB Visor and Palm devices
2459device		uvisor
2460# USB serial support for DDI pocket's PHS
2461device		uvscom
2462#
2463# USB ethernet support
2464device		uether
2465# ADMtek USB ethernet. Supports the LinkSys USB100TX,
2466# the Billionton USB100, the Melco LU-ATX, the D-Link DSB-650TX
2467# and the SMC 2202USB. Also works with the ADMtek AN986 Pegasus
2468# eval board.
2469device		aue
2470
2471# ASIX Electronics AX88172 USB 2.0 ethernet driver. Used in the
2472# LinkSys USB200M and various other adapters.
2473device		axe
2474# ASIX Electronics AX88178A/AX88179 USB 2.0/3.0 gigabit ethernet driver.
2475device		axge
2476
2477#
2478# Devices which communicate using Ethernet over USB, particularly
2479# Communication Device Class (CDC) Ethernet specification. Supports
2480# Sharp Zaurus PDAs, some DOCSIS cable modems and so on.
2481device		cdce
2482#
2483# CATC USB-EL1201A USB ethernet. Supports the CATC Netmate
2484# and Netmate II, and the Belkin F5U111.
2485device		cue
2486#
2487# Kawasaki LSI ethernet. Supports the LinkSys USB10T,
2488# Entrega USB-NET-E45, Peracom Ethernet Adapter, the
2489# 3Com 3c19250, the ADS Technologies USB-10BT, the ATen UC10T,
2490# the Netgear EA101, the D-Link DSB-650, the SMC 2102USB
2491# and 2104USB, and the Corega USB-T.
2492device		kue
2493#
2494# RealTek RTL8150 USB to fast ethernet. Supports the Melco LUA-KTX
2495# and the GREEN HOUSE GH-USB100B.
2496device		rue
2497#
2498# Davicom DM9601E USB to fast ethernet. Supports the Corega FEther USB-TXC.
2499device		udav
2500#
2501# RealTek RTL8152/RTL8153 USB Ethernet driver
2502device		ure
2503#
2504# Moschip MCS7730/MCS7840 USB to fast ethernet. Supports the Sitecom LN030.
2505device		mos
2506#
2507# HSxPA devices from Option N.V
2508device		uhso
2509
2510# Realtek RTL8188SU/RTL8191SU/RTL8192SU wireless driver
2511device		rsu
2512#
2513# Ralink Technology RT2501USB/RT2601USB wireless driver
2514device		rum
2515# Ralink Technology RT2700U/RT2800U/RT3000U wireless driver
2516device		run
2517#
2518# Atheros AR5523 wireless driver
2519device		uath
2520#
2521# Conexant/Intersil PrismGT wireless driver
2522device		upgt
2523#
2524# Ralink Technology RT2500USB wireless driver
2525device		ural
2526#
2527# RNDIS USB ethernet driver
2528device		urndis
2529# Realtek RTL8187B/L wireless driver
2530device		urtw
2531#
2532# ZyDas ZD1211/ZD1211B wireless driver
2533device		zyd
2534#
2535# Sierra USB wireless driver
2536device		usie
2537
2538#
2539# debugging options for the USB subsystem
2540#
2541options 	USB_DEBUG
2542options 	U3G_DEBUG
2543
2544# options for ukbd:
2545options 	UKBD_DFLT_KEYMAP	# specify the built-in keymap
2546makeoptions	UKBD_DFLT_KEYMAP=jp.106
2547
2548# options for uplcom:
2549options 	UPLCOM_INTR_INTERVAL=100	# interrupt pipe interval
2550						# in milliseconds
2551
2552# options for uvscom:
2553options 	UVSCOM_DEFAULT_OPKTSIZE=8	# default output packet size
2554options 	UVSCOM_INTR_INTERVAL=100	# interrupt pipe interval
2555						# in milliseconds
2556
2557#####################################################################
2558# FireWire support
2559
2560device		firewire	# FireWire bus code
2561device		sbp		# SCSI over Firewire (Requires scbus and da)
2562device		sbp_targ	# SBP-2 Target mode  (Requires scbus and targ)
2563device		fwe		# Ethernet over FireWire (non-standard!)
2564device		fwip		# IP over FireWire (RFC2734 and RFC3146)
2565
2566#####################################################################
2567# dcons support (Dumb Console Device)
2568
2569device		dcons			# dumb console driver
2570device		dcons_crom		# FireWire attachment
2571options 	DCONS_BUF_SIZE=16384	# buffer size
2572options 	DCONS_POLL_HZ=100	# polling rate
2573options 	DCONS_FORCE_CONSOLE=0	# force to be the primary console
2574options 	DCONS_FORCE_GDB=1	# force to be the gdb device
2575
2576#####################################################################
2577# crypto subsystem
2578#
2579# This is a port of the OpenBSD crypto framework.  Include this when
2580# configuring IPSEC and when you have a h/w crypto device to accelerate
2581# user applications that link to OpenSSL.
2582#
2583# Drivers are ports from OpenBSD with some simple enhancements that have
2584# been fed back to OpenBSD.
2585
2586device		crypto		# core crypto support
2587
2588# Only install the cryptodev device if you are running tests, or know
2589# specifically why you need it.  In most cases, it is not needed and
2590# will make things slower.
2591device		cryptodev	# /dev/crypto for access to h/w
2592
2593device		rndtest		# FIPS 140-2 entropy tester
2594
2595device		ccr		# Chelsio T6
2596
2597device		hifn		# Hifn 7951, 7781, etc.
2598options 	HIFN_DEBUG	# enable debugging support: hw.hifn.debug
2599options 	HIFN_RNDTEST	# enable rndtest support
2600
2601#####################################################################
2602
2603
2604#
2605# Embedded system options:
2606#
2607# An embedded system might want to run something other than init.
2608options 	INIT_PATH=/sbin/init:/rescue/init
2609
2610# Debug options
2611options 	BUS_DEBUG	# enable newbus debugging
2612options 	DEBUG_VFS_LOCKS	# enable VFS lock debugging
2613options 	SOCKBUF_DEBUG	# enable sockbuf last record/mb tail checking
2614options 	IFMEDIA_DEBUG	# enable debugging in net/if_media.c
2615
2616#
2617# Verbose SYSINIT
2618#
2619# Make the SYSINIT process performed by mi_startup() verbose.  This is very
2620# useful when porting to a new architecture.  If DDB is also enabled, this
2621# will print function names instead of addresses.  If defined with a value
2622# of zero, the verbose code is compiled-in but disabled by default, and can
2623# be enabled with the debug.verbose_sysinit=1 tunable.
2624options 	VERBOSE_SYSINIT
2625
2626#####################################################################
2627# SYSV IPC KERNEL PARAMETERS
2628#
2629# Maximum number of System V semaphores that can be used on the system at
2630# one time.
2631options 	SEMMNI=11
2632
2633# Total number of semaphores system wide
2634options 	SEMMNS=61
2635
2636# Total number of undo structures in system
2637options 	SEMMNU=31
2638
2639# Maximum number of System V semaphores that can be used by a single process
2640# at one time.
2641options 	SEMMSL=61
2642
2643# Maximum number of operations that can be outstanding on a single System V
2644# semaphore at one time.
2645options 	SEMOPM=101
2646
2647# Maximum number of undo operations that can be outstanding on a single
2648# System V semaphore at one time.
2649options 	SEMUME=11
2650
2651# Maximum number of shared memory pages system wide.
2652options 	SHMALL=1025
2653
2654# Maximum size, in bytes, of a single System V shared memory region.
2655options 	SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
2656options 	SHMMAXPGS=1025
2657
2658# Minimum size, in bytes, of a single System V shared memory region.
2659options 	SHMMIN=2
2660
2661# Maximum number of shared memory regions that can be used on the system
2662# at one time.
2663options 	SHMMNI=33
2664
2665# Maximum number of System V shared memory regions that can be attached to
2666# a single process at one time.
2667options 	SHMSEG=9
2668
2669# Set the amount of time (in seconds) the system will wait before
2670# rebooting automatically when a kernel panic occurs.  If set to (-1),
2671# the system will wait indefinitely until a key is pressed on the
2672# console.
2673options 	PANIC_REBOOT_WAIT_TIME=16
2674
2675# Attempt to bypass the buffer cache and put data directly into the
2676# userland buffer for read operation when O_DIRECT flag is set on the
2677# file.  Both offset and length of the read operation must be
2678# multiples of the physical media sector size.
2679#
2680options 	DIRECTIO
2681
2682# Specify a lower limit for the number of swap I/O buffers.  They are
2683# (among other things) used when bypassing the buffer cache due to
2684# DIRECTIO kernel option enabled and O_DIRECT flag set on file.
2685#
2686options 	NSWBUF_MIN=120
2687
2688#####################################################################
2689
2690# More undocumented options for linting.
2691# Note that documenting these is not considered an affront.
2692
2693options 	CAM_DEBUG_DELAY
2694
2695options 	DEBUG
2696
2697# Kernel filelock debugging.
2698options 	LOCKF_DEBUG
2699
2700# System V compatible message queues
2701# Please note that the values provided here are used to test kernel
2702# building.  The defaults in the sources provide almost the same numbers.
2703# MSGSSZ must be a power of 2 between 8 and 1024.
2704options 	MSGMNB=2049	# Max number of chars in queue
2705options 	MSGMNI=41	# Max number of message queue identifiers
2706options 	MSGSEG=2049	# Max number of message segments
2707options 	MSGSSZ=16	# Size of a message segment
2708options 	MSGTQL=41	# Max number of messages in system
2709
2710options 	NBUF=512	# Number of buffer headers
2711
2712options 	SC_DEBUG_LEVEL=5	# Syscons debug level
2713options 	SC_RENDER_DEBUG	# syscons rendering debugging
2714
2715options 	VFS_BIO_DEBUG	# VFS buffer I/O debugging
2716
2717options 	KSTACK_MAX_PAGES=32 # Maximum pages to give the kernel stack
2718options 	KSTACK_USAGE_PROF
2719
2720# Adaptec Array Controller driver options
2721options 	AAC_DEBUG	# Debugging levels:
2722				# 0 - quiet, only emit warnings
2723				# 1 - noisy, emit major function
2724				#     points and things done
2725				# 2 - extremely noisy, emit trace
2726				#     items in loops, etc.
2727
2728# Resource Accounting
2729options 	RACCT
2730
2731# Resource Limits
2732options 	RCTL
2733
2734# Yet more undocumented options for linting.
2735options 	MAXFILES=999
2736
2737# Random number generator
2738# Alternative algorithm.
2739#options 	RANDOM_FENESTRASX
2740# Allow the CSPRNG algorithm to be loaded as a module.
2741#options 	RANDOM_LOADABLE
2742# Select this to allow high-rate but potentially expensive
2743# harvesting of Slab-Allocator entropy. In very high-rate
2744# situations the value of doing this is dubious at best.
2745options 	RANDOM_ENABLE_UMA	# slab allocator
2746
2747# Select this to allow high-rate but potentially expensive
2748# harvesting of of the m_next pointer in the mbuf. Note that
2749# the m_next pointer is NULL except when receiving > 4K
2750# jumbo frames or sustained bursts by way of LRO. Thus in
2751# the common case it is stirring zero in to the entropy
2752# pool. In cases where it is not NULL it is pointing to one
2753# of a small (in the thousands to 10s of thousands) number
2754# of 256 byte aligned mbufs. Hence it is, even in the best
2755# case, a poor source of entropy. And in the absence of actual
2756# runtime analysis of entropy collection may mislead the user in
2757# to believe that substantially more entropy is being collected
2758# than in fact is - leading to a different class of security
2759# risk. In high packet rate situations ethernet entropy
2760# collection is also very expensive, possibly leading to as
2761# much as a 50% drop in packets received.
2762# This option is present to maintain backwards compatibility
2763# if desired, however it cannot be recommended for use in any
2764# environment.
2765options 	RANDOM_ENABLE_ETHER	# ether_input
2766
2767# Module to enable execution of application via emulators like QEMU
2768options         IMGACT_BINMISC
2769
2770# zlib I/O stream support
2771# This enables support for compressed core dumps.
2772options 	GZIO
2773
2774# zstd support
2775# This enables support for Zstd compressed core dumps, GEOM_UZIP images,
2776# and is required by zfs if statically linked.
2777options 	ZSTDIO
2778
2779# BHND(4) drivers
2780options 	BHND_LOGLEVEL	# Logging threshold level
2781
2782# evdev interface
2783device		evdev		# input event device support
2784options 	EVDEV_SUPPORT	# evdev support in legacy drivers
2785options 	EVDEV_DEBUG	# enable event debug msgs
2786device		uinput		# install /dev/uinput cdev
2787options 	UINPUT_DEBUG	# enable uinput debug msgs
2788
2789# Encrypted kernel crash dumps.
2790options 	EKCD
2791
2792# Serial Peripheral Interface (SPI) support.
2793device		spibus		# Bus support.
2794device		at45d		# DataFlash driver
2795device		cqspi		#
2796device		mx25l		# SPIFlash driver
2797device		n25q		#
2798device		spigen		# Generic access to SPI devices from userland.
2799# Enable legacy /dev/spigenN name aliases for /dev/spigenX.Y devices.
2800options 	SPIGEN_LEGACY_CDEVNAME # legacy device names for spigen
2801
2802# Compression supports.
2803device		zlib		# gzip/zlib compression/decompression library
2804device		xz		# xz_embedded LZMA de-compression library
2805
2806# Kernel support for stats(3).
2807options 	STATS
2808