On Apr 17, 2009, at 3:33 AM, Benjamin Herrenschmidt wrote:
On Fri, 2009-04-17 at 10:03 +0200, Roderick Colenbrander wrote:
There are cases when it is really needed (or you would have to access
the address and data bus by hand). In my case I'm using a Xilinx PLB
soft-core and if certain options in the configuration header aren't
set (which aren't set by default) the soft-core is basically
disabled.
Cases like this look like valid cases in which early config should be
used.
I still wonder whether we could just setup the pci_controller data
structure and use "normal" PCI config access routines...
The problem is that the "normal" PCI config access routines need a
pci_bus. However we don't have one yet and we need to do PCI config
cycles to the PHB before we call the remainder of the setup code to
get one.
We could all call our own ops directly and provide a fake bus but this
is pretty much what the early routines do for us in a common way.
- k
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev