]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/ssb/ssb_driver_pci.h
ide: make ide_pci_check_iomem() actually work
[linux-2.6-omap-h63xx.git] / include / linux / ssb / ssb_driver_pci.h
index 9cfffb7b1a27f6aaab74b0bc5dd5795c7e2aab85..41e330e51c2a2156424274e2cacc6e257a1a4292 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef LINUX_SSB_PCICORE_H_
 #define LINUX_SSB_PCICORE_H_
 
+#include <linux/types.h>
+
+struct pci_dev;
+
+
 #ifdef CONFIG_SSB_DRIVER_PCICORE
 
 /* PCI core registers. */
 #define  SSB_PCICORE_SBTOPCI1_MASK     0xFC000000
 #define SSB_PCICORE_SBTOPCI2           0x0108  /* Backplane to PCI translation 2 (sbtopci2) */
 #define  SSB_PCICORE_SBTOPCI2_MASK     0xC0000000
+#define SSB_PCICORE_PCICFG0            0x0400  /* PCI config space 0 (rev >= 8) */
+#define SSB_PCICORE_PCICFG1            0x0500  /* PCI config space 1 (rev >= 8) */
+#define SSB_PCICORE_PCICFG2            0x0600  /* PCI config space 2 (rev >= 8) */
+#define SSB_PCICORE_PCICFG3            0x0700  /* PCI config space 3 (rev >= 8) */
+#define SSB_PCICORE_SPROM(wordoffset)  (0x0800 + ((wordoffset) * 2)) /* SPROM shadow area (72 bytes) */
 
 /* SBtoPCIx */
 #define SSB_PCICORE_SBTOPCI_MEM                0x00000000
@@ -83,6 +93,9 @@ extern void ssb_pcicore_init(struct ssb_pcicore *pc);
 extern int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
                                          struct ssb_device *dev);
 
+int ssb_pcicore_plat_dev_init(struct pci_dev *d);
+int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin);
+
 
 #else /* CONFIG_SSB_DRIVER_PCICORE */
 
@@ -102,5 +115,16 @@ int ssb_pcicore_dev_irqvecs_enable(struct ssb_pcicore *pc,
        return 0;
 }
 
+static inline
+int ssb_pcicore_plat_dev_init(struct pci_dev *d)
+{
+       return -ENODEV;
+}
+static inline
+int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
+{
+       return -ENODEV;
+}
+
 #endif /* CONFIG_SSB_DRIVER_PCICORE */
 #endif /* LINUX_SSB_PCICORE_H_ */