2 # NOTES -- Lines that can be cut/pasted into kernel and hints configs.
4 # This file contains machine dependent kernel configuration notes. For
5 # machine independent notes, look in /sys/conf/NOTES.
11 # We want LINT to cover profiling as well.
15 #####################################################################
20 # IPI_PREEMPTION instructs the kernel to preempt threads running on other
21 # CPUS if needed. Relies on the PREEMPTION option
24 options IPI_PREEMPTION
25 device atpic # Optional legacy pic support
26 device mptable # Optional MPSPEC mptable support
36 options STOP_NMI # Stop CPUS using NMI instead of IPI
40 #####################################################################
44 # You must specify at least one CPU (the one you intend to run on);
45 # deleting the specification for CPUs you don't need to use may make
46 # parts of the system run faster.
48 cpu HAMMER # aka K8, aka Opteron & Athlon64
51 # Options for CPU features.
55 # PERFMON causes the driver for Pentium/Pentium Pro performance counters
56 # to be compiled. See perfmon(4) for more information.
61 #####################################################################
65 # DEVICE_POLLING adds support for mixed interrupt-polling handling
66 # of network device drivers, which has significant benefits in terms
67 # of robustness to overloads and responsivity, as well as permitting
68 # accurate scheduling of the CPU time between kernel network processing
69 # and other activities. The drawback is a moderate (up to 1/HZ seconds)
70 # potential increase in response times.
71 # It is strongly recommended to use HZ=1000 or 2000 with DEVICE_POLLING
72 # to achieve smoother behaviour.
73 # Additionally, you can enable/disable polling at runtime with help of
74 # the ifconfig(8) utility, and select the CPU fraction reserved to
75 # userland with the sysctl variable kern.polling.user_frac
76 # (default 50, range 0..100).
78 # Not all device drivers support this mode of operation at the time of
79 # this writing. See polling(4) for more details.
81 options DEVICE_POLLING
84 #####################################################################
87 # The following options are used for debugging clock behavior only, and
88 # should not be used for production systems.
90 # CLK_CALIBRATION_LOOP causes clock calibration to be run in a loop at
91 # startup until the user presses a key. (The i8254 clock is always
92 # calibrated relative to the RTC (mc146818a) and this option causes the
93 # calibration to be repeated.)
94 options CLK_CALIBRATION_LOOP
96 # CLK_USE_I8254_CALIBRATION causes the calibrated frequency of the i8254
97 # clock to actually be used.
98 options CLK_USE_I8254_CALIBRATION
100 # Provide read/write access to the memory in the clock chip.
101 device nvram # Access to rtc cmos via /dev/nvram
104 #####################################################################
105 # MISCELLANEOUS DEVICES AND OPTIONS
108 # sio: serial ports (see sio(4)), including support for various
109 # PC Card devices, such as Modem and NICs
113 hint.sio.0.port="0x3F8"
114 hint.sio.0.flags="0x10"
117 # `flags' specific to sio(4).
118 # 0x10 enable console support for this unit. Other console flags
119 # (if applicable) are ignored unless this is set. Enabling
120 # console support does not make the unit the preferred console.
121 # Boot with -h or set boot_serial=YES in the loader. For sio(4)
122 # specifically, the 0x20 flag can also be set (see above).
123 # Currently, at most one unit can have console support; the
124 # first one (in config file order) with this flag set is
125 # preferred. Setting this flag for sio0 gives the old behaviour.
126 # 0x20 force this unit to be the console (unless there is another
127 # higher priority console). This replaces the COMCONSOLE option.
128 # 0x40 reserve this unit for low level console operations. Do not
129 # access the device in any normal way.
130 # 0x80 use this port for serial line gdb support in ddb. Also known
133 # 0x1 disable probing of this device. Used to prevent your modem
134 # from being attached as a PnP modem.
135 # Other flags for sio that aren't documented in the man page.
136 # 0x20000 enable hardware RTS/CTS and larger FIFOs. Only works for
137 # ST16650A-compatible UARTs.
140 options COM_ESP # Code for Hayes ESP.
141 options COM_MULTIPORT # Code for some cards with shared IRQs.
142 options CONSPEED=115200 # Speed for serial console
145 device speaker #Play IBM BASIC-style noises out your speaker
146 hint.speaker.0.at="isa"
147 hint.speaker.0.port="0x61"
148 device gzip #Exec gzipped a.out's. REQUIRES COMPAT_AOUT!
151 #####################################################################
152 # HARDWARE BUS CONFIGURATION
162 # AUTO_EOI_1 enables the `automatic EOI' feature for the master 8259A
163 # interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
164 # This option breaks suspend/resume on some portables.
166 # AUTO_EOI_2 enables the `automatic EOI' feature for the slave 8259A
167 # interrupt controller. This saves about 0.7-1.25 usec for each interrupt.
168 # Automatic EOI is documented not to work for for the slave with the
169 # original i8259A, but it works for some clones and some integrated
172 # MAXMEM specifies the amount of RAM on the machine; if this is not
173 # specified, FreeBSD will first read the amount of memory from the CMOS
174 # RAM, so the amount of memory will initially be limited to 64MB or 16MB
175 # depending on the BIOS. If the BIOS reports 64MB, a memory probe will
176 # then attempt to detect the installed amount of RAM. If this probe
177 # fails to detect >64MB RAM you will have to use the MAXMEM option.
178 # The amount is in kilobytes, so for a machine with 128MB of RAM, it would
179 # be 131072 (128 * 1024).
181 # BROKEN_KEYBOARD_RESET disables the use of the keyboard controller to
182 # reset the CPU for reboot. This is needed on some systems with broken
183 # keyboard controllers.
188 options MAXMEM=(128*1024)
189 #options BROKEN_KEYBOARD_RESET
192 # PCI bus & PCI options:
201 #####################################################################
202 # HARDWARE DEVICE CONFIGURATION
210 hint.psm.0.at="atkbdc"
214 options PSM_HOOKRESUME #hook the system resume event, useful
216 options PSM_RESETAFTERSUSPEND #reset the device at the resume event
218 # The keyboard controller; it controls the keyboard and the PS/2 mouse.
220 hint.atkbdc.0.at="isa"
221 hint.atkbdc.0.port="0x060"
225 hint.atkbd.0.at="atkbdc"
229 options ATKBD_DFLT_KEYMAP # specify the built-in keymap
230 makeoptions ATKBD_DFLT_KEYMAP=jp.106
233 # 0x01 Force detection of keyboard, else we always assume a keyboard
234 # 0x02 Don't reset keyboard, useful for some newer ThinkPads
235 # 0x03 Force detection and avoid reset, might help with certain
237 # 0x04 Old-style (XT) keyboard support, useful for older ThinkPads
239 # Video card driver for VGA adapters.
244 # Try the following option if the mouse pointer is not drawn correctly
245 # or font does not seem to be loaded properly. May cause flicker on
247 options VGA_ALT_SEQACCESS
249 # If you can dispense with some vga driver features, you may want to
250 # use the following options to save some memory.
251 #options VGA_NO_FONT_LOADING # don't save/load font
252 #options VGA_NO_MODE_CHANGE # don't change video modes
254 # Older video cards may require this option for proper operation.
255 options VGA_SLOW_IOACCESS # do byte-wide i/o's to TS and GDC regs
257 # The following option probably won't work with the LCD displays.
258 options VGA_WIDTH90 # support 90 column modes
263 # 3Dfx Voodoo Graphics, Voodoo II /dev/3dfx CDEV support. This will create
264 # the /dev/3dfx0 device to work with glide implementations. This should get
265 # linked to /dev/3dfx and /dev/voodoo. Note that this is not the same as
266 # the tdfx DRI module from XFree86 and is completely unrelated.
268 # To enable Linuxulator support, one must also include COMPAT_LINUX in the
269 # config as well. The other option is to load both as modules.
271 device tdfx # Enable 3Dfx Voodoo support
272 #XXX#device tdfx_linux # Enable Linuxulator support
275 # ACPI support using the Intel ACPI Component Architecture reference
278 # ACPI_DEBUG enables the use of the debug.acpi.level and debug.acpi.layer
279 # kernel environment variables to select initial debugging levels for the
280 # Intel ACPICA code. (Note that the Intel code must also have USE_DEBUGGER
281 # defined when it is built).
283 # ACPI_NO_SEMAPHORES makes the AcpiOs*Semaphore routines a no-op.
287 #!options ACPI_NO_SEMAPHORES
289 # The cpufreq(4) driver provides support for non-ACPI CPU frequency control
292 # Direct Rendering modules for 3D acceleration.
293 device drm # DRM core module required by DRM drivers
294 device i915drm # Intel i830 through i915
295 device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL
296 device mgadrm # AGP Matrox G200, G400, G450, G550
297 device r128drm # ATI Rage 128
298 device radeondrm # ATI Radeon
299 device savagedrm # S3 Savage3D, Savage4
300 device sisdrm # SiS 300/305, 540, 630
301 device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee
302 options DRM_DEBUG # Include debug printfs (slow)
305 # Network interfaces:
308 # ath: Atheros a/b/g WiFi adapters (requires ath_hal and wlan)
309 # ed: Western Digital and SMC 80xx; Novell NE1000 and NE2000; 3Com 3C503
310 # HP PC Lan+, various PC Card devices
312 # ipw: Intel PRO/Wireless 2100 IEEE 802.11 adapter
313 # iwi: Intel PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11 adapters
314 # nfe: nVidia nForce MCP on-board Ethernet Networking (BSD open source)
315 # nve: nVidia nForce MCP on-board Ethernet Networking
316 # ral: Ralink Technology IEEE 802.11 wireless adapter
317 # ural: Ralink Technology RT2500USB IEEE 802.11 wireless adapter
318 # wpi: Intel 3945ABG Wireless LAN controller
326 device nfe # nVidia nForce MCP on-board Ethernet Networking
327 device nve # nVidia nForce MCP on-board Ethernet Networking
333 device ath_hal # Atheros HAL (includes binary component)
334 options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
335 #device ath_rate_amrr # AMRR rate control for ath driver
336 #device ath_rate_onoe # Onoe rate control for ath driver
337 device ath_rate_sample # SampleRate rate control for the ath driver
338 #device wlan # 802.11 layer
341 #XXX this stores pointers in a 32bit field that is defined by the hardware
345 # Areca 11xx and 12xx series of SATA II RAID controllers.
348 device arcmsr # Areca SATA II RAID
351 # 3ware 9000 series PATA/SATA RAID controller driver and options.
352 # The driver is implemented as a SIM, and so, needs the CAM infrastructure.
354 options TWA_DEBUG # 0-10; 10 prints the most messages.
355 options TWA_FLASH_FIRMWARE # firmware image bundled when defined.
356 device twa # 3ware 9000 series PATA/SATA RAID
359 # SCSI host adapters:
361 # ncv: NCR 53C500 based SCSI host adapters.
362 # nsp: Workbit Ninja SCSI-3 based PC Card SCSI host adapters.
363 # stg: TMC 18C30, 18C50 based SCSI host adapters.
370 # Adaptec FSA RAID controllers, including integrated DELL controllers,
371 # the Dell PERC 2/QC and the HP NetRAID-4M
373 device aacp # SCSI Passthrough interface (optional, CAM required)
376 # Highpoint RocketRAID 182x. This is really just software RAID on a
381 # Highpoint RocketRAID. Supports RR172x, RR222x, RR2240, RR232x, RR2340,
382 # RR2210, RR174x, RR2522, RR231x, RR230x.
386 # Highpoint RocketRaid 3xxx series SATA RAID
390 # IBM (now Adaptec) ServeRAID controllers
394 # SafeNet crypto driver: can be moved to the MI NOTES as soon as
395 # it's tested on a big-endian machine
397 device safe # SafeNet 1141
398 options SAFE_DEBUG # enable debugging support: hw.safe.debug
399 options SAFE_RNDTEST # enable rndtest support
401 #####################################################################
404 # Miscellaneous hardware:
406 # ipmi: Intelligent Platform Management Interface
407 # smbios: DMI/SMBIOS entry point
408 # vpd: Vital Product Data kernel interface
409 # cy: Cyclades serial driver
410 # digi: Digiboard driver
412 # Notes on the Specialix SI/XIO driver:
413 # The host card is memory, not IO mapped.
414 # The Rev 1 host cards use a 64K chunk, on a 32K boundary.
415 # The Rev 2 host cards use a 32K chunk, on a 32K boundary.
416 # The cards can use an IRQ of 11, 12 or 15.
419 options CY_PCI_FASTINTR # Use with cy_pci unless irq is shared
421 # BIOS & FEP/OS components of device digi.
430 # Parallel (8255 PPI) basic I/O (mode 0) port (e.g. Advantech PCL-724)
433 hint.pbio.0.port="0x360"
436 # HOT1 Xilinx 6200 card (http://www.vcc.com/)
440 # Laptop/Notebook options:
449 # Hardware watchdog timers:
451 # ichwd: Intel ICH watchdog timer
456 # Temperature sensors:
458 # coretemp: on-die sensor on Intel Core and newer CPUs
459 # k8temp: on-die sensor on AMD K8 CPUs
464 #---------------------------------------------------------------------------
467 # See /usr/share/examples/isdn/ROADMAP for an introduction to isdn4bsd.
469 # i4b passive ISDN cards support contains the following hardware drivers:
471 # isic - Siemens/Infineon ISDN ISAC/HSCX/IPAC chipset driver
472 # iwic - Winbond W6692 PCI bus ISDN S/T interface controller
473 # ifpi - AVM Fritz!Card PCI driver
474 # ifpi2 - AVM Fritz!Card PCI version 2 driver
475 # itjc - Siemens ISAC / TJNet Tiger300/320 chipset
477 # i4b active ISDN cards support contains the following hardware drivers:
479 # iavc - AVM B1 PCI, AVM B1 ISA, AVM T1
481 # Note that the ``options'' (if given) and ``device'' lines must BOTH
482 # be uncommented to enable support for a given card !
484 # In addition to a hardware driver (and probably an option) the mandatory
485 # ISDN protocol stack devices and the mandatory support device must be
486 # enabled as well as one or more devices from the optional devices section.
488 #---------------------------------------------------------------------------
489 # isic driver (Siemens/Infineon chipsets)
496 # ELSA MicroLink ISDN/PCI (same as ELSA QuickStep 1000pro PCI)
499 #---------------------------------------------------------------------------
500 # ifpi2 driver for AVM Fritz!Card PCI version 2
502 # AVM Fritz!Card PCI version 2
505 #---------------------------------------------------------------------------
506 # iwic driver for Winbond W6692 chipset
508 # ASUSCOM P-IN100-ST-D (and other Winbond W6692 based cards)
511 #---------------------------------------------------------------------------
512 # itjc driver for Siemens ISAC / TJNet Tiger300/320 chipset
514 # Traverse Technologies NETjet-S
518 #---------------------------------------------------------------------------
519 # iavc driver (AVM active cards, needs i4bcapi driver!)
523 #---------------------------------------------------------------------------
524 # ISDN Protocol Stack - mandatory for all hardware drivers
526 # Q.921 / layer 2 - i4b passive cards D channel handling
529 # Q.931 / layer 3 - i4b passive cards D channel handling
532 # layer 4 - i4b common passive and active card handling
535 #---------------------------------------------------------------------------
536 # ISDN devices - mandatory for all hardware drivers
538 # userland driver to do ISDN tracing (for passive cards only)
540 #XXX#options NI4BTRC=4
542 # userland driver to control the whole thing
545 #---------------------------------------------------------------------------
546 # ISDN devices - optional
548 # userland driver for access to raw B channel
550 #XXX#options NI4BRBCH=4
552 # userland driver for telephony
554 #XXX#options NI4BTEL=2
556 # network driver for IP over raw HDLC ISDN
558 #XXX#options NI4BIPR=4
559 # enable VJ header compression detection for ipr i/f
561 # enable logging of the first n IP packets to isdnd (n=32 here)
562 #XXX#options IPR_LOG=32
564 # network driver for sync PPP over ISDN; requires an equivalent
565 # number of sppp device to be configured
567 #XXX#options NI4BISPPP=4
569 # B-channel interface to the netgraph subsystem
571 #XXX#options NI4BING=2
573 # CAPI driver needed for active ISDN cards (see iavc driver above)
576 #---------------------------------------------------------------------------
579 # CPU control pseudo-device. Provides access to MSRs, CPUID info and
580 # microcode update feature.
585 # System Management Bus (SMB)
587 options ENABLE_ALART # Control alarm on Intel intpm driver
590 # Set the number of PV entries per process. Increasing this can
591 # stop panics related to heavy use of shared memory. However, that can
592 # (combined with large amounts of physical memory) cause panics at
593 # boot time due the kernel running out of VM space.
595 # If you're tweaking this, you might also want to increase the sysctls
596 # "vm.v_free_min", "vm.v_free_reserved", and "vm.v_free_target".
598 # The value below is the one more than the default.
600 options PMAP_SHPGPERPROC=201
603 #####################################################################
606 #XXX keep these here for now and reactivate when support for emulating
607 #XXX these 32 bit binaries is added.
609 # Enable 32-bit runtime support for FreeBSD/i386 binaries.
612 # Enable iBCS2 runtime support for SCO and ISC binaries
615 # Emulate spx device for client side of SVR3 local X interface
616 #XXX#options SPX_HACK
618 # Enable Linux ABI emulation
619 #XXX#options COMPAT_LINUX
621 # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and COMPAT_IA32)
622 options COMPAT_LINUX32
624 # Enable the linux-like proc filesystem support (requires COMPAT_LINUX32
628 #Enable the linux-like sys filesystem support (requires COMPAT_LINUX32
633 # SysVR4 ABI emulation
635 # The svr4 ABI emulator can be statically compiled into the kernel or loaded as
637 # The STREAMS network emulation code can also be compiled statically or as a
638 # module. If loaded as a module, it must be loaded before the svr4 module
639 # (the /usr/sbin/svr4 script does this for you). If compiling statically,
640 # the `streams' device must be configured into any kernel which also
641 # specifies COMPAT_SVR4. It is possible to have a statically-configured
642 # STREAMS device and a dynamically loadable svr4 emulator; the /usr/sbin/svr4
643 # script understands that it doesn't need to load the `streams' module under
644 # those circumstances.
645 # Caveat: At this time, `options KTRACE' is required for the svr4 emulator
646 # (whether static or dynamic).
648 #XXX#options COMPAT_SVR4 # build emulator statically
649 #XXX#options DEBUG_SVR4 # enable verbose debugging
650 #XXX#device streams # STREAMS network driver (required for svr4).
653 #####################################################################
656 # KSTACK_PAGES is the number of memory pages to assign to the kernel
657 # stack of each thread.
659 options KSTACK_PAGES=3
661 #####################################################################
663 # More undocumented options for linting.
664 # Note that documenting these are not considered an affront.
666 options FB_INSTALL_CDEV # install a CDEV entry in /dev
668 options KBDIO_DEBUG=2
669 options KBD_MAXRETRY=4
670 options KBD_MAXWAIT=6
671 options KBD_RESETDELAY=201
675 options TIMER_FREQ=((14318182+6)/12)
678 options VM_KMEM_SIZE_MAX
679 options VM_KMEM_SIZE_SCALE
681 # Enable NDIS binary driver support