atom feed5 messages in org.freebsd.freebsd-new-busRe: Another question
FromSent OnAttachments
Warner LoshDec 29, 1999 1:39 am 
Matthew N. DoddDec 29, 1999 1:46 am 
Warner LoshDec 29, 1999 1:49 am 
Doug RabsonDec 29, 1999 2:35 am 
Warner LoshDec 29, 1999 8:22 am 
Subject:Re: Another question
From:Matthew N. Dodd (win@jurai.net)
Date:Dec 29, 1999 1:46:33 am
List:org.freebsd.freebsd-new-bus

On Wed, 29 Dec 1999, Warner Losh wrote:

I've allocated a 16k chunk of system isa memory at the bridge level. From time to time children need a hunk of this memory to map in their attribute memory. The attribute memory has various config registers in it as well as the CIS. My thinking on the matter was that I'd allocate the 16k chunk at bridge attach time, and then just give it out to the children who are requesting a memory area be mapped in as the default. However, when I go to do this, the allocation fails because the bridge is holding the allocation.

If I understand the issue correctly, your call to bus_alloc_resource() is failing because you are using bus_generic_alloc_resource() as PCCARD's BUS_ALLOC_RESOURCE() handler.

What you should be doing is using your own method to arbitrate access to the parents already allocated resources (ie, not passing the resource allocation up to the parent's parent.)

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