summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/netlogic/xlp-hal/pic.h
diff options
context:
space:
mode:
authorGanesan Ramalingam <ganesanr@broadcom.com>2014-05-09 15:05:49 +0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-30 18:51:02 +0400
commitd66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf (patch)
tree39f0d8fa0dacfd9f7ab7794bbdd330160af173c9 /arch/mips/include/asm/netlogic/xlp-hal/pic.h
parent1c98398662c9b4e2f03f64344f83dd6cb14e0420 (diff)
downloadlinux-d66f3f0e10b49df8d0cc0d8eb5bf2ef9863a33cf.tar.xz
MIPS: Add MSI support for XLP9XX
In XLP9XX, the interrupt routing table for MSI-X has been moved to the PCIe controller's config space from PIC. There are also 32 MSI-X interrupts available per link on XLP9XX. Update XLP MSI/MSI-X code to handle this. Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: g@linux-mips.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6912/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal/pic.h')
-rw-r--r--arch/mips/include/asm/netlogic/xlp-hal/pic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/pic.h b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
index f10bf3bba58f..41cefe94f0c9 100644
--- a/arch/mips/include/asm/netlogic/xlp-hal/pic.h
+++ b/arch/mips/include/asm/netlogic/xlp-hal/pic.h
@@ -199,6 +199,10 @@
#define PIC_IRT_PCIE_LINK_3_INDEX 81
#define PIC_IRT_PCIE_LINK_INDEX(num) ((num) + PIC_IRT_PCIE_LINK_0_INDEX)
+#define PIC_9XX_IRT_PCIE_LINK_0_INDEX 191
+#define PIC_9XX_IRT_PCIE_LINK_INDEX(num) \
+ ((num) + PIC_9XX_IRT_PCIE_LINK_0_INDEX)
+
#define PIC_CLOCK_TIMER 7
#if !defined(LOCORE) && !defined(__ASSEMBLY__)