xref: /freebsd/sys/i386/conf/NOTES (revision 0f454b93f8502e85e8d2b26a383e40b5dc50cd27)
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# The apic device enables the use of the I/O APIC for interrupt delivery.
19# The apic device can be used in both UP and SMP kernels, but is required
20# for SMP kernels.  Thus, the apic device is not strictly an SMP option,
21# but it is a prerequisite for SMP.
22#
23# Notes:
24#
25# HTT CPUs should only be used if they are enabled in the BIOS.  For
26# the ACPI case, ACPI only correctly tells us about any HTT CPUs if
27# they are enabled.  However, most HTT systems do not list HTT CPUs
28# in the MP Table if they are enabled, thus we guess at the HTT CPUs
29# for the MP Table case.  However, we shouldn't try to guess and use
30# these CPUs if HTT is disabled.  Thus, HTT guessing is only enabled
31# for the MP Table if the user explicitly asks for it via the
32# MPTABLE_FORCE_HTT option.  Do NOT use this option if you have HTT
33# disabled in your BIOS.
34#
35# IPI_PREEMPTION instructs the kernel to preempt threads running on other
36# CPUS if needed.  Relies on the PREEMPTION option
37
38# Mandatory:
39device		apic			# I/O apic
40
41# Optional:
42options 	MPTABLE_FORCE_HTT	# Enable HTT CPUs with the MP Table
43options 	IPI_PREEMPTION
44
45#
46# Watchdog routines.
47#
48options 	MP_WATCHDOG
49
50# Debugging options.
51#
52options 	COUNT_XINVLTLB_HITS	# Counters for TLB events
53options 	COUNT_IPIS		# Per-CPU IPI interrupt counters
54
55
56
57#####################################################################
58# CPU OPTIONS
59
60#
61# You must specify at least one CPU (the one you intend to run on);
62# deleting the specification for CPUs you don't need to use may make
63# parts of the system run faster.
64#
65cpu		I486_CPU
66cpu		I586_CPU		# aka Pentium(tm)
67cpu		I686_CPU		# aka Pentium Pro(tm)
68
69#
70# Options for CPU features.
71#
72# CPU_ATHLON_SSE_HACK tries to enable SSE instructions when the BIOS has
73# forgotten to enable them.
74#
75# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
76# CPU if CPU supports it.  The default is double-clock mode on
77# BlueLightning CPU box.
78#
79# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
80# BlueLightning CPU.  It works only with Cyrix FPU, and this option
81# should not be used with Intel FPU.
82#
83# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
84#
85# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
86# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
87# Otherwise, the NO_LOCK bit of CCR1 is cleared.  (NOTE 3)
88#
89# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
90# mapped mode.  Default is 2-way set associative mode.
91#
92# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
93# reorder).  This option should not be used if you use memory mapped
94# I/O device(s).
95#
96# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
97# machines.  VmWare 3.x seems to emulate this instruction poorly, causing
98# the guest OS to run very slowly.  This problem appears to be fixed in
99# VmWare 4.x, at least in version 4.5.2, so that enabling this option with
100# VmWare 4.x will result in locking operations to be 20-30 times slower.
101# Enabling this with an SMP kernel will cause the kernel to be unusable.
102#
103# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
104#
105# CPU_ELAN enables support for AMDs ElanSC520 CPU.
106#    CPU_ELAN_PPS enables precision timestamp code.
107#    CPU_ELAN_XTAL sets the clock crystal frequency in Hz.
108#
109# CPU_ENABLE_LONGRUN enables support for Transmeta Crusoe LongRun
110# technology which allows to restrict power consumption of the CPU by
111# using group of hw.crusoe.* sysctls.
112#
113# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
114#
115# CPU_GEODE is for the SC1100 Geode embedded processor.  This option
116# is necessary because the i8254 timecounter is toast.
117#
118# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
119# for i386 machines.
120#
121# CPU_IORT defines I/O clock delay time (NOTE 1).  Default values of
122# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
123# (no clock delay).
124#
125# CPU_L2_LATENCY specifies the L2 cache latency value.  This option is used
126# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
127# The default value is 5.
128#
129# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
130# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
131# 1).
132#
133# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs.  This option
134# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
135# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
136#
137# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
138#
139# CPU_SOEKRIS enables support www.soekris.com hardware.
140#
141# CPU_SUSP_HLT enables suspend on HALT.  If this option is set, CPU
142# enters suspend mode following execution of HALT instruction.
143#
144# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
145#
146# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
147# K5/K6/K6-2 CPUs.
148#
149# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
150# flush at hold state.
151#
152# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
153# without cache flush at hold state, and (2) write-back CPU cache on
154# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
155#
156# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
157# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
158# executed.  This option is only needed if I586_CPU is also defined,
159# and should be included for any non-Pentium CPU that defines it.
160#
161# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
162# which indicates that the 15-16MB range is *definitely* not being
163# occupied by an ISA memory hole.
164#
165# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
166# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
167# These options may crash your system.
168#
169# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
170# in write-through mode when revision < 2.7.  If revision of Cyrix
171# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
172#
173# NOTE 3: This option may cause failures for software that requires
174# locked cycles in order to operate correctly.
175#
176options 	CPU_ATHLON_SSE_HACK
177options 	CPU_BLUELIGHTNING_3X
178options 	CPU_BLUELIGHTNING_FPU_OP_CACHE
179options 	CPU_BTB_EN
180options 	CPU_DIRECT_MAPPED_CACHE
181options 	CPU_DISABLE_5X86_LSSER
182options 	CPU_DISABLE_CMPXCHG
183#options 	CPU_DISABLE_SSE
184options 	CPU_ELAN
185options 	CPU_ELAN_PPS
186options 	CPU_ELAN_XTAL=32768000
187options 	CPU_ENABLE_LONGRUN
188options 	CPU_FASTER_5X86_FPU
189options 	CPU_GEODE
190options 	CPU_I486_ON_386
191options 	CPU_IORT
192options 	CPU_L2_LATENCY=5
193options 	CPU_LOOP_EN
194options 	CPU_PPRO2CELERON
195options 	CPU_RSTK_EN
196options 	CPU_SOEKRIS
197options 	CPU_SUSP_HLT
198options 	CPU_UPGRADE_HW_CACHE
199options 	CPU_WT_ALLOC
200options 	CYRIX_CACHE_WORKS
201options 	CYRIX_CACHE_REALLY_WORKS
202#options 	NO_F00F_HACK
203
204# Debug options
205options 	NPX_DEBUG	# enable npx debugging
206
207#
208# PERFMON causes the driver for Pentium/Pentium Pro performance counters
209# to be compiled.  See perfmon(4) for more information.
210#
211options 	PERFMON
212
213#
214# XBOX causes the kernel to be bootable on the Microsoft XBox console system.
215# The resulting kernel will auto-detect whether it is being booted on a XBox,
216# so kernels compiled with this option will also work on an ordinary PC.
217# This option require I686_CPU.
218#
219# xboxfb includes support for the XBox frame buffer device. It is fully USB-
220# keyboard aware, and will only be used if an xbox is detected. This option
221# (obviously) requires XBOX support in your kernel.
222#
223# NOTE: xboxfb currently conflicts with syscons(4); if you have an XBOX and
224# include both in your kernel; you will not get any video output. Ordinary
225# PC's do not suffer from this.
226#
227options 	XBOX
228device		xboxfb
229
230
231#####################################################################
232# NETWORKING OPTIONS
233
234#
235# DEVICE_POLLING adds support for mixed interrupt-polling handling
236# of network device drivers, which has significant benefits in terms
237# of robustness to overloads and responsivity, as well as permitting
238# accurate scheduling of the CPU time between kernel network processing
239# and other activities.  The drawback is a moderate (up to 1/HZ seconds)
240# potential increase in response times.
241# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
242# to achieve smoother behaviour.
243# Additionally, you can enable/disable polling at runtime with help of
244# the ifconfig(8) utility, and select the CPU fraction reserved to
245# userland with the sysctl variable kern.polling.user_frac
246# (default 50, range 0..100).
247#
248# Not all device drivers support this mode of operation at the time of
249# this writing.  See polling(4) for more details.
250
251options 	DEVICE_POLLING
252
253# BPF_JITTER adds support for BPF just-in-time compiler.
254
255options 	BPF_JITTER
256
257
258#####################################################################
259# CLOCK OPTIONS
260
261# Provide read/write access to the memory in the clock chip.
262device		nvram		# Access to rtc cmos via /dev/nvram
263
264
265#####################################################################
266# MISCELLANEOUS DEVICES AND OPTIONS
267
268device		speaker		#Play IBM BASIC-style noises out your speaker
269hint.speaker.0.at="isa"
270hint.speaker.0.port="0x61"
271device		gzip		#Exec gzipped a.out's.  REQUIRES COMPAT_AOUT!
272device		apm_saver	# Requires APM
273
274
275#####################################################################
276# HARDWARE BUS CONFIGURATION
277
278#
279# ISA bus
280#
281device		isa		# Required by npx(4)
282
283#
284# Options for `isa':
285#
286# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
287# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
288# This option breaks suspend/resume on some portables.
289#
290# AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
291# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
292# Automatic EOI is documented not to work for for the slave with the
293# original i8259A, but it works for some clones and some integrated
294# versions.
295#
296# MAXMEM specifies the amount of RAM on the machine; if this is not
297# specified, FreeBSD will first read the amount of memory from the CMOS
298# RAM, so the amount of memory will initially be limited to 64MB or 16MB
299# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
300# then attempt to detect the installed amount of RAM.  If this probe
301# fails to detect >64MB RAM you will have to use the MAXMEM option.
302# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
303# be 131072 (128 * 1024).
304#
305# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
306# reset the CPU for reboot.  This is needed on some systems with broken
307# keyboard controllers.
308
309options 	AUTO_EOI_1
310#options 	AUTO_EOI_2
311
312options 	MAXMEM=(128*1024)
313#options 	BROKEN_KEYBOARD_RESET
314
315#
316# EISA bus
317#
318# The EISA bus device is `eisa'.  It provides auto-detection and
319# configuration support for all devices on the EISA bus.
320
321device		eisa
322
323# By default, only 10 EISA slots are probed, since the slot numbers
324# above clash with the configuration address space of the PCI subsystem,
325# and the EISA probe is not very smart about this.  This is sufficient
326# for most machines, but in particular the HP NetServer LC series comes
327# with an onboard AIC7770 dual-channel SCSI controller on EISA slot #11,
328# thus you need to bump this figure to 12 for them.
329options 	EISA_SLOTS=12
330
331#
332# MCA bus:
333#
334# The MCA bus device is `mca'.  It provides auto-detection and
335# configuration support for all devices on the MCA bus.
336# No hints are required for MCA.
337
338device		mca
339
340#
341# PCI bus & PCI options:
342#
343device		pci
344
345#
346# AGP GART support
347device		agp
348
349# AGP debugging.
350options 	AGP_DEBUG
351
352
353#####################################################################
354# HARDWARE DEVICE CONFIGURATION
355
356# To include support for VGA VESA video modes
357options 	VESA
358
359# Turn on extra debugging checks and output for VESA support.
360options 	VESA_DEBUG
361
362device		dpms		# DPMS suspend & resume via VESA BIOS
363
364# x86 real mode BIOS emulator, required by atkbdc/dpms/vesa
365options		X86BIOS
366
367#
368# The Numeric Processing eXtension driver.  This is non-optional.
369device		npx
370hint.npx.0.flags="0x0"
371hint.npx.0.irq="13"
372
373#
374# `flags' for npx0:
375#	0x01	don't use the npx registers to optimize bcopy.
376#	0x02	don't use the npx registers to optimize bzero.
377#	0x04	don't use the npx registers to optimize copyin or copyout.
378# The npx registers are normally used to optimize copying and zeroing when
379# all of the following conditions are satisfied:
380#	I586_CPU is an option
381#	the cpu is an i586 (perhaps not a Pentium)
382#	the probe for npx0 succeeds
383#	INT 16 exception handling works.
384# Then copying and zeroing using the npx registers is normally 30-100% faster.
385# The flags can be used to control cases where it doesn't work or is slower.
386# Setting them at boot time using hints works right (the optimizations
387# are not used until later in the bootstrap when npx0 is attached).
388# Flag 0x08 automatically disables the i586 optimized routines.
389#
390
391#
392# Optional devices:
393#
394
395# PS/2 mouse
396device		psm
397hint.psm.0.at="atkbdc"
398hint.psm.0.irq="12"
399
400# Options for psm:
401options 	PSM_HOOKRESUME		#hook the system resume event, useful
402					#for some laptops
403options 	PSM_RESETAFTERSUSPEND	#reset the device at the resume event
404
405# The keyboard controller; it controls the keyboard and the PS/2 mouse.
406device		atkbdc
407hint.atkbdc.0.at="isa"
408hint.atkbdc.0.port="0x060"
409
410# The AT keyboard
411device		atkbd
412hint.atkbd.0.at="atkbdc"
413hint.atkbd.0.irq="1"
414
415# Options for atkbd:
416options 	ATKBD_DFLT_KEYMAP	# specify the built-in keymap
417makeoptions	ATKBD_DFLT_KEYMAP=jp.106
418
419# `flags' for atkbd:
420#       0x01    Force detection of keyboard, else we always assume a keyboard
421#       0x02    Don't reset keyboard, useful for some newer ThinkPads
422#	0x03	Force detection and avoid reset, might help with certain
423#		dockingstations
424#       0x04    Old-style (XT) keyboard support, useful for older ThinkPads
425
426# Video card driver for VGA adapters.
427device		vga
428hint.vga.0.at="isa"
429
430# Options for vga:
431# Try the following option if the mouse pointer is not drawn correctly
432# or font does not seem to be loaded properly.  May cause flicker on
433# some systems.
434options 	VGA_ALT_SEQACCESS
435
436# If you can dispense with some vga driver features, you may want to
437# use the following options to save some memory.
438#options 	VGA_NO_FONT_LOADING	# don't save/load font
439#options 	VGA_NO_MODE_CHANGE	# don't change video modes
440
441# Older video cards may require this option for proper operation.
442options 	VGA_SLOW_IOACCESS	# do byte-wide i/o's to TS and GDC regs
443
444# The following option probably won't work with the LCD displays.
445options 	VGA_WIDTH90		# support 90 column modes
446
447# Debugging.
448options 	VGA_DEBUG
449
450# Linear framebuffer driver for S3 VESA 1.2 cards. Works on top of VESA.
451device		s3pci
452
453# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support.  This will create
454# the /dev/3dfx0 device to work with glide implementations.  This should get
455# linked to /dev/3dfx and /dev/voodoo.  Note that this is not the same as
456# the tdfx DRI module from XFree86 and is completely unrelated.
457#
458# To enable Linuxulator support, one must also include COMPAT_LINUX in the
459# config as well.  The other option is to load both as modules.
460
461device		tdfx			# Enable 3Dfx Voodoo support
462device		tdfx_linux		# Enable Linuxulator support
463
464#
465# ACPI support using the Intel ACPI Component Architecture reference
466# implementation.
467#
468# ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer
469# kernel environment variables to select initial debugging levels for the
470# Intel ACPICA code.  (Note that the Intel code must also have USE_DEBUGGER
471# defined when it is built).
472
473device		acpi
474options 	ACPI_DEBUG
475
476# ACPI WMI Mapping driver
477device		acpi_wmi
478
479# ACPI Asus Desktop Extras. (voltage, temp, fan)
480device		acpi_aiboost
481
482# ACPI Asus Extras (LCD backlight/brightness, video output, etc.)
483device		acpi_asus
484
485# ACPI Fujitsu Extras (Buttons)
486device		acpi_fujitsu
487
488# ACPI extras driver for HP laptops
489device		acpi_hp
490
491# ACPI extras driver for IBM laptops
492device		acpi_ibm
493
494# ACPI Panasonic Extras (LCD backlight/brightness, video output, etc.)
495device		acpi_panasonic
496
497# ACPI Sony extra (LCD brightness)
498device		acpi_sony
499
500# ACPI Toshiba Extras (LCD backlight/brightness, video output, etc.)
501device		acpi_toshiba
502
503# ACPI Video Extensions (LCD backlight/brightness, video output, etc.)
504device		acpi_video
505
506# ACPI Docking Station
507device		acpi_dock
508
509# The cpufreq(4) driver provides support for non-ACPI CPU frequency control
510device		cpufreq
511
512# Direct Rendering modules for 3D acceleration.
513device		drm		# DRM core module required by DRM drivers
514device		i915drm		# Intel i830 through i915
515device		mach64drm	# ATI Rage Pro, Rage Mobility P/M, Rage XL
516device		mgadrm		# AGP Matrox G200, G400, G450, G550
517device		r128drm		# ATI Rage 128
518device		radeondrm	# ATI Radeon
519device		savagedrm	# S3 Savage3D, Savage4
520device		sisdrm		# SiS 300/305, 540, 630
521device		tdfxdrm		# 3dfx Voodoo 3/4/5 and Banshee
522options 	DRM_DEBUG	# Include debug printfs (slow)
523
524#
525# mse: Logitech and ATI InPort bus mouse ports
526
527device		mse
528hint.mse.0.at="isa"
529hint.mse.0.port="0x23c"
530hint.mse.0.irq="5"
531
532#
533# Network interfaces:
534#
535
536# ce:   Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor
537#       with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if
538#       NETGRAPH_CRONYX is configured)
539# cp:   Cronyx Tau-PCI sync single/dual/four port
540#       V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
541#       serial adaptor (requires sppp (default), or NETGRAPH if
542#       NETGRAPH_CRONYX is configured)
543# cs:   IBM Etherjet and other Crystal Semi CS89x0-based adapters
544# ctau: Cronyx Tau sync dual port V.35/RS-232/RS-530/RS-449/X.21/G.703/E1
545#       serial adaptor (requires sppp (default), or NETGRAPH if
546#       NETGRAPH_CRONYX is configured)
547# ed:   Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
548#       HP PC Lan+, various PC Card devices
549#       (requires miibus)
550# ie:   AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
551#       Intel EtherExpress
552# ipw:	Intel PRO/Wireless 2100 IEEE 802.11 adapter
553# iwi:	Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters
554# iwn:	Intel Wireless WiFi Link 4965AGN 802.11 network adapters
555# nfe:	nVidia nForce MCP on-board Ethernet Networking (BSD open source)
556# nve:	nVidia nForce MCP on-board Ethernet Networking
557# sbni: Granch SBNI12-xx ISA and PCI adapters
558# wl:   Lucent Wavelan (ISA card only).
559# wpi:	Intel 3945ABG Wireless LAN controller
560
561# Order for ISA/EISA devices is important here
562
563device		ce
564device		cp
565device		cs
566hint.cs.0.at="isa"
567hint.cs.0.port="0x300"
568device		ctau
569hint.ctau.0.at="isa"
570hint.ctau.0.port="0x240"
571hint.ctau.0.irq="15"
572hint.ctau.0.drq="7"
573#options 	NETGRAPH_CRONYX		# Enable NETGRAPH support for Cronyx adapter(s)
574device		ed
575options 	ED_3C503
576options 	ED_HPP
577options 	ED_SIC
578hint.ed.0.at="isa"
579hint.ed.0.port="0x280"
580hint.ed.0.irq="5"
581hint.ed.0.maddr="0xd8000"
582device		ie			# Hints only required for Starlan
583hint.ie.2.at="isa"
584hint.ie.2.port="0x300"
585hint.ie.2.irq="5"
586hint.ie.2.maddr="0xd0000"
587device		iwi
588device		iwn
589device		ipw
590# Hint for the i386-only ISA front-end of le(4).
591hint.le.0.at="isa"
592hint.le.0.port="0x280"
593hint.le.0.irq="10"
594hint.le.0.drq="0"
595device		nfe		# nVidia nForce MCP on-board Ethernet Networking
596device		nve		# nVidia nForce MCP on-board Ethernet Networking
597device		sbni
598hint.sbni.0.at="isa"
599hint.sbni.0.port="0x210"
600hint.sbni.0.irq="0xefdead"
601hint.sbni.0.flags="0"
602device		wl
603hint.wl.0.at="isa"
604hint.wl.0.port="0x300"
605options 	WLCACHE		# enables the signal-strength cache
606options 	WLDEBUG		# enables verbose debugging output
607device		wpi
608
609#
610# ATA raid adapters
611#
612device		pst
613
614#
615# Areca 11xx and 12xx series of SATA II RAID controllers.
616# CAM is required.
617#
618device		arcmsr		# Areca SATA II RAID
619
620#
621# 3ware 9000 series PATA/SATA RAID controller driver and options.
622# The driver is implemented as a SIM, and so, needs the CAM infrastructure.
623#
624options 	TWA_DEBUG		# 0-10; 10 prints the most messages.
625options 	TWA_FLASH_FIRMWARE	# firmware image bundled when defined.
626device		twa			# 3ware 9000 series PATA/SATA RAID
627
628#
629# SCSI host adapters:
630#
631# ncv: NCR 53C500 based SCSI host adapters.
632# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
633# stg: TMC 18C30, 18C50 based SCSI host adapters.
634
635device		ncv
636device		nsp
637device		stg
638hint.stg.0.at="isa"
639hint.stg.0.port="0x140"
640hint.stg.0.port="11"
641
642#
643# Adaptec FSA RAID controllers, including integrated DELL controllers,
644# the Dell PERC 2/QC and the HP NetRAID-4M
645device		aac
646device		aacp	# SCSI Passthrough interface (optional, CAM required)
647
648# The 'asr' driver provides support for current DPT/Adaptec SCSI RAID
649# controllers (SmartRAID V and VI and later).
650# These controllers require the CAM infrastructure.
651#
652device		asr
653
654#
655# Highpoint RocketRAID 182x.
656device		hptmv
657
658#
659# Highpoint RocketRAID.  Supports RR172x, RR222x, RR2240, RR232x, RR2340,
660# RR2210, RR174x, RR2522, RR231x, RR230x.
661device		hptrr
662
663#
664# Highpoint RocketRaid 3xxx series SATA RAID
665device		hptiop
666
667#
668# IBM (now Adaptec) ServeRAID controllers
669device		ips
670
671#
672# SafeNet crypto driver: can be moved to the MI NOTES as soon as
673# it's tested on a big-endian machine
674#
675device		safe		# SafeNet 1141
676options 	SAFE_DEBUG	# enable debugging support: hw.safe.debug
677options 	SAFE_RNDTEST	# enable rndtest support
678
679#
680# glxsb is a driver for the Security Block in AMD Geode LX processors.
681# Requires 'device crypto'.
682#
683device		glxsb		# AMD Geode LX Security Block
684
685#####################################################################
686
687#
688# Miscellaneous hardware:
689#
690# apm: Laptop Advanced Power Management (experimental)
691# ipmi: Intelligent Platform Management Interface
692# smapi: System Management Application Program Interface driver
693# smbios: DMI/SMBIOS entry point
694# vpd: Vital Product Data kernel interface
695# pmtimer: Adjust system timer at wakeup time
696# pbio: Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724)
697# spic: Sony Programmable I/O controller (VAIO notebooks)
698# asmc: Apple System Management Controller
699# si: Specialix International SI/XIO or SX intelligent serial card driver
700
701# Notes on APM
702#  The flags takes the following meaning for apm0:
703#    0x0020  Statclock is broken.
704
705# Notes on the Specialix SI/XIO driver:
706#  The host card is memory, not IO mapped.
707#  The Rev 1 host cards use a 64K chunk, on a 32K boundary.
708#  The Rev 2 host cards use a 32K chunk, on a 32K boundary.
709#  The cards can use an IRQ of 11, 12 or 15.
710
711# Notes on the Sony Programmable I/O controller
712#  This is a temporary driver that should someday be replaced by something
713#  that hooks into the ACPI layer.  The device is hooked to the PIIX4's
714#  General Device 10 decoder, which means you have to fiddle with PCI
715#  registers to map it in, even though it is otherwise treated here as
716#  an ISA device.  At the moment, the driver polls, although the device
717#  is capable of generating interrupts.  It largely undocumented.
718#  The port location in the hint is where you WANT the device to be
719#  mapped.  0x10a0 seems to be traditional.  At the moment the jogdial
720#  is the only thing truly supported, but apparently a fair percentage
721#  of the Vaio extra features are controlled by this device.
722
723device		apm
724hint.apm.0.flags="0x20"
725device		ipmi
726device		smapi
727device		smbios
728device		vpd
729device		pmtimer
730device		pbio
731hint.pbio.0.at="isa"
732hint.pbio.0.port="0x360"
733device		spic
734hint.spic.0.at="isa"
735hint.spic.0.port="0x10a0"
736device		asmc
737#device		si
738
739#
740# Laptop/Notebook options:
741#
742# See also:
743#  apm under `Miscellaneous hardware'
744# above.
745
746# For older notebooks that signal a powerfail condition (external
747# power supply dropped, or battery state low) by issuing an NMI:
748
749options 	POWERFAIL_NMI	# make it beep instead of panicing
750
751#
752# I2C Bus
753#
754# Philips i2c bus support is provided by the `iicbus' device.
755#
756# Supported interfaces:
757# pcf	Philips PCF8584 ISA-bus controller
758#
759device		pcf
760hint.pcf.0.at="isa"
761hint.pcf.0.port="0x320"
762hint.pcf.0.irq="5"
763
764#
765# Hardware watchdog timers:
766#
767# ichwd: Intel ICH watchdog timer
768# amdsbwd: AMD SB7xx watchdog timer
769#
770device		ichwd
771device		amdsbwd
772
773#
774# Temperature sensors:
775#
776# coretemp: on-die sensor on Intel Core and newer CPUs
777# amdtemp: on-die sensor on AMD K8/K10/K11 CPUs
778#
779device		coretemp
780device		amdtemp
781
782#
783# CPU control pseudo-device. Provides access to MSRs, CPUID info and
784# microcode update feature.
785#
786device		cpuctl
787
788#
789# System Management Bus (SMB)
790#
791options 	ENABLE_ALART		# Control alarm on Intel intpm driver
792
793#
794# Set the number of PV entries per process.  Increasing this can
795# stop panics related to heavy use of shared memory.  However, that can
796# (combined with large amounts of physical memory) cause panics at
797# boot time due the kernel running out of VM space.
798#
799# If you're tweaking this, you might also want to increase the sysctls
800# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
801#
802# The value below is the one more than the default.
803#
804options 	PMAP_SHPGPERPROC=201
805
806#
807# Change the size of the kernel virtual address space.  Due to
808# constraints in loader(8) on i386, this must be a multiple of 4.
809# 256 = 1 GB of kernel address space.  Increasing this also causes
810# a reduction of the address space in user processes.  512 splits
811# the 4GB cpu address space in half (2GB user, 2GB kernel).  For PAE
812# kernels, the value will need to be double non-PAE.  A value of 1024
813# for PAE kernels is necessary to split the address space in half.
814# This will likely need to be increased to handle memory sizes >4GB.
815# PAE kernels default to a value of 512.
816#
817options 	KVA_PAGES=260
818
819
820#####################################################################
821# ABI Emulation
822
823# Enable iBCS2 runtime support for SCO and ISC binaries
824options 	IBCS2
825
826# Emulate spx device for client side of SVR3 local X interface
827options 	SPX_HACK
828
829# Enable Linux ABI emulation
830options 	COMPAT_LINUX
831
832# Enable i386 a.out binary support
833options 	COMPAT_AOUT
834
835# Enable the linux-like proc filesystem support (requires COMPAT_LINUX
836# and PSEUDOFS)
837options 	LINPROCFS
838
839#Enable the linux-like sys filesystem support (requires COMPAT_LINUX
840# and PSEUDOFS)
841options 	LINSYSFS
842
843#
844# SysVR4 ABI emulation
845#
846# The svr4 ABI emulator can be statically compiled into the kernel or loaded as
847# a KLD module.
848# The STREAMS network emulation code can also be compiled statically or as a
849# module.  If loaded as a module, it must be loaded before the svr4 module
850# (the /usr/sbin/svr4 script does this for you).  If compiling statically,
851# the `streams' device must be configured into any kernel which also
852# specifies COMPAT_SVR4.  It is possible to have a statically-configured
853# STREAMS device and a dynamically loadable svr4 emulator;  the /usr/sbin/svr4
854# script understands that it doesn't need to load the `streams' module under
855# those circumstances.
856# Caveat:  At this time, `options KTRACE' is required for the svr4 emulator
857# (whether static or dynamic).
858#
859options 	COMPAT_SVR4	# build emulator statically
860options 	DEBUG_SVR4	# enable verbose debugging
861device		streams		# STREAMS network driver (required for svr4).
862
863# Enable NDIS binary driver support
864options 	NDISAPI
865device		ndis
866
867# Linux-specific pseudo devices support
868device		lindev
869
870
871#####################################################################
872# VM OPTIONS
873
874# Disable the 4 MByte page PSE CPU feature.  The PSE feature allows the
875# kernel to use 4 MByte pages to map the kernel instead of 4k pages.
876# This saves on the amount of memory needed for page tables needed to
877# map the kernel.  You should only disable this feature as a temporary
878# workaround if you are having problems with it enabled.
879#
880#options 	DISABLE_PSE
881
882# Disable the global pages PGE CPU feature.  The PGE feature allows pages
883# to be marked with the PG_G bit.  TLB entries for these pages are not
884# flushed from the cache when %cr3 is reloaded.  This can make context
885# switches less expensive.  You should only disable this feature as a
886# temporary workaround if you are having problems with it enabled.
887#
888#options 	DISABLE_PG_G
889
890# KSTACK_PAGES is the number of memory pages to assign to the kernel
891# stack of each thread.
892
893options 	KSTACK_PAGES=3
894
895#####################################################################
896
897# More undocumented options for linting.
898# Note that documenting these are not considered an affront.
899
900options 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
901
902options 	I586_PMC_GUPROF=0x70000
903options 	KBDIO_DEBUG=2
904options 	KBD_MAXRETRY=4
905options 	KBD_MAXWAIT=6
906options 	KBD_RESETDELAY=201
907
908options 	PSM_DEBUG=1
909
910options 	TIMER_FREQ=((14318182+6)/12)
911
912options 	VM_KMEM_SIZE
913options 	VM_KMEM_SIZE_MAX
914options 	VM_KMEM_SIZE_SCALE
915
916
917# asr old ioctls support, needed by raidutils
918
919options 	ASR_COMPAT
920