Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2001 15:32:49 +0100
From:      Nicolas Souchu <nsouch@alcove.fr>
To:        "Matthew C. Forman" <mcf@forman.homeip.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Allocating I/O port space
Message-ID:  <20010103153249.A21984@wiliam.alcove-int>
In-Reply-To: <Pine.BSF.4.21.0012291215400.507-100000@theo.forman.homeip.net>; from mcf@forman.homeip.net on Fri, Dec 29, 2000 at 12:26:53PM %2B0000
References:  <Pine.BSF.4.21.0012291215400.507-100000@theo.forman.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 29, 2000 at 12:26:53PM +0000, Matthew C. Forman wrote:
> 
> Hi again all,
> 
> Well, despite the reception I'm still here, desperately trying to allocate
> an I/O port range! Still can't get bus_alloc_resource to work, despite
> doing everything by the book. I have a question. My kernel prints this:
> 
> amdpm0: <AMD 756 Power Management Controller> at device 7.3 on pci0
> 
> ...before amdpm_attach complains it can't map any I/O space. Where
> does the resource info printed here come from? Does the fact 

The probe.

> that nothing is printed about ports mean that as far as the system is
> concerned, it doesn't have any? Is this why bus_alloc_resource
> fails? Sorry if the answers seem obvious, but I'm learning, so please be
> patient!
> 
> If all this is the case, then how could I allocate the I/O space I need?

Try to bus_set_resource() in the probe routine, then alloc them in the
attach one. You should get what you want in the detection message.

-- 
Nicolas.Souchu@alcove.fr
Alcôve - Open Source Software Engineer - http://www.alcove.fr


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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