functionDefinition.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /* Copyright (c) 2011 Code Aurora Forum. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef __ASM_ARCH_MSM_IRQS_8960_H
  13. #define __ASM_ARCH_MSM_IRQS_8960_H
  14. /* MSM ACPU Interrupt Numbers */
  15. /* 0-15: STI/SGI (software triggered/generated interrupts)
  16. 16-31: PPI (private peripheral interrupts)
  17. 32+: SPI (shared peripheral interrupts) */
  18. #define GIC_PPI_START 16
  19. #define GIC_SPI_START 32
  20. #define INT_VGIC (GIC_PPI_START + 0)
  21. #define INT_DEBUG_TIMER_EXP (GIC_PPI_START + 1)
  22. #define INT_GP_TIMER_EXP (GIC_PPI_START + 2)
  23. #define INT_GP_TIMER2_EXP (GIC_PPI_START + 3)
  24. #define WDT0_ACCSCSSNBARK_INT (GIC_PPI_START + 4)
  25. #define WDT1_ACCSCSSNBARK_INT (GIC_PPI_START + 5)
  26. #define AVS_SVICINT (GIC_PPI_START + 6)
  27. #define AVS_SVICINTSWDONE (GIC_PPI_START + 7)
  28. #define CPU_DBGCPUXCOMMRXFULL (GIC_PPI_START + 8)
  29. #define CPU_DBGCPUXCOMMTXEMPTY (GIC_PPI_START + 9)
  30. #define CPU_SICCPUXPERFMONIRPTREQ (GIC_PPI_START + 10)
  31. #define SC_AVSCPUXDOWN (GIC_PPI_START + 11)
  32. #define SC_AVSCPUXUP (GIC_PPI_START + 12)
  33. #define SC_SICCPUXACGIRPTREQ (GIC_PPI_START + 13)
  34. #define SC_SICCPUXEXTFAULTIRPTREQ (GIC_PPI_START + 14)
  35. /* PPI 15 is unused */
  36. #define SC_SICMPUIRPTREQ (GIC_SPI_START + 0)
  37. #define SC_SICL2IRPTREQ (GIC_SPI_START + 1)
  38. #define SC_SICL2PERFMONIRPTREQ (GIC_SPI_START + 2)
  39. #define SC_SICAGCIRPTREQ (GIC_SPI_START + 3)
  40. #define TLMM_APCC_DIR_CONN_IRQ_0 (GIC_SPI_START + 4)
  41. #define TLMM_APCC_DIR_CONN_IRQ_1 (GIC_SPI_START + 5)
  42. #define TLMM_APCC_DIR_CONN_IRQ_2 (GIC_SPI_START + 6)
  43. #define TLMM_APCC_DIR_CONN_IRQ_3 (GIC_SPI_START + 7)
  44. #define TLMM_APCC_DIR_CONN_IRQ_4 (GIC_SPI_START + 8)
  45. #define TLMM_APCC_DIR_CONN_IRQ_5 (GIC_SPI_START + 9)
  46. #define TLMM_APCC_DIR_CONN_IRQ_6 (GIC_SPI_START + 10)
  47. #define TLMM_APCC_DIR_CONN_IRQ_7 (GIC_SPI_START + 11)
  48. #define TLMM_APCC_DIR_CONN_IRQ_8 (GIC_SPI_START + 12)
  49. #define TLMM_APCC_DIR_CONN_IRQ_9 (GIC_SPI_START + 13)
  50. #define PM8921_SEC_IRQ_103 (GIC_SPI_START + 14)
  51. #define PM8018_SEC_IRQ_106 (GIC_SPI_START + 15)
  52. #define TLMM_APCC_SUMMARY_IRQ (GIC_SPI_START + 16)
  53. #define SPDM_RT_1_IRQ (GIC_SPI_START + 17)
  54. #define SPDM_DIAG_IRQ (GIC_SPI_START + 18)
  55. #define RPM_APCC_CPU0_GP_HIGH_IRQ (GIC_SPI_START + 19)
  56. #define RPM_APCC_CPU0_GP_MEDIUM_IRQ (GIC_SPI_START + 20)
  57. #define RPM_APCC_CPU0_GP_LOW_IRQ (GIC_SPI_START + 21)
  58. #define RPM_APCC_CPU0_WAKE_UP_IRQ (GIC_SPI_START + 22)
  59. #define RPM_APCC_CPU1_GP_HIGH_IRQ (GIC_SPI_START + 23)
  60. #define RPM_APCC_CPU1_GP_MEDIUM_IRQ (GIC_SPI_START + 24)
  61. #define RPM_APCC_CPU1_GP_LOW_IRQ (GIC_SPI_START + 25)
  62. #define RPM_APCC_CPU1_WAKE_UP_IRQ (GIC_SPI_START + 26)
  63. #define SSBI2_2_SC_CPU0_SECURE_IRQ (GIC_SPI_START + 27)
  64. #define SSBI2_2_SC_CPU0_NON_SECURE_IRQ (GIC_SPI_START + 28)
  65. #define SSBI2_1_SC_CPU0_SECURE_IRQ (GIC_SPI_START + 29)
  66. #define SSBI2_1_SC_CPU0_NON_SECURE_IRQ (GIC_SPI_START + 30)
  67. #define MSMC_SC_SEC_CE_IRQ (GIC_SPI_START + 31)
  68. #define MSMC_SC_PRI_CE_IRQ (GIC_SPI_START + 32)
  69. #define SLIMBUS0_CORE_EE1_IRQ (GIC_SPI_START + 33)
  70. #define SLIMBUS0_BAM_EE1_IRQ (GIC_SPI_START + 34)
  71. #define Q6FW_WDOG_EXPIRED_IRQ (GIC_SPI_START + 35)
  72. #define Q6SW_WDOG_EXPIRED_IRQ (GIC_SPI_START + 36)
  73. #define MSS_TO_APPS_IRQ_0 (GIC_SPI_START + 37)
  74. #define MSS_TO_APPS_IRQ_1 (GIC_SPI_START + 38)
  75. #define MSS_TO_APPS_IRQ_2 (GIC_SPI_START + 39)
  76. #define MSS_TO_APPS_IRQ_3 (GIC_SPI_START + 40)
  77. #define MSS_TO_APPS_IRQ_4 (GIC_SPI_START + 41)
  78. #define MSS_TO_APPS_IRQ_5 (GIC_SPI_START + 42)
  79. #define MSS_TO_APPS_IRQ_6 (GIC_SPI_START + 43)
  80. #define MSS_TO_APPS_IRQ_7 (GIC_SPI_START + 44)
  81. #define MSS_TO_APPS_IRQ_8 (GIC_SPI_START + 45)
  82. #define MSS_TO_APPS_IRQ_9 (GIC_SPI_START + 46)
  83. #define VPE_IRQ (GIC_SPI_START + 47)
  84. #define VFE_IRQ (GIC_SPI_START + 48)
  85. #define VCODEC_IRQ (GIC_SPI_START + 49)
  86. #define TV_ENC_IRQ (GIC_SPI_START + 50)
  87. #define SMMU_VPE_CB_SC_SECURE_IRQ (GIC_SPI_START + 51)
  88. #define SMMU_VPE_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 52)
  89. #define SMMU_VFE_CB_SC_SECURE_IRQ (GIC_SPI_START + 53)
  90. #define SMMU_VFE_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 54)
  91. #define SMMU_VCODEC_B_CB_SC_SECURE_IRQ (GIC_SPI_START + 55)
  92. #define SMMU_VCODEC_B_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 56)
  93. #define SMMU_VCODEC_A_CB_SC_SECURE_IRQ (GIC_SPI_START + 57)
  94. #define SMMU_VCODEC_A_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 58)
  95. #define SMMU_ROT_CB_SC_SECURE_IRQ (GIC_SPI_START + 59)
  96. #define SMMU_ROT_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 60)
  97. #define SMMU_MDP1_CB_SC_SECURE_IRQ (GIC_SPI_START + 61)
  98. #define SMMU_MDP1_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 62)
  99. #define SMMU_MDP0_CB_SC_SECURE_IRQ (GIC_SPI_START + 63)
  100. #define SMMU_MDP0_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 64)
  101. #define SMMU_JPEGD_CB_SC_SECURE_IRQ (GIC_SPI_START + 65)
  102. #define SMMU_JPEGD_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 66)
  103. #define SMMU_IJPEG_CB_SC_SECURE_IRQ (GIC_SPI_START + 67)
  104. #define SMMU_IJPEG_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 68)
  105. #define SMMU_GFX3D_CB_SC_SECURE_IRQ (GIC_SPI_START + 69)
  106. #define SMMU_GFX3D_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 70)
  107. #define SMMU_GFX2D0_CB_SC_SECURE_IRQ (GIC_SPI_START + 71)
  108. #define SMMU_GFX2D0_CB_SC_NON_SECURE_IRQ (GIC_SPI_START + 72)
  109. #define ROT_IRQ (GIC_SPI_START + 73)
  110. #define MMSS_FABRIC_IRQ (GIC_SPI_START + 74)
  111. #define MDP_IRQ (GIC_SPI_START + 75)
  112. #define JPEGD_IRQ (GIC_SPI_START + 76)
  113. #define JPEG_IRQ (GIC_SPI_START + 77)
  114. #define MMSS_IMEM_IRQ (GIC_SPI_START + 78)
  115. #define HDMI_IRQ (GIC_SPI_START + 79)
  116. #define GFX3D_IRQ (GIC_SPI_START + 80)
  117. #define GFX2D0_IRQ (GIC_SPI_START + 81)
  118. #define DSI1_IRQ (GIC_SPI_START + 82)
  119. #define CSI_1_IRQ (GIC_SPI_START + 83)
  120. #define CSI_0_IRQ (GIC_SPI_START + 84)
  121. #define LPASS_SCSS_AUDIO_IF_OUT0_IRQ (GIC_SPI_START + 85)
  122. #define LPASS_SCSS_MIDI_IRQ (GIC_SPI_START + 86)
  123. #define LPASS_Q6SS_WDOG_EXPIRED (GIC_SPI_START + 87)
  124. #define LPASS_SCSS_GP_LOW_IRQ (GIC_SPI_START + 88)
  125. #define LPASS_SCSS_GP_MEDIUM_IRQ (GIC_SPI_START + 89)
  126. #define LPASS_SCSS_GP_HIGH_IRQ (GIC_SPI_START + 90)
  127. #define TOP_IMEM_IRQ (GIC_SPI_START + 91)
  128. #define FABRIC_SYS_IRQ (GIC_SPI_START + 92)
  129. #define FABRIC_APPS_IRQ (GIC_SPI_START + 93)
  130. #define USB1_HS_BAM_IRQ (GIC_SPI_START + 94)
  131. #define SDC4_BAM_IRQ (GIC_SPI_START + 95)
  132. #define SDC3_BAM_IRQ (GIC_SPI_START + 96)