memoryOperation.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /* Copyright (c) 2010 Code Aurora Forum. All rights reserved.
  2. *
  3. * This software is licensed under the terms of the GNU General Public
  4. * License version 2, as published by the Free Software Foundation, and
  5. * may be copied, distributed, and modified under those terms.
  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. */
  13. #ifndef __ASM_ARCH_MSM_IRQS_8X60_H
  14. #define __ASM_ARCH_MSM_IRQS_8X60_H
  15. /* MSM ACPU Interrupt Numbers */
  16. /* 0-15: STI/SGI (software triggered/generated interrupts)
  17. * 16-31: PPI (private peripheral interrupts)
  18. * 32+: SPI (shared peripheral interrupts)
  19. */
  20. #define GIC_PPI_START 16
  21. #define GIC_SPI_START 32
  22. #define INT_DEBUG_TIMER_EXP (GIC_PPI_START + 0)
  23. #define INT_GP_TIMER_EXP (GIC_PPI_START + 1)
  24. #define INT_GP_TIMER2_EXP (GIC_PPI_START + 2)
  25. #define WDT0_ACCSCSSNBARK_INT (GIC_PPI_START + 3)
  26. #define WDT1_ACCSCSSNBARK_INT (GIC_PPI_START + 4)
  27. #define AVS_SVICINT (GIC_PPI_START + 5)
  28. #define AVS_SVICINTSWDONE (GIC_PPI_START + 6)
  29. #define CPU_DBGCPUXCOMMRXFULL (GIC_PPI_START + 7)
  30. #define CPU_DBGCPUXCOMMTXEMPTY (GIC_PPI_START + 8)
  31. #define CPU_SICCPUXPERFMONIRPTREQ (GIC_PPI_START + 9)
  32. #define SC_AVSCPUXDOWN (GIC_PPI_START + 10)
  33. #define SC_AVSCPUXUP (GIC_PPI_START + 11)
  34. #define SC_SICCPUXACGIRPTREQ (GIC_PPI_START + 12)
  35. /* PPI 13 to 15 are unused */
  36. #define SC_SICMPUIRPTREQ (GIC_SPI_START + 0)
  37. #define SC_SICL2IRPTREQ (GIC_SPI_START + 1)
  38. #define SC_SICL2ACGIRPTREQ (GIC_SPI_START + 2)
  39. #define NC (GIC_SPI_START + 3)
  40. #define TLMM_SCSS_DIR_CONN_IRQ_0 (GIC_SPI_START + 4)
  41. #define TLMM_SCSS_DIR_CONN_IRQ_1 (GIC_SPI_START + 5)
  42. #define TLMM_SCSS_DIR_CONN_IRQ_2 (GIC_SPI_START + 6)
  43. #define TLMM_SCSS_DIR_CONN_IRQ_3 (GIC_SPI_START + 7)
  44. #define TLMM_SCSS_DIR_CONN_IRQ_4 (GIC_SPI_START + 8)
  45. #define TLMM_SCSS_DIR_CONN_IRQ_5 (GIC_SPI_START + 9)
  46. #define TLMM_SCSS_DIR_CONN_IRQ_6 (GIC_SPI_START + 10)
  47. #define TLMM_SCSS_DIR_CONN_IRQ_7 (GIC_SPI_START + 11)
  48. #define TLMM_SCSS_DIR_CONN_IRQ_8 (GIC_SPI_START + 12)
  49. #define TLMM_SCSS_DIR_CONN_IRQ_9 (GIC_SPI_START + 13)
  50. #define PM8058_SEC_IRQ_N (GIC_SPI_START + 14)
  51. #define PM8901_SEC_IRQ_N (GIC_SPI_START + 15)
  52. #define TLMM_SCSS_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_SCSS_CPU0_GP_HIGH_IRQ (GIC_SPI_START + 19)
  56. #define RPM_SCSS_CPU0_GP_MEDIUM_IRQ (GIC_SPI_START + 20)
  57. #define RPM_SCSS_CPU0_GP_LOW_IRQ (GIC_SPI_START + 21)
  58. #define RPM_SCSS_CPU0_WAKE_UP_IRQ (GIC_SPI_START + 22)
  59. #define RPM_SCSS_CPU1_GP_HIGH_IRQ (GIC_SPI_START + 23)
  60. #define RPM_SCSS_CPU1_GP_MEDIUM_IRQ (GIC_SPI_START + 24)
  61. #define RPM_SCSS_CPU1_GP_LOW_IRQ (GIC_SPI_START + 25)
  62. #define RPM_SCSS_CPU1_WAKE_UP_IRQ (GIC_SPI_START + 26)
  63. #define SSBI2_2_SC_CPU0_SECURE_INT (GIC_SPI_START + 27)
  64. #define SSBI2_2_SC_CPU0_NON_SECURE_INT (GIC_SPI_START + 28)
  65. #define SSBI2_1_SC_CPU0_SECURE_INT (GIC_SPI_START + 29)
  66. #define SSBI2_1_SC_CPU0_NON_SECURE_INT (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 MARM_FIQ (GIC_SPI_START + 33)
  70. #define MARM_IRQ (GIC_SPI_START + 34)
  71. #define MARM_L2CC_IRQ (GIC_SPI_START + 35)
  72. #define MARM_WDOG_EXPIRED (GIC_SPI_START + 36)
  73. #define MARM_SCSS_GP_IRQ_0 (GIC_SPI_START + 37)
  74. #define MARM_SCSS_GP_IRQ_1 (GIC_SPI_START + 38)
  75. #define MARM_SCSS_GP_IRQ_2 (GIC_SPI_START + 39)
  76. #define MARM_SCSS_GP_IRQ_3 (GIC_SPI_START + 40)
  77. #define MARM_SCSS_GP_IRQ_4 (GIC_SPI_START + 41)
  78. #define MARM_SCSS_GP_IRQ_5 (GIC_SPI_START + 42)
  79. #define MARM_SCSS_GP_IRQ_6 (GIC_SPI_START + 43)
  80. #define MARM_SCSS_GP_IRQ_7 (GIC_SPI_START + 44)
  81. #define MARM_SCSS_GP_IRQ_8 (GIC_SPI_START + 45)
  82. #define MARM_SCSS_GP_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)