NOTES revision 144512
1111314Snyan#
2111314Snyan# NOTES -- Lines that can be cut/pasted into kernel and hints configs.
3111314Snyan#
4111314Snyan# This file contains machine dependent kernel configuration notes.  For
5111314Snyan# machine independent notes, look in /sys/conf/NOTES.
6111314Snyan#
7111314Snyan# $FreeBSD: head/sys/pc98/conf/NOTES 144512 2005-04-01 22:59:25Z imp $
8111314Snyan#
9111314Snyan
10111314Snyan#
11111314Snyan# This directive is mandatory; it defines the architecture to be
12111314Snyan# configured for; in this case, the 386 family based PC-98 and
13111314Snyan# compatibles.
14111314Snyan#
15144512Simpmachine		pc98 i386
16111314Snyanoptions 	PC98
17111314Snyan
18125234Snyan#
19127520Snyan# We want LINT to cover profiling as well.
20111314Snyanprofile         2
21111314Snyan
22111314Snyan
23111314Snyan#####################################################################
24111314Snyan# SMP OPTIONS:
25111314Snyan#
26122755Snyan# The apic device enables the use of the I/O APIC for interrupt delivery.
27122755Snyan# The apic device can be used in both UP and SMP kernels, but is required
28122755Snyan# for SMP kernels.  Thus, the apic device is not strictly an SMP option,
29122755Snyan# but it is a prerequisite for SMP.
30111314Snyan#
31111314Snyan# Notes:
32111314Snyan#
33122755Snyan# By default, mixed mode is used to route IRQ0 from the AT timer via
34122755Snyan# the 8259A master PIC through the ExtINT pin on the first I/O APIC.
35122755Snyan# This can be disabled via the NO_MIXED_MODE option.  In that case,
36122755Snyan# IRQ0 will be routed via an intpin on the first I/O APIC.  Not all
37122755Snyan# motherboards hook IRQ0 up to the first I/O APIC even though their
38122755Snyan# MP table or MADT may claim to do so.  That is why mixed mode is
39122755Snyan# enabled by default.
40111314Snyan#
41111314Snyan
42111314Snyan# Mandatory:
43122056Snyandevice		apic			# I/O apic
44124795Snyan
45124795Snyan# Optional:
46122755Snyanoptions 	NO_MIXED_MODE		# Disable use of mixed mode
47111314Snyan
48142783Snyan#
49142783Snyan# Watchdog routines.
50142783Snyan#
51142783Snyanoptions 	MP_WATCHDOG
52142783Snyan
53111314Snyan
54111314Snyan#####################################################################
55111314Snyan# CPU OPTIONS
56111314Snyan
57111314Snyan#
58111314Snyan# You must specify at least one CPU (the one you intend to run on);
59111314Snyan# deleting the specification for CPUs you don't need to use may make
60111314Snyan# parts of the system run faster.
61111314Snyan#
62111314Snyancpu		I486_CPU
63111314Snyancpu		I586_CPU		# aka Pentium(tm)
64111314Snyancpu		I686_CPU		# aka Pentium Pro(tm)
65111314Snyan
66111314Snyan#
67111314Snyan# Options for CPU features.
68111314Snyan#
69124795Snyan# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
70124795Snyan# CPU if CPU supports it.  The default is double-clock mode on
71124795Snyan# BlueLightning CPU box.
72124795Snyan#
73111314Snyan# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
74111314Snyan# BlueLightning CPU.  It works only with Cyrix FPU, and this option
75111314Snyan# should not be used with Intel FPU.
76111314Snyan#
77111314Snyan# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
78111314Snyan#
79111314Snyan# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
80111314Snyan# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
81111314Snyan# Otherwise, the NO_LOCK bit of CCR1 is cleared.  (NOTE 3)
82111314Snyan#
83124795Snyan# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
84124795Snyan# mapped mode.  Default is 2-way set associative mode.
85124795Snyan#
86127520Snyan# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
87111314Snyan# reorder).  This option should not be used if you use memory mapped
88111314Snyan# I/O device(s).
89111314Snyan#
90125234Snyan# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
91137526Snyan# machines.  VmWare 3.x seems to emulate this instruction poorly, causing
92137526Snyan# the guest OS to run very slowly.  This problem appears to be fixed in
93137526Snyan# VmWare 4.x, at least in version 4.5.2, so that enabling this option with
94137526Snyan# VmWare 4.x will result in locking operations to be 20-30 times slower.
95137526Snyan# Enabling this with an SMP kernel will cause the kernel to be unusable.
96124795Snyan#
97127520Snyan# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
98124795Snyan#
99111314Snyan# CPU_ENABLE_SSE enables SSE/MMX2 instructions support.  This is default
100111314Snyan# on I686_CPU and above.
101111314Snyan#
102111314Snyan# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
103111314Snyan#
104111314Snyan# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
105111314Snyan# for i386 machines.
106111314Snyan#
107111314Snyan# CPU_IORT defines I/O clock delay time (NOTE 1).  Default values of
108111314Snyan# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
109111314Snyan# (no clock delay).
110111314Snyan#
111125234Snyan# CPU_L2_LATENCY specifies the L2 cache latency value.  This option is used
112111314Snyan# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
113111314Snyan# The default value is 5.
114111314Snyan#
115111314Snyan# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
116111314Snyan# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
117111314Snyan# 1).
118111314Snyan#
119111314Snyan# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs.  This option
120111314Snyan# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
121111314Snyan# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
122111314Snyan#
123111314Snyan# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
124111314Snyan#
125111314Snyan# CPU_SUSP_HLT enables suspend on HALT.  If this option is set, CPU
126111314Snyan# enters suspend mode following execution of HALT instruction.
127111314Snyan#
128111314Snyan# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
129111314Snyan#
130111314Snyan# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
131125234Snyan# K5/K6/K6-2 CPUs.
132111314Snyan#
133111314Snyan# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
134111314Snyan# flush at hold state.
135111314Snyan#
136111314Snyan# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
137111314Snyan# without cache flush at hold state, and (2) write-back CPU cache on
138111314Snyan# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
139111314Snyan#
140111314Snyan# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
141111314Snyan# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
142111314Snyan# executed.  This option is only needed if I586_CPU is also defined,
143111314Snyan# and should be included for any non-Pentium CPU that defines it.
144111314Snyan#
145111314Snyan# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
146111314Snyan# which indicates that the 15-16MB range is *definitely* not being
147111314Snyan# occupied by an ISA memory hole.
148111314Snyan#
149111314Snyan# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
150111314Snyan# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
151111314Snyan# These options may crash your system.
152111314Snyan#
153111314Snyan# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
154111314Snyan# in write-through mode when revision < 2.7.  If revision of Cyrix
155111314Snyan# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
156111314Snyan#
157111314Snyan# NOTE 3: This option may cause failures for software that requires
158111314Snyan# locked cycles in order to operate correctly.
159111314Snyan#
160124795Snyanoptions 	CPU_BLUELIGHTNING_3X
161111314Snyanoptions 	CPU_BLUELIGHTNING_FPU_OP_CACHE
162111314Snyanoptions 	CPU_BTB_EN
163111314Snyanoptions 	CPU_DIRECT_MAPPED_CACHE
164111314Snyanoptions 	CPU_DISABLE_5X86_LSSER
165124795Snyanoptions 	CPU_DISABLE_CMPXCHG
166124795Snyan#options 	CPU_DISABLE_SSE
167111314Snyanoptions 	CPU_ENABLE_SSE
168111314Snyanoptions 	CPU_FASTER_5X86_FPU
169111314Snyanoptions 	CPU_I486_ON_386
170111314Snyanoptions 	CPU_IORT
171111314Snyanoptions 	CPU_L2_LATENCY=5
172111314Snyanoptions 	CPU_LOOP_EN
173111314Snyanoptions 	CPU_PPRO2CELERON
174111314Snyanoptions 	CPU_RSTK_EN
175111314Snyanoptions 	CPU_SUSP_HLT
176111314Snyanoptions 	CPU_UPGRADE_HW_CACHE
177111314Snyanoptions 	CPU_WT_ALLOC
178111314Snyanoptions 	CYRIX_CACHE_WORKS
179111314Snyanoptions 	CYRIX_CACHE_REALLY_WORKS
180111314Snyan#options 	NO_F00F_HACK
181111314Snyan
182111314Snyan# Debug options
183124795Snyanoptions 	NPX_DEBUG	# enable npx debugging
184111314Snyan
185111314Snyan#
186111314Snyan# PERFMON causes the driver for Pentium/Pentium Pro performance counters
187111314Snyan# to be compiled.  See perfmon(4) for more information.
188111314Snyan#
189111314Snyanoptions 	PERFMON
190111314Snyan
191111314Snyan
192111314Snyan#####################################################################
193111314Snyan# NETWORKING OPTIONS
194111314Snyan
195111314Snyan#
196111314Snyan# DEVICE_POLLING adds support for mixed interrupt-polling handling
197111314Snyan# of network device drivers, which has significant benefits in terms
198111314Snyan# of robustness to overloads and responsivity, as well as permitting
199111314Snyan# accurate scheduling of the CPU time between kernel network processing
200124795Snyan# and other activities.  The drawback is a moderate (up to 1/HZ seconds)
201111314Snyan# potential increase in response times.
202111314Snyan# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
203111314Snyan# to achieve smoother behaviour.
204111314Snyan# Additionally, you can enable/disable polling at runtime with the
205111314Snyan# sysctl variable kern.polling.enable (defaults off), and select
206111314Snyan# the CPU fraction reserved to userland with the sysctl variable
207111314Snyan# kern.polling.user_frac (default 50, range 0..100).
208111314Snyan#
209124408Snyan# Not all device drivers support this mode of operation at the time of
210124408Snyan# this writing.  See polling(4) for more details.
211111314Snyan
212111314Snyanoptions 	DEVICE_POLLING
213111314Snyan
214111314Snyan
215111314Snyan#####################################################################
216111314Snyan# CLOCK OPTIONS
217111314Snyan
218111314Snyan# The following options are used for debugging clock behavior only, and
219111314Snyan# should not be used for production systems.
220111314Snyan
221123984Sbde# CLK_CALIBRATION_LOOP causes clock calibration to be run in a loop at
222123984Sbde# startup until the user presses a key.  (The i8254 clock is always
223123984Sbde# calibrated relative to the RTC (mc146818a) and this option causes the
224123984Sbde# calibration to be repeated.)
225111314Snyanoptions 	CLK_CALIBRATION_LOOP
226111314Snyan
227123984Sbde# CLK_USE_I8254_CALIBRATION causes the calibrated frequency of the i8254
228123984Sbde# clock to actually be used.
229111314Snyanoptions 	CLK_USE_I8254_CALIBRATION
230111314Snyan
231111314Snyan
232111314Snyan#####################################################################
233111314Snyan# MISCELLANEOUS DEVICES AND OPTIONS
234111314Snyan
235111314Snyandevice		speaker		#Play IBM BASIC-style noises out your speaker
236111314Snyanhint.speaker.0.at="isa"
237111314Snyanhint.speaker.0.port="0x35"
238124795Snyandevice		gzip		#Exec gzipped a.out's.  REQUIRES COMPAT_AOUT!
239111314Snyandevice		apm_saver	# Requires APM
240111314Snyan
241111314Snyan
242111314Snyan#####################################################################
243111314Snyan# HARDWARE BUS CONFIGURATION
244111314Snyan
245111314Snyan#
246111314Snyan# ISA bus
247111314Snyan#
248111314Snyandevice		isa
249111314Snyan
250111314Snyan#
251111314Snyan# Options for `isa':
252111314Snyan#
253111314Snyan# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
254111314Snyan# interrupt controller.  This saves about 0.7-1.25 usec for each interrupt.
255111314Snyan# This option breaks suspend/resume on some portables.
256111314Snyan#
257111314Snyan# MAXMEM specifies the amount of RAM on the machine; if this is not
258111314Snyan# specified, FreeBSD will first read the amount of memory from the CMOS
259111314Snyan# RAM, so the amount of memory will initially be limited to 64MB or 16MB
260111314Snyan# depending on the BIOS.  If the BIOS reports 64MB, a memory probe will
261111314Snyan# then attempt to detect the installed amount of RAM.  If this probe
262111314Snyan# fails to detect >64MB RAM you will have to use the MAXMEM option.
263111314Snyan# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
264111314Snyan# be 131072 (128 * 1024).
265111314Snyan#
266111314Snyan# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
267111314Snyan# reset the CPU for reboot.  This is needed on some systems with broken
268111314Snyan# keyboard controllers.
269111314Snyan
270111314Snyanoptions 	AUTO_EOI_1
271111314Snyan
272111314Snyanoptions 	MAXMEM=(128*1024)
273111314Snyan#options 	BROKEN_KEYBOARD_RESET
274111314Snyanoptions 	EPSON_BOUNCEDMA
275111314Snyanoptions 	EPSON_MEMWIN
276111314Snyan
277111314Snyan#
278111314Snyan# PCI bus & PCI options:
279111314Snyan#
280111314Snyandevice		pci
281111314Snyan
282111314Snyan#
283111314Snyan# AGP GART support
284111314Snyandevice		agp
285111314Snyan
286111314Snyan
287111314Snyan#####################################################################
288111314Snyan# HARDWARE DEVICE CONFIGURATION
289111314Snyan
290111314Snyan# PC98 keyboard
291111314Snyandevice		pckbd
292111314Snyanhint.pckbd.0.at="isa"
293111314Snyanhint.pckbd.0.port="0x041"
294111314Snyanhint.pckbd.0.irq="1"
295111314Snyan
296111314Snyan# These options are valid for other keyboard drivers as well.
297111314Snyanoptions 	KBD_DISABLE_KEYMAP_LOAD	# refuse to load a keymap
298111314Snyanoptions 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
299111314Snyan
300111314Snyan# GDC screen
301111314Snyandevice		gdc
302111314Snyanhint.gdc.0.at="isa"
303111314Snyanoptions 	LINE30
304111314Snyan
305111314Snyan#
306131815Snyan# The Numeric Processing eXtension driver.  This is non-optional.
307111314Snyandevice		npx
308111314Snyan
309111314Snyan#
310111314Snyan# `flags' for npx0:
311111314Snyan#	0x01	don't use the npx registers to optimize bcopy.
312111314Snyan#	0x02	don't use the npx registers to optimize bzero.
313111314Snyan#	0x04	don't use the npx registers to optimize copyin or copyout.
314111314Snyan# The npx registers are normally used to optimize copying and zeroing when
315111314Snyan# all of the following conditions are satisfied:
316111314Snyan#	I586_CPU is an option
317111314Snyan#	the cpu is an i586 (perhaps not a Pentium)
318111314Snyan#	the probe for npx0 succeeds
319111314Snyan#	INT 16 exception handling works.
320111314Snyan# Then copying and zeroing using the npx registers is normally 30-100% faster.
321111314Snyan# The flags can be used to control cases where it doesn't work or is slower.
322140371Sru# Setting them at boot time using hints works right (the optimizations
323111314Snyan# are not used until later in the bootstrap when npx0 is attached).
324111314Snyan# Flag 0x08 automatically disables the i586 optimized routines.
325111314Snyan#
326111314Snyan
327111314Snyan#
328111314Snyan# Optional devices:
329111314Snyan#
330111314Snyan
331124795Snyan# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support.  This will create
332124795Snyan# the /dev/3dfx0 device to work with glide implementations.  This should get
333124795Snyan# linked to /dev/3dfx and /dev/voodoo.  Note that this is not the same as
334111314Snyan# the tdfx DRI module from XFree86 and is completely unrelated.
335111314Snyan#
336111314Snyan# To enable Linuxulator support, one must also include COMPAT_LINUX in the
337124795Snyan# config as well, or you will not have the dependencies.  The other option
338111314Snyan# is to load both as modules.
339111314Snyan
340126708Snyandevice		tdfx			# Enable 3Dfx Voodoo support
341111314Snyanoptions 	TDFX_LINUX		# Enable Linuxulator support
342111314Snyan
343111314Snyan# DRM options:
344111314Snyan# mgadrm:    AGP Matrox G200, G400, G450, G550
345112034Snyan# r128drm:   ATI Rage 128
346112034Snyan# radeondrm: ATI Radeon up to 9000/9100
347119985Snyan# sisdrm:    SiS 300/305,540,630
348119985Snyan# tdfxdrm:   3dfx Voodoo 3/4/5 and Banshee
349112034Snyan# DRM_DEBUG: include debug printfs, very slow
350111314Snyan#
351112034Snyan# mga requires AGP in the kernel, and it is recommended
352112034Snyan# for AGP r128 and radeon cards.
353111314Snyan
354111314Snyandevice		mgadrm
355134634Srudevice		r128drm
356111314Snyandevice		radeondrm
357119985Snyandevice		sisdrm
358111314Snyandevice		tdfxdrm
359111314Snyan
360111314Snyanoptions 	DRM_DEBUG
361111314Snyan
362111314Snyan#
363111314Snyan# Bus mouse
364111314Snyan#
365111314Snyandevice		mse
366111314Snyanhint.mse.0.at="isa"
367111314Snyanhint.mse.0.port="0x7fd9"
368111314Snyanhint.mse.0.irq="13"
369111314Snyan
370111314Snyan#
371111314Snyan# Network interfaces:
372111314Snyan#
373111314Snyan
374111314Snyan# ar:   Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver
375111314Snyan#       (requires sppp)
376129384Snyan# cp:   Cronyx Tau-PCI sync single/dual/four port
377129384Snyan#       V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
378129384Snyan#       serial adaptor (requires sppp (default), or NETGRAPH if
379129384Snyan#       NETGRAPH_CRONYX is configured)
380111314Snyan# ed:   Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
381125234Snyan#       HP PC Lan+, various PC Card devices (refer to etc/defaults/pccard.conf)
382111314Snyan#       (requires miibus)
383111314Snyan# ie:   AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
384111314Snyan#       Intel EtherExpress
385111314Snyan# lnc:  Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL, AMD Am7990 and
386111314Snyan#       Am79C960)
387126708Snyan# oltr: Olicom ISA token-ring adapters OC-3115, OC-3117, OC-3118 and OC-3133.
388111314Snyan#       Olicom PCI token-ring adapters OC-3136, OC-3137, OC-3139, OC-3140,
389126708Snyan#       OC-3141, OC-3540 and OC-3250.
390126708Snyan# sbni: Granch SBNI12-xx ISA and PCI adapters
391111314Snyan# sr:   RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
392126708Snyan# wl:   Lucent Wavelan (ISA card only).
393111314Snyan
394111314Snyan# Order for ISA/EISA devices is important here
395111314Snyan
396111314Snyandevice		ar
397129384Snyandevice		cp
398111314Snyandevice		ed
399111314Snyan#options 	ED_NO_MIIBUS		# Disable ed miibus support
400111314Snyanhint.ed.0.at="isa"
401111314Snyanhint.ed.0.port="0x280"
402111314Snyanhint.ed.0.irq="5"
403111314Snyanhint.ed.0.maddr="0xd8000"
404112840Smdodddevice		ie			# Hints only required for Starlan
405112840Smdoddhint.ie.2.at="isa"
406112840Smdoddhint.ie.2.port="0x300"
407112840Smdoddhint.ie.2.irq="5"
408112840Smdoddhint.ie.2.maddr="0xd0000"
409111314Snyandevice		lnc
410111314Snyanhint.lnc.0.at="isa"
411111314Snyanhint.lnc.0.port="0x280"
412111314Snyanhint.lnc.0.irq="10"
413111314Snyanhint.lnc.0.drq="0"
414111314Snyandevice		sbni
415111314Snyanhint.sbni.0.at="isa"
416111314Snyanhint.sbni.0.port="0x210"
417111314Snyanhint.sbni.0.irq="0xefdead"
418111314Snyanhint.sbni.0.flags="0"
419111314Snyandevice		snc
420111314Snyanhint.snc.0.at="isa"
421111314Snyanhint.snc.0.port="0x888"
422111314Snyanhint.snc.0.irq="6"
423111314Snyanhint.snc.0.maddr="0xc0000"
424111314Snyandevice		sr
425111314Snyandevice		oltr
426111314Snyandevice		wl
427111314Snyanhint.wl.0.at="isa"
428111314Snyanhint.wl.0.port="0x300"
429111314Snyanoptions 	WLCACHE		# enables the signal-strength cache
430111314Snyanoptions 	WLDEBUG		# enables verbose debugging output
431111314Snyan
432125234Snyan#
433111314Snyan# SCSI host adapters:
434125234Snyan#
435111314Snyan# ct: WD33C93[ABC] based SCSI host adapters.
436111314Snyan# ncv: NCR 53C500 based SCSI host adapters.
437111314Snyan# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
438111314Snyan# stg: TMC 18C30, 18C50 based SCSI host adapters.
439111314Snyan
440111314Snyandevice		ct
441111314Snyanhint.ct.0.at="isa"
442126708Snyandevice		ncv
443126708Snyandevice		nsp
444126708Snyandevice		stg
445111314Snyan
446111314Snyan#
447117918Snyan# SafeNet crypto driver: can be moved to the MI NOTES as soon as
448117918Snyan# it's tested on a big-endian machine
449117918Snyan#
450117918Snyandevice		safe		# SafeNet 1141
451142783Snyanoptions 	SAFE_DEBUG	# enable debugging support: hw.safe.debug
452142783Snyanoptions 	SAFE_RNDTEST	# enable rndtest support
453117918Snyan
454117918Snyan#####################################################################
455117918Snyan
456117918Snyan#
457111314Snyan# Miscellaneous hardware:
458111314Snyan#
459111314Snyan# apm: Laptop Advanced Power Management (experimental)
460111314Snyan# pmtimer: Timer device driver for power management events (APM or ACPI)
461124795Snyan# cy: Cyclades serial driver
462111314Snyan# digi: Digiboard driver
463111314Snyan
464111314Snyan# Notes on APM
465111314Snyan#  The flags takes the following meaning for apm0:
466111314Snyan#    0x0020  Statclock is broken.
467111314Snyan
468111314Snyandevice		apm
469111314Snyanhint.apm.0.flags="0x20"
470111314Snyandevice		canbus
471111314Snyandevice		canbepm
472128876Sbdedevice		cy
473127945Snyanoptions 	CY_PCI_FASTINTR		# Use with cy_pci unless irq is shared
474111314Snyandevice		digi
475111314Snyan# BIOS & FEP/OS components of device digi.
476111314Snyandevice		digi_CX
477111314Snyandevice		digi_CX_PCI
478111314Snyandevice		digi_EPCX
479111314Snyandevice		digi_EPCX_PCI
480111314Snyandevice		digi_Xe
481111314Snyandevice		digi_Xem
482111314Snyandevice		digi_Xr
483124795Snyandevice		olpt
484124795Snyanhint.olpt.0.at="isa"
485124795Snyanhint.olpt.0.port="0x040"
486128221Simpdevice		pmc
487128221Simphint.pmc.0.at="isa"
488128221Simphint.pmc.0.port="0x8f0"
489128221Simpdevice		pmtimer			# Adjust system timer at wakeup time
490128221Simp# sx device is i386 and pc98 only at the moment.
491128221Simpdevice		sx
492128221Simpoptions 	SX_DEBUG
493111314Snyan
494111314Snyan#
495111314Snyan# Laptop/Notebook options:
496111314Snyan#
497111314Snyan# See also:
498111314Snyan#  apm under `Miscellaneous hardware'
499111314Snyan# above.
500111314Snyan
501111314Snyan# For older notebooks that signal a powerfail condition (external
502111314Snyan# power supply dropped, or battery state low) by issuing an NMI:
503111314Snyan
504111314Snyanoptions 	POWERFAIL_NMI	# make it beep instead of panicing
505111314Snyan
506111314Snyan#
507111314Snyan# PC Card/PCMCIA
508111314Snyan# (OLDCARD)
509111314Snyan#
510111314Snyan# card: pccard slots
511111314Snyan# pcic: isa/pccard bridge
512111314Snyandevice		pcic
513111314Snyanhint.pcic.0.at="isa"
514111314Snyan#hint.pcic.1.at="isa"
515132155Sdesdevice		card
516111314Snyan
517111314Snyan#---------------------------------------------------------------------------
518111314Snyan# ISDN4BSD
519111314Snyan#
520111314Snyan# See /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd.
521111314Snyan#
522111314Snyan# i4b passive ISDN cards support contains the following hardware drivers:
523111314Snyan#
524111314Snyan#	isic  - Siemens/Infineon ISDN ISAC/HSCX/IPAC chipset driver
525111314Snyan#	iwic  - Winbond W6692 PCI bus ISDN S/T interface controller
526111314Snyan#	ifpi  - AVM Fritz!Card PCI driver
527111314Snyan#	ifpi2  - AVM Fritz!Card PCI version 2 driver
528111314Snyan#	ihfc  - Cologne Chip HFC ISA/ISA-PnP chipset driver
529125234Snyan#	ifpnp - AVM Fritz!Card PnP driver
530111314Snyan#	itjc  - Siemens ISAC / TJNet Tiger300/320 chipset
531111314Snyan#
532111314Snyan# i4b active ISDN cards support contains the following hardware drivers:
533111314Snyan#
534111314Snyan#	iavc  - AVM B1 PCI, AVM B1 ISA, AVM T1
535111314Snyan#
536111314Snyan# Note that the ``options'' (if given) and ``device'' lines must BOTH
537111314Snyan# be uncommented to enable support for a given card !
538111314Snyan#
539111314Snyan# In addition to a hardware driver (and probably an option) the mandatory
540125234Snyan# ISDN protocol stack devices and the mandatory support device must be
541111314Snyan# enabled as well as one or more devices from the optional devices section.
542111314Snyan#
543111314Snyan#---------------------------------------------------------------------------
544111314Snyan#	isic driver (Siemens/Infineon chipsets)
545111314Snyan#
546111314Snyandevice	isic
547111314Snyan#
548111314Snyan# PCI bus Cards:
549111314Snyan# --------------
550111314Snyan#
551111314Snyan# ELSA MicroLink ISDN/PCI (same as ELSA QuickStep 1000pro PCI)
552111314Snyanoptions 	ELSA_QS1PCI
553111314Snyan#
554111314Snyan#---------------------------------------------------------------------------
555111314Snyan#	ifpnp driver for AVM Fritz!Card PnP
556111314Snyan#
557111314Snyan# AVM Fritz!Card PnP
558126708Snyandevice		ifpnp
559111314Snyan#
560111314Snyan#---------------------------------------------------------------------------
561111314Snyan#	ihfc driver for Cologne Chip ISA chipsets (experimental!)
562111314Snyan#
563111314Snyan# Teles 16.3c ISA PnP
564111314Snyan# AcerISDN P10 ISA PnP
565111314Snyan# TELEINT ISDN SPEED No.1
566126708Snyandevice		ihfc
567111314Snyan#
568111314Snyan#---------------------------------------------------------------------------
569111314Snyan#	ifpi driver for AVM Fritz!Card PCI
570111314Snyan#
571111314Snyan# AVM Fritz!Card PCI
572126708Snyandevice		ifpi
573111314Snyan#
574111314Snyan#---------------------------------------------------------------------------
575111314Snyan#	ifpi2 driver for AVM Fritz!Card PCI version 2
576111314Snyan#
577111314Snyan# AVM Fritz!Card PCI version 2
578134634Srudevice		ifpi2
579111314Snyan#
580111314Snyan#---------------------------------------------------------------------------
581111314Snyan#	iwic driver for Winbond W6692 chipset
582111314Snyan#
583111314Snyan# ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards)
584126708Snyandevice		iwic
585111314Snyan#
586111314Snyan#---------------------------------------------------------------------------
587125234Snyan#	itjc driver for Siemens ISAC / TJNet Tiger300/320 chipset
588111314Snyan#
589111314Snyan# Traverse Technologies NETjet-S
590111314Snyan# Teles PCI-TJ
591126708Snyandevice		itjc
592111314Snyan#
593111314Snyan#---------------------------------------------------------------------------
594111314Snyan#	iavc driver (AVM active cards, needs i4bcapi driver!)
595111314Snyan#
596126708Snyandevice		iavc
597111314Snyan#
598111314Snyan#---------------------------------------------------------------------------
599111314Snyan#	ISDN Protocol Stack - mandatory for all hardware drivers
600111314Snyan#
601111314Snyan# Q.921 / layer 2 - i4b passive cards D channel handling
602134634Srudevice		i4bq921
603111314Snyan#
604111314Snyan# Q.931 / layer 3 - i4b passive cards D channel handling
605134634Srudevice		i4bq931
606111314Snyan#
607111314Snyan# layer 4 - i4b common passive and active card handling
608134634Srudevice		i4b
609111314Snyan#
610111314Snyan#---------------------------------------------------------------------------
611111314Snyan#	ISDN devices - mandatory for all hardware drivers
612111314Snyan#
613111314Snyan# userland driver to do ISDN tracing (for passive cards only)
614134634Srudevice		i4btrc
615142783Snyanoptions 	NI4BTRC=4
616111314Snyan#
617111314Snyan# userland driver to control the whole thing
618134634Srudevice		i4bctl
619111314Snyan#
620111314Snyan#---------------------------------------------------------------------------
621111314Snyan#	ISDN devices - optional
622111314Snyan#
623111314Snyan# userland driver for access to raw B channel
624134634Srudevice		i4brbch
625142783Snyanoptions 	NI4BRBCH=4
626111314Snyan#
627111314Snyan# userland driver for telephony
628134634Srudevice		i4btel
629134634Sruoptions 	NI4BTEL=2
630111314Snyan#
631111314Snyan# network driver for IP over raw HDLC ISDN
632134634Srudevice		i4bipr
633134634Sruoptions 	NI4BIPR=4
634111314Snyan# enable VJ header compression detection for ipr i/f
635111314Snyanoptions 	IPR_VJ
636111314Snyan# enable logging of the first n IP packets to isdnd (n=32 here)
637111314Snyanoptions 	IPR_LOG=32
638111314Snyan#
639111314Snyan# network driver for sync PPP over ISDN; requires an equivalent
640111314Snyan# number of sppp device to be configured
641134634Srudevice		i4bisppp
642134634Sruoptions 	NI4BISPPP=4
643111314Snyan#
644111314Snyan# B-channel interface to the netgraph subsystem
645134634Srudevice		i4bing
646142783Snyanoptions 	NI4BING=2
647111314Snyan#
648111314Snyan# CAPI driver needed for active ISDN cards (see iavc driver above)
649134634Srudevice		i4bcapi
650111314Snyan#
651111314Snyan#---------------------------------------------------------------------------
652111314Snyan
653111314Snyan#
654111314Snyan# Set the number of PV entries per process.  Increasing this can
655124795Snyan# stop panics related to heavy use of shared memory.  However, that can
656111314Snyan# (combined with large amounts of physical memory) cause panics at
657111314Snyan# boot time due the kernel running out of VM space.
658111314Snyan#
659111314Snyan# If you're tweaking this, you might also want to increase the sysctls
660111314Snyan# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
661111314Snyan#
662111314Snyan# The value below is the one more than the default.
663111314Snyan#
664111314Snyanoptions 	PMAP_SHPGPERPROC=201
665111314Snyan
666111314Snyan#
667111314Snyan# Change the size of the kernel virtual address space.  Due to
668111314Snyan# constraints in loader(8) on i386, this must be a multiple of 4.
669111314Snyan# 256 = 1 GB of kernel address space.  Increasing this also causes
670111314Snyan# a reduction of the address space in user processes.  512 splits
671111314Snyan# the 4GB cpu address space in half (2GB user, 2GB kernel).
672111314Snyan#
673111314Snyanoptions 	KVA_PAGES=260
674111314Snyan
675111314Snyan
676111314Snyan#####################################################################
677111314Snyan# ABI Emulation
678111314Snyan
679111314Snyan# Enable iBCS2 runtime support for SCO and ISC binaries
680111314Snyanoptions 	IBCS2
681111314Snyan
682111314Snyan# Emulate spx device for client side of SVR3 local X interface
683111314Snyanoptions 	SPX_HACK
684111314Snyan
685111314Snyan# Enable Linux ABI emulation
686111314Snyanoptions 	COMPAT_LINUX
687111314Snyan
688111314Snyan# Enable i386 a.out binary support
689111314Snyanoptions 	COMPAT_AOUT
690111314Snyan
691111314Snyan# Enable the linux-like proc filesystem support (requires COMPAT_LINUX
692111314Snyan# and PSEUDOFS)
693111314Snyanoptions 	LINPROCFS
694111314Snyan
695111314Snyan#
696111314Snyan# SysVR4 ABI emulation
697111314Snyan#
698111314Snyan# The svr4 ABI emulator can be statically compiled into the kernel or loaded as
699125234Snyan# a KLD module.
700125234Snyan# The STREAMS network emulation code can also be compiled statically or as a
701111314Snyan# module.  If loaded as a module, it must be loaded before the svr4 module
702111314Snyan# (the /usr/sbin/svr4 script does this for you).  If compiling statically,
703111314Snyan# the `streams' device must be configured into any kernel which also
704125234Snyan# specifies COMPAT_SVR4.  It is possible to have a statically-configured
705111314Snyan# STREAMS device and a dynamically loadable svr4 emulator;  the /usr/sbin/svr4
706111314Snyan# script understands that it doesn't need to load the `streams' module under
707111314Snyan# those circumstances.
708111314Snyan# Caveat:  At this time, `options KTRACE' is required for the svr4 emulator
709125234Snyan# (whether static or dynamic).
710125234Snyan#
711111314Snyanoptions 	COMPAT_SVR4	# build emulator statically
712111314Snyanoptions 	DEBUG_SVR4	# enable verbose debugging
713111314Snyandevice		streams		# STREAMS network driver (required for svr4).
714111314Snyan
715111314Snyan
716111314Snyan#####################################################################
717111314Snyan# VM OPTIONS
718111314Snyan
719111314Snyan# Disable the 4 MByte page PSE CPU feature.  The PSE feature allows the
720130596Snyan# kernel to use 4 MByte pages to map the kernel instead of 4k pages.
721111314Snyan# This saves on the amount of memory needed for page tables needed to
722111314Snyan# map the kernel.  You should only disable this feature as a temporary
723111314Snyan# workaround if you are having problems with it enabled.
724111314Snyan#
725111314Snyan#options 	DISABLE_PSE
726111314Snyan
727111314Snyan# Disable the global pages PGE CPU feature.  The PGE feature allows pages
728111314Snyan# to be marked with the PG_G bit.  TLB entries for these pages are not
729111314Snyan# flushed from the cache when %cr3 is reloaded.  This can make context
730111314Snyan# switches less expensive.  You should only disable this feature as a
731111314Snyan# temporary workaround if you are having problems with it enabled.
732111314Snyan#
733111314Snyan#options 	DISABLE_PG_G
734111314Snyan
735111314Snyan# KSTACK_PAGES is the number of memory pages to assign to the kernel
736111314Snyan# stack of each thread.
737111314Snyan
738111314Snyanoptions 	KSTACK_PAGES=3
739111314Snyan
740111314Snyan#####################################################################
741111314Snyan
742111314Snyan# More undocumented options for linting.
743111314Snyan# Note that documenting these are not considered an affront.
744111314Snyan
745111314Snyanoptions 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
746111314Snyan
747111314Snyan# PECOFF module (Win32 Execution Format)
748111314Snyanoptions 	PECOFF_SUPPORT
749111314Snyanoptions 	PECOFF_DEBUG
750111314Snyan
751111314Snyanoptions 	I4B_SMP_WORKAROUND
752111314Snyanoptions 	I586_PMC_GUPROF=0x70000
753111314Snyanoptions 	KBDIO_DEBUG=2
754111314Snyanoptions 	KBD_MAXRETRY=4
755111314Snyanoptions 	KBD_MAXWAIT=6
756111314Snyanoptions 	KBD_RESETDELAY=201
757111314Snyan
758111314Snyanoptions 	TIMER_FREQ=((14318182+6)/12)
759111314Snyan
760111314Snyanoptions 	VM_KMEM_SIZE
761111314Snyanoptions 	VM_KMEM_SIZE_MAX
762111314Snyanoptions 	VM_KMEM_SIZE_SCALE
763111314Snyan
764111500Sobrien
765132960Snyan# The I/O device
766132960Snyandevice		io
767132960Snyan
768132960Snyan
769111500Sobrien#####################################################################
770111500Sobrien# Devices we don't want to deal with
771111500Sobrien
772111500Sobriennodevice	atkbdc
773111500Sobriennodevice	atkbd
774111500Sobriennodevice	psm
775111500Sobriennodevice	vga
776116382Snyannodevice	bt
777116382Snyannodevice	adw
778111500Sobriennodevice	aha
779116382Snyannodevice	ahb
780116382Snyannodevice	ahd
781116382Snyannodevice	mpt
782116382Snyannodevice	trm
783111500Sobriennodevice	wds
784111500Sobriennodevice	asr
785111500Sobriennodevice	dpt
786111500Sobriennodevice	ciss
787111500Sobriennodevice	iir
788111500Sobriennodevice	mly
789111500Sobriennodevice	ida		# Compaq Smart RAID
790111500Sobriennodevice	mlx		# Mylex DAC960
791111500Sobriennodevice	amr		# AMI MegaRAID
792111500Sobriennodevice	twe		# 3ware ATA RAID
793125086Snyannodevice	ataraid
794116382Snyannodevice	cm
795116382Snyannodevice	cs
796116382Snyannodevice	ex
797116382Snyannodevice	fea
798111500Sobriennodevice	cbb
799111500Sobriennodevice	pccard
800111500Sobriennodevice	cardbus
801116382Snyannodevice	intpm
802116382Snyannodevice	alpm
803116382Snyannodevice	ichsmb
804116382Snyannodevice	viapm
805116382Snyannodevice	amdpm
806116382Snyannodevice	nfpm
807111582Sru
808111582Sru
809111582Sru#####################################################################
810111582Sru# Options we don't want to deal with
811111582Sru
812111582Srunooption	VGA_DEBUG
813111582Srunooption	VGA_WIDTH90
814111582Srunooption	VGA_SLOW_IOACCESS
815111582Srunooption	VGA_ALT_SEQACCESS
816111582Srunooption	PSM_RESETAFTERSUSPEND
817111582Srunooption	PSM_HOOKRESUME
818111582Srunooption	ATKBD_DFLT_KEYMAP
819116382Snyannooption	AHD_DEBUG
820116382Snyannooption	AHD_DEBUG_OPTS
821116382Snyannooption	AHD_REG_PRETTY_PRINT
822116382Snyannooption	ADW_ALLOW_MEMIO
823111582Srunooption	DPT_LOST_IRQ
824111582Srunooption	DPT_RESET_HBA
825111582Srunooption	DPT_TIMEOUT_FACTOR
826116382Snyannooption	AAC_DEBUG
827116382Snyannooption	ACPI_MAX_THREADS
828111582Sru
829111582Sru
830111582Sru#####################################################################
831111582Sru# Make options we don't want to deal with
832111582Sru
833111582Srunomakeoption	ATKBD_DFLT_KEYMAP
834