17.4 Device Resource Hints
device.hints File Structure
/
├── boot/ Programs and configuration files used during OS boot
│ └── device.hints Device resource hints file
└── sys/
└── ARCH/ A specific architecture, see kernel for details
└── conf/ Kernel configuration related files
├── GENERIC.hints Device resource hints example for the GENERIC kernel
└── NOTES Notes about kernel configuration files and device resource hintsdevice.hints in the Base System
# Most of the following drivers have been obsoleted by modern computers or are rare on personal PCs
# AT keyboard controller driver atkbdc(4) AT machine, a product of the 1980s
hint.atkbdc.0.at="isa" # at: specifies the bus to which the device is connected
hint.atkbdc.0.port="0x060" # port: specifies the starting I/O port address the device will use
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1" # irq: the interrupt line number to use
# PS/2 peripheral IBM compatible mouse driver psm(4), a product of the 1980s
#isa
# └── atkbdc0
# ├── atkbd0
# └── psm0
hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"
# syscons(4) traditional console driver
# Note: syscons(4) has been gradually replaced by vt(4) (Newcons) since FreeBSD 9.x.
# vt(4) provides better Unicode support, KMS integration, and modern graphics card compatibility, and has become the default console driver.
# The following hint.sc entries are for historical reference only; modern FreeBSD uses vt(4) by default.
hint.sc.0.at="isa"
hint.sc.0.flags="0x100" # flags: set flag bits for the device
# Serial port driver uart(4)
hint.uart.0.at="acpi" # This sets COM1
hint.uart.0.port="0x3F8"
hint.uart.0.flags="0x10"
hint.uart.1.at="acpi" # This sets COM2
hint.uart.1.port="0x2F8"
# RTC driver (real-time clock atrtc(4))
hint.atrtc.0.at="isa"
hint.atrtc.0.port="0x70"
hint.atrtc.0.irq="8"
# i8254 programmable interval timer (AT timer) driver attimer(4)
hint.attimer.0.at="isa"
hint.attimer.0.port="0x40"
hint.attimer.0.irq="0"
# Disable ACPI CPU throttle driver, see cpufreq(4)
hint.acpi_throttle.0.disabled="1" # disabled: setting to "1" means disable this device
# Disable Pentium 4 thermal control, see cpufreq(4)
hint.p4tcc.0.disabled="1"device.hints Syntax
Keyword
Description
Stage 3 Boot Loader
References
Exercises
Last updated