| From | Sent On | Attachments |
|---|---|---|
| Warner Losh | Dec 29, 1999 1:39 am | |
| Matthew N. Dodd | Dec 29, 1999 1:46 am | |
| Warner Losh | Dec 29, 1999 1:49 am | |
| Doug Rabson | Dec 29, 1999 2:35 am | |
| Warner Losh | Dec 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.)
-- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | win...@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever |
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message





