vserver 1.9.3
[linux-2.6.git] / include / asm-ppc64 / pci-bridge.h
index acb6aff..a51c604 100644 (file)
@@ -33,9 +33,9 @@ enum phb_types {
 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;
@@ -70,8 +70,8 @@ struct pci_controller {
  * 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);
 
@@ -87,6 +87,9 @@ static inline struct device_node *pci_device_to_OF_node(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.
  */