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# This directive is mandatory; it defines the architecture to be 12# configured for; in this case, the 386 family based IBM-PC and 13# compatibles. 14# 15machine amd64 16cpu HAMMER 17 18# 19# We want LINT to cover profiling as well 20profile 2 21 22 23# Debug options 24options NPX_DEBUG # enable npx debugging (FPU/math emu) 25 #new math emulator 26 27# 28# PERFMON causes the driver for Pentium/Pentium Pro performance counters 29# to be compiled. See perfmon(4) for more information. 30# 31options PERFMON 32 33 34##################################################################### 35# NETWORKING OPTIONS 36 37# 38# DEVICE_POLLING adds support for mixed interrupt-polling handling 39# of network device drivers, which has significant benefits in terms 40# of robustness to overloads and responsivity, as well as permitting 41# accurate scheduling of the CPU time between kernel network processing 42# and other activities. The drawback is a moderate (up to 1/HZ seconds) 43# potential increase in response times. 44# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING 45# to achieve smoother behaviour. 46# Additionally, you can enable/disable polling at runtime with the 47# sysctl variable kern.polling.enable (defaults off), and select 48# the CPU fraction reserved to userland with the sysctl variable 49# kern.polling.user_frac (default 50, range 0..100). 50# 51# Only the "dc" "fxp" and "sis" devices support this mode of operation at 52# the time of this writing. 53 54options DEVICE_POLLING 55 56 57##################################################################### 58# CLOCK OPTIONS 59 60# The following options are used for debugging clock behavior only, and 61# should not be used for production systems. 62# 63# CLK_CALIBRATION_LOOP will run the clock calibration loop at startup 64# until the user presses a key. 65 66options CLK_CALIBRATION_LOOP 67 68 69##################################################################### 70# MISCELLANEOUS DEVICES AND OPTIONS 71 72hint.speaker.0.at="isa" 73hint.speaker.0.port="0x61" 74device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT! 75device apm_saver # Requires APM 76 77 78##################################################################### 79# HARDWARE BUS CONFIGURATION 80 81# 82# ISA bus 83# 84device isa 85 86# 87# Options for `isa': 88# 89# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A 90# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 91# This option breaks suspend/resume on some portables. 92# 93# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A 94# interrupt controller. This saves about 0.7-1.25 usec for each interrupt. 95# Automatic EOI is documented not to work for for the slave with the 96# original i8259A, but it works for some clones and some integrated 97# versions. 98# 99# MAXMEM specifies the amount of RAM on the machine; if this is not 100# specified, FreeBSD will first read the amount of memory from the CMOS 101# RAM, so the amount of memory will initially be limited to 64MB or 16MB 102# depending on the BIOS. If the BIOS reports 64MB, a memory probe will 103# then attempt to detect the installed amount of RAM. If this probe 104# fails to detect >64MB RAM you will have to use the MAXMEM option. 105# The amount is in kilobytes, so for a machine with 128MB of RAM, it would 106# be 131072 (128 * 1024). 107# 108# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to 109# reset the CPU for reboot. This is needed on some systems with broken 110# keyboard controllers. 111 112options MAXMEM=(128*1024) 113#options BROKEN_KEYBOARD_RESET 114 115# 116# PCI bus & PCI options: 117# 118device pci 119 120# 121# AGP GART support 122device agp 123 124 125##################################################################### 126# HARDWARE DEVICE CONFIGURATION 127 128# 129# Mandatory devices: 130# 131 132# 133# Optional devices: 134# 135 136# 137# ACPI support using the Intel ACPI Component Architecture reference 138# implementation. 139# 140# ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer 141# kernel environment variables to select initial debugging levels for the 142# Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER 143# defined when it is built). 144# 145# Note that building ACPI into the kernel is deprecated; the module is 146# normally loaded automatically by the loader. 147# 148device acpi 149options ACPI_DEBUG 150 151# DRM options: 152# mgadrm: AGP Matrox G200, G400, G450, G550 153# tdfxdrm: 3dfx Voodoo 3/4/5 and Banshee 154# r128drm: ATI Rage 128 155# radeondrm: ATI Radeon up to 9000/9100 156# DRM_DEBUG: include debug printfs, very slow 157# 158# mga requires AGP in the kernel, and it is recommended 159# for AGP r128 and radeon cards. 160 161device mgadrm 162device "r128drm" 163device radeondrm 164device tdfxdrm 165 166options DRM_DEBUG 167 168# M-systems DiskOnchip products see src/sys/contrib/dev/fla/README 169###device fla 170###hint.fla.0.at="isa" 171 172# 173# Network interfaces: 174# 175 176# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503 177# HP PC Lan+, various PC Card devices (refer to etc/defauls/pccard.conf) 178# (requires miibus) 179# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210; 180# Intel EtherExpress 181# lnc: Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 and 182# Am79C960) 183# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp) 184# wl: Lucent Wavelan (ISA card only). 185 186# Order for ISA/EISA devices is important here 187 188device ed 189#options ED_NO_MIIBUS # Disable ed miibus support 190hint.ed.0.at="isa" 191hint.ed.0.port="0x280" 192hint.ed.0.irq="5" 193hint.ed.0.maddr="0xd8000" 194device lnc 195hint.lnc.0.at="isa" 196hint.lnc.0.port="0x280" 197hint.lnc.0.irq="10" 198hint.lnc.0.drq="0" 199device sr 200hint.sr.0.at="isa" 201hint.sr.0.port="0x300" 202hint.sr.0.irq="5" 203hint.sr.0.maddr="0xd0000" 204device wl 205hint.wl.0.at="isa" 206hint.wl.0.port="0x300" 207options WLCACHE # enables the signal-strength cache 208options WLDEBUG # enables verbose debugging output 209 210# 211# ATA raid adapters 212# 213device pst 214 215# 216# SCSI host adapters: 217# 218# ncv: NCR 53C500 based SCSI host adapters. 219# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters. 220# stg: TMC 18C30, 18C50 based SCSI host adapters. 221 222device ncv 223device nsp 224device stg 225hint.stg.0.at="isa" 226hint.stg.0.port="0x140" 227hint.stg.0.port="11" 228 229# 230# Adaptec FSA RAID controllers, including integrated DELL controllers, 231# the Dell PERC 2/QC and the HP NetRAID-4M 232device aac 233device aacp # SCSI Passthrough interface (optional, CAM required) 234 235# 236# IBM (now Adaptec) ServeRAID controllers 237device ips 238 239# 240# SafeNet crypto driver: can be moved to the MI NOTES as soon as 241# it's tested on a big-endian machine 242# 243device safe # SafeNet 1141 244options SAFE_DEBUG # enable debugging support: hw.safe.debug 245options SAFE_RNDTEST # enable rndtest support 246 247##################################################################### 248 249# 250# Miscellaneous hardware: 251# 252# dgb: Digiboard PC/Xi and PC/Xe series driver (ALPHA QUALITY!) 253# digi: Digiboard driver 254# gsc: Genius GS-4500 hand scanner. 255# spic: Sony Programmable I/O controller (VAIO notebooks) 256# stl: Stallion EasyIO and EasyConnection 8/32 (cd1400 based) 257# stli: Stallion EasyConnection 8/64, ONboard, Brumby (intelligent) 258 259# Notes on the Specialix SI/XIO driver: 260# The host card is memory, not IO mapped. 261# The Rev 1 host cards use a 64K chunk, on a 32K boundary. 262# The Rev 2 host cards use a 32K chunk, on a 32K boundary. 263# The cards can use an IRQ of 11, 12 or 15. 264 265# Notes on the Digiboard PC/Xi and PC/Xe series driver 266# 267# The NDGBPORTS option specifies the number of ports controlled by the 268# dgb(4) driver. The default value is 16 ports per device. 269# 270# The following flag values have special meanings in dgb: 271# 0x01 - alternate layout of pins 272# 0x02 - use the windowed PC/Xe in 64K mode 273 274device digi 275hint.digi.0.at="isa" 276hint.digi.0.port="0x104" 277hint.digi.0.maddr="0xd0000" 278# BIOS & FEP/OS components of device digi. 279device digi_CX 280device digi_CX_PCI 281device digi_EPCX 282device digi_EPCX_PCI 283device digi_Xe 284device digi_Xem 285device digi_Xr 286# HOT1 Xilinx 6200 card (http://www.vcc.com/) 287device xrpu 288 289# 290# Laptop/Notebook options: 291# 292# See also: 293# apm under `Miscellaneous hardware' 294# above. 295 296# PCI bus Cards: 297# -------------- 298# 299# Cyclades Cyclom-Y PCI serial driver 300device cy 301options CY_PCI_FASTINTR # Use with cy_pci unless irq is shared 302#hint.cy.0.at="isa" 303#hint.cy.0.irq="10" 304#hint.cy.0.maddr="0xd4000" 305#hint.cy.0.msize="0x2000" 306 307# 308# Set the number of PV entries per process. Increasing this can 309# stop panics related to heavy use of shared memory. However, that can 310# (combined with large amounts of physical memory) cause panics at 311# boot time due the kernel running out of VM space. 312# 313# If you're tweaking this, you might also want to increase the sysctls 314# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target". 315# 316# The value below is the one more than the default. 317# 318#options PMAP_SHPGPERPROC=201 319 320# 321# Change the size of the kernel virtual address space. Due to 322# constraints in loader(8) on i386, this must be a multiple of 4. 323# 256 = 1 GB of kernel address space. Increasing this also causes 324# a reduction of the address space in user processes. 512 splits 325# the 4GB cpu address space in half (2GB user, 2GB kernel). 326# 327options KVA_PAGES=260 328 329 330##################################################################### 331# ABI Emulation 332 333# Enable Linux ABI emulation 334#options COMPAT_LINUX 335 336# Enable the linux-like proc filesystem support (requires COMPAT_LINUX 337# and PSEUDOFS) 338#options LINPROCFS 339 340 341##################################################################### 342# VM OPTIONS 343 344# Disable the 4 MByte page PSE CPU feature. The PSE feature allows the 345# kernel to use a 4 MByte pages to map the kernel instead of 4k pages. 346# This saves on the amount of memory needed for page tables needed to 347# map the kernel. You should only disable this feature as a temporary 348# workaround if you are having problems with it enabled. 349# 350#options DISABLE_PSE 351 352# Disable the global pages PGE CPU feature. The PGE feature allows pages 353# to be marked with the PG_G bit. TLB entries for these pages are not 354# flushed from the cache when %cr3 is reloaded. This can make context 355# switches less expensive. You should only disable this feature as a 356# temporary workaround if you are having problems with it enabled. 357# 358#options DISABLE_PG_G 359 360# KSTACK_PAGES is the number of memory pages to assign to the kernel 361# stack of each thread. 362 363options KSTACK_PAGES=3 364 365##################################################################### 366 367# More undocumented options for linting. 368# Note that documenting these are not considered an affront. 369 370options FB_INSTALL_CDEV # install a CDEV entry in /dev 371 372options ENABLE_ALART 373options KBDIO_DEBUG=2 374options KBD_MAXRETRY=4 375options KBD_MAXWAIT=6 376options KBD_RESETDELAY=201 377 378options PSM_DEBUG=1 379 380options TIMER_FREQ=((14318182+6)/12) 381 382options VM_KMEM_SIZE 383options VM_KMEM_SIZE_MAX 384options VM_KMEM_SIZE_SCALE 385