cslr_qm_intd.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /********************************************************************
  2. * Copyright (C) 2003-2013 Texas Instruments Incorporated.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the
  14. * distribution.
  15. *
  16. * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. */
  33. /*********************************************************************
  34. * file: cslr_qm_intd.h
  35. *
  36. * Brief: This file contains the Register Description for qm_intd
  37. *
  38. *********************************************************************/
  39. #ifndef CSLR_QM_INTD_H_
  40. #define CSLR_QM_INTD_H_
  41. #include <ti/csl/cslr.h>
  42. #include <ti/csl/tistdtypes.h>
  43. /* Minimum unit = 1 byte */
  44. /**************************************************************************\
  45. * Register Overlay Structure
  46. \**************************************************************************/
  47. typedef struct {
  48. volatile Uint32 REVISION_REG;
  49. volatile Uint8 RSVD0[12];
  50. volatile Uint32 EOI_REG;
  51. volatile Uint32 INTR_VECTOR_REG;
  52. volatile Uint8 RSVD1[488];
  53. volatile Uint32 STATUS_REG0;
  54. volatile Uint32 STATUS_REG1;
  55. volatile Uint32 STATUS_REG2;
  56. volatile Uint32 STATUS_REG3;
  57. volatile Uint32 STATUS_REG4;
  58. volatile Uint8 RSVD2[108];
  59. volatile Uint32 STATUS_CLR_REG0;
  60. volatile Uint32 STATUS_CLR_REG1;
  61. volatile Uint8 RSVD3[8];
  62. volatile Uint32 STATUS_CLR_REG4;
  63. volatile Uint8 RSVD4[108];
  64. volatile Uint32 INTCNT_REG[50];
  65. volatile Uint8 RSVD5[184];
  66. volatile Uint32 INTR_VECTOR_REG_HOST;
  67. } CSL_Qm_intdRegs;
  68. /**************************************************************************\
  69. * Field Definition Macros
  70. \**************************************************************************/
  71. /* REVISION_REG */
  72. #define CSL_QM_INTD_REVISION_REG_SCHEME_MASK (0xC0000000u)
  73. #define CSL_QM_INTD_REVISION_REG_SCHEME_SHIFT (0x0000001Eu)
  74. #define CSL_QM_INTD_REVISION_REG_SCHEME_RESETVAL (0x00000001u)
  75. #define CSL_QM_INTD_REVISION_REG_MODULE_MASK (0x0FFF0000u)
  76. #define CSL_QM_INTD_REVISION_REG_MODULE_SHIFT (0x00000010u)
  77. #define CSL_QM_INTD_REVISION_REG_MODULE_RESETVAL (0x00000E83u)
  78. #define CSL_QM_INTD_REVISION_REG_REV_RTL_MASK (0x0000F800u)
  79. #define CSL_QM_INTD_REVISION_REG_REV_RTL_SHIFT (0x0000000Bu)
  80. #define CSL_QM_INTD_REVISION_REG_REV_RTL_RESETVAL (0x00000016u)
  81. #define CSL_QM_INTD_REVISION_REG_REV_MAJOR_MASK (0x00000700u)
  82. #define CSL_QM_INTD_REVISION_REG_REV_MAJOR_SHIFT (0x00000008u)
  83. #define CSL_QM_INTD_REVISION_REG_REV_MAJOR_RESETVAL (0x00000001u)
  84. #define CSL_QM_INTD_REVISION_REG_REV_CUSTOM_MASK (0x000000C0u)
  85. #define CSL_QM_INTD_REVISION_REG_REV_CUSTOM_SHIFT (0x00000006u)
  86. #define CSL_QM_INTD_REVISION_REG_REV_CUSTOM_RESETVAL (0x00000000u)
  87. #define CSL_QM_INTD_REVISION_REG_REV_MINOR_MASK (0x0000003Fu)
  88. #define CSL_QM_INTD_REVISION_REG_REV_MINOR_SHIFT (0x00000000u)
  89. #define CSL_QM_INTD_REVISION_REG_REV_MINOR_RESETVAL (0x00000000u)
  90. #define CSL_QM_INTD_REVISION_REG_RESETVAL (0x4E83B100u)
  91. /* EOI_REG */
  92. #define CSL_QM_INTD_EOI_REG_EOI_VECTOR_MASK (0x000000FFu)
  93. #define CSL_QM_INTD_EOI_REG_EOI_VECTOR_SHIFT (0x00000000u)
  94. #define CSL_QM_INTD_EOI_REG_EOI_VECTOR_RESETVAL (0x00000000u)
  95. #define CSL_QM_INTD_EOI_REG_RESETVAL (0x00000000u)
  96. /* INTR_VECTOR_REG */
  97. #define CSL_QM_INTD_INTR_VECTOR_REG_INTR_VECTOR_MASK (0xFFFFFFFFu)
  98. #define CSL_QM_INTD_INTR_VECTOR_REG_INTR_VECTOR_SHIFT (0x00000000u)
  99. #define CSL_QM_INTD_INTR_VECTOR_REG_INTR_VECTOR_RESETVAL (0x00000000u)
  100. #define CSL_QM_INTD_INTR_VECTOR_REG_RESETVAL (0x00000000u)
  101. /* STATUS_REG0 */
  102. #define CSL_QM_INTD_STATUS_REG0_STATUS_HOST_HI_IN_INTR_MASK (0xFFFFFFFFu)
  103. #define CSL_QM_INTD_STATUS_REG0_STATUS_HOST_HI_IN_INTR_SHIFT (0x00000000u)
  104. #define CSL_QM_INTD_STATUS_REG0_STATUS_HOST_HI_IN_INTR_RESETVAL (0x00000000u)
  105. #define CSL_QM_INTD_STATUS_REG0_RESETVAL (0x00000000u)
  106. /* STATUS_REG1 */
  107. #define CSL_QM_INTD_STATUS_REG1_STATUS_HOST_LO_IN_INTR_MASK (0x0000FFFFu)
  108. #define CSL_QM_INTD_STATUS_REG1_STATUS_HOST_LO_IN_INTR_SHIFT (0x00000000u)
  109. #define CSL_QM_INTD_STATUS_REG1_STATUS_HOST_LO_IN_INTR_RESETVAL (0x00000000u)
  110. #define CSL_QM_INTD_STATUS_REG1_RESETVAL (0x00000000u)
  111. /* STATUS_REG2 */
  112. #define CSL_QM_INTD_STATUS_REG2_STATUS_HOST_HI_LINTR_MASK (0xFFFFFFFFu)
  113. #define CSL_QM_INTD_STATUS_REG2_STATUS_HOST_HI_LINTR_SHIFT (0x00000000u)
  114. #define CSL_QM_INTD_STATUS_REG2_STATUS_HOST_HI_LINTR_RESETVAL (0x00000000u)
  115. #define CSL_QM_INTD_STATUS_REG2_RESETVAL (0x00000000u)
  116. /* STATUS_REG3 */
  117. #define CSL_QM_INTD_STATUS_REG3_STATUS_HOST_LO_LINTR_MASK (0x0001FFFFu)
  118. #define CSL_QM_INTD_STATUS_REG3_STATUS_HOST_LO_LINTR_SHIFT (0x00000000u)
  119. #define CSL_QM_INTD_STATUS_REG3_STATUS_HOST_LO_LINTR_RESETVAL (0x00000000u)
  120. #define CSL_QM_INTD_STATUS_REG3_RESETVAL (0x00000000u)
  121. /* STATUS_REG4 */
  122. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE0_MASK (0x00000001u)
  123. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE0_SHIFT (0x00000000u)
  124. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE0_RESETVAL (0x00000000u)
  125. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE1_MASK (0x00000002u)
  126. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE1_SHIFT (0x00000001u)
  127. #define CSL_QM_INTD_STATUS_REG4_STATUS_HOST_CDMA_STARVE1_RESETVAL (0x00000000u)
  128. #define CSL_QM_INTD_STATUS_REG4_RESETVAL (0x00000000u)
  129. /* STATUS_CLR_REG0 */
  130. #define CSL_QM_INTD_STATUS_CLR_REG0_STATUS_HOST_HI_IN_INTR_CLR_MASK (0xFFFFFFFFu)
  131. #define CSL_QM_INTD_STATUS_CLR_REG0_STATUS_HOST_HI_IN_INTR_CLR_SHIFT (0x00000000u)
  132. #define CSL_QM_INTD_STATUS_CLR_REG0_STATUS_HOST_HI_IN_INTR_CLR_RESETVAL (0x00000000u)
  133. #define CSL_QM_INTD_STATUS_CLR_REG0_RESETVAL (0x00000000u)
  134. /* STATUS_CLR_REG1 */
  135. #define CSL_QM_INTD_STATUS_CLR_REG1_STATUS_HOST_LO_IN_INTR_CLR_MASK (0x0000FFFFu)
  136. #define CSL_QM_INTD_STATUS_CLR_REG1_STATUS_HOST_LO_IN_INTR_CLR_SHIFT (0x00000000u)
  137. #define CSL_QM_INTD_STATUS_CLR_REG1_STATUS_HOST_LO_IN_INTR_CLR_RESETVAL (0x00000000u)
  138. #define CSL_QM_INTD_STATUS_CLR_REG1_RESETVAL (0x00000000u)
  139. /* STATUS_CLR_REG4 */
  140. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE0_CLR_MASK (0x00000001u)
  141. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE0_CLR_SHIFT (0x00000000u)
  142. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE0_CLR_RESETVAL (0x00000000u)
  143. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE1_CLR_MASK (0x00000002u)
  144. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE1_CLR_SHIFT (0x00000001u)
  145. #define CSL_QM_INTD_STATUS_CLR_REG4_STATUS_HOST_CDMA_STARVE1_CLR_RESETVAL (0x00000000u)
  146. #define CSL_QM_INTD_STATUS_CLR_REG4_RESETVAL (0x00000000u)
  147. /* INTCNT_REG */
  148. #define CSL_QM_INTD_INTCNT_REG_INTCNT_HOST_CNT_HI_IN_INTR_MASK (0x000000FFu)
  149. #define CSL_QM_INTD_INTCNT_REG_INTCNT_HOST_CNT_HI_IN_INTR_SHIFT (0x00000000u)
  150. #define CSL_QM_INTD_INTCNT_REG_INTCNT_HOST_CNT_HI_IN_INTR_RESETVAL (0x00000000u)
  151. #define CSL_QM_INTD_INTCNT_REG_RESETVAL (0x00000000u)
  152. /* INTR_VECTOR_REG_HOST */
  153. #define CSL_QM_INTD_INTR_VECTOR_REG_HOST_INTR_VECTOR_HOST_MASK (0xFFFFFFFFu)
  154. #define CSL_QM_INTD_INTR_VECTOR_REG_HOST_INTR_VECTOR_HOST_SHIFT (0x00000000u)
  155. #define CSL_QM_INTD_INTR_VECTOR_REG_HOST_INTR_VECTOR_HOST_RESETVAL (0x00000000u)
  156. #define CSL_QM_INTD_INTR_VECTOR_REG_HOST_RESETVAL (0x00000000u)
  157. #endif