r300d.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /*
  2. * Copyright 2008 Advanced Micro Devices, Inc.
  3. * Copyright 2008 Red Hat Inc.
  4. * Copyright 2009 Jerome Glisse.
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the "Software"),
  8. * to deal in the Software without restriction, including without limitation
  9. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. * and/or sell copies of the Software, and to permit persons to whom the
  11. * Software is furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be included in
  14. * all copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  20. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  21. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  22. * OTHER DEALINGS IN THE SOFTWARE.
  23. *
  24. * Authors: Dave Airlie
  25. * Alex Deucher
  26. * Jerome Glisse
  27. */
  28. #ifndef __R300D_H__
  29. #define __R300D_H__
  30. #define CP_PACKET0 0x00000000
  31. #define PACKET0_BASE_INDEX_SHIFT 0
  32. #define PACKET0_BASE_INDEX_MASK (0x1ffff << 0)
  33. #define PACKET0_COUNT_SHIFT 16
  34. #define PACKET0_COUNT_MASK (0x3fff << 16)
  35. #define CP_PACKET1 0x40000000
  36. #define CP_PACKET2 0x80000000
  37. #define PACKET2_PAD_SHIFT 0
  38. #define PACKET2_PAD_MASK (0x3fffffff << 0)
  39. #define CP_PACKET3 0xC0000000
  40. #define PACKET3_IT_OPCODE_SHIFT 8
  41. #define PACKET3_IT_OPCODE_MASK (0xff << 8)
  42. #define PACKET3_COUNT_SHIFT 16
  43. #define PACKET3_COUNT_MASK (0x3fff << 16)
  44. /* PACKET3 op code */
  45. #define PACKET3_NOP 0x10
  46. #define PACKET3_3D_DRAW_VBUF 0x28
  47. #define PACKET3_3D_DRAW_IMMD 0x29
  48. #define PACKET3_3D_DRAW_INDX 0x2A
  49. #define PACKET3_3D_LOAD_VBPNTR 0x2F
  50. #define PACKET3_3D_CLEAR_ZMASK 0x32
  51. #define PACKET3_INDX_BUFFER 0x33
  52. #define PACKET3_3D_DRAW_VBUF_2 0x34
  53. #define PACKET3_3D_DRAW_IMMD_2 0x35
  54. #define PACKET3_3D_DRAW_INDX_2 0x36
  55. #define PACKET3_3D_CLEAR_HIZ 0x37
  56. #define PACKET3_3D_CLEAR_CMASK 0x38
  57. #define PACKET3_BITBLT_MULTI 0x9B
  58. #define PACKET0(reg, n) (CP_PACKET0 | \
  59. REG_SET(PACKET0_BASE_INDEX, (reg) >> 2) | \
  60. REG_SET(PACKET0_COUNT, (n)))
  61. #define PACKET2(v) (CP_PACKET2 | REG_SET(PACKET2_PAD, (v)))
  62. #define PACKET3(op, n) (CP_PACKET3 | \
  63. REG_SET(PACKET3_IT_OPCODE, (op)) | \
  64. REG_SET(PACKET3_COUNT, (n)))
  65. /* Registers */
  66. #define R_000148_MC_FB_LOCATION 0x000148
  67. #define S_000148_MC_FB_START(x) (((x) & 0xFFFF) << 0)
  68. #define G_000148_MC_FB_START(x) (((x) >> 0) & 0xFFFF)
  69. #define C_000148_MC_FB_START 0xFFFF0000
  70. #define S_000148_MC_FB_TOP(x) (((x) & 0xFFFF) << 16)
  71. #define G_000148_MC_FB_TOP(x) (((x) >> 16) & 0xFFFF)
  72. #define C_000148_MC_FB_TOP 0x0000FFFF
  73. #define R_00014C_MC_AGP_LOCATION 0x00014C
  74. #define S_00014C_MC_AGP_START(x) (((x) & 0xFFFF) << 0)
  75. #define G_00014C_MC_AGP_START(x) (((x) >> 0) & 0xFFFF)
  76. #define C_00014C_MC_AGP_START 0xFFFF0000
  77. #define S_00014C_MC_AGP_TOP(x) (((x) & 0xFFFF) << 16)
  78. #define G_00014C_MC_AGP_TOP(x) (((x) >> 16) & 0xFFFF)
  79. #define C_00014C_MC_AGP_TOP 0x0000FFFF
  80. #define R_00015C_AGP_BASE_2 0x00015C
  81. #define S_00015C_AGP_BASE_ADDR_2(x) (((x) & 0xF) << 0)
  82. #define G_00015C_AGP_BASE_ADDR_2(x) (((x) >> 0) & 0xF)
  83. #define C_00015C_AGP_BASE_ADDR_2 0xFFFFFFF0
  84. #define R_000170_AGP_BASE 0x000170
  85. #define S_000170_AGP_BASE_ADDR(x) (((x) & 0xFFFFFFFF) << 0)
  86. #define G_000170_AGP_BASE_ADDR(x) (((x) >> 0) & 0xFFFFFFFF)
  87. #define C_000170_AGP_BASE_ADDR 0x00000000
  88. #define R_0007C0_CP_STAT 0x0007C0
  89. #define S_0007C0_MRU_BUSY(x) (((x) & 0x1) << 0)
  90. #define G_0007C0_MRU_BUSY(x) (((x) >> 0) & 0x1)
  91. #define C_0007C0_MRU_BUSY 0xFFFFFFFE
  92. #define S_0007C0_MWU_BUSY(x) (((x) & 0x1) << 1)
  93. #define G_0007C0_MWU_BUSY(x) (((x) >> 1) & 0x1)
  94. #define C_0007C0_MWU_BUSY 0xFFFFFFFD
  95. #define S_0007C0_RSIU_BUSY(x) (((x) & 0x1) << 2)
  96. #define G_0007C0_RSIU_BUSY(x) (((x) >> 2) & 0x1)
  97. #define C_0007C0_RSIU_BUSY 0xFFFFFFFB
  98. #define S_0007C0_RCIU_BUSY(x) (((x) & 0x1) << 3)
  99. #define G_0007C0_RCIU_BUSY(x) (((x) >> 3) & 0x1)
  100. #define C_0007C0_RCIU_BUSY 0xFFFFFFF7
  101. #define S_0007C0_CSF_PRIMARY_BUSY(x) (((x) & 0x1) << 9)
  102. #define G_0007C0_CSF_PRIMARY_BUSY(x) (((x) >> 9) & 0x1)
  103. #define C_0007C0_CSF_PRIMARY_BUSY 0xFFFFFDFF
  104. #define S_0007C0_CSF_INDIRECT_BUSY(x) (((x) & 0x1) << 10)
  105. #define G_0007C0_CSF_INDIRECT_BUSY(x) (((x) >> 10) & 0x1)
  106. #define C_0007C0_CSF_INDIRECT_BUSY 0xFFFFFBFF
  107. #define S_0007C0_CSQ_PRIMARY_BUSY(x) (((x) & 0x1) << 11)
  108. #define G_0007C0_CSQ_PRIMARY_BUSY(x) (((x) >> 11) & 0x1)
  109. #define C_0007C0_CSQ_PRIMARY_BUSY 0xFFFFF7FF
  110. #define S_0007C0_CSQ_INDIRECT_BUSY(x) (((x) & 0x1) << 12)
  111. #define G_0007C0_CSQ_INDIRECT_BUSY(x) (((x) >> 12) & 0x1)
  112. #define C_0007C0_CSQ_INDIRECT_BUSY 0xFFFFEFFF
  113. #define S_0007C0_CSI_BUSY(x) (((x) & 0x1) << 13)
  114. #define G_0007C0_CSI_BUSY(x) (((x) >> 13) & 0x1)
  115. #define C_0007C0_CSI_BUSY 0xFFFFDFFF
  116. #define S_0007C0_CSF_INDIRECT2_BUSY(x) (((x) & 0x1) << 14)
  117. #define G_0007C0_CSF_INDIRECT2_BUSY(x) (((x) >> 14) & 0x1)
  118. #define C_0007C0_CSF_INDIRECT2_BUSY 0xFFFFBFFF
  119. #define S_0007C0_CSQ_INDIRECT2_BUSY(x) (((x) & 0x1) << 15)
  120. #define G_0007C0_CSQ_INDIRECT2_BUSY(x) (((x) >> 15) & 0x1)
  121. #define C_0007C0_CSQ_INDIRECT2_BUSY 0xFFFF7FFF
  122. #define S_0007C0_GUIDMA_BUSY(x) (((x) & 0x1) << 28)
  123. #define G_0007C0_GUIDMA_BUSY(x) (((x) >> 28) & 0x1)
  124. #define C_0007C0_GUIDMA_BUSY 0xEFFFFFFF
  125. #define S_0007C0_VIDDMA_BUSY(x) (((x) & 0x1) << 29)
  126. #define G_0007C0_VIDDMA_BUSY(x) (((x) >> 29) & 0x1)
  127. #define C_0007C0_VIDDMA_BUSY 0xDFFFFFFF
  128. #define S_0007C0_CMDSTRM_BUSY(x) (((x) & 0x1) << 30)
  129. #define G_0007C0_CMDSTRM_BUSY(x) (((x) >> 30) & 0x1)
  130. #define C_0007C0_CMDSTRM_BUSY 0xBFFFFFFF
  131. #define S_0007C0_CP_BUSY(x) (((x) & 0x1) << 31)
  132. #define G_0007C0_CP_BUSY(x) (((x) >> 31) & 0x1)
  133. #define C_0007C0_CP_BUSY 0x7FFFFFFF
  134. #define R_000E40_RBBM_STATUS 0x000E40
  135. #define S_000E40_CMDFIFO_AVAIL(x) (((x) & 0x7F) << 0)
  136. #define G_000E40_CMDFIFO_AVAIL(x) (((x) >> 0) & 0x7F)
  137. #define C_000E40_CMDFIFO_AVAIL 0xFFFFFF80
  138. #define S_000E40_HIRQ_ON_RBB(x) (((x) & 0x1) << 8)
  139. #define G_000E40_HIRQ_ON_RBB(x) (((x) >> 8) & 0x1)
  140. #define C_000E40_HIRQ_ON_RBB 0xFFFFFEFF
  141. #define S_000E40_CPRQ_ON_RBB(x) (((x) & 0x1) << 9)
  142. #define G_000E40_CPRQ_ON_RBB(x) (((x) >> 9) & 0x1)
  143. #define C_000E40_CPRQ_ON_RBB 0xFFFFFDFF
  144. #define S_000E40_CFRQ_ON_RBB(x) (((x) & 0x1) << 10)
  145. #define G_000E40_CFRQ_ON_RBB(x) (((x) >> 10) & 0x1)
  146. #define C_000E40_CFRQ_ON_RBB 0xFFFFFBFF
  147. #define S_000E40_HIRQ_IN_RTBUF(x) (((x) & 0x1) << 11)
  148. #define G_000E40_HIRQ_IN_RTBUF(x) (((x) >> 11) & 0x1)
  149. #define C_000E40_HIRQ_IN_RTBUF 0xFFFFF7FF
  150. #define S_000E40_CPRQ_IN_RTBUF(x) (((x) & 0x1) << 12)
  151. #define G_000E40_CPRQ_IN_RTBUF(x) (((x) >> 12) & 0x1)
  152. #define C_000E40_CPRQ_IN_RTBUF 0xFFFFEFFF
  153. #define S_000E40_CFRQ_IN_RTBUF(x) (((x) & 0x1) << 13)
  154. #define G_000E40_CFRQ_IN_RTBUF(x) (((x) >> 13) & 0x1)
  155. #define C_000E40_CFRQ_IN_RTBUF 0xFFFFDFFF
  156. #define S_000E40_CF_PIPE_BUSY(x) (((x) & 0x1) << 14)
  157. #define G_000E40_CF_PIPE_BUSY(x) (((x) >> 14) & 0x1)
  158. #define C_000E40_CF_PIPE_BUSY 0xFFFFBFFF
  159. #define S_000E40_ENG_EV_BUSY(x) (((x) & 0x1) << 15)
  160. #define G_000E40_ENG_EV_BUSY(x) (((x) >> 15) & 0x1)
  161. #define C_000E40_ENG_EV_BUSY 0xFFFF7FFF
  162. #define S_000E40_CP_CMDSTRM_BUSY(x) (((x) & 0x1) << 16)
  163. #define G_000E40_CP_CMDSTRM_BUSY(x) (((x) >> 16) & 0x1)
  164. #define C_000E40_CP_CMDSTRM_BUSY 0xFFFEFFFF
  165. #define S_000E40_E2_BUSY(x) (((x) & 0x1) << 17)
  166. #define G_000E40_E2_BUSY(x) (((x) >> 17) & 0x1)
  167. #define C_000E40_E2_BUSY 0xFFFDFFFF
  168. #define S_000E40_RB2D_BUSY(x) (((x) & 0x1) << 18)
  169. #define G_000E40_RB2D_BUSY(x) (((x) >> 18) & 0x1)
  170. #define C_000E40_RB2D_BUSY 0xFFFBFFFF
  171. #define S_000E40_RB3D_BUSY(x) (((x) & 0x1) << 19)
  172. #define G_000E40_RB3D_BUSY(x) (((x) >> 19) & 0x1)
  173. #define C_000E40_RB3D_BUSY 0xFFF7FFFF
  174. #define S_000E40_VAP_BUSY(x) (((x) & 0x1) << 20)
  175. #define G_000E40_VAP_BUSY(x) (((x) >> 20) & 0x1)
  176. #define C_000E40_VAP_BUSY 0xFFEFFFFF
  177. #define S_000E40_RE_BUSY(x) (((x) & 0x1) << 21)
  178. #define G_000E40_RE_BUSY(x) (((x) >> 21) & 0x1)
  179. #define C_000E40_RE_BUSY 0xFFDFFFFF
  180. #define S_000E40_TAM_BUSY(x) (((x) & 0x1) << 22)
  181. #define G_000E40_TAM_BUSY(x) (((x) >> 22) & 0x1)
  182. #define C_000E40_TAM_BUSY 0xFFBFFFFF
  183. #define S_000E40_TDM_BUSY(x) (((x) & 0x1) << 23)
  184. #define G_000E40_TDM_BUSY(x) (((x) >> 23) & 0x1)
  185. #define C_000E40_TDM_BUSY 0xFF7FFFFF
  186. #define S_000E40_PB_BUSY(x) (((x) & 0x1) << 24)
  187. #define G_000E40_PB_BUSY(x) (((x) >> 24) & 0x1)
  188. #define C_000E40_PB_BUSY 0xFEFFFFFF
  189. #define S_000E40_TIM_BUSY(x) (((x) & 0x1) << 25)
  190. #define G_000E40_TIM_BUSY(x) (((x) >> 25) & 0x1)
  191. #define C_000E40_TIM_BUSY 0xFDFFFFFF
  192. #define S_000E40_GA_BUSY(x) (((x) & 0x1) << 26)
  193. #define G_000E40_GA_BUSY(x) (((x) >> 26) & 0x1)
  194. #define C_000E40_GA_BUSY 0xFBFFFFFF
  195. #define S_000E40_CBA2D_BUSY(x) (((x) & 0x1) << 27)
  196. #define G_000E40_CBA2D_BUSY(x) (((x) >> 27) & 0x1)
  197. #define C_000E40_CBA2D_BUSY 0xF7FFFFFF
  198. #define S_000E40_GUI_ACTIVE(x) (((x) & 0x1) << 31)
  199. #define G_000E40_GUI_ACTIVE(x) (((x) >> 31) & 0x1)
  200. #define C_000E40_GUI_ACTIVE 0x7FFFFFFF
  201. #define R_0000F0_RBBM_SOFT_RESET 0x0000F0
  202. #define S_0000F0_SOFT_RESET_CP(x) (((x) & 0x1) << 0)
  203. #define G_0000F0_SOFT_RESET_CP(x) (((x) >> 0) & 0x1)
  204. #define C_0000F0_SOFT_RESET_CP 0xFFFFFFFE
  205. #define S_0000F0_SOFT_RESET_HI(x) (((x) & 0x1) << 1)
  206. #define G_0000F0_SOFT_RESET_HI(x) (((x) >> 1) & 0x1)
  207. #define C_0000F0_SOFT_RESET_HI 0xFFFFFFFD
  208. #define S_0000F0_SOFT_RESET_VAP(x) (((x) & 0x1) << 2)
  209. #define G_0000F0_SOFT_RESET_VAP(x) (((x) >> 2) & 0x1)
  210. #define C_0000F0_SOFT_RESET_VAP 0xFFFFFFFB
  211. #define S_0000F0_SOFT_RESET_RE(x) (((x) & 0x1) << 3)
  212. #define G_0000F0_SOFT_RESET_RE(x) (((x) >> 3) & 0x1)
  213. #define C_0000F0_SOFT_RESET_RE 0xFFFFFFF7
  214. #define S_0000F0_SOFT_RESET_PP(x) (((x) & 0x1) << 4)
  215. #define G_0000F0_SOFT_RESET_PP(x) (((x) >> 4) & 0x1)
  216. #define C_0000F0_SOFT_RESET_PP 0xFFFFFFEF
  217. #define S_0000F0_SOFT_RESET_E2(x) (((x) & 0x1) << 5)
  218. #define G_0000F0_SOFT_RESET_E2(x) (((x) >> 5) & 0x1)
  219. #define C_0000F0_SOFT_RESET_E2 0xFFFFFFDF
  220. #define S_0000F0_SOFT_RESET_RB(x) (((x) & 0x1) << 6)
  221. #define G_0000F0_SOFT_RESET_RB(x) (((x) >> 6) & 0x1)
  222. #define C_0000F0_SOFT_RESET_RB 0xFFFFFFBF
  223. #define S_0000F0_SOFT_RESET_HDP(x) (((x) & 0x1) << 7)
  224. #define G_0000F0_SOFT_RESET_HDP(x) (((x) >> 7) & 0x1)
  225. #define C_0000F0_SOFT_RESET_HDP 0xFFFFFF7F
  226. #define S_0000F0_SOFT_RESET_MC(x) (((x) & 0x1) << 8)
  227. #define G_0000F0_SOFT_RESET_MC(x) (((x) >> 8) & 0x1)
  228. #define C_0000F0_SOFT_RESET_MC 0xFFFFFEFF
  229. #define S_0000F0_SOFT_RESET_AIC(x) (((x) & 0x1) << 9)
  230. #define G_0000F0_SOFT_RESET_AIC(x) (((x) >> 9) & 0x1)
  231. #define C_0000F0_SOFT_RESET_AIC 0xFFFFFDFF
  232. #define S_0000F0_SOFT_RESET_VIP(x) (((x) & 0x1) << 10)
  233. #define G_0000F0_SOFT_RESET_VIP(x) (((x) >> 10) & 0x1)
  234. #define C_0000F0_SOFT_RESET_VIP 0xFFFFFBFF
  235. #define S_0000F0_SOFT_RESET_DISP(x) (((x) & 0x1) << 11)
  236. #define G_0000F0_SOFT_RESET_DISP(x) (((x) >> 11) & 0x1)
  237. #define C_0000F0_SOFT_RESET_DISP 0xFFFFF7FF
  238. #define S_0000F0_SOFT_RESET_CG(x) (((x) & 0x1) << 12)
  239. #define G_0000F0_SOFT_RESET_CG(x) (((x) >> 12) & 0x1)
  240. #define C_0000F0_SOFT_RESET_CG 0xFFFFEFFF
  241. #define S_0000F0_SOFT_RESET_GA(x) (((x) & 0x1) << 13)
  242. #define G_0000F0_SOFT_RESET_GA(x) (((x) >> 13) & 0x1)
  243. #define C_0000F0_SOFT_RESET_GA 0xFFFFDFFF
  244. #define S_0000F0_SOFT_RESET_IDCT(x) (((x) & 0x1) << 14)
  245. #define G_0000F0_SOFT_RESET_IDCT(x) (((x) >> 14) & 0x1)
  246. #define C_0000F0_SOFT_RESET_IDCT 0xFFFFBFFF
  247. #define R_00000D_SCLK_CNTL 0x00000D
  248. #define S_00000D_SCLK_SRC_SEL(x) (((x) & 0x7) << 0)
  249. #define G_00000D_SCLK_SRC_SEL(x) (((x) >> 0) & 0x7)
  250. #define C_00000D_SCLK_SRC_SEL 0xFFFFFFF8
  251. #define S_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 3)
  252. #define G_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) >> 3) & 0x1)
  253. #define C_00000D_CP_MAX_DYN_STOP_LAT 0xFFFFFFF7
  254. #define S_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 4)
  255. #define G_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) >> 4) & 0x1)
  256. #define C_00000D_HDP_MAX_DYN_STOP_LAT 0xFFFFFFEF
  257. #define S_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 5)
  258. #define G_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) >> 5) & 0x1)
  259. #define C_00000D_TV_MAX_DYN_STOP_LAT 0xFFFFFFDF
  260. #define S_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 6)
  261. #define G_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) >> 6) & 0x1)
  262. #define C_00000D_E2_MAX_DYN_STOP_LAT 0xFFFFFFBF
  263. #define S_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 7)
  264. #define G_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) >> 7) & 0x1)
  265. #define C_00000D_SE_MAX_DYN_STOP_LAT 0xFFFFFF7F
  266. #define S_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 8)
  267. #define G_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) >> 8) & 0x1)
  268. #define C_00000D_IDCT_MAX_DYN_STOP_LAT 0xFFFFFEFF
  269. #define S_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 9)
  270. #define G_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) >> 9) & 0x1)
  271. #define C_00000D_VIP_MAX_DYN_STOP_LAT 0xFFFFFDFF
  272. #define S_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 10)
  273. #define G_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) >> 10) & 0x1)
  274. #define C_00000D_RE_MAX_DYN_STOP_LAT 0xFFFFFBFF
  275. #define S_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 11)
  276. #define G_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) >> 11) & 0x1)
  277. #define C_00000D_PB_MAX_DYN_STOP_LAT 0xFFFFF7FF
  278. #define S_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 12)
  279. #define G_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) >> 12) & 0x1)
  280. #define C_00000D_TAM_MAX_DYN_STOP_LAT 0xFFFFEFFF
  281. #define S_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 13)
  282. #define G_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) >> 13) & 0x1)
  283. #define C_00000D_TDM_MAX_DYN_STOP_LAT 0xFFFFDFFF
  284. #define S_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 14)
  285. #define G_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) >> 14) & 0x1)
  286. #define C_00000D_RB_MAX_DYN_STOP_LAT 0xFFFFBFFF
  287. #define S_00000D_FORCE_DISP2(x) (((x) & 0x1) << 15)
  288. #define G_00000D_FORCE_DISP2(x) (((x) >> 15) & 0x1)
  289. #define C_00000D_FORCE_DISP2 0xFFFF7FFF
  290. #define S_00000D_FORCE_CP(x) (((x) & 0x1) << 16)
  291. #define G_00000D_FORCE_CP(x) (((x) >> 16) & 0x1)
  292. #define C_00000D_FORCE_CP 0xFFFEFFFF
  293. #define S_00000D_FORCE_HDP(x) (((x) & 0x1) << 17)
  294. #define G_00000D_FORCE_HDP(x) (((x) >> 17) & 0x1)
  295. #define C_00000D_FORCE_HDP 0xFFFDFFFF
  296. #define S_00000D_FORCE_DISP1(x) (((x) & 0x1) << 18)
  297. #define G_00000D_FORCE_DISP1(x) (((x) >> 18) & 0x1)
  298. #define C_00000D_FORCE_DISP1 0xFFFBFFFF
  299. #define S_00000D_FORCE_TOP(x) (((x) & 0x1) << 19)
  300. #define G_00000D_FORCE_TOP(x) (((x) >> 19) & 0x1)
  301. #define C_00000D_FORCE_TOP 0xFFF7FFFF
  302. #define S_00000D_FORCE_E2(x) (((x) & 0x1) << 20)
  303. #define G_00000D_FORCE_E2(x) (((x) >> 20) & 0x1)
  304. #define C_00000D_FORCE_E2 0xFFEFFFFF
  305. #define S_00000D_FORCE_SE(x) (((x) & 0x1) << 21)
  306. #define G_00000D_FORCE_SE(x) (((x) >> 21) & 0x1)
  307. #define C_00000D_FORCE_SE 0xFFDFFFFF
  308. #define S_00000D_FORCE_IDCT(x) (((x) & 0x1) << 22)
  309. #define G_00000D_FORCE_IDCT(x) (((x) >> 22) & 0x1)
  310. #define C_00000D_FORCE_IDCT 0xFFBFFFFF
  311. #define S_00000D_FORCE_VIP(x) (((x) & 0x1) << 23)
  312. #define G_00000D_FORCE_VIP(x) (((x) >> 23) & 0x1)
  313. #define C_00000D_FORCE_VIP 0xFF7FFFFF
  314. #define S_00000D_FORCE_RE(x) (((x) & 0x1) << 24)
  315. #define G_00000D_FORCE_RE(x) (((x) >> 24) & 0x1)
  316. #define C_00000D_FORCE_RE 0xFEFFFFFF
  317. #define S_00000D_FORCE_PB(x) (((x) & 0x1) << 25)
  318. #define G_00000D_FORCE_PB(x) (((x) >> 25) & 0x1)
  319. #define C_00000D_FORCE_PB 0xFDFFFFFF
  320. #define S_00000D_FORCE_TAM(x) (((x) & 0x1) << 26)
  321. #define G_00000D_FORCE_TAM(x) (((x) >> 26) & 0x1)
  322. #define C_00000D_FORCE_TAM 0xFBFFFFFF
  323. #define S_00000D_FORCE_TDM(x) (((x) & 0x1) << 27)
  324. #define G_00000D_FORCE_TDM(x) (((x) >> 27) & 0x1)
  325. #define C_00000D_FORCE_TDM 0xF7FFFFFF
  326. #define S_00000D_FORCE_RB(x) (((x) & 0x1) << 28)
  327. #define G_00000D_FORCE_RB(x) (((x) >> 28) & 0x1)
  328. #define C_00000D_FORCE_RB 0xEFFFFFFF
  329. #define S_00000D_FORCE_TV_SCLK(x) (((x) & 0x1) << 29)
  330. #define G_00000D_FORCE_TV_SCLK(x) (((x) >> 29) & 0x1)
  331. #define C_00000D_FORCE_TV_SCLK 0xDFFFFFFF
  332. #define S_00000D_FORCE_SUBPIC(x) (((x) & 0x1) << 30)
  333. #define G_00000D_FORCE_SUBPIC(x) (((x) >> 30) & 0x1)
  334. #define C_00000D_FORCE_SUBPIC 0xBFFFFFFF
  335. #define S_00000D_FORCE_OV0(x) (((x) & 0x1) << 31)
  336. #define G_00000D_FORCE_OV0(x) (((x) >> 31) & 0x1)
  337. #define C_00000D_FORCE_OV0 0x7FFFFFFF
  338. #endif