13fcd5f6cSKazutaka YOKOTA.\" 23fcd5f6cSKazutaka YOKOTA.\" Copyright (c) 2001 33fcd5f6cSKazutaka YOKOTA.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 43fcd5f6cSKazutaka YOKOTA.\" All rights reserved. 53fcd5f6cSKazutaka YOKOTA.\" 63fcd5f6cSKazutaka YOKOTA.\" Redistribution and use in source and binary forms, with or without 73fcd5f6cSKazutaka YOKOTA.\" modification, are permitted provided that the following conditions 83fcd5f6cSKazutaka YOKOTA.\" are met: 93fcd5f6cSKazutaka YOKOTA.\" 1. Redistributions of source code must retain the above copyright 103fcd5f6cSKazutaka YOKOTA.\" notice, this list of conditions and the following disclaimer as 113fcd5f6cSKazutaka YOKOTA.\" the first lines of this file unmodified. 123fcd5f6cSKazutaka YOKOTA.\" 2. Redistributions in binary form must reproduce the above copyright 133fcd5f6cSKazutaka YOKOTA.\" notice, this list of conditions and the following disclaimer in the 143fcd5f6cSKazutaka YOKOTA.\" documentation and/or other materials provided with the distribution. 153fcd5f6cSKazutaka YOKOTA.\" 163fcd5f6cSKazutaka YOKOTA.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 173fcd5f6cSKazutaka YOKOTA.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 183fcd5f6cSKazutaka YOKOTA.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 193fcd5f6cSKazutaka YOKOTA.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 203fcd5f6cSKazutaka YOKOTA.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 213fcd5f6cSKazutaka YOKOTA.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 223fcd5f6cSKazutaka YOKOTA.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 233fcd5f6cSKazutaka YOKOTA.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 243fcd5f6cSKazutaka YOKOTA.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 253fcd5f6cSKazutaka YOKOTA.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 263fcd5f6cSKazutaka YOKOTA.\" 273fcd5f6cSKazutaka YOKOTA.\" $FreeBSD$ 283fcd5f6cSKazutaka YOKOTA.\" 293fcd5f6cSKazutaka YOKOTA.Dd October 7, 2001 303fcd5f6cSKazutaka YOKOTA.Dt DEVICE.HINTS 5 313fcd5f6cSKazutaka YOKOTA.Os 323fcd5f6cSKazutaka YOKOTA.Sh NAME 333fcd5f6cSKazutaka YOKOTA.Nm device.hints 343fcd5f6cSKazutaka YOKOTA.Nd device resource hints 353fcd5f6cSKazutaka YOKOTA.Sh DESCRIPTION 363fcd5f6cSKazutaka YOKOTAThe 373fcd5f6cSKazutaka YOKOTA.Pa /boot/device.hints 383fcd5f6cSKazutaka YOKOTAfile is read in by the boot 393fcd5f6cSKazutaka YOKOTA.Xr loader 8 403fcd5f6cSKazutaka YOKOTAwhen the system is about to start and its contents will be 413fcd5f6cSKazutaka YOKOTApassed to the kernel. 423fcd5f6cSKazutaka YOKOTAIt contains various variables to control the boot behavior of 433fcd5f6cSKazutaka YOKOTAthe kernel. 443fcd5f6cSKazutaka YOKOTAThese variables are typically 453fcd5f6cSKazutaka YOKOTA.Dq device hints . 463fcd5f6cSKazutaka YOKOTA.\" .Dq device hints , 473fcd5f6cSKazutaka YOKOTA.\" and other control variables. 483fcd5f6cSKazutaka YOKOTA.Pp 493fcd5f6cSKazutaka YOKOTAThe file contain one variable per line. 503fcd5f6cSKazutaka YOKOTALines starting with 513fcd5f6cSKazutaka YOKOTA.Li # 523fcd5f6cSKazutaka YOKOTAare comments and are ignore by the boot loader. 533fcd5f6cSKazutaka YOKOTA.Pp 543fcd5f6cSKazutaka YOKOTAAfter the file is read by the boot loader, you may examine 553fcd5f6cSKazutaka YOKOTAthe variables by the 563fcd5f6cSKazutaka YOKOTA.Ic show 573fcd5f6cSKazutaka YOKOTAcommand, and may add a new variable, modify existing one, 583fcd5f6cSKazutaka YOKOTAor delete one by the 593fcd5f6cSKazutaka YOKOTA.Ic set 603fcd5f6cSKazutaka YOKOTAand 613fcd5f6cSKazutaka YOKOTA.Ic unset 623fcd5f6cSKazutaka YOKOTAcommands of the boot loader 633fcd5f6cSKazutaka YOKOTA.Po 643fcd5f6cSKazutaka YOKOTAsee 653fcd5f6cSKazutaka YOKOTA.Xr loader 8 663fcd5f6cSKazutaka YOKOTA.Pc . 673fcd5f6cSKazutaka YOKOTA.Pp 683fcd5f6cSKazutaka YOKOTAAfter the system has started, you can dump these variables 693fcd5f6cSKazutaka YOKOTAby the 703fcd5f6cSKazutaka YOKOTA.Xr kenv 1 713fcd5f6cSKazutaka YOKOTAcommand. 723fcd5f6cSKazutaka YOKOTA.Sh DEVICE HINTS 733fcd5f6cSKazutaka YOKOTADevice hint variables are used by device drivers to set up 743fcd5f6cSKazutaka YOKOTAthe device. 753fcd5f6cSKazutaka YOKOTAThey are most often used by ISA device drivers to specify 763fcd5f6cSKazutaka YOKOTAwhere the driver will probe for the relevant devices, and what 773fcd5f6cSKazutaka YOKOTAresources it will attempt to use. 783fcd5f6cSKazutaka YOKOTA.Pp 793fcd5f6cSKazutaka YOKOTAA device hint line looks like: 803fcd5f6cSKazutaka YOKOTA.Pp 813fcd5f6cSKazutaka YOKOTA.Dl hint.<driver>.<unit>.<keyword>="<value>" 823fcd5f6cSKazutaka YOKOTA.Pp 833fcd5f6cSKazutaka YOKOTAwhere 843fcd5f6cSKazutaka YOKOTA.Ar <driver> 853fcd5f6cSKazutaka YOKOTAis the name of a device driver, 863fcd5f6cSKazutaka YOKOTA.Ar <unit> 873fcd5f6cSKazutaka YOKOTAis the unit number, 883fcd5f6cSKazutaka YOKOTA.Ar <keyword> 893fcd5f6cSKazutaka YOKOTAis the keyword of the hint. 903fcd5f6cSKazutaka YOKOTAThe keyword may be: 913fcd5f6cSKazutaka YOKOTA.Pp 923fcd5f6cSKazutaka YOKOTA.Bl -tag -width "disabledXXX" -compact -offset indent 933fcd5f6cSKazutaka YOKOTA.It at 943fcd5f6cSKazutaka YOKOTAspecifies a bus to which the device is attached. 953fcd5f6cSKazutaka YOKOTA.It port 963fcd5f6cSKazutaka YOKOTAspecifies the start address of I/O ports to be used by the device. 973fcd5f6cSKazutaka YOKOTA.It irq 983fcd5f6cSKazutaka YOKOTAis the interrupt line number to be used. 993fcd5f6cSKazutaka YOKOTA.It drq 1003fcd5f6cSKazutaka YOKOTAis the DMA channel number. 1013fcd5f6cSKazutaka YOKOTA.It maddr 1023fcd5f6cSKazutaka YOKOTAspecifies the physical memory address occupied by the device. 1033fcd5f6cSKazutaka YOKOTA.It flags 1043fcd5f6cSKazutaka YOKOTAsets various flag bits for the device. 1053fcd5f6cSKazutaka YOKOTA.It disabled 1063fcd5f6cSKazutaka YOKOTAis set to 1073fcd5f6cSKazutaka YOKOTA.Qq 1 1083fcd5f6cSKazutaka YOKOTAto disable the device. 1093fcd5f6cSKazutaka YOKOTA.El 1103fcd5f6cSKazutaka YOKOTA.Pp 1113fcd5f6cSKazutaka YOKOTAA device driver may require one or more hint lines with these keywords, 1123fcd5f6cSKazutaka YOKOTAand may accept other keywords not listed here. 1133fcd5f6cSKazutaka YOKOTAConsult individual device drivers' manual pages for available 1143fcd5f6cSKazutaka YOKOTAkeywords and their possible values. 1153fcd5f6cSKazutaka YOKOTA.\" .Sh CONTROL VARIABLES 1163fcd5f6cSKazutaka YOKOTA.\" Lines not starting with 1173fcd5f6cSKazutaka YOKOTA.\" .Dq hint. 1183fcd5f6cSKazutaka YOKOTA.\" specify other control variables for the kernel. 1193fcd5f6cSKazutaka YOKOTA.\" They look: 1203fcd5f6cSKazutaka YOKOTA.\" .Pp 1213fcd5f6cSKazutaka YOKOTA.\" .Dl <name>="<value>" 1223fcd5f6cSKazutaka YOKOTA.\" XXX 1233fcd5f6cSKazutaka YOKOTA.\" WE SHOULD LIST AVAILABLE VARIABLE NAMES AND THEIR POSSIBLE VALUES HERE! 1243fcd5f6cSKazutaka YOKOTA.\" .Pp 1253fcd5f6cSKazutaka YOKOTA.Sh FILES 1263fcd5f6cSKazutaka YOKOTA.Bl -tag -width /sys/<arch>/conf/GENERIC.hintsXXX -compact 1273fcd5f6cSKazutaka YOKOTA.It Pa /boot/device.hints 1283fcd5f6cSKazutaka YOKOTADevice resource hint file. 1293fcd5f6cSKazutaka YOKOTA.It Pa /sys/<arch>/conf/GENERIC.hints 1303fcd5f6cSKazutaka YOKOTASample resource hints for the GENERIC kernel. 1313fcd5f6cSKazutaka YOKOTA.It Pa /sys/<arch>/conf/NOTES 1323fcd5f6cSKazutaka YOKOTANotes on the kernel configuration file and device resource hints. 1333fcd5f6cSKazutaka YOKOTA.El 1343fcd5f6cSKazutaka YOKOTA.Sh EXAMPLES 1353fcd5f6cSKazutaka YOKOTAThe following example sets up resources for the 1363fcd5f6cSKazutaka YOKOTA.Xr sio 4 1373fcd5f6cSKazutaka YOKOTAdriver on the ISA bus. 1383fcd5f6cSKazutaka YOKOTA.Pp 1393fcd5f6cSKazutaka YOKOTA.Bd -literal -offset indent 1403fcd5f6cSKazutaka YOKOTAhint.sio.0.at="isa" 1413fcd5f6cSKazutaka YOKOTAhint.sio.0.port="0x3f8" 1423fcd5f6cSKazutaka YOKOTAhint.sio.0.flags="0x10" 1433fcd5f6cSKazutaka YOKOTAhint.sio.0.irq="4" 1443fcd5f6cSKazutaka YOKOTA.Ed 1453fcd5f6cSKazutaka YOKOTA.\" .Pp 1463fcd5f6cSKazutaka YOKOTA.\" A control variable may look like: 1473fcd5f6cSKazutaka YOKOTA.\" .Pp 1483fcd5f6cSKazutaka YOKOTA.\" .Bd -literal -offset indent 1493fcd5f6cSKazutaka YOKOTA.\" debug.acpi.layer="ACPI_RESOURCES" 1503fcd5f6cSKazutaka YOKOTA.\" .Ed 1513fcd5f6cSKazutaka YOKOTA.Sh SEE ALSO 1523fcd5f6cSKazutaka YOKOTA.Xr kenv 1 , 1533fcd5f6cSKazutaka YOKOTA.Xr loader.conf 5 , 1543fcd5f6cSKazutaka YOKOTA.Xr loader 8 1553fcd5f6cSKazutaka YOKOTA.Sh HISTORY 1563fcd5f6cSKazutaka YOKOTAThe 1573fcd5f6cSKazutaka YOKOTA.Nm 1583fcd5f6cSKazutaka YOKOTAfile first appeared in 1593fcd5f6cSKazutaka YOKOTA.Fx 5.0 . 160