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# System Management Bus (SMB) 456# 457options ENABLE_ALART # Control alarm on Intel intpm driver 458 459# 460# Set the number of PV entries per process. Increasing this can 461# stop panics related to heavy use of shared memory. However, that can 462# (combined with large amounts of physical memory) cause panics at 463# boot time due the kernel running out of VM space. 464# 465# If you're tweaking this, you might also want to increase the sysctls 466# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 467# 468# The value below is the one more than the default. 469# 470options PMAP_SHPGPERPROC=201 471 472 473##################################################################### 474# ABI Emulation 475 476#XXX keep these here for now and reactivate when support for emulating 477#XXX these 32 bit binaries is added. 478 479# Enable 32-bit runtime support for FreeBSD/i386 binaries. 480options COMPAT_IA32 481 482# Enable iBCS2 runtime support for SCO and ISC binaries 483#XXX#options IBCS2 484 485# Emulate spx device for client side of SVR3 local X interface 486#XXX#options SPX_HACK 487 488# Enable Linux ABI emulation 489#XXX#options COMPAT_LINUX 490 491# Enable 32-bit Linux ABI emulation (requires COMPAT_43 and COMPAT_IA32) 492options COMPAT_LINUX32 493 494# Enable the linux-like proc filesystem support (requires COMPAT_LINUX32 495# and PSEUDOFS) 496options LINPROCFS 497 498#Enable the linux-like sys filesystem support (requires COMPAT_LINUX32 499# and PSEUDOFS) 500options LINSYSFS 501 502# 503# SysVR4 ABI emulation 504# 505# The svr4 ABI emulator can be statically compiled into the kernel or loaded as 506# a KLD module. 507# The STREAMS network emulation code can also be compiled statically or as a 508# module. If loaded as a module, it must be loaded before the svr4 module 509# (the /usr/sbin/svr4 script does this for you). If compiling statically, 510# the `streams' device must be configured into any kernel which also 511# specifies COMPAT_SVR4. It is possible to have a statically-configured 512# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4 513# script understands that it doesn't need to load the `streams' module under 514# those circumstances. 515# Caveat: At this time, `options KTRACE' is required for the svr4 emulator 516# (whether static or dynamic). 517# 518#XXX#options COMPAT_SVR4 # build emulator statically 519#XXX#options DEBUG_SVR4 # enable verbose debugging 520#XXX#device streams # STREAMS network driver (required for svr4). 521 522 523##################################################################### 524# VM OPTIONS 525 526# KSTACK_PAGES is the number of memory pages to assign to the kernel 527# stack of each thread. 528 529options KSTACK_PAGES=3 530 531##################################################################### 532 533# More undocumented options for linting. 534# Note that documenting these are not considered an affront. 535 536options FB_INSTALL_CDEV # install a CDEV entry in /dev 537 538options KBDIO_DEBUG=2 539options KBD_MAXRETRY=4 540options KBD_MAXWAIT=6 541options KBD_RESETDELAY=201 542 543options PSM_DEBUG=1 544 545options TIMER_FREQ=((14318182+6)/12) 546 547options VM_KMEM_SIZE 548options VM_KMEM_SIZE_MAX 549options VM_KMEM_SIZE_SCALE 550 551# Enable NDIS binary driver support 552options NDISAPI 553device ndis 554