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