13fcd5f6cSKazutaka YOKOTA.\" Copyright (c) 2001 23fcd5f6cSKazutaka YOKOTA.\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 33fcd5f6cSKazutaka YOKOTA.\" All rights reserved. 43fcd5f6cSKazutaka YOKOTA.\" 53fcd5f6cSKazutaka YOKOTA.\" Redistribution and use in source and binary forms, with or without 63fcd5f6cSKazutaka YOKOTA.\" modification, are permitted provided that the following conditions 73fcd5f6cSKazutaka YOKOTA.\" are met: 83fcd5f6cSKazutaka YOKOTA.\" 1. Redistributions of source code must retain the above copyright 93fcd5f6cSKazutaka YOKOTA.\" notice, this list of conditions and the following disclaimer as 103fcd5f6cSKazutaka YOKOTA.\" the first lines of this file unmodified. 113fcd5f6cSKazutaka YOKOTA.\" 2. Redistributions in binary form must reproduce the above copyright 123fcd5f6cSKazutaka YOKOTA.\" notice, this list of conditions and the following disclaimer in the 133fcd5f6cSKazutaka YOKOTA.\" documentation and/or other materials provided with the distribution. 143fcd5f6cSKazutaka YOKOTA.\" 153fcd5f6cSKazutaka YOKOTA.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 163fcd5f6cSKazutaka YOKOTA.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 173fcd5f6cSKazutaka YOKOTA.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 183fcd5f6cSKazutaka YOKOTA.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 193fcd5f6cSKazutaka YOKOTA.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 203fcd5f6cSKazutaka YOKOTA.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 213fcd5f6cSKazutaka YOKOTA.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 223fcd5f6cSKazutaka YOKOTA.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 233fcd5f6cSKazutaka YOKOTA.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 243fcd5f6cSKazutaka YOKOTA.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 253fcd5f6cSKazutaka YOKOTA.\" 263fcd5f6cSKazutaka YOKOTA.\" $FreeBSD$ 273fcd5f6cSKazutaka YOKOTA.\" 283fcd5f6cSKazutaka YOKOTA.Dd October 7, 2001 293fcd5f6cSKazutaka YOKOTA.Dt DEVICE.HINTS 5 303fcd5f6cSKazutaka YOKOTA.Os 313fcd5f6cSKazutaka YOKOTA.Sh NAME 323fcd5f6cSKazutaka YOKOTA.Nm device.hints 333fcd5f6cSKazutaka YOKOTA.Nd device resource hints 343fcd5f6cSKazutaka YOKOTA.Sh DESCRIPTION 353fcd5f6cSKazutaka YOKOTAThe 36d1d5d924SRuslan Ermilov.Nm 373fcd5f6cSKazutaka YOKOTAfile is read in by the boot 383fcd5f6cSKazutaka YOKOTA.Xr loader 8 393fcd5f6cSKazutaka YOKOTAwhen the system is about to start and its contents will be 403fcd5f6cSKazutaka YOKOTApassed to the kernel. 413fcd5f6cSKazutaka YOKOTAIt contains various variables to control the boot behavior of 423fcd5f6cSKazutaka YOKOTAthe kernel. 433fcd5f6cSKazutaka YOKOTAThese variables are typically 443fcd5f6cSKazutaka YOKOTA.Dq device hints . 453fcd5f6cSKazutaka YOKOTA.\" .Dq device hints , 463fcd5f6cSKazutaka YOKOTA.\" and other control variables. 473fcd5f6cSKazutaka YOKOTA.Pp 48d1d5d924SRuslan ErmilovThe file contains one variable per line. 49d1d5d924SRuslan ErmilovLines starting with the 50d1d5d924SRuslan Ermilov.Ql # 51d1d5d924SRuslan Ermilovcharacter are comments and are ignored by the boot loader. 523fcd5f6cSKazutaka YOKOTA.Pp 533fcd5f6cSKazutaka YOKOTAAfter the file is read by the boot loader, you may examine 543fcd5f6cSKazutaka YOKOTAthe variables by the 553fcd5f6cSKazutaka YOKOTA.Ic show 563fcd5f6cSKazutaka YOKOTAcommand, and may add a new variable, modify existing one, 573fcd5f6cSKazutaka YOKOTAor delete one by the 583fcd5f6cSKazutaka YOKOTA.Ic set 593fcd5f6cSKazutaka YOKOTAand 603fcd5f6cSKazutaka YOKOTA.Ic unset 613fcd5f6cSKazutaka YOKOTAcommands of the boot loader 62d1d5d924SRuslan Ermilov(see 63d1d5d924SRuslan Ermilov.Xr loader 8 ) . 643fcd5f6cSKazutaka YOKOTA.Pp 653fcd5f6cSKazutaka YOKOTAAfter the system has started, you can dump these variables 663fcd5f6cSKazutaka YOKOTAby the 673fcd5f6cSKazutaka YOKOTA.Xr kenv 1 683fcd5f6cSKazutaka YOKOTAcommand. 693fcd5f6cSKazutaka YOKOTA.Sh DEVICE HINTS 703fcd5f6cSKazutaka YOKOTADevice hint variables are used by device drivers to set up 713fcd5f6cSKazutaka YOKOTAthe device. 723fcd5f6cSKazutaka YOKOTAThey are most often used by ISA device drivers to specify 733fcd5f6cSKazutaka YOKOTAwhere the driver will probe for the relevant devices, and what 743fcd5f6cSKazutaka YOKOTAresources it will attempt to use. 753fcd5f6cSKazutaka YOKOTA.Pp 763fcd5f6cSKazutaka YOKOTAA device hint line looks like: 773fcd5f6cSKazutaka YOKOTA.Pp 78d1d5d924SRuslan Ermilov.Sm off 79d1d5d924SRuslan Ermilov.D1 Li hint. Ar driver Li . Ar unit Li . Ar keyword Li = Qq Ar value 80d1d5d924SRuslan Ermilov.Sm on 813fcd5f6cSKazutaka YOKOTA.Pp 823fcd5f6cSKazutaka YOKOTAwhere 83d1d5d924SRuslan Ermilov.Ar driver 843fcd5f6cSKazutaka YOKOTAis the name of a device driver, 85d1d5d924SRuslan Ermilov.Ar unit 863fcd5f6cSKazutaka YOKOTAis the unit number, 87d1d5d924SRuslan Ermilov.Ar keyword 883fcd5f6cSKazutaka YOKOTAis the keyword of the hint. 893fcd5f6cSKazutaka YOKOTAThe keyword may be: 903fcd5f6cSKazutaka YOKOTA.Pp 91d1d5d924SRuslan Ermilov.Bl -tag -width ".Li disabled" -compact -offset indent 92d1d5d924SRuslan Ermilov.It Li at 933fcd5f6cSKazutaka YOKOTAspecifies a bus to which the device is attached. 94d1d5d924SRuslan Ermilov.It Li port 953fcd5f6cSKazutaka YOKOTAspecifies the start address of I/O ports to be used by the device. 96d1d5d924SRuslan Ermilov.It Li irq 973fcd5f6cSKazutaka YOKOTAis the interrupt line number to be used. 98d1d5d924SRuslan Ermilov.It Li drq 993fcd5f6cSKazutaka YOKOTAis the DMA channel number. 100d1d5d924SRuslan Ermilov.It Li maddr 1013fcd5f6cSKazutaka YOKOTAspecifies the physical memory address occupied by the device. 102d1d5d924SRuslan Ermilov.It Li flags 1033fcd5f6cSKazutaka YOKOTAsets various flag bits for the device. 104d1d5d924SRuslan Ermilov.It Li disabled 1053fcd5f6cSKazutaka YOKOTAis set to 1063fcd5f6cSKazutaka YOKOTA.Qq 1 1073fcd5f6cSKazutaka YOKOTAto disable the device. 1083fcd5f6cSKazutaka YOKOTA.El 1093fcd5f6cSKazutaka YOKOTA.Pp 1103fcd5f6cSKazutaka YOKOTAA device driver may require one or more hint lines with these keywords, 1113fcd5f6cSKazutaka YOKOTAand may accept other keywords not listed here. 1123fcd5f6cSKazutaka YOKOTAConsult individual device drivers' manual pages for available 1133fcd5f6cSKazutaka YOKOTAkeywords and their possible values. 1143fcd5f6cSKazutaka YOKOTA.\" .Sh CONTROL VARIABLES 1153fcd5f6cSKazutaka YOKOTA.\" Lines not starting with 1163fcd5f6cSKazutaka YOKOTA.\" .Dq hint. 1173fcd5f6cSKazutaka YOKOTA.\" specify other control variables for the kernel. 1183fcd5f6cSKazutaka YOKOTA.\" They look: 1193fcd5f6cSKazutaka YOKOTA.\" .Pp 1203fcd5f6cSKazutaka YOKOTA.\" .Dl <name>="<value>" 1213fcd5f6cSKazutaka YOKOTA.\" XXX 1223fcd5f6cSKazutaka YOKOTA.\" WE SHOULD LIST AVAILABLE VARIABLE NAMES AND THEIR POSSIBLE VALUES HERE! 1233fcd5f6cSKazutaka YOKOTA.\" .Pp 1243fcd5f6cSKazutaka YOKOTA.Sh FILES 125d1d5d924SRuslan Ermilov.Bl -tag -width ".Pa /sys/ Ns Ar ARCH Ns Pa /conf/GENERIC.hints" -compact 1263fcd5f6cSKazutaka YOKOTA.It Pa /boot/device.hints 127d1d5d924SRuslan ErmilovDevice resource hints file. 128d1d5d924SRuslan Ermilov.It Pa /sys/ Ns Ar ARCH Ns Pa /conf/GENERIC.hints 129d1d5d924SRuslan ErmilovSample resource hints for the 130d1d5d924SRuslan Ermilov.Pa GENERIC 131d1d5d924SRuslan Ermilovkernel. 132d1d5d924SRuslan Ermilov.It Pa /sys/ Ns Ar ARCH Ns Pa /conf/NOTES 1333fcd5f6cSKazutaka YOKOTANotes on the kernel configuration file and device resource hints. 1343fcd5f6cSKazutaka YOKOTA.El 1353fcd5f6cSKazutaka YOKOTA.Sh EXAMPLES 1363fcd5f6cSKazutaka YOKOTAThe following example sets up resources for the 1373fcd5f6cSKazutaka YOKOTA.Xr sio 4 1383fcd5f6cSKazutaka YOKOTAdriver on the ISA bus. 1393fcd5f6cSKazutaka YOKOTA.Bd -literal -offset indent 1403fcd5f6cSKazutaka YOKOTAhint.sio.0.at="isa" 141d1d5d924SRuslan Ermilovhint.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