1# 2# NOTES -- Lines that can be cut/pasted into kernel and hints configs. 3# 4# This file contains machine dependent kernel configuration notes. For 5# machine independent notes, look in /sys/conf/NOTES. 6# 7# $FreeBSD$ 8# 9 10# 11# We want LINT to cover profiling as well. 12profile 2 13 14 15##################################################################### 16# SMP OPTIONS: 17# 18# Notes: 19# 20# IPI_PREEMPTION instructs the kernel to preempt threads running on other 21# CPUS if needed. Relies on the PREEMPTION option 22 23# Optional: 24options IPI_PREEMPTION 25device atpic # Optional legacy pic support 26device mptable # Optional MPSPEC mptable support 27 28# 29# Watchdog routines. 30# 31options MP_WATCHDOG 32 33# 34# Debugging options. 35# 36options STOP_NMI # Stop CPUS using NMI instead of IPI 37 38 39 40##################################################################### 41# CPU OPTIONS 42 43# 44# You must specify at least one CPU (the one you intend to run on); 45# deleting the specification for CPUs you don't need to use may make 46# parts of the system run faster. 47# 48cpu HAMMER # aka K8, aka Opteron & Athlon64 49 50# 51# Options for CPU features. 52# 53 54# 55# PERFMON causes the driver for Pentium/Pentium Pro performance counters 56# to be compiled. See perfmon(4) for more information. 57# 58#XXX#options PERFMON 59 60 61##################################################################### 62# NETWORKING OPTIONS 63 64# 65# DEVICE_POLLING adds support for mixed interrupt-polling handling 66# of network device drivers, which has significant benefits in terms 67# of robustness to overloads and responsivity, as well as permitting 68# accurate scheduling of the CPU time between kernel network processing 69# and other activities. The drawback is a moderate (up to 1/HZ seconds) 70# potential increase in response times. 71# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING 72# to achieve smoother behaviour. 73# Additionally, you can enable/disable polling at runtime with help of 74# the ifconfig(8) utility, and select the CPU fraction reserved to 75# userland with the sysctl variable kern.polling.user_frac 76# (default 50, range 0..100). 77# 78# Not all device drivers support this mode of operation at the time of 79# this writing. See polling(4) for more details. 80 81options DEVICE_POLLING 82 83# BPF_JITTER adds support for BPF just-in-time compiler. 84 85options BPF_JITTER 86 87 88##################################################################### 89# CLOCK OPTIONS 90 91# Provide read/write access to the memory in the clock chip. 92device nvram # Access to rtc cmos via /dev/nvram 93 94 95##################################################################### 96# MISCELLANEOUS DEVICES AND OPTIONS 97 98# 99# sio: serial ports (see sio(4)), including support for various 100# PC Card devices, such as Modem and NICs 101# 102device sio 103hint.sio.0.at="isa" 104hint.sio.0.port="0x3F8" 105hint.sio.0.flags="0x10" 106hint.sio.0.irq="4" 107 108# `flags' specific to sio(4). 109# 0x10 enable console support for this unit. Other console flags 110# (if applicable) are ignored unless this is set. Enabling 111# console support does not make the unit the preferred console. 112# Boot with -h or set boot_serial=YES in the loader. For sio(4) 113# specifically, the 0x20 flag can also be set (see above). 114# Currently, at most one unit can have console support; the 115# first one (in config file order) with this flag set is 116# preferred. Setting this flag for sio0 gives the old behaviour. 117# 0x20 force this unit to be the console (unless there is another 118# higher priority console). This replaces the COMCONSOLE option. 119# 0x40 reserve this unit for low level console operations. Do not 120# access the device in any normal way. 121# 0x80 use this port for serial line gdb support in ddb. Also known 122# as debug port. 123# PnP `flags' 124# 0x1 disable probing of this device. Used to prevent your modem 125# from being attached as a PnP modem. 126# Other flags for sio that aren't documented in the man page. 127# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for 128# ST16650A-compatible UARTs. 129 130# Options for sio: 131options COM_ESP # Code for Hayes ESP. 132options COM_MULTIPORT # Code for some cards with shared IRQs. 133options CONSPEED=115200 # Speed for serial console 134 # (default 9600). 135 136device speaker #Play IBM BASIC-style noises out your speaker 137hint.speaker.0.at="isa" 138hint.speaker.0.port="0x61" 139device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT! 140 141 142##################################################################### 143# HARDWARE BUS CONFIGURATION 144 145# 146# ISA bus 147# 148device isa 149 150# 151# Options for `isa': 152# 153# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A 154# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 155# This option breaks suspend/resume on some portables. 156# 157# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A 158# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 159# Automatic EOI is documented not to work for for the slave with the 160# original i8259A, but it works for some clones and some integrated 161# versions. 162# 163# MAXMEM specifies the amount of RAM on the machine; if this is not 164# specified, FreeBSD will first read the amount of memory from the CMOS 165# RAM, so the amount of memory will initially be limited to 64MB or 16MB 166# depending on the BIOS. If the BIOS reports 64MB, a memory probe will 167# then attempt to detect the installed amount of RAM. If this probe 168# fails to detect >64MB RAM you will have to use the MAXMEM option. 169# The amount is in kilobytes, so for a machine with 128MB of RAM, it would 170# be 131072 (128 * 1024). 171# 172# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to 173# reset the CPU for reboot. This is needed on some systems with broken 174# keyboard controllers. 175 176options AUTO_EOI_1 177#options AUTO_EOI_2 178 179options MAXMEM=(128*1024) 180#options BROKEN_KEYBOARD_RESET 181 182# 183# PCI bus & PCI options: 184# 185device pci 186 187# 188# AGP GART support 189device agp 190 191 192##################################################################### 193# HARDWARE DEVICE CONFIGURATION 194 195# 196# Optional devices: 197# 198 199# PS/2 mouse 200device psm 201hint.psm.0.at="atkbdc" 202hint.psm.0.irq="12" 203 204# Options for psm: 205options PSM_HOOKRESUME #hook the system resume event, useful 206 #for some laptops 207options PSM_RESETAFTERSUSPEND #reset the device at the resume event 208 209# The keyboard controller; it controls the keyboard and the PS/2 mouse. 210device atkbdc 211hint.atkbdc.0.at="isa" 212hint.atkbdc.0.port="0x060" 213 214# The AT keyboard 215device atkbd 216hint.atkbd.0.at="atkbdc" 217hint.atkbd.0.irq="1" 218 219# Options for atkbd: 220options ATKBD_DFLT_KEYMAP # specify the built-in keymap 221makeoptions ATKBD_DFLT_KEYMAP=jp.106 222 223# `flags' for atkbd: 224# 0x01 Force detection of keyboard, else we always assume a keyboard 225# 0x02 Don't reset keyboard, useful for some newer ThinkPads 226# 0x03 Force detection and avoid reset, might help with certain 227# dockingstations 228# 0x04 Old-style (XT) keyboard support, useful for older ThinkPads 229 230# Video card driver for VGA adapters. 231device vga 232hint.vga.0.at="isa" 233 234# Options for vga: 235# Try the following option if the mouse pointer is not drawn correctly 236# or font does not seem to be loaded properly. May cause flicker on 237# some systems. 238options VGA_ALT_SEQACCESS 239 240# If you can dispense with some vga driver features, you may want to 241# use the following options to save some memory. 242#options VGA_NO_FONT_LOADING # don't save/load font 243#options VGA_NO_MODE_CHANGE # don't change video modes 244 245# Older video cards may require this option for proper operation. 246options VGA_SLOW_IOACCESS # do byte-wide i/o's to TS and GDC regs 247 248# The following option probably won't work with the LCD displays. 249options VGA_WIDTH90 # support 90 column modes 250 251# Debugging. 252options VGA_DEBUG 253 254# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create 255# the /dev/3dfx0 device to work with glide implementations. This should get 256# linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as 257# the tdfx DRI module from XFree86 and is completely unrelated. 258# 259# To enable Linuxulator support, one must also include COMPAT_LINUX in the 260# config as well. The other option is to load both as modules. 261 262device tdfx # Enable 3Dfx Voodoo support 263#XXX#device tdfx_linux # Enable Linuxulator support 264 265# 266# ACPI support using the Intel ACPI Component Architecture reference 267# implementation. 268# 269# ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer 270# kernel environment variables to select initial debugging levels for the 271# Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER 272# defined when it is built). 273# 274# ACPI_NO_SEMAPHORES makes the AcpiOs*Semaphore routines a no-op. 275 276device acpi 277options ACPI_DEBUG 278#!options ACPI_NO_SEMAPHORES 279 280# The cpufreq(4) driver provides support for non-ACPI CPU frequency control 281device cpufreq 282 283# Direct Rendering modules for 3D acceleration. 284device drm # DRM core module required by DRM drivers 285device i915drm # Intel i830 through i915 286device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL 287device mgadrm # AGP Matrox G200, G400, G450, G550 288device r128drm # ATI Rage 128 289device radeondrm # ATI Radeon 290device savagedrm # S3 Savage3D, Savage4 291device sisdrm # SiS 300/305, 540, 630 292device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee 293options DRM_DEBUG # Include debug printfs (slow) 294 295# 296# Network interfaces: 297# 298 299# ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan) 300# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 301# HP PC Lan+, various PC Card devices 302# (requires miibus) 303# ipw: Intel PRO/Wireless 2100 IEEE 802.11 adapter 304# iwi: Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters 305# nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source) 306# nve: nVidia nForce MCP on-board Ethernet Networking 307# ral: Ralink Technology IEEE 802.11 wireless adapter 308# ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter 309# wpi: Intel 3945ABG Wireless LAN controller 310 311device ed 312options ED_3C503 313options ED_HPP 314options ED_SIC 315device iwi 316device ipw 317device nfe # nVidia nForce MCP on-board Ethernet Networking 318device nve # nVidia nForce MCP on-board Ethernet Networking 319device ral 320device ural 321device wpi 322 323device ath 324device ath_hal # Atheros HAL (includes binary component) 325#device ath_rate_amrr # AMRR rate control for ath driver 326#device ath_rate_onoe # Onoe rate control for ath driver 327device ath_rate_sample # SampleRate rate control for the ath driver 328#device wlan # 802.11 layer 329 330# 331#XXX this stores pointers in a 32bit field that is defined by the hardware 332#device pst 333 334# 335# Areca 11xx and 12xx series of SATA II RAID controllers. 336# CAM is required. 337# 338device arcmsr # Areca SATA II RAID 339 340# 341# 3ware 9000 series PATA/SATA RAID controller driver and options. 342# The driver is implemented as a SIM, and so, needs the CAM infrastructure. 343# 344options TWA_DEBUG # 0-10; 10 prints the most messages. 345options TWA_FLASH_FIRMWARE # firmware image bundled when defined. 346device twa # 3ware 9000 series PATA/SATA RAID 347 348# 349# SCSI host adapters: 350# 351# ncv: NCR 53C500 based SCSI host adapters. 352# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters. 353# stg: TMC 18C30, 18C50 based SCSI host adapters. 354 355device ncv 356device nsp 357device stg 358 359# 360# Adaptec FSA RAID controllers, including integrated DELL controllers, 361# the Dell PERC 2/QC and the HP NetRAID-4M 362device aac 363device aacp # SCSI Passthrough interface (optional, CAM required) 364 365# 366# Highpoint RocketRAID 182x. 367device hptmv 368 369# 370# Highpoint RocketRAID. Supports RR172x, RR222x, RR2240, RR232x, RR2340, 371# RR2210, RR174x, RR2522, RR231x, RR230x. 372device hptrr 373 374# 375# Highpoint RocketRaid 3xxx series SATA RAID 376device hptiop 377 378# 379# IBM (now Adaptec) ServeRAID controllers 380device ips 381 382# 383# SafeNet crypto driver: can be moved to the MI NOTES as soon as 384# it's tested on a big-endian machine 385# 386device safe # SafeNet 1141 387options SAFE_DEBUG # enable debugging support: hw.safe.debug 388options SAFE_RNDTEST # enable rndtest support 389 390##################################################################### 391 392# 393# Miscellaneous hardware: 394# 395# ipmi: Intelligent Platform Management Interface 396# smbios: DMI/SMBIOS entry point 397# vpd: Vital Product Data kernel interface 398# cy: Cyclades serial driver 399# digi: Digiboard driver 400# asmc: Apple System Management Controller 401 402# Notes on the Specialix SI/XIO driver: 403# The host card is memory, not IO mapped. 404# The Rev 1 host cards use a 64K chunk, on a 32K boundary. 405# The Rev 2 host cards use a 32K chunk, on a 32K boundary. 406# The cards can use an IRQ of 11, 12 or 15. 407 408device cy 409options CY_PCI_FASTINTR # Use with cy_pci unless irq is shared 410device digi 411# BIOS & FEP/OS components of device digi. 412device digi_CX 413device digi_CX_PCI 414device digi_EPCX 415device digi_EPCX_PCI 416device digi_Xe 417device digi_Xem 418device digi_Xr 419device ipmi 420# Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724) 421device pbio 422hint.pbio.0.at="isa" 423hint.pbio.0.port="0x360" 424device smbios 425device vpd 426device asmc 427# 428# Laptop/Notebook options: 429# 430 431 432# 433# I2C Bus 434# 435 436# 437# Hardware watchdog timers: 438# 439# ichwd: Intel ICH watchdog timer 440# 441device ichwd 442 443# 444# Temperature sensors: 445# 446# coretemp: on-die sensor on Intel Core and newer CPUs 447# 448device coretemp 449 450#--------------------------------------------------------------------------- 451# ISDN4BSD 452# 453# See /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd. 454# 455# i4b passive ISDN cards support contains the following hardware drivers: 456# 457# isic - Siemens/Infineon ISDN ISAC/HSCX/IPAC chipset driver 458# iwic - Winbond W6692 PCI bus ISDN S/T interface controller 459# ifpi - AVM Fritz!Card PCI driver 460# ifpi2 - AVM Fritz!Card PCI version 2 driver 461# itjc - Siemens ISAC / TJNet Tiger300/320 chipset 462# 463# i4b active ISDN cards support contains the following hardware drivers: 464# 465# iavc - AVM B1 PCI, AVM B1 ISA, AVM T1 466# 467# Note that the ``options'' (if given) and ``device'' lines must BOTH 468# be uncommented to enable support for a given card ! 469# 470# In addition to a hardware driver (and probably an option) the mandatory 471# ISDN protocol stack devices and the mandatory support device must be 472# enabled as well as one or more devices from the optional devices section. 473# 474#--------------------------------------------------------------------------- 475# isic driver (Siemens/Infineon chipsets) 476# 477#XXX#device isic 478# 479# PCI bus Cards: 480# -------------- 481# 482# ELSA MicroLink ISDN/PCI (same as ELSA QuickStep 1000pro PCI) 483options ELSA_QS1PCI 484# 485#--------------------------------------------------------------------------- 486# ifpi2 driver for AVM Fritz!Card PCI version 2 487# 488# AVM Fritz!Card PCI version 2 489#XXX#device ifpi2 490# 491#--------------------------------------------------------------------------- 492# iwic driver for Winbond W6692 chipset 493# 494# ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards) 495#XXX#device iwic 496# 497#--------------------------------------------------------------------------- 498# itjc driver for Siemens ISAC / TJNet Tiger300/320 chipset 499# 500# Traverse Technologies NETjet-S 501# Teles PCI-TJ 502#XXX#device itjc 503# 504#--------------------------------------------------------------------------- 505# iavc driver (AVM active cards, needs i4bcapi driver!) 506# 507#XXX#device iavc 508# 509#--------------------------------------------------------------------------- 510# ISDN Protocol Stack - mandatory for all hardware drivers 511# 512# Q.921 / layer 2 - i4b passive cards D channel handling 513#XXX#device i4bq921 514# 515# Q.931 / layer 3 - i4b passive cards D channel handling 516#XXX#device i4bq931 517# 518# layer 4 - i4b common passive and active card handling 519#XXX#device i4b 520# 521#--------------------------------------------------------------------------- 522# ISDN devices - mandatory for all hardware drivers 523# 524# userland driver to do ISDN tracing (for passive cards only) 525#XXX#device i4btrc 526#XXX#options NI4BTRC=4 527# 528# userland driver to control the whole thing 529#XXX#device i4bctl 530# 531#--------------------------------------------------------------------------- 532# ISDN devices - optional 533# 534# userland driver for access to raw B channel 535#XXX#device i4brbch 536#XXX#options NI4BRBCH=4 537# 538# userland driver for telephony 539#XXX#device i4btel 540#XXX#options NI4BTEL=2 541# 542# network driver for IP over raw HDLC ISDN 543#XXX#device i4bipr 544#XXX#options NI4BIPR=4 545# enable VJ header compression detection for ipr i/f 546#XXX#options IPR_VJ 547# enable logging of the first n IP packets to isdnd (n=32 here) 548#XXX#options IPR_LOG=32 549# 550# network driver for sync PPP over ISDN; requires an equivalent 551# number of sppp device to be configured 552#XXX#device i4bisppp 553#XXX#options NI4BISPPP=4 554# 555# B-channel interface to the netgraph subsystem 556#XXX#device i4bing 557#XXX#options NI4BING=2 558# 559# CAPI driver needed for active ISDN cards (see iavc driver above) 560#XXX#device i4bcapi 561# 562#--------------------------------------------------------------------------- 563 564# 565# System Management Bus (SMB) 566# 567options ENABLE_ALART # Control alarm on Intel intpm driver 568 569# 570# Set the number of PV entries per process. Increasing this can 571# stop panics related to heavy use of shared memory. However, that can 572# (combined with large amounts of physical memory) cause panics at 573# boot time due the kernel running out of VM space. 574# 575# If you're tweaking this, you might also want to increase the sysctls 576# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 577# 578# The value below is the one more than the default. 579# 580options PMAP_SHPGPERPROC=201 581 582 583##################################################################### 584# ABI Emulation 585 586#XXX keep these here for now and reactivate when support for emulating 587#XXX these 32 bit binaries is added. 588 589# Enable 32-bit runtime support for FreeBSD/i386 binaries. 590options COMPAT_IA32 591 592# Enable iBCS2 runtime support for SCO and ISC binaries 593#XXX#options IBCS2 594 595# Emulate spx device for client side of SVR3 local X interface 596#XXX#options SPX_HACK 597 598# Enable Linux ABI emulation 599#XXX#options COMPAT_LINUX 600 601# Enable 32-bit Linux ABI emulation (requires COMPAT_43 and COMPAT_IA32) 602options COMPAT_LINUX32 603 604# Enable the linux-like proc filesystem support (requires COMPAT_LINUX32 605# and PSEUDOFS) 606options LINPROCFS 607 608#Enable the linux-like sys filesystem support (requires COMPAT_LINUX32 609# and PSEUDOFS) 610options LINSYSFS 611 612# 613# SysVR4 ABI emulation 614# 615# The svr4 ABI emulator can be statically compiled into the kernel or loaded as 616# a KLD module. 617# The STREAMS network emulation code can also be compiled statically or as a 618# module. If loaded as a module, it must be loaded before the svr4 module 619# (the /usr/sbin/svr4 script does this for you). If compiling statically, 620# the `streams' device must be configured into any kernel which also 621# specifies COMPAT_SVR4. It is possible to have a statically-configured 622# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4 623# script understands that it doesn't need to load the `streams' module under 624# those circumstances. 625# Caveat: At this time, `options KTRACE' is required for the svr4 emulator 626# (whether static or dynamic). 627# 628#XXX#options COMPAT_SVR4 # build emulator statically 629#XXX#options DEBUG_SVR4 # enable verbose debugging 630#XXX#device streams # STREAMS network driver (required for svr4). 631 632 633##################################################################### 634# VM OPTIONS 635 636# KSTACK_PAGES is the number of memory pages to assign to the kernel 637# stack of each thread. 638 639options KSTACK_PAGES=3 640 641##################################################################### 642 643# More undocumented options for linting. 644# Note that documenting these are not considered an affront. 645 646options FB_INSTALL_CDEV # install a CDEV entry in /dev 647 648options KBDIO_DEBUG=2 649options KBD_MAXRETRY=4 650options KBD_MAXWAIT=6 651options KBD_RESETDELAY=201 652 653options PSM_DEBUG=1 654 655options TIMER_FREQ=((14318182+6)/12) 656 657options VM_KMEM_SIZE 658options VM_KMEM_SIZE_MAX 659options VM_KMEM_SIZE_SCALE 660 661# Enable NDIS binary driver support 662options NDISAPI 663device ndis 664