@ -185,7 +185,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
}
}
--- /dev/null
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pci_common.h
+++ b/arch/mips/pci/ifxmips_pci_common.h
@@ -0,0 +1,5 7 @@
@@ -0,0 +1,5 3 @@
+/******************************************************************************
+/******************************************************************************
+**
+**
+** FILE NAME : ifxmips_pci_common.h
+** FILE NAME : ifxmips_pci_common.h
@ -226,11 +226,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ \ingroup IFX_PCI_COM
+ \ingroup IFX_PCI_COM
+ \brief PCI/PCIe bus driver common OS header file
+ \brief PCI/PCIe bus driver common OS header file
+*/
+*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#define IFX_PCI_CONST
+#else
+#define IFX_PCI_CONST const
+#define IFX_PCI_CONST const
+#endif
+#ifdef CONFIG_IFX_PCI
+#ifdef CONFIG_IFX_PCI
+extern int ifx_pci_bios_map_irq(IFX_PCI_CONST struct pci_dev *dev, u8 slot, u8 pin);
+extern int ifx_pci_bios_map_irq(IFX_PCI_CONST struct pci_dev *dev, u8 slot, u8 pin);
+extern int ifx_pci_bios_plat_dev_init(struct pci_dev *dev);
+extern int ifx_pci_bios_plat_dev_init(struct pci_dev *dev);
@ -1340,7 +1336,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+
+
--- /dev/null
--- /dev/null
+++ b/arch/mips/pci/ifxmips_pcie.h
+++ b/arch/mips/pci/ifxmips_pcie.h
@@ -0,0 +1,13 5 @@
@@ -0,0 +1,13 1 @@
+/******************************************************************************
+/******************************************************************************
+**
+**
+** FILE NAME : ifxmips_pcie.h
+** FILE NAME : ifxmips_pcie.h
@ -1394,10 +1390,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ spin_unlock_irqrestore(&(lock), flags); \
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+} while (0)
+
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#define IRQF_SHARED SA_SHIRQ
+#endif
+
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004
+#define PCIE_MSG_FIXUP 0x00000004
@ -4174,7 +4166,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+EXPORT_SYMBOL(pcibios_1st_host_bus_nr);
+EXPORT_SYMBOL(pcibios_1st_host_bus_nr);
--- /dev/null
--- /dev/null
+++ b/arch/mips/pci/pcie-lantiq.h
+++ b/arch/mips/pci/pcie-lantiq.h
@@ -0,0 +1,130 5 @@
@@ -0,0 +1,130 1 @@
+/******************************************************************************
+/******************************************************************************
+**
+**
+** FILE NAME : ifxmips_pcie_reg.h
+** FILE NAME : ifxmips_pcie_reg.h
@ -5185,10 +5177,6 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ spin_unlock_irqrestore(&(lock), flags); \
+ spin_unlock_irqrestore(&(lock), flags); \
+} while (0)
+} while (0)
+
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#define IRQF_SHARED SA_SHIRQ
+#endif
+
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_MSI 0x00000001
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_ISR 0x00000002
+#define PCIE_MSG_FIXUP 0x00000004
+#define PCIE_MSG_FIXUP 0x00000004