[POWERPC] Generic OF platform driver for PCI host bridges.
When enabled in Kconfig, it will pick up any of_platform_device matching it's match list (currently type "pci", "pcix", "pcie", or "ht" and setup a PHB for it. Platform must provide a ppc_md.pci_setup_phb() for it to work (for doing the necessary initialisations specific to a given PHB like setting up the config space ops). It's currently only available on 64 bits as the 32 bits PCI code can't quite cope with it in it's current form. I will fix that later. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
803d4573e6
commit
4c9d2800be
@@ -36,14 +36,14 @@ typedef void *(*traverse_func)(struct device_node *me, void *data);
|
||||
void *traverse_pci_devices(struct device_node *start, traverse_func pre,
|
||||
void *data);
|
||||
|
||||
void pci_devs_phb_init(void);
|
||||
void pci_devs_phb_init_dynamic(struct pci_controller *phb);
|
||||
int setup_phb(struct device_node *dev, struct pci_controller *phb);
|
||||
void __devinit scan_phb(struct pci_controller *hose);
|
||||
extern void pci_devs_phb_init(void);
|
||||
extern void pci_devs_phb_init_dynamic(struct pci_controller *phb);
|
||||
extern void scan_phb(struct pci_controller *hose);
|
||||
|
||||
/* From rtas_pci.h */
|
||||
void init_pci_config_tokens (void);
|
||||
unsigned long get_phb_buid (struct device_node *);
|
||||
extern void init_pci_config_tokens (void);
|
||||
extern unsigned long get_phb_buid (struct device_node *);
|
||||
extern int rtas_setup_phb(struct pci_controller *phb);
|
||||
|
||||
/* From pSeries_pci.h */
|
||||
extern void pSeries_final_fixup(void);
|
||||
|
Reference in New Issue
Block a user