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

Li-Ta Lo ollie at lanl.gov
Wed Sep 8 11:17:01 CEST 2004


On Wed, 2004-09-08 at 09:17, Richard Smith wrote:
> 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.
> 

I don't think either V1 or V2 can do expansion ROM. It is the first 
thing on my todo list for porting testbios into LB.

> 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?
> 

What's red book ?

Ollie





More information about the coreboot mailing list