rs690d.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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 __RS690D_H__
  29. #define __RS690D_H__
  30. /* Registers */
  31. #define R_00001E_K8_FB_LOCATION 0x00001E
  32. #define R_00005F_MC_MISC_UMA_CNTL 0x00005F
  33. #define G_00005F_K8_ADDR_EXT(x) (((x) >> 0) & 0xFF)
  34. #define R_000078_MC_INDEX 0x000078
  35. #define S_000078_MC_IND_ADDR(x) (((x) & 0x1FF) << 0)
  36. #define G_000078_MC_IND_ADDR(x) (((x) >> 0) & 0x1FF)
  37. #define C_000078_MC_IND_ADDR 0xFFFFFE00
  38. #define S_000078_MC_IND_WR_EN(x) (((x) & 0x1) << 9)
  39. #define G_000078_MC_IND_WR_EN(x) (((x) >> 9) & 0x1)
  40. #define C_000078_MC_IND_WR_EN 0xFFFFFDFF
  41. #define R_00007C_MC_DATA 0x00007C
  42. #define S_00007C_MC_DATA(x) (((x) & 0xFFFFFFFF) << 0)
  43. #define G_00007C_MC_DATA(x) (((x) >> 0) & 0xFFFFFFFF)
  44. #define C_00007C_MC_DATA 0x00000000
  45. #define R_0000F8_CONFIG_MEMSIZE 0x0000F8
  46. #define S_0000F8_CONFIG_MEMSIZE(x) (((x) & 0xFFFFFFFF) << 0)
  47. #define G_0000F8_CONFIG_MEMSIZE(x) (((x) >> 0) & 0xFFFFFFFF)
  48. #define C_0000F8_CONFIG_MEMSIZE 0x00000000
  49. #define R_000134_HDP_FB_LOCATION 0x000134
  50. #define S_000134_HDP_FB_START(x) (((x) & 0xFFFF) << 0)
  51. #define G_000134_HDP_FB_START(x) (((x) >> 0) & 0xFFFF)
  52. #define C_000134_HDP_FB_START 0xFFFF0000
  53. #define R_0007C0_CP_STAT 0x0007C0
  54. #define S_0007C0_MRU_BUSY(x) (((x) & 0x1) << 0)
  55. #define G_0007C0_MRU_BUSY(x) (((x) >> 0) & 0x1)
  56. #define C_0007C0_MRU_BUSY 0xFFFFFFFE
  57. #define S_0007C0_MWU_BUSY(x) (((x) & 0x1) << 1)
  58. #define G_0007C0_MWU_BUSY(x) (((x) >> 1) & 0x1)
  59. #define C_0007C0_MWU_BUSY 0xFFFFFFFD
  60. #define S_0007C0_RSIU_BUSY(x) (((x) & 0x1) << 2)
  61. #define G_0007C0_RSIU_BUSY(x) (((x) >> 2) & 0x1)
  62. #define C_0007C0_RSIU_BUSY 0xFFFFFFFB
  63. #define S_0007C0_RCIU_BUSY(x) (((x) & 0x1) << 3)
  64. #define G_0007C0_RCIU_BUSY(x) (((x) >> 3) & 0x1)
  65. #define C_0007C0_RCIU_BUSY 0xFFFFFFF7
  66. #define S_0007C0_CSF_PRIMARY_BUSY(x) (((x) & 0x1) << 9)
  67. #define G_0007C0_CSF_PRIMARY_BUSY(x) (((x) >> 9) & 0x1)
  68. #define C_0007C0_CSF_PRIMARY_BUSY 0xFFFFFDFF
  69. #define S_0007C0_CSF_INDIRECT_BUSY(x) (((x) & 0x1) << 10)
  70. #define G_0007C0_CSF_INDIRECT_BUSY(x) (((x) >> 10) & 0x1)
  71. #define C_0007C0_CSF_INDIRECT_BUSY 0xFFFFFBFF
  72. #define S_0007C0_CSQ_PRIMARY_BUSY(x) (((x) & 0x1) << 11)
  73. #define G_0007C0_CSQ_PRIMARY_BUSY(x) (((x) >> 11) & 0x1)
  74. #define C_0007C0_CSQ_PRIMARY_BUSY 0xFFFFF7FF
  75. #define S_0007C0_CSQ_INDIRECT_BUSY(x) (((x) & 0x1) << 12)
  76. #define G_0007C0_CSQ_INDIRECT_BUSY(x) (((x) >> 12) & 0x1)
  77. #define C_0007C0_CSQ_INDIRECT_BUSY 0xFFFFEFFF
  78. #define S_0007C0_CSI_BUSY(x) (((x) & 0x1) << 13)
  79. #define G_0007C0_CSI_BUSY(x) (((x) >> 13) & 0x1)
  80. #define C_0007C0_CSI_BUSY 0xFFFFDFFF
  81. #define S_0007C0_CSF_INDIRECT2_BUSY(x) (((x) & 0x1) << 14)
  82. #define G_0007C0_CSF_INDIRECT2_BUSY(x) (((x) >> 14) & 0x1)
  83. #define C_0007C0_CSF_INDIRECT2_BUSY 0xFFFFBFFF
  84. #define S_0007C0_CSQ_INDIRECT2_BUSY(x) (((x) & 0x1) << 15)
  85. #define G_0007C0_CSQ_INDIRECT2_BUSY(x) (((x) >> 15) & 0x1)
  86. #define C_0007C0_CSQ_INDIRECT2_BUSY 0xFFFF7FFF
  87. #define S_0007C0_GUIDMA_BUSY(x) (((x) & 0x1) << 28)
  88. #define G_0007C0_GUIDMA_BUSY(x) (((x) >> 28) & 0x1)
  89. #define C_0007C0_GUIDMA_BUSY 0xEFFFFFFF
  90. #define S_0007C0_VIDDMA_BUSY(x) (((x) & 0x1) << 29)
  91. #define G_0007C0_VIDDMA_BUSY(x) (((x) >> 29) & 0x1)
  92. #define C_0007C0_VIDDMA_BUSY 0xDFFFFFFF
  93. #define S_0007C0_CMDSTRM_BUSY(x) (((x) & 0x1) << 30)
  94. #define G_0007C0_CMDSTRM_BUSY(x) (((x) >> 30) & 0x1)
  95. #define C_0007C0_CMDSTRM_BUSY 0xBFFFFFFF
  96. #define S_0007C0_CP_BUSY(x) (((x) & 0x1) << 31)
  97. #define G_0007C0_CP_BUSY(x) (((x) >> 31) & 0x1)
  98. #define C_0007C0_CP_BUSY 0x7FFFFFFF
  99. #define R_000E40_RBBM_STATUS 0x000E40
  100. #define S_000E40_CMDFIFO_AVAIL(x) (((x) & 0x7F) << 0)
  101. #define G_000E40_CMDFIFO_AVAIL(x) (((x) >> 0) & 0x7F)
  102. #define C_000E40_CMDFIFO_AVAIL 0xFFFFFF80
  103. #define S_000E40_HIRQ_ON_RBB(x) (((x) & 0x1) << 8)
  104. #define G_000E40_HIRQ_ON_RBB(x) (((x) >> 8) & 0x1)
  105. #define C_000E40_HIRQ_ON_RBB 0xFFFFFEFF
  106. #define S_000E40_CPRQ_ON_RBB(x) (((x) & 0x1) << 9)
  107. #define G_000E40_CPRQ_ON_RBB(x) (((x) >> 9) & 0x1)
  108. #define C_000E40_CPRQ_ON_RBB 0xFFFFFDFF
  109. #define S_000E40_CFRQ_ON_RBB(x) (((x) & 0x1) << 10)
  110. #define G_000E40_CFRQ_ON_RBB(x) (((x) >> 10) & 0x1)
  111. #define C_000E40_CFRQ_ON_RBB 0xFFFFFBFF
  112. #define S_000E40_HIRQ_IN_RTBUF(x) (((x) & 0x1) << 11)
  113. #define G_000E40_HIRQ_IN_RTBUF(x) (((x) >> 11) & 0x1)
  114. #define C_000E40_HIRQ_IN_RTBUF 0xFFFFF7FF
  115. #define S_000E40_CPRQ_IN_RTBUF(x) (((x) & 0x1) << 12)
  116. #define G_000E40_CPRQ_IN_RTBUF(x) (((x) >> 12) & 0x1)
  117. #define C_000E40_CPRQ_IN_RTBUF 0xFFFFEFFF
  118. #define S_000E40_CFRQ_IN_RTBUF(x) (((x) & 0x1) << 13)
  119. #define G_000E40_CFRQ_IN_RTBUF(x) (((x) >> 13) & 0x1)
  120. #define C_000E40_CFRQ_IN_RTBUF 0xFFFFDFFF
  121. #define S_000E40_CF_PIPE_BUSY(x) (((x) & 0x1) << 14)
  122. #define G_000E40_CF_PIPE_BUSY(x) (((x) >> 14) & 0x1)
  123. #define C_000E40_CF_PIPE_BUSY 0xFFFFBFFF
  124. #define S_000E40_ENG_EV_BUSY(x) (((x) & 0x1) << 15)
  125. #define G_000E40_ENG_EV_BUSY(x) (((x) >> 15) & 0x1)
  126. #define C_000E40_ENG_EV_BUSY 0xFFFF7FFF
  127. #define S_000E40_CP_CMDSTRM_BUSY(x) (((x) & 0x1) << 16)
  128. #define G_000E40_CP_CMDSTRM_BUSY(x) (((x) >> 16) & 0x1)
  129. #define C_000E40_CP_CMDSTRM_BUSY 0xFFFEFFFF
  130. #define S_000E40_E2_BUSY(x) (((x) & 0x1) << 17)
  131. #define G_000E40_E2_BUSY(x) (((x) >> 17) & 0x1)
  132. #define C_000E40_E2_BUSY 0xFFFDFFFF
  133. #define S_000E40_RB2D_BUSY(x) (((x) & 0x1) << 18)
  134. #define G_000E40_RB2D_BUSY(x) (((x) >> 18) & 0x1)
  135. #define C_000E40_RB2D_BUSY 0xFFFBFFFF
  136. #define S_000E40_RB3D_BUSY(x) (((x) & 0x1) << 19)
  137. #define G_000E40_RB3D_BUSY(x) (((x) >> 19) & 0x1)
  138. #define C_000E40_RB3D_BUSY 0xFFF7FFFF
  139. #define S_000E40_VAP_BUSY(x) (((x) & 0x1) << 20)
  140. #define G_000E40_VAP_BUSY(x) (((x) >> 20) & 0x1)
  141. #define C_000E40_VAP_BUSY 0xFFEFFFFF
  142. #define S_000E40_RE_BUSY(x) (((x) & 0x1) << 21)
  143. #define G_000E40_RE_BUSY(x) (((x) >> 21) & 0x1)
  144. #define C_000E40_RE_BUSY 0xFFDFFFFF
  145. #define S_000E40_TAM_BUSY(x) (((x) & 0x1) << 22)
  146. #define G_000E40_TAM_BUSY(x) (((x) >> 22) & 0x1)
  147. #define C_000E40_TAM_BUSY 0xFFBFFFFF
  148. #define S_000E40_TDM_BUSY(x) (((x) & 0x1) << 23)
  149. #define G_000E40_TDM_BUSY(x) (((x) >> 23) & 0x1)
  150. #define C_000E40_TDM_BUSY 0xFF7FFFFF
  151. #define S_000E40_PB_BUSY(x) (((x) & 0x1) << 24)
  152. #define G_000E40_PB_BUSY(x) (((x) >> 24) & 0x1)
  153. #define C_000E40_PB_BUSY 0xFEFFFFFF
  154. #define S_000E40_TIM_BUSY(x) (((x) & 0x1) << 25)
  155. #define G_000E40_TIM_BUSY(x) (((x) >> 25) & 0x1)
  156. #define C_000E40_TIM_BUSY 0xFDFFFFFF
  157. #define S_000E40_GA_BUSY(x) (((x) & 0x1) << 26)
  158. #define G_000E40_GA_BUSY(x) (((x) >> 26) & 0x1)
  159. #define C_000E40_GA_BUSY 0xFBFFFFFF
  160. #define S_000E40_CBA2D_BUSY(x) (((x) & 0x1) << 27)
  161. #define G_000E40_CBA2D_BUSY(x) (((x) >> 27) & 0x1)
  162. #define C_000E40_CBA2D_BUSY 0xF7FFFFFF
  163. #define S_000E40_GUI_ACTIVE(x) (((x) & 0x1) << 31)
  164. #define G_000E40_GUI_ACTIVE(x) (((x) >> 31) & 0x1)
  165. #define C_000E40_GUI_ACTIVE 0x7FFFFFFF
  166. #define R_006520_DC_LB_MEMORY_SPLIT 0x006520
  167. #define S_006520_DC_LB_MEMORY_SPLIT(x) (((x) & 0x3) << 0)
  168. #define G_006520_DC_LB_MEMORY_SPLIT(x) (((x) >> 0) & 0x3)
  169. #define C_006520_DC_LB_MEMORY_SPLIT 0xFFFFFFFC
  170. #define S_006520_DC_LB_MEMORY_SPLIT_MODE(x) (((x) & 0x1) << 2)
  171. #define G_006520_DC_LB_MEMORY_SPLIT_MODE(x) (((x) >> 2) & 0x1)
  172. #define C_006520_DC_LB_MEMORY_SPLIT_MODE 0xFFFFFFFB
  173. #define V_006520_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF 0
  174. #define V_006520_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q 1
  175. #define V_006520_DC_LB_MEMORY_SPLIT_D1_ONLY 2
  176. #define V_006520_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q 3
  177. #define S_006520_DC_LB_DISP1_END_ADR(x) (((x) & 0x7FF) << 4)
  178. #define G_006520_DC_LB_DISP1_END_ADR(x) (((x) >> 4) & 0x7FF)
  179. #define C_006520_DC_LB_DISP1_END_ADR 0xFFFF800F
  180. #define R_006548_D1MODE_PRIORITY_A_CNT 0x006548
  181. #define S_006548_D1MODE_PRIORITY_MARK_A(x) (((x) & 0x7FFF) << 0)
  182. #define G_006548_D1MODE_PRIORITY_MARK_A(x) (((x) >> 0) & 0x7FFF)
  183. #define C_006548_D1MODE_PRIORITY_MARK_A 0xFFFF8000
  184. #define S_006548_D1MODE_PRIORITY_A_OFF(x) (((x) & 0x1) << 16)
  185. #define G_006548_D1MODE_PRIORITY_A_OFF(x) (((x) >> 16) & 0x1)
  186. #define C_006548_D1MODE_PRIORITY_A_OFF 0xFFFEFFFF
  187. #define S_006548_D1MODE_PRIORITY_A_ALWAYS_ON(x) (((x) & 0x1) << 20)
  188. #define G_006548_D1MODE_PRIORITY_A_ALWAYS_ON(x) (((x) >> 20) & 0x1)
  189. #define C_006548_D1MODE_PRIORITY_A_ALWAYS_ON 0xFFEFFFFF
  190. #define S_006548_D1MODE_PRIORITY_A_FORCE_MASK(x) (((x) & 0x1) << 24)
  191. #define G_006548_D1MODE_PRIORITY_A_FORCE_MASK(x) (((x) >> 24) & 0x1)
  192. #define C_006548_D1MODE_PRIORITY_A_FORCE_MASK 0xFEFFFFFF
  193. #define R_00654C_D1MODE_PRIORITY_B_CNT 0x00654C
  194. #define S_00654C_D1MODE_PRIORITY_MARK_B(x) (((x) & 0x7FFF) << 0)
  195. #define G_00654C_D1MODE_PRIORITY_MARK_B(x) (((x) >> 0) & 0x7FFF)
  196. #define C_00654C_D1MODE_PRIORITY_MARK_B 0xFFFF8000
  197. #define S_00654C_D1MODE_PRIORITY_B_OFF(x) (((x) & 0x1) << 16)
  198. #define G_00654C_D1MODE_PRIORITY_B_OFF(x) (((x) >> 16) & 0x1)
  199. #define C_00654C_D1MODE_PRIORITY_B_OFF 0xFFFEFFFF
  200. #define S_00654C_D1MODE_PRIORITY_B_ALWAYS_ON(x) (((x) & 0x1) << 20)
  201. #define G_00654C_D1MODE_PRIORITY_B_ALWAYS_ON(x) (((x) >> 20) & 0x1)
  202. #define C_00654C_D1MODE_PRIORITY_B_ALWAYS_ON 0xFFEFFFFF
  203. #define S_00654C_D1MODE_PRIORITY_B_FORCE_MASK(x) (((x) & 0x1) << 24)
  204. #define G_00654C_D1MODE_PRIORITY_B_FORCE_MASK(x) (((x) >> 24) & 0x1)
  205. #define C_00654C_D1MODE_PRIORITY_B_FORCE_MASK 0xFEFFFFFF
  206. #define R_006C9C_DCP_CONTROL 0x006C9C
  207. #define R_006D48_D2MODE_PRIORITY_A_CNT 0x006D48
  208. #define S_006D48_D2MODE_PRIORITY_MARK_A(x) (((x) & 0x7FFF) << 0)
  209. #define G_006D48_D2MODE_PRIORITY_MARK_A(x) (((x) >> 0) & 0x7FFF)
  210. #define C_006D48_D2MODE_PRIORITY_MARK_A 0xFFFF8000
  211. #define S_006D48_D2MODE_PRIORITY_A_OFF(x) (((x) & 0x1) << 16)
  212. #define G_006D48_D2MODE_PRIORITY_A_OFF(x) (((x) >> 16) & 0x1)
  213. #define C_006D48_D2MODE_PRIORITY_A_OFF 0xFFFEFFFF
  214. #define S_006D48_D2MODE_PRIORITY_A_ALWAYS_ON(x) (((x) & 0x1) << 20)
  215. #define G_006D48_D2MODE_PRIORITY_A_ALWAYS_ON(x) (((x) >> 20) & 0x1)
  216. #define C_006D48_D2MODE_PRIORITY_A_ALWAYS_ON 0xFFEFFFFF
  217. #define S_006D48_D2MODE_PRIORITY_A_FORCE_MASK(x) (((x) & 0x1) << 24)
  218. #define G_006D48_D2MODE_PRIORITY_A_FORCE_MASK(x) (((x) >> 24) & 0x1)
  219. #define C_006D48_D2MODE_PRIORITY_A_FORCE_MASK 0xFEFFFFFF
  220. #define R_006D4C_D2MODE_PRIORITY_B_CNT 0x006D4C
  221. #define S_006D4C_D2MODE_PRIORITY_MARK_B(x) (((x) & 0x7FFF) << 0)
  222. #define G_006D4C_D2MODE_PRIORITY_MARK_B(x) (((x) >> 0) & 0x7FFF)
  223. #define C_006D4C_D2MODE_PRIORITY_MARK_B 0xFFFF8000
  224. #define S_006D4C_D2MODE_PRIORITY_B_OFF(x) (((x) & 0x1) << 16)
  225. #define G_006D4C_D2MODE_PRIORITY_B_OFF(x) (((x) >> 16) & 0x1)
  226. #define C_006D4C_D2MODE_PRIORITY_B_OFF 0xFFFEFFFF
  227. #define S_006D4C_D2MODE_PRIORITY_B_ALWAYS_ON(x) (((x) & 0x1) << 20)
  228. #define G_006D4C_D2MODE_PRIORITY_B_ALWAYS_ON(x) (((x) >> 20) & 0x1)
  229. #define C_006D4C_D2MODE_PRIORITY_B_ALWAYS_ON 0xFFEFFFFF
  230. #define S_006D4C_D2MODE_PRIORITY_B_FORCE_MASK(x) (((x) & 0x1) << 24)
  231. #define G_006D4C_D2MODE_PRIORITY_B_FORCE_MASK(x) (((x) >> 24) & 0x1)
  232. #define C_006D4C_D2MODE_PRIORITY_B_FORCE_MASK 0xFEFFFFFF
  233. #define R_006D58_LB_MAX_REQ_OUTSTANDING 0x006D58
  234. #define S_006D58_LB_D1_MAX_REQ_OUTSTANDING(x) (((x) & 0xF) << 0)
  235. #define G_006D58_LB_D1_MAX_REQ_OUTSTANDING(x) (((x) >> 0) & 0xF)
  236. #define C_006D58_LB_D1_MAX_REQ_OUTSTANDING 0xFFFFFFF0
  237. #define S_006D58_LB_D2_MAX_REQ_OUTSTANDING(x) (((x) & 0xF) << 16)
  238. #define G_006D58_LB_D2_MAX_REQ_OUTSTANDING(x) (((x) >> 16) & 0xF)
  239. #define C_006D58_LB_D2_MAX_REQ_OUTSTANDING 0xFFF0FFFF
  240. #define R_000090_MC_SYSTEM_STATUS 0x000090
  241. #define S_000090_MC_SYSTEM_IDLE(x) (((x) & 0x1) << 0)
  242. #define G_000090_MC_SYSTEM_IDLE(x) (((x) >> 0) & 0x1)
  243. #define C_000090_MC_SYSTEM_IDLE 0xFFFFFFFE
  244. #define S_000090_MC_SEQUENCER_IDLE(x) (((x) & 0x1) << 1)
  245. #define G_000090_MC_SEQUENCER_IDLE(x) (((x) >> 1) & 0x1)
  246. #define C_000090_MC_SEQUENCER_IDLE 0xFFFFFFFD
  247. #define S_000090_MC_ARBITER_IDLE(x) (((x) & 0x1) << 2)
  248. #define G_000090_MC_ARBITER_IDLE(x) (((x) >> 2) & 0x1)
  249. #define C_000090_MC_ARBITER_IDLE 0xFFFFFFFB
  250. #define S_000090_MC_SELECT_PM(x) (((x) & 0x1) << 3)
  251. #define G_000090_MC_SELECT_PM(x) (((x) >> 3) & 0x1)
  252. #define C_000090_MC_SELECT_PM 0xFFFFFFF7
  253. #define S_000090_RESERVED4(x) (((x) & 0xF) << 4)
  254. #define G_000090_RESERVED4(x) (((x) >> 4) & 0xF)
  255. #define C_000090_RESERVED4 0xFFFFFF0F
  256. #define S_000090_RESERVED8(x) (((x) & 0xF) << 8)
  257. #define G_000090_RESERVED8(x) (((x) >> 8) & 0xF)
  258. #define C_000090_RESERVED8 0xFFFFF0FF
  259. #define S_000090_RESERVED12(x) (((x) & 0xF) << 12)
  260. #define G_000090_RESERVED12(x) (((x) >> 12) & 0xF)
  261. #define C_000090_RESERVED12 0xFFFF0FFF
  262. #define S_000090_MCA_INIT_EXECUTED(x) (((x) & 0x1) << 16)
  263. #define G_000090_MCA_INIT_EXECUTED(x) (((x) >> 16) & 0x1)
  264. #define C_000090_MCA_INIT_EXECUTED 0xFFFEFFFF
  265. #define S_000090_MCA_IDLE(x) (((x) & 0x1) << 17)
  266. #define G_000090_MCA_IDLE(x) (((x) >> 17) & 0x1)
  267. #define C_000090_MCA_IDLE 0xFFFDFFFF
  268. #define S_000090_MCA_SEQ_IDLE(x) (((x) & 0x1) << 18)
  269. #define G_000090_MCA_SEQ_IDLE(x) (((x) >> 18) & 0x1)
  270. #define C_000090_MCA_SEQ_IDLE 0xFFFBFFFF
  271. #define S_000090_MCA_ARB_IDLE(x) (((x) & 0x1) << 19)
  272. #define G_000090_MCA_ARB_IDLE(x) (((x) >> 19) & 0x1)
  273. #define C_000090_MCA_ARB_IDLE 0xFFF7FFFF
  274. #define S_000090_RESERVED20(x) (((x) & 0xFFF) << 20)
  275. #define G_000090_RESERVED20(x) (((x) >> 20) & 0xFFF)
  276. #define C_000090_RESERVED20 0x000FFFFF
  277. #define R_000100_MCCFG_FB_LOCATION 0x000100
  278. #define S_000100_MC_FB_START(x) (((x) & 0xFFFF) << 0)
  279. #define G_000100_MC_FB_START(x) (((x) >> 0) & 0xFFFF)
  280. #define C_000100_MC_FB_START 0xFFFF0000
  281. #define S_000100_MC_FB_TOP(x) (((x) & 0xFFFF) << 16)
  282. #define G_000100_MC_FB_TOP(x) (((x) >> 16) & 0xFFFF)
  283. #define C_000100_MC_FB_TOP 0x0000FFFF
  284. #define R_000104_MC_INIT_MISC_LAT_TIMER 0x000104
  285. #define S_000104_MC_CPR_INIT_LAT(x) (((x) & 0xF) << 0)
  286. #define G_000104_MC_CPR_INIT_LAT(x) (((x) >> 0) & 0xF)
  287. #define C_000104_MC_CPR_INIT_LAT 0xFFFFFFF0
  288. #define S_000104_MC_VF_INIT_LAT(x) (((x) & 0xF) << 4)
  289. #define G_000104_MC_VF_INIT_LAT(x) (((x) >> 4) & 0xF)
  290. #define C_000104_MC_VF_INIT_LAT 0xFFFFFF0F
  291. #define S_000104_MC_DISP0R_INIT_LAT(x) (((x) & 0xF) << 8)
  292. #define G_000104_MC_DISP0R_INIT_LAT(x) (((x) >> 8) & 0xF)
  293. #define C_000104_MC_DISP0R_INIT_LAT 0xFFFFF0FF
  294. #define S_000104_MC_DISP1R_INIT_LAT(x) (((x) & 0xF) << 12)
  295. #define G_000104_MC_DISP1R_INIT_LAT(x) (((x) >> 12) & 0xF)
  296. #define C_000104_MC_DISP1R_INIT_LAT 0xFFFF0FFF
  297. #define S_000104_MC_FIXED_INIT_LAT(x) (((x) & 0xF) << 16)
  298. #define G_000104_MC_FIXED_INIT_LAT(x) (((x) >> 16) & 0xF)
  299. #define C_000104_MC_FIXED_INIT_LAT 0xFFF0FFFF
  300. #define S_000104_MC_E2R_INIT_LAT(x) (((x) & 0xF) << 20)
  301. #define G_000104_MC_E2R_INIT_LAT(x) (((x) >> 20) & 0xF)
  302. #define C_000104_MC_E2R_INIT_LAT 0xFF0FFFFF
  303. #define S_000104_SAME_PAGE_PRIO(x) (((x) & 0xF) << 24)
  304. #define G_000104_SAME_PAGE_PRIO(x) (((x) >> 24) & 0xF)
  305. #define C_000104_SAME_PAGE_PRIO 0xF0FFFFFF
  306. #define S_000104_MC_GLOBW_INIT_LAT(x) (((x) & 0xF) << 28)
  307. #define G_000104_MC_GLOBW_INIT_LAT(x) (((x) >> 28) & 0xF)
  308. #define C_000104_MC_GLOBW_INIT_LAT 0x0FFFFFFF
  309. #endif