powerpc/pci: Pull ppc32 PCI features into common
Some of the PCI features we have in ppc32 we will need on ppc64 platforms in the future. These include support for: * ppc_md.pci_exclude_device * indirect config cycles * early config cycles We also simplified the logic in fake_pci_bus() to assume it will always get a valid pci_controller. Since all current callers seem to pass it one. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
fbe6544719
commit
89c2dd62a3
@@ -209,14 +209,14 @@ struct machdep_calls {
|
||||
/*
|
||||
* optional PCI "hooks"
|
||||
*/
|
||||
/* Called in indirect_* to avoid touching devices */
|
||||
int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
|
||||
|
||||
/* Called at then very end of pcibios_init() */
|
||||
void (*pcibios_after_init)(void);
|
||||
|
||||
#endif /* CONFIG_PPC32 */
|
||||
|
||||
/* Called in indirect_* to avoid touching devices */
|
||||
int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
|
||||
|
||||
/* Called after PPC generic resource fixup to perform
|
||||
machine specific fixups */
|
||||
void (*pcibios_fixup_resources)(struct pci_dev *);
|
||||
|
Reference in New Issue
Block a user