Deleted Added
full compact
NOTES (181905) NOTES (182912)
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#
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: head/sys/pc98/conf/NOTES 181905 2008-08-20 08:31:58Z ed $
7# $FreeBSD: head/sys/pc98/conf/NOTES 182912 2008-09-10 18:36:58Z jhb $
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
24# Mandatory:
25device apic # I/O apic
26
27#
28# Watchdog routines.
29#
30options MP_WATCHDOG
31
32# Debugging options.
33#
34options STOP_NMI # Stop CPUS using NMI instead of IPI
35
36
37
38#####################################################################
39# CPU OPTIONS
40
41#
42# You must specify at least one CPU (the one you intend to run on);
43# deleting the specification for CPUs you don't need to use may make
44# parts of the system run faster.
45#
46cpu I486_CPU
47cpu I586_CPU # aka Pentium(tm)
48cpu I686_CPU # aka Pentium Pro(tm)
49
50#
51# Options for CPU features.
52#
53# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
54# CPU if CPU supports it. The default is double-clock mode on
55# BlueLightning CPU box.
56#
57# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
58# BlueLightning CPU. It works only with Cyrix FPU, and this option
59# should not be used with Intel FPU.
60#
61# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
62#
63# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
64# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
65# Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3)
66#
67# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
68# mapped mode. Default is 2-way set associative mode.
69#
70# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
71# reorder). This option should not be used if you use memory mapped
72# I/O device(s).
73#
74# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
75# machines. VmWare 3.x seems to emulate this instruction poorly, causing
76# the guest OS to run very slowly. This problem appears to be fixed in
77# VmWare 4.x, at least in version 4.5.2, so that enabling this option with
78# VmWare 4.x will result in locking operations to be 20-30 times slower.
79# Enabling this with an SMP kernel will cause the kernel to be unusable.
80#
81# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
82#
83# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
84#
85# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
86# for i386 machines.
87#
88# CPU_IORT defines I/O clock delay time (NOTE 1). Default values of
89# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
90# (no clock delay).
91#
92# CPU_L2_LATENCY specifies the L2 cache latency value. This option is used
93# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
94# The default value is 5.
95#
96# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
97# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
98# 1).
99#
100# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option
101# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
102# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
103#
104# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
105#
106# CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU
107# enters suspend mode following execution of HALT instruction.
108#
109# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
110#
111# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
112# K5/K6/K6-2 CPUs.
113#
114# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
115# flush at hold state.
116#
117# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
118# without cache flush at hold state, and (2) write-back CPU cache on
119# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
120#
121# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
122# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
123# executed. This option is only needed if I586_CPU is also defined,
124# and should be included for any non-Pentium CPU that defines it.
125#
126# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
127# which indicates that the 15-16MB range is *definitely* not being
128# occupied by an ISA memory hole.
129#
130# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
131# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
132# These options may crash your system.
133#
134# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
135# in write-through mode when revision < 2.7. If revision of Cyrix
136# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
137#
138# NOTE 3: This option may cause failures for software that requires
139# locked cycles in order to operate correctly.
140#
141options CPU_BLUELIGHTNING_3X
142options CPU_BLUELIGHTNING_FPU_OP_CACHE
143options CPU_BTB_EN
144options CPU_DIRECT_MAPPED_CACHE
145options CPU_DISABLE_5X86_LSSER
146options CPU_DISABLE_CMPXCHG
147#options CPU_DISABLE_SSE
148options CPU_FASTER_5X86_FPU
149options CPU_I486_ON_386
150options CPU_IORT
151options CPU_L2_LATENCY=5
152options CPU_LOOP_EN
153options CPU_PPRO2CELERON
154options CPU_RSTK_EN
155options CPU_SUSP_HLT
156options CPU_UPGRADE_HW_CACHE
157options CPU_WT_ALLOC
158options CYRIX_CACHE_WORKS
159options CYRIX_CACHE_REALLY_WORKS
160#options NO_F00F_HACK
161
162# Debug options
163options NPX_DEBUG # enable npx debugging
164
165#
166# PERFMON causes the driver for Pentium/Pentium Pro performance counters
167# to be compiled. See perfmon(4) for more information.
168#
169options PERFMON
170
171
172#####################################################################
173# NETWORKING OPTIONS
174
175#
176# DEVICE_POLLING adds support for mixed interrupt-polling handling
177# of network device drivers, which has significant benefits in terms
178# of robustness to overloads and responsivity, as well as permitting
179# accurate scheduling of the CPU time between kernel network processing
180# and other activities. The drawback is a moderate (up to 1/HZ seconds)
181# potential increase in response times.
182# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
183# to achieve smoother behaviour.
184# Additionally, you can enable/disable polling at runtime with help of
185# the ifconfig(8) utility, and select the CPU fraction reserved to
186# userland with the sysctl variable kern.polling.user_frac
187# (default 50, range 0..100).
188#
189# Not all device drivers support this mode of operation at the time of
190# this writing. See polling(4) for more details.
191
192options DEVICE_POLLING
193
194# BPF_JITTER adds support for BPF just-in-time compiler.
195
196options BPF_JITTER
197
198
199#####################################################################
200# MISCELLANEOUS DEVICES AND OPTIONS
201
202#
203# sio: serial ports (see sio(4)), including support for various
204# PC Card devices, such as Modem and NICs
205#
206#device sio
207hint.sio.0.at="isa"
208hint.sio.0.port="0x3F8"
209hint.sio.0.flags="0x10"
210hint.sio.0.irq="4"
211
212# `flags' specific to sio(4).
213# 0x10 enable console support for this unit. Other console flags
214# (if applicable) are ignored unless this is set. Enabling
215# console support does not make the unit the preferred console.
216# Boot with -h or set boot_serial=YES in the loader. For sio(4)
217# specifically, the 0x20 flag can also be set (see above).
218# Currently, at most one unit can have console support; the
219# first one (in config file order) with this flag set is
220# preferred. Setting this flag for sio0 gives the old behaviour.
221# 0x20 force this unit to be the console (unless there is another
222# higher priority console). This replaces the COMCONSOLE option.
223# 0x40 reserve this unit for low level console operations. Do not
224# access the device in any normal way.
225# 0x80 use this port for serial line gdb support in ddb. Also known
226# as debug port.
227# PnP `flags'
228# 0x1 disable probing of this device. Used to prevent your modem
229# from being attached as a PnP modem.
230# Other flags for sio that aren't documented in the man page.
231# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for
232# ST16650A-compatible UARTs.
233
234# Options for sio:
235options COM_ESP # Code for Hayes ESP.
236options COM_MULTIPORT # Code for some cards with shared IRQs.
237options CONSPEED=115200 # Speed for serial console
238 # (default 9600).
239
240device speaker #Play IBM BASIC-style noises out your speaker
241hint.speaker.0.at="isa"
242hint.speaker.0.port="0x35"
243device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT!
244device apm_saver # Requires APM
245
246
247#####################################################################
248# HARDWARE BUS CONFIGURATION
249
250#
251# ISA bus
252#
253device isa
254
255#
256# Options for `isa':
257#
258# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
259# interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
260# This option breaks suspend/resume on some portables.
261#
262# MAXMEM specifies the amount of RAM on the machine; if this is not
263# specified, FreeBSD will first read the amount of memory from the CMOS
264# RAM, so the amount of memory will initially be limited to 64MB or 16MB
265# depending on the BIOS. If the BIOS reports 64MB, a memory probe will
266# then attempt to detect the installed amount of RAM. If this probe
267# fails to detect >64MB RAM you will have to use the MAXMEM option.
268# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
269# be 131072 (128 * 1024).
270#
271# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
272# reset the CPU for reboot. This is needed on some systems with broken
273# keyboard controllers.
274
275options AUTO_EOI_1
276
277options MAXMEM=(128*1024)
278#options BROKEN_KEYBOARD_RESET
279options EPSON_BOUNCEDMA
280options EPSON_MEMWIN
281
282#
283# PCI bus & PCI options:
284#
285device pci
286
287#
288# AGP GART support
289device agp
290
291
292#####################################################################
293# HARDWARE DEVICE CONFIGURATION
294
295# PC98 keyboard
296device pckbd
297hint.pckbd.0.at="isa"
298hint.pckbd.0.port="0x041"
299hint.pckbd.0.irq="1"
300
301# GDC screen
302device gdc
303hint.gdc.0.at="isa"
304options LINE30
305
306#
307# The Numeric Processing eXtension driver. This is non-optional.
308device npx
309
310#
311# `flags' for npx0:
312# 0x01 don't use the npx registers to optimize bcopy.
313# 0x02 don't use the npx registers to optimize bzero.
314# 0x04 don't use the npx registers to optimize copyin or copyout.
315# The npx registers are normally used to optimize copying and zeroing when
316# all of the following conditions are satisfied:
317# I586_CPU is an option
318# the cpu is an i586 (perhaps not a Pentium)
319# the probe for npx0 succeeds
320# INT 16 exception handling works.
321# Then copying and zeroing using the npx registers is normally 30-100% faster.
322# The flags can be used to control cases where it doesn't work or is slower.
323# Setting them at boot time using hints works right (the optimizations
324# are not used until later in the bootstrap when npx0 is attached).
325# Flag 0x08 automatically disables the i586 optimized routines.
326#
327
328#
329# Optional devices:
330#
331
332# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create
333# the /dev/3dfx0 device to work with glide implementations. This should get
334# linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as
335# the tdfx DRI module from XFree86 and is completely unrelated.
336#
337# To enable Linuxulator support, one must also include COMPAT_LINUX in the
338# config as well. The other option is to load both as modules.
339
340device tdfx # Enable 3Dfx Voodoo support
341device tdfx_linux # Enable Linuxulator support
342
343# Direct Rendering modules for 3D acceleration.
344device drm # DRM core module required by DRM drivers
345device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL
346device mgadrm # AGP Matrox G200, G400, G450, G550
347device r128drm # ATI Rage 128
348device radeondrm # ATI Radeon
349device savagedrm # S3 Savage3D, Savage4
350device sisdrm # SiS 300/305, 540, 630
351device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee
352options DRM_DEBUG # Include debug printfs (slow)
353
354#
355# Bus mouse
356#
357device mse
358hint.mse.0.at="isa"
359hint.mse.0.port="0x7fd9"
360hint.mse.0.irq="13"
361
362#
363# Network interfaces:
364#
365
366# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver
367# (requires sppp)
368# ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
369# ce: Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor
370# with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if
371# NETGRAPH_CRONYX is configured)
372# cp: Cronyx Tau-PCI sync single/dual/four port
373# V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
374# serial adaptor (requires sppp (default), or NETGRAPH if
375# NETGRAPH_CRONYX is configured)
376# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard
377# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
378# HP PC Lan+, various PC Card devices
379# (requires miibus)
380# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
381# Intel EtherExpress
382# ral: Ralink Technology IEEE 802.11 wireless adapter
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
24# Mandatory:
25device apic # I/O apic
26
27#
28# Watchdog routines.
29#
30options MP_WATCHDOG
31
32# Debugging options.
33#
34options STOP_NMI # Stop CPUS using NMI instead of IPI
35
36
37
38#####################################################################
39# CPU OPTIONS
40
41#
42# You must specify at least one CPU (the one you intend to run on);
43# deleting the specification for CPUs you don't need to use may make
44# parts of the system run faster.
45#
46cpu I486_CPU
47cpu I586_CPU # aka Pentium(tm)
48cpu I686_CPU # aka Pentium Pro(tm)
49
50#
51# Options for CPU features.
52#
53# CPU_BLUELIGHTNING_3X enables triple-clock mode on IBM Blue Lightning
54# CPU if CPU supports it. The default is double-clock mode on
55# BlueLightning CPU box.
56#
57# CPU_BLUELIGHTNING_FPU_OP_CACHE enables FPU operand cache on IBM
58# BlueLightning CPU. It works only with Cyrix FPU, and this option
59# should not be used with Intel FPU.
60#
61# CPU_BTB_EN enables branch target buffer on Cyrix 5x86 (NOTE 1).
62#
63# CPU_CYRIX_NO_LOCK enables weak locking for the entire address space
64# of Cyrix 6x86 and 6x86MX CPUs by setting the NO_LOCK bit of CCR1.
65# Otherwise, the NO_LOCK bit of CCR1 is cleared. (NOTE 3)
66#
67# CPU_DIRECT_MAPPED_CACHE sets L1 cache of Cyrix 486DLC CPU in direct
68# mapped mode. Default is 2-way set associative mode.
69#
70# CPU_DISABLE_5X86_LSSER disables load store serialize (i.e., enables
71# reorder). This option should not be used if you use memory mapped
72# I/O device(s).
73#
74# CPU_DISABLE_CMPXCHG disables the CMPXCHG instruction on > i386 IA32
75# machines. VmWare 3.x seems to emulate this instruction poorly, causing
76# the guest OS to run very slowly. This problem appears to be fixed in
77# VmWare 4.x, at least in version 4.5.2, so that enabling this option with
78# VmWare 4.x will result in locking operations to be 20-30 times slower.
79# Enabling this with an SMP kernel will cause the kernel to be unusable.
80#
81# CPU_DISABLE_SSE explicitly prevents I686_CPU from turning on SSE.
82#
83# CPU_FASTER_5X86_FPU enables faster FPU exception handler.
84#
85# CPU_I486_ON_386 enables CPU cache on i486 based CPU upgrade products
86# for i386 machines.
87#
88# CPU_IORT defines I/O clock delay time (NOTE 1). Default values of
89# I/O clock delay time on Cyrix 5x86 and 6x86 are 0 and 7,respectively
90# (no clock delay).
91#
92# CPU_L2_LATENCY specifies the L2 cache latency value. This option is used
93# only when CPU_PPRO2CELERON is defined and Mendocino Celeron is detected.
94# The default value is 5.
95#
96# CPU_LOOP_EN prevents flushing the prefetch buffer if the destination
97# of a jump is already present in the prefetch buffer on Cyrix 5x86(NOTE
98# 1).
99#
100# CPU_PPRO2CELERON enables L2 cache of Mendocino Celeron CPUs. This option
101# is useful when you use Socket 8 to Socket 370 converter, because most Pentium
102# Pro BIOSs do not enable L2 cache of Mendocino Celeron CPUs.
103#
104# CPU_RSTK_EN enables return stack on Cyrix 5x86 (NOTE 1).
105#
106# CPU_SUSP_HLT enables suspend on HALT. If this option is set, CPU
107# enters suspend mode following execution of HALT instruction.
108#
109# CPU_UPGRADE_HW_CACHE eliminates unneeded cache flush instruction(s).
110#
111# CPU_WT_ALLOC enables write allocation on Cyrix 6x86/6x86MX and AMD
112# K5/K6/K6-2 CPUs.
113#
114# CYRIX_CACHE_WORKS enables CPU cache on Cyrix 486 CPUs with cache
115# flush at hold state.
116#
117# CYRIX_CACHE_REALLY_WORKS enables (1) CPU cache on Cyrix 486 CPUs
118# without cache flush at hold state, and (2) write-back CPU cache on
119# Cyrix 6x86 whose revision < 2.7 (NOTE 2).
120#
121# NO_F00F_HACK disables the hack that prevents Pentiums (and ONLY
122# Pentiums) from locking up when a LOCK CMPXCHG8B instruction is
123# executed. This option is only needed if I586_CPU is also defined,
124# and should be included for any non-Pentium CPU that defines it.
125#
126# NO_MEMORY_HOLE is an optimisation for systems with AMD K6 processors
127# which indicates that the 15-16MB range is *definitely* not being
128# occupied by an ISA memory hole.
129#
130# NOTE 1: The options, CPU_BTB_EN, CPU_LOOP_EN, CPU_IORT,
131# CPU_LOOP_EN and CPU_RSTK_EN should not be used because of CPU bugs.
132# These options may crash your system.
133#
134# NOTE 2: If CYRIX_CACHE_REALLY_WORKS is not set, CPU cache is enabled
135# in write-through mode when revision < 2.7. If revision of Cyrix
136# 6x86 >= 2.7, CPU cache is always enabled in write-back mode.
137#
138# NOTE 3: This option may cause failures for software that requires
139# locked cycles in order to operate correctly.
140#
141options CPU_BLUELIGHTNING_3X
142options CPU_BLUELIGHTNING_FPU_OP_CACHE
143options CPU_BTB_EN
144options CPU_DIRECT_MAPPED_CACHE
145options CPU_DISABLE_5X86_LSSER
146options CPU_DISABLE_CMPXCHG
147#options CPU_DISABLE_SSE
148options CPU_FASTER_5X86_FPU
149options CPU_I486_ON_386
150options CPU_IORT
151options CPU_L2_LATENCY=5
152options CPU_LOOP_EN
153options CPU_PPRO2CELERON
154options CPU_RSTK_EN
155options CPU_SUSP_HLT
156options CPU_UPGRADE_HW_CACHE
157options CPU_WT_ALLOC
158options CYRIX_CACHE_WORKS
159options CYRIX_CACHE_REALLY_WORKS
160#options NO_F00F_HACK
161
162# Debug options
163options NPX_DEBUG # enable npx debugging
164
165#
166# PERFMON causes the driver for Pentium/Pentium Pro performance counters
167# to be compiled. See perfmon(4) for more information.
168#
169options PERFMON
170
171
172#####################################################################
173# NETWORKING OPTIONS
174
175#
176# DEVICE_POLLING adds support for mixed interrupt-polling handling
177# of network device drivers, which has significant benefits in terms
178# of robustness to overloads and responsivity, as well as permitting
179# accurate scheduling of the CPU time between kernel network processing
180# and other activities. The drawback is a moderate (up to 1/HZ seconds)
181# potential increase in response times.
182# It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
183# to achieve smoother behaviour.
184# Additionally, you can enable/disable polling at runtime with help of
185# the ifconfig(8) utility, and select the CPU fraction reserved to
186# userland with the sysctl variable kern.polling.user_frac
187# (default 50, range 0..100).
188#
189# Not all device drivers support this mode of operation at the time of
190# this writing. See polling(4) for more details.
191
192options DEVICE_POLLING
193
194# BPF_JITTER adds support for BPF just-in-time compiler.
195
196options BPF_JITTER
197
198
199#####################################################################
200# MISCELLANEOUS DEVICES AND OPTIONS
201
202#
203# sio: serial ports (see sio(4)), including support for various
204# PC Card devices, such as Modem and NICs
205#
206#device sio
207hint.sio.0.at="isa"
208hint.sio.0.port="0x3F8"
209hint.sio.0.flags="0x10"
210hint.sio.0.irq="4"
211
212# `flags' specific to sio(4).
213# 0x10 enable console support for this unit. Other console flags
214# (if applicable) are ignored unless this is set. Enabling
215# console support does not make the unit the preferred console.
216# Boot with -h or set boot_serial=YES in the loader. For sio(4)
217# specifically, the 0x20 flag can also be set (see above).
218# Currently, at most one unit can have console support; the
219# first one (in config file order) with this flag set is
220# preferred. Setting this flag for sio0 gives the old behaviour.
221# 0x20 force this unit to be the console (unless there is another
222# higher priority console). This replaces the COMCONSOLE option.
223# 0x40 reserve this unit for low level console operations. Do not
224# access the device in any normal way.
225# 0x80 use this port for serial line gdb support in ddb. Also known
226# as debug port.
227# PnP `flags'
228# 0x1 disable probing of this device. Used to prevent your modem
229# from being attached as a PnP modem.
230# Other flags for sio that aren't documented in the man page.
231# 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for
232# ST16650A-compatible UARTs.
233
234# Options for sio:
235options COM_ESP # Code for Hayes ESP.
236options COM_MULTIPORT # Code for some cards with shared IRQs.
237options CONSPEED=115200 # Speed for serial console
238 # (default 9600).
239
240device speaker #Play IBM BASIC-style noises out your speaker
241hint.speaker.0.at="isa"
242hint.speaker.0.port="0x35"
243device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT!
244device apm_saver # Requires APM
245
246
247#####################################################################
248# HARDWARE BUS CONFIGURATION
249
250#
251# ISA bus
252#
253device isa
254
255#
256# Options for `isa':
257#
258# AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
259# interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
260# This option breaks suspend/resume on some portables.
261#
262# MAXMEM specifies the amount of RAM on the machine; if this is not
263# specified, FreeBSD will first read the amount of memory from the CMOS
264# RAM, so the amount of memory will initially be limited to 64MB or 16MB
265# depending on the BIOS. If the BIOS reports 64MB, a memory probe will
266# then attempt to detect the installed amount of RAM. If this probe
267# fails to detect >64MB RAM you will have to use the MAXMEM option.
268# The amount is in kilobytes, so for a machine with 128MB of RAM, it would
269# be 131072 (128 * 1024).
270#
271# BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
272# reset the CPU for reboot. This is needed on some systems with broken
273# keyboard controllers.
274
275options AUTO_EOI_1
276
277options MAXMEM=(128*1024)
278#options BROKEN_KEYBOARD_RESET
279options EPSON_BOUNCEDMA
280options EPSON_MEMWIN
281
282#
283# PCI bus & PCI options:
284#
285device pci
286
287#
288# AGP GART support
289device agp
290
291
292#####################################################################
293# HARDWARE DEVICE CONFIGURATION
294
295# PC98 keyboard
296device pckbd
297hint.pckbd.0.at="isa"
298hint.pckbd.0.port="0x041"
299hint.pckbd.0.irq="1"
300
301# GDC screen
302device gdc
303hint.gdc.0.at="isa"
304options LINE30
305
306#
307# The Numeric Processing eXtension driver. This is non-optional.
308device npx
309
310#
311# `flags' for npx0:
312# 0x01 don't use the npx registers to optimize bcopy.
313# 0x02 don't use the npx registers to optimize bzero.
314# 0x04 don't use the npx registers to optimize copyin or copyout.
315# The npx registers are normally used to optimize copying and zeroing when
316# all of the following conditions are satisfied:
317# I586_CPU is an option
318# the cpu is an i586 (perhaps not a Pentium)
319# the probe for npx0 succeeds
320# INT 16 exception handling works.
321# Then copying and zeroing using the npx registers is normally 30-100% faster.
322# The flags can be used to control cases where it doesn't work or is slower.
323# Setting them at boot time using hints works right (the optimizations
324# are not used until later in the bootstrap when npx0 is attached).
325# Flag 0x08 automatically disables the i586 optimized routines.
326#
327
328#
329# Optional devices:
330#
331
332# 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create
333# the /dev/3dfx0 device to work with glide implementations. This should get
334# linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as
335# the tdfx DRI module from XFree86 and is completely unrelated.
336#
337# To enable Linuxulator support, one must also include COMPAT_LINUX in the
338# config as well. The other option is to load both as modules.
339
340device tdfx # Enable 3Dfx Voodoo support
341device tdfx_linux # Enable Linuxulator support
342
343# Direct Rendering modules for 3D acceleration.
344device drm # DRM core module required by DRM drivers
345device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL
346device mgadrm # AGP Matrox G200, G400, G450, G550
347device r128drm # ATI Rage 128
348device radeondrm # ATI Radeon
349device savagedrm # S3 Savage3D, Savage4
350device sisdrm # SiS 300/305, 540, 630
351device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee
352options DRM_DEBUG # Include debug printfs (slow)
353
354#
355# Bus mouse
356#
357device mse
358hint.mse.0.at="isa"
359hint.mse.0.port="0x7fd9"
360hint.mse.0.irq="13"
361
362#
363# Network interfaces:
364#
365
366# ar: Arnet SYNC/570i hdlc sync 2/4 port V.35/X.21 serial driver
367# (requires sppp)
368# ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
369# ce: Cronyx Tau-PCI/32 sync single/dual port G.703/E1 serial adaptor
370# with 32 HDLC subchannels (requires sppp (default), or NETGRAPH if
371# NETGRAPH_CRONYX is configured)
372# cp: Cronyx Tau-PCI sync single/dual/four port
373# V.35/RS-232/RS-530/RS-449/X.21/G.703/E1/E3/T3/STS-1
374# serial adaptor (requires sppp (default), or NETGRAPH if
375# NETGRAPH_CRONYX is configured)
376# cs: IBM Etherjet and other Crystal Semi CS89x0-based adapters and pccard
377# ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
378# HP PC Lan+, various PC Card devices
379# (requires miibus)
380# ie: AT&T StarLAN 10 and EN100; 3Com 3C507; unknown NI5210;
381# Intel EtherExpress
382# ral: Ralink Technology IEEE 802.11 wireless adapter
383# sbni: Granch SBNI12-xx ISA and PCI adapters
383# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
384# ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter
385
386# Order for ISA/EISA devices is important here
387
388device ar
389device ce
390device cp
391device cs
392device ed
393hint.ed.0.at="isa"
394hint.ed.0.port="0x280"
395hint.ed.0.irq="5"
396hint.ed.0.maddr="0xd8000"
397device ie # Hints only required for Starlan
398hint.ie.2.at="isa"
399hint.ie.2.port="0x300"
400hint.ie.2.irq="5"
401hint.ie.2.maddr="0xd0000"
402# Hint for the PC98-only C-NET(98)S C-bus front-end of le(4).
403hint.le.0.at="isa"
404hint.le.0.port="0x03d0"
405hint.le.0.irq="6"
406device ral
384# sr: RISCom/N2 hdlc sync 1/2 port V.35/X.21 serial driver (requires sppp)
385# ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter
386
387# Order for ISA/EISA devices is important here
388
389device ar
390device ce
391device cp
392device cs
393device ed
394hint.ed.0.at="isa"
395hint.ed.0.port="0x280"
396hint.ed.0.irq="5"
397hint.ed.0.maddr="0xd8000"
398device ie # Hints only required for Starlan
399hint.ie.2.at="isa"
400hint.ie.2.port="0x300"
401hint.ie.2.irq="5"
402hint.ie.2.maddr="0xd0000"
403# Hint for the PC98-only C-NET(98)S C-bus front-end of le(4).
404hint.le.0.at="isa"
405hint.le.0.port="0x03d0"
406hint.le.0.irq="6"
407device ral
408device sbni
409hint.sbni.0.at="isa"
410hint.sbni.0.port="0x210"
411hint.sbni.0.irq="0xefdead"
412hint.sbni.0.flags="0"
407device snc
408hint.snc.0.at="isa"
409hint.snc.0.port="0x888"
410hint.snc.0.irq="6"
411hint.snc.0.maddr="0xc0000"
412device sr
413device ural
414
415device ath
416device ath_hal # Atheros HAL (includes binary component)
417#device ath_rate_amrr # AMRR rate control for ath driver
418#device ath_rate_onoe # Onoe rate control for ath driver
419device ath_rate_sample # SampleRate rate control for the ath driver
420#device wlan # 802.11 layer
421
422#
423# SCSI host adapters:
424#
425# ct: WD33C93[ABC] based SCSI host adapters.
426# ncv: NCR 53C500 based SCSI host adapters.
427# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
428# stg: TMC 18C30, 18C50 based SCSI host adapters.
429
430device ct
431hint.ct.0.at="isa"
432device ncv
433device nsp
434device stg
435
436#
437# SafeNet crypto driver: can be moved to the MI NOTES as soon as
438# it's tested on a big-endian machine
439#
440device safe # SafeNet 1141
441options SAFE_DEBUG # enable debugging support: hw.safe.debug
442options SAFE_RNDTEST # enable rndtest support
443
444#####################################################################
445
446#
447# Miscellaneous hardware:
448#
449# apm: Laptop Advanced Power Management (experimental)
450# pmtimer: Timer device driver for power management events (APM or ACPI)
451
452# Notes on APM
453# The flags takes the following meaning for apm0:
454# 0x0020 Statclock is broken.
455
456device apm
457hint.apm.0.flags="0x20"
458device canbus
459device canbepm
460device olpt
461hint.olpt.0.at="isa"
462hint.olpt.0.port="0x040"
463device pmc
464hint.pmc.0.at="isa"
465hint.pmc.0.port="0x8f0"
466device pmtimer # Adjust system timer at wakeup time
467
468#
469# Laptop/Notebook options:
470#
471# See also:
472# apm under `Miscellaneous hardware'
473# above.
474
475# For older notebooks that signal a powerfail condition (external
476# power supply dropped, or battery state low) by issuing an NMI:
477
478options POWERFAIL_NMI # make it beep instead of panicing
479
480#
481# Set the number of PV entries per process. Increasing this can
482# stop panics related to heavy use of shared memory. However, that can
483# (combined with large amounts of physical memory) cause panics at
484# boot time due the kernel running out of VM space.
485#
486# If you're tweaking this, you might also want to increase the sysctls
487# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
488#
489# The value below is the one more than the default.
490#
491options PMAP_SHPGPERPROC=201
492
493#
494# Change the size of the kernel virtual address space. Due to
495# constraints in loader(8) on i386, this must be a multiple of 4.
496# 256 = 1 GB of kernel address space. Increasing this also causes
497# a reduction of the address space in user processes. 512 splits
498# the 4GB cpu address space in half (2GB user, 2GB kernel).
499#
500options KVA_PAGES=260
501
502
503#####################################################################
504# ABI Emulation
505
506# Enable iBCS2 runtime support for SCO and ISC binaries
507options IBCS2
508
509# Emulate spx device for client side of SVR3 local X interface
510options SPX_HACK
511
512# Enable Linux ABI emulation
513options COMPAT_LINUX
514
515# Enable i386 a.out binary support
516options COMPAT_AOUT
517
518# Enable the linux-like proc filesystem support (requires COMPAT_LINUX
519# and PSEUDOFS)
520options LINPROCFS
521
522# Enable the linux-like sys filesystem support (requires COMPAT_LINUX
523# and PSEUDOFS)
524options LINSYSFS
525
526#
527# SysVR4 ABI emulation
528#
529# The svr4 ABI emulator can be statically compiled into the kernel or loaded as
530# a KLD module.
531# The STREAMS network emulation code can also be compiled statically or as a
532# module. If loaded as a module, it must be loaded before the svr4 module
533# (the /usr/sbin/svr4 script does this for you). If compiling statically,
534# the `streams' device must be configured into any kernel which also
535# specifies COMPAT_SVR4. It is possible to have a statically-configured
536# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4
537# script understands that it doesn't need to load the `streams' module under
538# those circumstances.
539# Caveat: At this time, `options KTRACE' is required for the svr4 emulator
540# (whether static or dynamic).
541#
542options COMPAT_SVR4 # build emulator statically
543options DEBUG_SVR4 # enable verbose debugging
544device streams # STREAMS network driver (required for svr4).
545
546
547#####################################################################
548# VM OPTIONS
549
550# Disable the 4 MByte page PSE CPU feature. The PSE feature allows the
551# kernel to use 4 MByte pages to map the kernel instead of 4k pages.
552# This saves on the amount of memory needed for page tables needed to
553# map the kernel. You should only disable this feature as a temporary
554# workaround if you are having problems with it enabled.
555#
556#options DISABLE_PSE
557
558# Disable the global pages PGE CPU feature. The PGE feature allows pages
559# to be marked with the PG_G bit. TLB entries for these pages are not
560# flushed from the cache when %cr3 is reloaded. This can make context
561# switches less expensive. You should only disable this feature as a
562# temporary workaround if you are having problems with it enabled.
563#
564#options DISABLE_PG_G
565
566# KSTACK_PAGES is the number of memory pages to assign to the kernel
567# stack of each thread.
568
569options KSTACK_PAGES=3
570
571#####################################################################
572
573# More undocumented options for linting.
574# Note that documenting these are not considered an affront.
575
576options FB_INSTALL_CDEV # install a CDEV entry in /dev
577
578options I586_PMC_GUPROF=0x70000
579options KBDIO_DEBUG=2
580options KBD_MAXRETRY=4
581options KBD_MAXWAIT=6
582options KBD_RESETDELAY=201
583
584options TIMER_FREQ=((14318182+6)/12)
585
586options VM_KMEM_SIZE
587options VM_KMEM_SIZE_MAX
588options VM_KMEM_SIZE_SCALE
589
590
591#####################################################################
592# Devices we don't want to deal with
593
594nodevice bt
595nodevice adw
596nodevice aha
597nodevice ahb
598nodevice ahd
599nodevice mpt
600nodevice trm
601nodevice wds
602nodevice dpt
603nodevice ciss
604nodevice iir
605nodevice mly
606nodevice ida # Compaq Smart RAID
607nodevice mlx # Mylex DAC960
608nodevice amr # AMI MegaRAID
609nodevice twe # 3ware ATA RAID
610nodevice ataraid
611nodevice cm
612nodevice ex
613nodevice fea
614nodevice intpm
615nodevice alpm
616nodevice ichsmb
617nodevice viapm
618nodevice amdpm
619nodevice amdsmb
620nodevice nfpm
621nodevice nfsmb
622
623
624#####################################################################
625# Options we don't want to deal with
626
627nooption AHD_DEBUG
628nooption AHD_DEBUG_OPTS
629nooption AHD_REG_PRETTY_PRINT
630nooption ADW_ALLOW_MEMIO
631nooption DPT_LOST_IRQ
632nooption DPT_RESET_HBA
633nooption DPT_TIMEOUT_FACTOR
634nooption AAC_DEBUG
635
636
637#####################################################################
638# Make options we don't want to deal with
413device snc
414hint.snc.0.at="isa"
415hint.snc.0.port="0x888"
416hint.snc.0.irq="6"
417hint.snc.0.maddr="0xc0000"
418device sr
419device ural
420
421device ath
422device ath_hal # Atheros HAL (includes binary component)
423#device ath_rate_amrr # AMRR rate control for ath driver
424#device ath_rate_onoe # Onoe rate control for ath driver
425device ath_rate_sample # SampleRate rate control for the ath driver
426#device wlan # 802.11 layer
427
428#
429# SCSI host adapters:
430#
431# ct: WD33C93[ABC] based SCSI host adapters.
432# ncv: NCR 53C500 based SCSI host adapters.
433# nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
434# stg: TMC 18C30, 18C50 based SCSI host adapters.
435
436device ct
437hint.ct.0.at="isa"
438device ncv
439device nsp
440device stg
441
442#
443# SafeNet crypto driver: can be moved to the MI NOTES as soon as
444# it's tested on a big-endian machine
445#
446device safe # SafeNet 1141
447options SAFE_DEBUG # enable debugging support: hw.safe.debug
448options SAFE_RNDTEST # enable rndtest support
449
450#####################################################################
451
452#
453# Miscellaneous hardware:
454#
455# apm: Laptop Advanced Power Management (experimental)
456# pmtimer: Timer device driver for power management events (APM or ACPI)
457
458# Notes on APM
459# The flags takes the following meaning for apm0:
460# 0x0020 Statclock is broken.
461
462device apm
463hint.apm.0.flags="0x20"
464device canbus
465device canbepm
466device olpt
467hint.olpt.0.at="isa"
468hint.olpt.0.port="0x040"
469device pmc
470hint.pmc.0.at="isa"
471hint.pmc.0.port="0x8f0"
472device pmtimer # Adjust system timer at wakeup time
473
474#
475# Laptop/Notebook options:
476#
477# See also:
478# apm under `Miscellaneous hardware'
479# above.
480
481# For older notebooks that signal a powerfail condition (external
482# power supply dropped, or battery state low) by issuing an NMI:
483
484options POWERFAIL_NMI # make it beep instead of panicing
485
486#
487# Set the number of PV entries per process. Increasing this can
488# stop panics related to heavy use of shared memory. However, that can
489# (combined with large amounts of physical memory) cause panics at
490# boot time due the kernel running out of VM space.
491#
492# If you're tweaking this, you might also want to increase the sysctls
493# "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
494#
495# The value below is the one more than the default.
496#
497options PMAP_SHPGPERPROC=201
498
499#
500# Change the size of the kernel virtual address space. Due to
501# constraints in loader(8) on i386, this must be a multiple of 4.
502# 256 = 1 GB of kernel address space. Increasing this also causes
503# a reduction of the address space in user processes. 512 splits
504# the 4GB cpu address space in half (2GB user, 2GB kernel).
505#
506options KVA_PAGES=260
507
508
509#####################################################################
510# ABI Emulation
511
512# Enable iBCS2 runtime support for SCO and ISC binaries
513options IBCS2
514
515# Emulate spx device for client side of SVR3 local X interface
516options SPX_HACK
517
518# Enable Linux ABI emulation
519options COMPAT_LINUX
520
521# Enable i386 a.out binary support
522options COMPAT_AOUT
523
524# Enable the linux-like proc filesystem support (requires COMPAT_LINUX
525# and PSEUDOFS)
526options LINPROCFS
527
528# Enable the linux-like sys filesystem support (requires COMPAT_LINUX
529# and PSEUDOFS)
530options LINSYSFS
531
532#
533# SysVR4 ABI emulation
534#
535# The svr4 ABI emulator can be statically compiled into the kernel or loaded as
536# a KLD module.
537# The STREAMS network emulation code can also be compiled statically or as a
538# module. If loaded as a module, it must be loaded before the svr4 module
539# (the /usr/sbin/svr4 script does this for you). If compiling statically,
540# the `streams' device must be configured into any kernel which also
541# specifies COMPAT_SVR4. It is possible to have a statically-configured
542# STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4
543# script understands that it doesn't need to load the `streams' module under
544# those circumstances.
545# Caveat: At this time, `options KTRACE' is required for the svr4 emulator
546# (whether static or dynamic).
547#
548options COMPAT_SVR4 # build emulator statically
549options DEBUG_SVR4 # enable verbose debugging
550device streams # STREAMS network driver (required for svr4).
551
552
553#####################################################################
554# VM OPTIONS
555
556# Disable the 4 MByte page PSE CPU feature. The PSE feature allows the
557# kernel to use 4 MByte pages to map the kernel instead of 4k pages.
558# This saves on the amount of memory needed for page tables needed to
559# map the kernel. You should only disable this feature as a temporary
560# workaround if you are having problems with it enabled.
561#
562#options DISABLE_PSE
563
564# Disable the global pages PGE CPU feature. The PGE feature allows pages
565# to be marked with the PG_G bit. TLB entries for these pages are not
566# flushed from the cache when %cr3 is reloaded. This can make context
567# switches less expensive. You should only disable this feature as a
568# temporary workaround if you are having problems with it enabled.
569#
570#options DISABLE_PG_G
571
572# KSTACK_PAGES is the number of memory pages to assign to the kernel
573# stack of each thread.
574
575options KSTACK_PAGES=3
576
577#####################################################################
578
579# More undocumented options for linting.
580# Note that documenting these are not considered an affront.
581
582options FB_INSTALL_CDEV # install a CDEV entry in /dev
583
584options I586_PMC_GUPROF=0x70000
585options KBDIO_DEBUG=2
586options KBD_MAXRETRY=4
587options KBD_MAXWAIT=6
588options KBD_RESETDELAY=201
589
590options TIMER_FREQ=((14318182+6)/12)
591
592options VM_KMEM_SIZE
593options VM_KMEM_SIZE_MAX
594options VM_KMEM_SIZE_SCALE
595
596
597#####################################################################
598# Devices we don't want to deal with
599
600nodevice bt
601nodevice adw
602nodevice aha
603nodevice ahb
604nodevice ahd
605nodevice mpt
606nodevice trm
607nodevice wds
608nodevice dpt
609nodevice ciss
610nodevice iir
611nodevice mly
612nodevice ida # Compaq Smart RAID
613nodevice mlx # Mylex DAC960
614nodevice amr # AMI MegaRAID
615nodevice twe # 3ware ATA RAID
616nodevice ataraid
617nodevice cm
618nodevice ex
619nodevice fea
620nodevice intpm
621nodevice alpm
622nodevice ichsmb
623nodevice viapm
624nodevice amdpm
625nodevice amdsmb
626nodevice nfpm
627nodevice nfsmb
628
629
630#####################################################################
631# Options we don't want to deal with
632
633nooption AHD_DEBUG
634nooption AHD_DEBUG_OPTS
635nooption AHD_REG_PRETTY_PRINT
636nooption ADW_ALLOW_MEMIO
637nooption DPT_LOST_IRQ
638nooption DPT_RESET_HBA
639nooption DPT_TIMEOUT_FACTOR
640nooption AAC_DEBUG
641
642
643#####################################################################
644# Make options we don't want to deal with