Allocateing resouces for PCI expansion roms... (was 440bx VGA probs)

Richard Smith rsmith at bitworks.com
Wed Sep 8 09:59:01 CEST 2004


Ronald G. Minnich wrote:

I'm changing the subject to something more specific.

>>think is the "right" way then I'm game.  And if someone will guide me through
>>what needs to be done in the PCI allocation stuff I'll give it a whirl but at
>>first blush that PCI allocation stuff appears fairly complex.
> 
> For V1, we're not too worried about pretty. I'll try to work up an example 
> for you.

Dude, you've got plenty to do....  A few rough explanations on whats 
going on may be all I need.

I dug through the PCI code last night and I seem to be getting the jist 
of how it goes.  I don't quite yet grok the actual allocation "scheme" 
but the magic seems to be happening in pci_set_resource() in linuxpci.c 
and compute_allocate_resource in newpci.c.

Neither of these seem to understand expansion roms.  What resource flags 
   will be set for a device with expansion roms?  MEM? but with perhaps 
with IORESOURCE_SHADOWABLE?  I don't see anything specific to expansion 
roms.

The red book so far hasn't been much help.  Or I just haven't found the 
right section.  Eric (or anybody else): where did you get your info when 
you re-factored all this code?







More information about the coreboot mailing list