irq.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  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
  4. * for more details.
  5. *
  6. * Copyright (C) 2004-2008 Cavium Networks
  7. */
  8. #ifndef __OCTEON_IRQ_H__
  9. #define __OCTEON_IRQ_H__
  10. #define NR_IRQS OCTEON_IRQ_LAST
  11. #define MIPS_CPU_IRQ_BASE OCTEON_IRQ_SW0
  12. enum octeon_irq {
  13. /* 1 - 8 represent the 8 MIPS standard interrupt sources */
  14. OCTEON_IRQ_SW0 = 1,
  15. OCTEON_IRQ_SW1,
  16. /* CIU0, CUI2, CIU4 are 3, 4, 5 */
  17. OCTEON_IRQ_5 = 6,
  18. OCTEON_IRQ_PERF,
  19. OCTEON_IRQ_TIMER,
  20. /* sources in CIU_INTX_EN0 */
  21. OCTEON_IRQ_WORKQ0,
  22. OCTEON_IRQ_GPIO0 = OCTEON_IRQ_WORKQ0 + 16,
  23. OCTEON_IRQ_WDOG0 = OCTEON_IRQ_GPIO0 + 16,
  24. OCTEON_IRQ_WDOG15 = OCTEON_IRQ_WDOG0 + 15,
  25. OCTEON_IRQ_MBOX0 = OCTEON_IRQ_WDOG0 + 16,
  26. OCTEON_IRQ_MBOX1,
  27. OCTEON_IRQ_UART0,
  28. OCTEON_IRQ_UART1,
  29. OCTEON_IRQ_UART2,
  30. OCTEON_IRQ_PCI_INT0,
  31. OCTEON_IRQ_PCI_INT1,
  32. OCTEON_IRQ_PCI_INT2,
  33. OCTEON_IRQ_PCI_INT3,
  34. OCTEON_IRQ_PCI_MSI0,
  35. OCTEON_IRQ_PCI_MSI1,
  36. OCTEON_IRQ_PCI_MSI2,
  37. OCTEON_IRQ_PCI_MSI3,
  38. OCTEON_IRQ_TWSI,
  39. OCTEON_IRQ_TWSI2,
  40. OCTEON_IRQ_RML,
  41. OCTEON_IRQ_TRACE0,
  42. OCTEON_IRQ_GMX_DRP0 = OCTEON_IRQ_TRACE0 + 4,
  43. OCTEON_IRQ_IPD_DRP = OCTEON_IRQ_GMX_DRP0 + 5,
  44. OCTEON_IRQ_KEY_ZERO,
  45. OCTEON_IRQ_TIMER0,
  46. OCTEON_IRQ_TIMER1,
  47. OCTEON_IRQ_TIMER2,
  48. OCTEON_IRQ_TIMER3,
  49. OCTEON_IRQ_USB0,
  50. OCTEON_IRQ_USB1,
  51. OCTEON_IRQ_PCM,
  52. OCTEON_IRQ_MPI,
  53. OCTEON_IRQ_POWIQ,
  54. OCTEON_IRQ_IPDPPTHR,
  55. OCTEON_IRQ_MII0,
  56. OCTEON_IRQ_MII1,
  57. OCTEON_IRQ_BOOTDMA,
  58. OCTEON_IRQ_NAND,
  59. OCTEON_IRQ_MIO, /* Summary of MIO_BOOT_ERR */
  60. OCTEON_IRQ_IOB, /* Summary of IOB_INT_SUM */
  61. OCTEON_IRQ_FPA, /* Summary of FPA_INT_SUM */
  62. OCTEON_IRQ_POW, /* Summary of POW_ECC_ERR */
  63. OCTEON_IRQ_L2C, /* Summary of L2C_INT_STAT */
  64. OCTEON_IRQ_IPD, /* Summary of IPD_INT_SUM */
  65. OCTEON_IRQ_PIP, /* Summary of PIP_INT_REG */
  66. OCTEON_IRQ_PKO, /* Summary of PKO_REG_ERROR */
  67. OCTEON_IRQ_ZIP, /* Summary of ZIP_ERROR */
  68. OCTEON_IRQ_TIM, /* Summary of TIM_REG_ERROR */
  69. OCTEON_IRQ_RAD, /* Summary of RAD_REG_ERROR */
  70. OCTEON_IRQ_KEY, /* Summary of KEY_INT_SUM */
  71. OCTEON_IRQ_DFA, /* Summary of DFA */
  72. OCTEON_IRQ_USBCTL, /* Summary of USBN0_INT_SUM */
  73. OCTEON_IRQ_SLI, /* Summary of SLI_INT_SUM */
  74. OCTEON_IRQ_DPI, /* Summary of DPI_INT_SUM */
  75. OCTEON_IRQ_AGX0, /* Summary of GMX0*+PCS0_INT*_REG */
  76. OCTEON_IRQ_AGL = OCTEON_IRQ_AGX0 + 5,
  77. OCTEON_IRQ_PTP,
  78. OCTEON_IRQ_PEM0,
  79. OCTEON_IRQ_PEM1,
  80. OCTEON_IRQ_SRIO0,
  81. OCTEON_IRQ_SRIO1,
  82. OCTEON_IRQ_LMC0,
  83. OCTEON_IRQ_DFM = OCTEON_IRQ_LMC0 + 4, /* Summary of DFM */
  84. OCTEON_IRQ_RST,
  85. };
  86. #ifdef CONFIG_PCI_MSI
  87. /* 152 - 407 represent the MSI interrupts 0-255 */
  88. #define OCTEON_IRQ_MSI_BIT0 (OCTEON_IRQ_RST + 1)
  89. #define OCTEON_IRQ_MSI_LAST (OCTEON_IRQ_MSI_BIT0 + 255)
  90. #define OCTEON_IRQ_LAST (OCTEON_IRQ_MSI_LAST + 1)
  91. #else
  92. #define OCTEON_IRQ_LAST (OCTEON_IRQ_RST + 1)
  93. #endif
  94. #endif