struct pci_controller {
char what[8]; /* Eye catcher */
enum phb_types type; /* Type of hardware */
- struct pci_controller *next;
struct pci_bus *bus;
void *arch_data;
+ struct list_head list_node;
int first_busno;
int last_busno;
* for a device on a PCI bus, given its device_node struct.
* It returns 0 if OK, -1 on error.
*/
-int pci_device_loc(struct device_node *dev, unsigned char *bus_ptr,
- unsigned char *devfn_ptr);
+extern int pci_device_loc(struct device_node *dev, unsigned char *bus_ptr,
+ unsigned char *devfn_ptr);
struct device_node *fetch_dev_dn(struct pci_dev *dev);
return fetch_dev_dn(dev);
}
+extern void pci_process_bridge_OF_ranges(struct pci_controller *hose,
+ struct device_node *dev, int primary);
+
/* Use this macro after the PCI bus walk for max performance when it
* is known that sysdata is correct.
*/