2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2004-2008 Cavium Networks
8 #ifndef __OCTEON_IRQ_H__
9 #define __OCTEON_IRQ_H__
11 #define NR_IRQS OCTEON_IRQ_LAST
12 #define MIPS_CPU_IRQ_BASE OCTEON_IRQ_SW0
15 /* 1 - 8 represent the 8 MIPS standard interrupt sources */
18 /* CIU0, CUI2, CIU4 are 3, 4, 5 */
22 /* sources in CIU_INTX_EN0 */
24 OCTEON_IRQ_GPIO0
= OCTEON_IRQ_WORKQ0
+ 16,
25 OCTEON_IRQ_WDOG0
= OCTEON_IRQ_GPIO0
+ 16,
26 OCTEON_IRQ_WDOG15
= OCTEON_IRQ_WDOG0
+ 15,
27 OCTEON_IRQ_MBOX0
= OCTEON_IRQ_WDOG0
+ 16,
45 OCTEON_IRQ_GMX_DRP0
= OCTEON_IRQ_TRACE0
+ 4,
46 OCTEON_IRQ_IPD_DRP
= OCTEON_IRQ_GMX_DRP0
+ 5,
63 OCTEON_IRQ_MIO
, /* Summary of MIO_BOOT_ERR */
64 OCTEON_IRQ_IOB
, /* Summary of IOB_INT_SUM */
65 OCTEON_IRQ_FPA
, /* Summary of FPA_INT_SUM */
66 OCTEON_IRQ_POW
, /* Summary of POW_ECC_ERR */
67 OCTEON_IRQ_L2C
, /* Summary of L2C_INT_STAT */
68 OCTEON_IRQ_IPD
, /* Summary of IPD_INT_SUM */
69 OCTEON_IRQ_PIP
, /* Summary of PIP_INT_REG */
70 OCTEON_IRQ_PKO
, /* Summary of PKO_REG_ERROR */
71 OCTEON_IRQ_ZIP
, /* Summary of ZIP_ERROR */
72 OCTEON_IRQ_TIM
, /* Summary of TIM_REG_ERROR */
73 OCTEON_IRQ_RAD
, /* Summary of RAD_REG_ERROR */
74 OCTEON_IRQ_KEY
, /* Summary of KEY_INT_SUM */
75 OCTEON_IRQ_DFA
, /* Summary of DFA */
76 OCTEON_IRQ_USBCTL
, /* Summary of USBN0_INT_SUM */
77 OCTEON_IRQ_SLI
, /* Summary of SLI_INT_SUM */
78 OCTEON_IRQ_DPI
, /* Summary of DPI_INT_SUM */
79 OCTEON_IRQ_AGX0
, /* Summary of GMX0*+PCS0_INT*_REG */
80 OCTEON_IRQ_AGL
= OCTEON_IRQ_AGX0
+ 5,
87 OCTEON_IRQ_DFM
= OCTEON_IRQ_LMC0
+ 4, /* Summary of DFM */
92 /* 152 - 407 represent the MSI interrupts 0-255 */
93 #define OCTEON_IRQ_MSI_BIT0 (OCTEON_IRQ_RST + 1)
95 #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255)
96 #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1)
98 #define OCTEON_IRQ_LAST (OCTEON_IRQ_RST + 1)