Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2004 13:15:05 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-current@FreeBSD.org
Cc:        Forrest Aldrich <forrie@forrie.com>
Subject:   Re: device.hints howto
Message-ID:  <200409281315.05829.jhb@FreeBSD.org>
In-Reply-To: <4155C2B8.50104@forrie.com>
References:  <4155C2B8.50104@forrie.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 25 September 2004 03:10 pm, Forrest Aldrich wrote:
> What's the correct process to build one of these files -- take the
> output from dmesg and wander through to get the figures?

I usually start from GENERIC.hints and cut out the stuff I don't need.  Since 
ACPI/PnPBIOS enumerates most built in devices anyways, it usually ends up 
being a short list unless you have some actual ISA cards.  Mine is usually 
something like:

# $FreeBSD: src/sys/i386/conf/GENERIC.hints,v 1.11 2002/12/05 22:49:47 jhb Exp 
$
hint.fd.0.at="fdc0"
hint.fd.0.drive="0"
hint.sc.0.at="isa"
hint.sc.0.flags="0x100"
hint.sio.0.at="isa"
hint.sio.0.port="0x3F8"
hint.sio.0.flags="0x10"
hint.sio.0.irq="4"

The fd0 hints shouldn't even be needed anymore now on ACPI systems with the 
new fdc(4) driver and the sio0 ones are only there so I can set the flags for 
a serial console.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409281315.05829.jhb>