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# iwn: Intel Wireless WiFi Link 4965AGN 802.11 network adapters 306# nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source) 307# nve: nVidia nForce MCP on-board Ethernet Networking 308# ral: Ralink Technology IEEE 802.11 wireless adapter 309# ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter 310# wpi: Intel 3945ABG Wireless LAN controller 311 312device ed 313options ED_3C503 314options ED_HPP 315options ED_SIC 316device iwi 317device iwn 318device ipw 319device nfe # nVidia nForce MCP on-board Ethernet Networking 320device nve # nVidia nForce MCP on-board Ethernet Networking 321device ral 322device ural 323device wpi 324 325device ath 326device ath_hal # Atheros HAL (includes binary component) 327#device ath_rate_amrr # AMRR rate control for ath driver 328#device ath_rate_onoe # Onoe rate control for ath driver 329device ath_rate_sample # SampleRate rate control for the ath driver 330#device wlan # 802.11 layer 331 332# 333#XXX this stores pointers in a 32bit field that is defined by the hardware 334#device pst 335 336# 337# Areca 11xx and 12xx series of SATA II RAID controllers. 338# CAM is required. 339# 340device arcmsr # Areca SATA II RAID 341 342# 343# 3ware 9000 series PATA/SATA RAID controller driver and options. 344# The driver is implemented as a SIM, and so, needs the CAM infrastructure. 345# 346options TWA_DEBUG # 0-10; 10 prints the most messages. 347options TWA_FLASH_FIRMWARE # firmware image bundled when defined. 348device twa # 3ware 9000 series PATA/SATA RAID 349 350# 351# SCSI host adapters: 352# 353# ncv: NCR 53C500 based SCSI host adapters. 354# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters. 355# stg: TMC 18C30, 18C50 based SCSI host adapters. 356 357device ncv 358device nsp 359device stg 360 361# 362# Adaptec FSA RAID controllers, including integrated DELL controllers, 363# the Dell PERC 2/QC and the HP NetRAID-4M 364device aac 365device aacp # SCSI Passthrough interface (optional, CAM required) 366 367# 368# Highpoint RocketRAID 182x. 369device hptmv 370 371# 372# Highpoint RocketRAID. Supports RR172x, RR222x, RR2240, RR232x, RR2340, 373# RR2210, RR174x, RR2522, RR231x, RR230x. 374device hptrr 375 376# 377# Highpoint RocketRaid 3xxx series SATA RAID 378device hptiop 379 380# 381# IBM (now Adaptec) ServeRAID controllers 382device ips 383 384# 385# SafeNet crypto driver: can be moved to the MI NOTES as soon as 386# it's tested on a big-endian machine 387# 388device safe # SafeNet 1141 389options SAFE_DEBUG # enable debugging support: hw.safe.debug 390options SAFE_RNDTEST # enable rndtest support 391 392##################################################################### 393 394# 395# Miscellaneous hardware: 396# 397# ipmi: Intelligent Platform Management Interface 398# smbios: DMI/SMBIOS entry point 399# vpd: Vital Product Data kernel interface 400# cy: Cyclades serial driver 401# digi: Digiboard driver 402# asmc: Apple System Management Controller 403 404# Notes on the Specialix SI/XIO driver: 405# The host card is memory, not IO mapped. 406# The Rev 1 host cards use a 64K chunk, on a 32K boundary. 407# The Rev 2 host cards use a 32K chunk, on a 32K boundary. 408# The cards can use an IRQ of 11, 12 or 15. 409 410device cy 411options CY_PCI_FASTINTR # Use with cy_pci unless irq is shared 412device digi 413# BIOS & FEP/OS components of device digi. 414device digi_CX 415device digi_CX_PCI 416device digi_EPCX 417device digi_EPCX_PCI 418device digi_Xe 419device digi_Xem 420device digi_Xr 421device ipmi 422# Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724) 423device pbio 424hint.pbio.0.at="isa" 425hint.pbio.0.port="0x360" 426device smbios 427device vpd 428device asmc 429# 430# Laptop/Notebook options: 431# 432 433 434# 435# I2C Bus 436# 437 438# 439# Hardware watchdog timers: 440# 441# ichwd: Intel ICH watchdog timer 442# 443device ichwd 444 445# 446# Temperature sensors: 447# 448# coretemp: on-die sensor on Intel Core and newer CPUs 449# k8temp: on-die sensor on AMD K8 CPUs 450# 451device coretemp 452device k8temp 453 454#--------------------------------------------------------------------------- 455# ISDN4BSD 456# 457# See /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd. 458# 459# i4b passive ISDN cards support contains the following hardware drivers: 460# 461# isic - Siemens/Infineon ISDN ISAC/HSCX/IPAC chipset driver 462# iwic - Winbond W6692 PCI bus ISDN S/T interface controller 463# ifpi - AVM Fritz!Card PCI driver 464# ifpi2 - AVM Fritz!Card PCI version 2 driver 465# itjc - Siemens ISAC / TJNet Tiger300/320 chipset 466# 467# i4b active ISDN cards support contains the following hardware drivers: 468# 469# iavc - AVM B1 PCI, AVM B1 ISA, AVM T1 470# 471# Note that the ``options'' (if given) and ``device'' lines must BOTH 472# be uncommented to enable support for a given card ! 473# 474# In addition to a hardware driver (and probably an option) the mandatory 475# ISDN protocol stack devices and the mandatory support device must be 476# enabled as well as one or more devices from the optional devices section. 477# 478#--------------------------------------------------------------------------- 479# isic driver (Siemens/Infineon chipsets) 480# 481#XXX#device isic 482# 483# PCI bus Cards: 484# -------------- 485# 486# ELSA MicroLink ISDN/PCI (same as ELSA QuickStep 1000pro PCI) 487options ELSA_QS1PCI 488# 489#--------------------------------------------------------------------------- 490# ifpi2 driver for AVM Fritz!Card PCI version 2 491# 492# AVM Fritz!Card PCI version 2 493#XXX#device ifpi2 494# 495#--------------------------------------------------------------------------- 496# iwic driver for Winbond W6692 chipset 497# 498# ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards) 499#XXX#device iwic 500# 501#--------------------------------------------------------------------------- 502# itjc driver for Siemens ISAC / TJNet Tiger300/320 chipset 503# 504# Traverse Technologies NETjet-S 505# Teles PCI-TJ 506#XXX#device itjc 507# 508#--------------------------------------------------------------------------- 509# iavc driver (AVM active cards, needs i4bcapi driver!) 510# 511#XXX#device iavc 512# 513#--------------------------------------------------------------------------- 514# ISDN Protocol Stack - mandatory for all hardware drivers 515# 516# Q.921 / layer 2 - i4b passive cards D channel handling 517#XXX#device i4bq921 518# 519# Q.931 / layer 3 - i4b passive cards D channel handling 520#XXX#device i4bq931 521# 522# layer 4 - i4b common passive and active card handling 523#XXX#device i4b 524# 525#--------------------------------------------------------------------------- 526# ISDN devices - mandatory for all hardware drivers 527# 528# userland driver to do ISDN tracing (for passive cards only) 529#XXX#device i4btrc 530#XXX#options NI4BTRC=4 531# 532# userland driver to control the whole thing 533#XXX#device i4bctl 534# 535#--------------------------------------------------------------------------- 536# ISDN devices - optional 537# 538# userland driver for access to raw B channel 539#XXX#device i4brbch 540#XXX#options NI4BRBCH=4 541# 542# userland driver for telephony 543#XXX#device i4btel 544#XXX#options NI4BTEL=2 545# 546# network driver for IP over raw HDLC ISDN 547#XXX#device i4bipr 548#XXX#options NI4BIPR=4 549# enable VJ header compression detection for ipr i/f 550#XXX#options IPR_VJ 551# enable logging of the first n IP packets to isdnd (n=32 here) 552#XXX#options IPR_LOG=32 553# 554# network driver for sync PPP over ISDN; requires an equivalent 555# number of sppp device to be configured 556#XXX#device i4bisppp 557#XXX#options NI4BISPPP=4 558# 559# B-channel interface to the netgraph subsystem 560#XXX#device i4bing 561#XXX#options NI4BING=2 562# 563# CAPI driver needed for active ISDN cards (see iavc driver above) 564#XXX#device i4bcapi 565# 566#--------------------------------------------------------------------------- 567 568# 569# System Management Bus (SMB) 570# 571options ENABLE_ALART # Control alarm on Intel intpm driver 572 573# 574# Set the number of PV entries per process. Increasing this can 575# stop panics related to heavy use of shared memory. However, that can 576# (combined with large amounts of physical memory) cause panics at 577# boot time due the kernel running out of VM space. 578# 579# If you're tweaking this, you might also want to increase the sysctls 580# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 581# 582# The value below is the one more than the default. 583# 584options PMAP_SHPGPERPROC=201 585 586 587##################################################################### 588# ABI Emulation 589 590#XXX keep these here for now and reactivate when support for emulating 591#XXX these 32 bit binaries is added. 592 593# Enable 32-bit runtime support for FreeBSD/i386 binaries. 594options COMPAT_IA32 595 596# Enable iBCS2 runtime support for SCO and ISC binaries 597#XXX#options IBCS2 598 599# Emulate spx device for client side of SVR3 local X interface 600#XXX#options SPX_HACK 601 602# Enable Linux ABI emulation 603#XXX#options COMPAT_LINUX 604 605# Enable 32-bit Linux ABI emulation (requires COMPAT_43 and COMPAT_IA32) 606options COMPAT_LINUX32 607 608# Enable the linux-like proc filesystem support (requires COMPAT_LINUX32 609# and PSEUDOFS) 610options LINPROCFS 611 612#Enable the linux-like sys filesystem support (requires COMPAT_LINUX32 613# and PSEUDOFS) 614options LINSYSFS 615 616# 617# SysVR4 ABI emulation 618# 619# The svr4 ABI emulator can be statically compiled into the kernel or loaded as 620# a KLD module. 621# The STREAMS network emulation code can also be compiled statically or as a 622# module. If loaded as a module, it must be loaded before the svr4 module 623# (the /usr/sbin/svr4 script does this for you). If compiling statically, 624# the `streams' device must be configured into any kernel which also 625# specifies COMPAT_SVR4. It is possible to have a statically-configured 626# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4 627# script understands that it doesn't need to load the `streams' module under 628# those circumstances. 629# Caveat: At this time, `options KTRACE' is required for the svr4 emulator 630# (whether static or dynamic). 631# 632#XXX#options COMPAT_SVR4 # build emulator statically 633#XXX#options DEBUG_SVR4 # enable verbose debugging 634#XXX#device streams # STREAMS network driver (required for svr4). 635 636 637##################################################################### 638# VM OPTIONS 639 640# KSTACK_PAGES is the number of memory pages to assign to the kernel 641# stack of each thread. 642 643options KSTACK_PAGES=3 644 645##################################################################### 646 647# More undocumented options for linting. 648# Note that documenting these are not considered an affront. 649 650options FB_INSTALL_CDEV # install a CDEV entry in /dev 651 652options KBDIO_DEBUG=2 653options KBD_MAXRETRY=4 654options KBD_MAXWAIT=6 655options KBD_RESETDELAY=201 656 657options PSM_DEBUG=1 658 659options TIMER_FREQ=((14318182+6)/12) 660 661options VM_KMEM_SIZE 662options VM_KMEM_SIZE_MAX 663options VM_KMEM_SIZE_SCALE 664 665# Enable NDIS binary driver support 666options NDISAPI 667device ndis 668