]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-ppc/pci-bridge.h
[POWERPC] Add "parent" struct device for PCI host bridges
[linux-2.6-omap-h63xx.git] / include / asm-ppc / pci-bridge.h
index e58c78f90a5a20849b8927a58c2187b519f50616..6c955d0c1ef0d217199f30ea358dd1f03cf45e31 100644 (file)
@@ -43,6 +43,7 @@ struct pci_controller {
        struct pci_controller *next;
         struct pci_bus *bus;
        void *arch_data;
+       struct device *parent;
 
        int first_busno;
        int last_busno;
@@ -137,5 +138,14 @@ static inline unsigned char bridge_swizzle(unsigned char pin,
  */
 extern int pciauto_bus_scan(struct pci_controller *, int);
 
+#ifdef CONFIG_PCI
+extern unsigned long pci_address_to_pio(phys_addr_t address);
+#else
+static inline unsigned long pci_address_to_pio(phys_addr_t address)
+{
+       return (unsigned long)-1;
+}
+#endif
+
 #endif
 #endif /* __KERNEL__ */