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.
--
[EMAIL PROTECTED]
Alcôve - Open Source Software Engineer - http://www.alcove.fr
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message