cpu_sh7722.h 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  4. *
  5. * SH7722 Internal I/O register
  6. */
  7. #ifndef _ASM_CPU_SH7722_H_
  8. #define _ASM_CPU_SH7722_H_
  9. #define CACHE_OC_NUM_WAYS 4
  10. #define CCR_CACHE_INIT 0x0000090d
  11. /* EXP */
  12. #define TRA 0xFF000020
  13. #define EXPEVT 0xFF000024
  14. #define INTEVT 0xFF000028
  15. /* MMU */
  16. #define PTEH 0xFF000000
  17. #define PTEL 0xFF000004
  18. #define TTB 0xFF000008
  19. #define TEA 0xFF00000C
  20. #define MMUCR 0xFF000010
  21. #define PASCR 0xFF000070
  22. #define IRMCR 0xFF000078
  23. /* CACHE */
  24. #define CCR 0xFF00001C
  25. #define RAMCR 0xFF000074
  26. /* XY MEMORY */
  27. #define XSA 0xFF000050
  28. #define YSA 0xFF000054
  29. #define XDA 0xFF000058
  30. #define YDA 0xFF00005C
  31. #define XPR 0xFF000060
  32. #define YPR 0xFF000064
  33. #define XEA 0xFF000068
  34. #define YEA 0xFF00006C
  35. /* INTC */
  36. #define ICR0 0xA4140000
  37. #define ICR1 0xA414001C
  38. #define INTPRI0 0xA4140010
  39. #define INTREQ0 0xA4140024
  40. #define INTMSK0 0xA4140044
  41. #define INTMSKCLR0 0xA4140064
  42. #define NMIFCR 0xA41400C0
  43. #define USERIMASK 0xA4700000
  44. #define IPRA 0xA4080000
  45. #define IPRB 0xA4080004
  46. #define IPRC 0xA4080008
  47. #define IPRD 0xA408000C
  48. #define IPRE 0xA4080010
  49. #define IPRF 0xA4080014
  50. #define IPRG 0xA4080018
  51. #define IPRH 0xA408001C
  52. #define IPRI 0xA4080020
  53. #define IPRJ 0xA4080024
  54. #define IPRK 0xA4080028
  55. #define IPRL 0xA408002C
  56. #define IMR0 0xA4080080
  57. #define IMR1 0xA4080084
  58. #define IMR2 0xA4080088
  59. #define IMR3 0xA408008C
  60. #define IMR4 0xA4080090
  61. #define IMR5 0xA4080094
  62. #define IMR6 0xA4080098
  63. #define IMR7 0xA408009C
  64. #define IMR8 0xA40800A0
  65. #define IMR9 0xA40800A4
  66. #define IMR10 0xA40800A8
  67. #define IMR11 0xA40800AC
  68. #define IMCR0 0xA40800C0
  69. #define IMCR1 0xA40800C4
  70. #define IMCR2 0xA40800C8
  71. #define IMCR3 0xA40800CC
  72. #define IMCR4 0xA40800D0
  73. #define IMCR5 0xA40800D4
  74. #define IMCR6 0xA40800D8
  75. #define IMCR7 0xA40800DC
  76. #define IMCR8 0xA40800E0
  77. #define IMCR9 0xA40800E4
  78. #define IMCR10 0xA40800E8
  79. #define IMCR11 0xA40800EC
  80. #define MFI_IPRA 0xA40B0000
  81. #define MFI_IPRB 0xA40B0004
  82. #define MFI_IPRC 0xA40B0008
  83. #define MFI_IPRD 0xA40B000C
  84. #define MFI_IPRE 0xA40B0010
  85. #define MFI_IPRF 0xA40B0014
  86. #define MFI_IPRG 0xA40B0018
  87. #define MFI_IPRH 0xA40B001C
  88. #define MFI_IPRI 0xA40B0020
  89. #define MFI_IPRJ 0xA40B0024
  90. #define MFI_IPRK 0xA40B0028
  91. #define MFI_IPRL 0xA40B002C
  92. #define MFI_IMR0 0xA40B0080
  93. #define MFI_IMR1 0xA40B0084
  94. #define MFI_IMR2 0xA40B0088
  95. #define MFI_IMR3 0xA40B008C
  96. #define MFI_IMR4 0xA40B0090
  97. #define MFI_IMR5 0xA40B0094
  98. #define MFI_IMR6 0xA40B0098
  99. #define MFI_IMR7 0xA40B009C
  100. #define MFI_IMR8 0xA40B00A0
  101. #define MFI_IMR9 0xA40B00A4
  102. #define MFI_IMR10 0xA40B00A8
  103. #define MFI_IMR11 0xA40B00AC
  104. #define MFI_IMCR0 0xA40B00C0
  105. #define MFI_IMCR1 0xA40B00C4
  106. #define MFI_IMCR2 0xA40B00C8
  107. #define MFI_IMCR3 0xA40B00CC
  108. #define MFI_IMCR4 0xA40B00D0
  109. #define MFI_IMCR5 0xA40B00D4
  110. #define MFI_IMCR6 0xA40B00D8
  111. #define MFI_IMCR7 0xA40B00DC
  112. #define MFI_IMCR8 0xA40B00E0
  113. #define MFI_IMCR9 0xA40B00E4
  114. #define MFI_IMCR10 0xA40B00E8
  115. #define MFI_IMCR11 0xA40B00EC
  116. /* BSC */
  117. #define CMNCR 0xFEC10000
  118. #define CS0BCR 0xFEC10004
  119. #define CS2BCR 0xFEC10008
  120. #define CS4BCR 0xFEC10010
  121. #define CS5ABCR 0xFEC10014
  122. #define CS5BBCR 0xFEC10018
  123. #define CS6ABCR 0xFEC1001C
  124. #define CS6BBCR 0xFEC10020
  125. #define CS0WCR 0xFEC10024
  126. #define CS2WCR 0xFEC10028
  127. #define CS4WCR 0xFEC10030
  128. #define CS5AWCR 0xFEC10034
  129. #define CS5BWCR 0xFEC10038
  130. #define CS6AWCR 0xFEC1003C
  131. #define CS6BWCR 0xFEC10040
  132. #define RBWTCNT 0xFEC10054
  133. /* SBSC */
  134. #define SBSC_SDCR 0xFE400008
  135. #define SBSC_SDWCR 0xFE40000C
  136. #define SBSC_SDPCR 0xFE400010
  137. #define SBSC_RTCSR 0xFE400014
  138. #define SBSC_RTCNT 0xFE400018
  139. #define SBSC_RTCOR 0xFE40001C
  140. #define SBSC_RFCR 0xFE400020
  141. /* DMAC */
  142. #define SAR_0 0xFE008020
  143. #define DAR_0 0xFE008024
  144. #define TCR_0 0xFE008028
  145. #define CHCR_0 0xFE00802C
  146. #define SAR_1 0xFE008030
  147. #define DAR_1 0xFE008034
  148. #define TCR_1 0xFE008038
  149. #define CHCR_1 0xFE00803C
  150. #define SAR_2 0xFE008040
  151. #define DAR_2 0xFE008044
  152. #define TCR_2 0xFE008048
  153. #define CHCR_2 0xFE00804C
  154. #define SAR_3 0xFE008050
  155. #define DAR_3 0xFE008054
  156. #define TCR_3 0xFE008058
  157. #define CHCR_3 0xFE00805C
  158. #define SAR_4 0xFE008070
  159. #define DAR_4 0xFE008074
  160. #define TCR_4 0xFE008078
  161. #define CHCR_4 0xFE00807C
  162. #define SAR_5 0xFE008080
  163. #define DAR_5 0xFE008084
  164. #define TCR_5 0xFE008088
  165. #define CHCR_5 0xFE00808C
  166. #define SARB_0 0xFE008120
  167. #define DARB_0 0xFE008124
  168. #define TCRB_0 0xFE008128
  169. #define SARB_1 0xFE008130
  170. #define DARB_1 0xFE008134
  171. #define TCRB_1 0xFE008138
  172. #define SARB_2 0xFE008140
  173. #define DARB_2 0xFE008144
  174. #define TCRB_2 0xFE008148
  175. #define SARB_3 0xFE008150
  176. #define DARB_3 0xFE008154
  177. #define TCRB_3 0xFE008158
  178. #define DMAOR 0xFE008060
  179. #define DMARS_0 0xFE009000
  180. #define DMARS_1 0xFE009004
  181. #define DMARS_2 0xFE009008
  182. /* CPG */
  183. #define FRQCR 0xA4150000
  184. #define VCLKCR 0xA4150004
  185. #define SCLKACR 0xA4150008
  186. #define SCLKBCR 0xA415000C
  187. #define PLLCR 0xA4150024
  188. #define DLLFRQ 0xA4150050
  189. /* LOW POWER MODE */
  190. #define STBCR 0xA4150020
  191. #define MSTPCR0 0xA4150030
  192. #define MSTPCR1 0xA4150034
  193. #define MSTPCR2 0xA4150038
  194. #define BAR 0xA4150040
  195. /* RWDT */
  196. #define RWTCNT 0xA4520000
  197. #define RWTCSR 0xA4520004
  198. #define WTCNT RWTCNT
  199. /* TMU */
  200. #define TMU_BASE 0xFFD80000
  201. /* TPU */
  202. #define TPU_TSTR 0xA4C90000
  203. #define TPU_TCR0 0xA4C90010
  204. #define TPU_TMDR0 0xA4C90014
  205. #define TPU_TIOR0 0xA4C90018
  206. #define TPU_TIER0 0xA4C9001C
  207. #define TPU_TSR0 0xA4C90020
  208. #define TPU_TCNT0 0xA4C90024
  209. #define TPU_TGR0A 0xA4C90028
  210. #define TPU_TGR0B 0xA4C9002C
  211. #define TPU_TGR0C 0xA4C90030
  212. #define TPU_TGR0D 0xA4C90034
  213. #define TPU_TCR1 0xA4C90050
  214. #define TPU_TMDR1 0xA4C90054
  215. #define TPU_TIER1 0xA4C9005C
  216. #define TPU_TSR1 0xA4C90060
  217. #define TPU_TCNT1 0xA4C90064
  218. #define TPU_TGR1A 0xA4C90068
  219. #define TPU_TGR1B 0xA4C9006C
  220. #define TPU_TGR1C 0xA4C90070
  221. #define TPU_TGR1D 0xA4C90074
  222. #define TPU_TCR2 0xA4C90090
  223. #define TPU_TMDR2 0xA4C90094
  224. #define TPU_TIER2 0xA4C9009C
  225. #define TPU_TSR2 0xA4C900A0
  226. #define TPU_TCNT2 0xA4C900A4
  227. #define TPU_TGR2A 0xA4C900A8
  228. #define TPU_TGR2B 0xA4C900AC
  229. #define TPU_TGR2C 0xA4C900B0
  230. #define TPU_TGR2D 0xA4C900B4
  231. #define TPU_TCR3 0xA4C900D0
  232. #define TPU_TMDR3 0xA4C900D4
  233. #define TPU_TIER3 0xA4C900DC
  234. #define TPU_TSR3 0xA4C900E0
  235. #define TPU_TCNT3 0xA4C900E4
  236. #define TPU_TGR3A 0xA4C900E8
  237. #define TPU_TGR3B 0xA4C900EC
  238. #define TPU_TGR3C 0xA4C900F0
  239. #define TPU_TGR3D 0xA4C900F4
  240. /* CMT */
  241. #define CMSTR 0xA44A0000
  242. #define CMCSR 0xA44A0060
  243. #define CMCNT 0xA44A0064
  244. #define CMCOR 0xA44A0068
  245. /* SIO */
  246. #define SIOMDR 0xA4500000
  247. #define SIOCTR 0xA4500004
  248. #define SIOSTBCR0 0xA4500008
  249. #define SIOSTBCR1 0xA450000C
  250. #define SIOTDR 0xA4500014
  251. #define SIORDR 0xA4500018
  252. #define SIOSTR 0xA450001C
  253. #define SIOIER 0xA4500020
  254. #define SIOSCR 0xA4500024
  255. /* SIOF */
  256. #define SIMDR0 0xA4410000
  257. #define SISCR0 0xA4410002
  258. #define SITDAR0 0xA4410004
  259. #define SIRDAR0 0xA4410006
  260. #define SICDAR0 0xA4410008
  261. #define SICTR0 0xA441000C
  262. #define SIFCTR0 0xA4410010
  263. #define SISTR0 0xA4410014
  264. #define SIIER0 0xA4410016
  265. #define SITDR0 0xA4410020
  266. #define SIRDR0 0xA4410024
  267. #define SITCR0 0xA4410028
  268. #define SIRCR0 0xA441002C
  269. #define SPICR0 0xA4410030
  270. #define SIMDR1 0xA4420000
  271. #define SISCR1 0xA4420002
  272. #define SITDAR1 0xA4420004
  273. #define SIRDAR1 0xA4420006
  274. #define SICDAR1 0xA4420008
  275. #define SICTR1 0xA442000C
  276. #define SIFCTR1 0xA4420010
  277. #define SISTR1 0xA4420014
  278. #define SIIER1 0xA4420016
  279. #define SITDR1 0xA4420020
  280. #define SIRDR1 0xA4420024
  281. #define SITCR1 0xA4420028
  282. #define SIRCR1 0xA442002C
  283. #define SPICR1 0xA4420030
  284. /* SCIF */
  285. #define SCIF0_BASE 0xFFE00000
  286. /* SIM */
  287. #define SIM_SCSMR 0xA4490000
  288. #define SIM_SCBRR 0xA4490002
  289. #define SIM_SCSCR 0xA4490004
  290. #define SIM_SCTDR 0xA4490006
  291. #define SIM_SCSSR 0xA4490008
  292. #define SIM_SCRDR 0xA449000A
  293. #define SIM_SCSCMR 0xA449000C
  294. #define SIM_SCSC2R 0xA449000E
  295. #define SIM_SCWAIT 0xA4490010
  296. #define SIM_SCGRD 0xA4490012
  297. #define SIM_SCSMPL 0xA4490014
  298. #define SIM_SCDMAEN 0xA4490016
  299. /* IrDA */
  300. #define IRIF_INIT1 0xA45D0012
  301. #define IRIF_INIT2 0xA45D0014
  302. #define IRIF_RINTCLR 0xA45D0016
  303. #define IRIF_TINTCLR 0xA45D0018
  304. #define IRIF_SIR0 0xA45D0020
  305. #define IRIF_SIR1 0xA45D0022
  306. #define IRIF_SIR2 0xA45D0024
  307. #define IRIF_SIR3 0xA45D0026
  308. #define IRIF_SIR_FRM 0xA45D0028
  309. #define IRIF_SIR_EOF 0xA45D002A
  310. #define IRIF_SIR_FLG 0xA45D002C
  311. #define IRIF_SIR_STS2 0xA45D002E
  312. #define IRIF_UART0 0xA45D0030
  313. #define IRIF_UART1 0xA45D0032
  314. #define IRIF_UART2 0xA45D0034
  315. #define IRIF_UART3 0xA45D0036
  316. #define IRIF_UART4 0xA45D0038
  317. #define IRIF_UART5 0xA45D003A
  318. #define IRIF_UART6 0xA45D003C
  319. #define IRIF_UART7 0xA45D003E
  320. #define IRIF_CRC0 0xA45D0040
  321. #define IRIF_CRC1 0xA45D0042
  322. #define IRIF_CRC2 0xA45D0044
  323. #define IRIF_CRC3 0xA45D0046
  324. #define IRIF_CRC4 0xA45D0048
  325. /* IIC */
  326. #define ICDR0 0xA4470000
  327. #define ICCR0 0xA4470004
  328. #define ICSR0 0xA4470008
  329. #define ICIC0 0xA447000C
  330. #define ICCL0 0xA4470010
  331. #define ICCH0 0xA4470014
  332. #define ICDR1 0xA4750000
  333. #define ICCR1 0xA4750004
  334. #define ICSR1 0xA4750008
  335. #define ICIC1 0xA475000C
  336. #define ICCL1 0xA4750010
  337. #define ICCH1 0xA4750014
  338. /* FLCTL */
  339. #define FLCMNCR 0xA4530000
  340. #define FLCMDCR 0xA4530004
  341. #define FLCMCDR 0xA4530008
  342. #define FLADR 0xA453000C
  343. #define FLDATAR 0xA4530010
  344. #define FLDTCNTR 0xA4530014
  345. #define FLINTDMACR 0xA4530018
  346. #define FLBSYTMR 0xA453001C
  347. #define FLBSYCNT 0xA4530020
  348. #define FLDTFIFO 0xA4530024
  349. #define FLECFIFO 0xA4530028
  350. #define FLTRCR 0xA453002C
  351. #define FLADR2 0xA453003C
  352. /* MFI */
  353. #define MFIIDX 0xA4C10000
  354. #define MFIGSR 0xA4C10004
  355. #define MFISCR 0xA4C10008
  356. #define MFIMCR 0xA4C1000C
  357. #define MFIIICR 0xA4C10010
  358. #define MFIEICR 0xA4C10014
  359. #define MFIADR 0xA4C10018
  360. #define MFIDATA 0xA4C1001C
  361. #define MFIRCR 0xA4C10020
  362. #define MFIINTEVT 0xA4C1002C
  363. #define MFIIMASK 0xA4C10030
  364. #define MFIBCR 0xA4C10040
  365. #define MFIADRW 0xA4C10044
  366. #define MFIADRR 0xA4C10048
  367. #define MFIDATAW 0xA4C1004C
  368. #define MFIDATAR 0xA4C10050
  369. #define MFIMCRW 0xA4C10054
  370. #define MFIMCRR 0xA4C10058
  371. #define MFIDNRW 0xA4C1005C
  372. #define MFIDNRR 0xA4C10060
  373. #define MFISIZEW 0xA4C10064
  374. #define MFISIZER 0xA4C10068
  375. #define MFIDEVCR 0xA4C10038
  376. #define MFISM4 0xA4C10080
  377. /* VPU */
  378. #define VP4_CTRL 0xFE900000
  379. #define VP4_VOL_CTRL 0xFE900004
  380. #define VP4_IMAGE_SIZE 0xFE900008
  381. #define VP4_MB_NUM 0xFE90000C
  382. #define VP4_DWY_ADDR 0xFE900010
  383. #define VP4_DWC_ADDR 0xFE900014
  384. #define VP4_D2WY_ADDR 0xFE900018
  385. #define VP4_D2WC_ADDR 0xFE90001C
  386. #define VP4_DP1_ADDR 0xFE900020
  387. #define VP4_DP2_ADDR 0xFE900024
  388. #define VP4_STRS_ADDR 0xFE900028
  389. #define VP4_STRE_ADDR 0xFE90002C
  390. #define VP4_VOP_CTRL 0xFE900030
  391. #define VP4_VOP_TIME 0xFE900034
  392. #define VP4_263_CTRL 0xFE900038
  393. #define VP4_264_CTRL 0xFE90003C
  394. #define VP4_VLC_CTRL 0xFE900040
  395. #define VP4_ENDIAN 0xFE900044
  396. #define VP4_CMD 0xFE900048
  397. #define VP4_ME_TH1 0xFE90004C
  398. #define VP4_ME_TH2 0xFE900050
  399. #define VP4_ME_COSTMB 0xFE900054
  400. #define VP4_ME_SKIP 0xFE900058
  401. #define VP4_ME_CTRL 0xFE90005C
  402. #define VP4_MBRF_CTRL 0xFE900060
  403. #define VP4_MC_CTRL 0xFE900064
  404. #define VP4_PRED_CTRL 0xFE900068
  405. #define VP4_SLC_SIZE 0xFE90006C
  406. #define VP4_VOP_MINBIT 0xFE900070
  407. #define VP4_MB_MAXBIT 0xFE900074
  408. #define VP4_MB_TBIT 0xFE900078
  409. #define VP4_RCQNT 0xFE90007C
  410. #define VP4_RCRP 0xFE900080
  411. #define VP4_RCDJ 0xFE900084
  412. #define VP4_RCWQ 0xFE900088
  413. #define VP4_FWD_TIME 0xFE900094
  414. #define VP4_BWD_TIME 0xFE900098
  415. #define VP4_PST_TIME 0xFE90009C
  416. #define VP4_ILTFRAME 0xFE9000A0
  417. #define VP4_EC_REF 0xFE9000A4
  418. #define VP4_STATUS 0xFE900100
  419. #define VP4_IRQ_ENB 0xFE900104
  420. #define VP4_IRQ_STA 0xFE900108
  421. #define VP4_VOP_BIT 0xFE90010C
  422. #define VP4_PRV_BIT 0xFE900110
  423. #define VP4_SLC_MB 0xFE900114
  424. #define VP4_QSUM 0xFE900118
  425. #define VP4_DEC_ERR 0xFE90011C
  426. #define VP4_ERR_AREA 0xFE900120
  427. #define VP4_NEXT_CODE 0xFE900124
  428. #define VP4_MB_ATTR 0xFE900128
  429. #define VP4_DBMON 0xFE90012C
  430. #define VP4_DEBUG 0xFE900130
  431. #define VP4_ERR_DET 0xFE900134
  432. #define VP4_CLK_STOP 0xFE900138
  433. #define VP4_MB_SADA 0xFE90013C
  434. #define VP4_MB_SADR 0xFE900140
  435. #define VP4_MAT_RAM 0xFE901000
  436. #define VP4_NC_RAM 0xFE902000
  437. #define WT 0xFE9020CC
  438. #define VP4_CPY_ADDR 0xFE902264
  439. #define VP4_CPC_ADDR 0xFE902268
  440. #define VP4_R0Y_ADDR 0xFE90226C
  441. #define VP4_R0C_ADDR 0xFE902270
  442. #define VP4_R1Y_ADDR 0xFE902274
  443. #define VP4_R1C_ADDR 0xFE902278
  444. #define VP4_R2Y_ADDR 0xFE90227C
  445. #define VP4_R2C_ADDR 0xFE902280
  446. #define VP4_R3Y_ADDR 0xFE902284
  447. #define VP4_R3C_ADDR 0xFE902288
  448. #define VP4_R4Y_ADDR 0xFE90228C
  449. #define VP4_R4C_ADDR 0xFE902290
  450. #define VP4_R5Y_ADDR 0xFE902294
  451. #define VP4_R5C_ADDR 0xFE902298
  452. #define VP4_R6Y_ADDR 0xFE90229C
  453. #define VP4_R6C_ADDR 0xFE9022A0
  454. #define VP4_R7Y_ADDR 0xFE9022A4
  455. #define VP4_R7C_ADDR 0xFE9022A8
  456. #define VP4_R8Y_ADDR 0xFE9022AC
  457. #define VP4_R8C_ADDR 0xFE9022B0
  458. #define VP4_R9Y_ADDR 0xFE9022B4
  459. #define VP4_R9C_ADDR 0xFE9022B8
  460. #define VP4_RAY_ADDR 0xFE9022BC
  461. #define VP4_RAC_ADDR 0xFE9022C0
  462. #define VP4_RBY_ADDR 0xFE9022C4
  463. #define VP4_RBC_ADDR 0xFE9022C8
  464. #define VP4_RCY_ADDR 0xFE9022CC
  465. #define VP4_RCC_ADDR 0xFE9022D0
  466. #define VP4_RDY_ADDR 0xFE9022D4
  467. #define VP4_RDC_ADDR 0xFE9022D8
  468. #define VP4_REY_ADDR 0xFE9022DC
  469. #define VP4_REC_ADDR 0xFE9022E0
  470. #define VP4_RFY_ADDR 0xFE9022E4
  471. #define VP4_RFC_ADDR 0xFE9022E8
  472. /* VIO(CEU) */
  473. #define CAPSR 0xFE910000
  474. #define CAPCR 0xFE910004
  475. #define CAMCR 0xFE910008
  476. #define CMCYR 0xFE91000C
  477. #define CAMOR 0xFE910010
  478. #define CAPWR 0xFE910014
  479. #define CAIFR 0xFE910018
  480. #define CSTCR 0xFE910020
  481. #define CSECR 0xFE910024
  482. #define CRCNTR 0xFE910028
  483. #define CRCMPR 0xFE91002C
  484. #define CFLCR 0xFE910030
  485. #define CFSZR 0xFE910034
  486. #define CDWDR 0xFE910038
  487. #define CDAYR 0xFE91003C
  488. #define CDACR 0xFE910040
  489. #define CDBYR 0xFE910044
  490. #define CDBCR 0xFE910048
  491. #define CBDSR 0xFE91004C
  492. #define CLFCR 0xFE910060
  493. #define CDOCR 0xFE910064
  494. #define CDDCR 0xFE910068
  495. #define CDDAR 0xFE91006C
  496. #define CEIER 0xFE910070
  497. #define CETCR 0xFE910074
  498. #define CSTSR 0xFE91007C
  499. #define CSRTR 0xFE910080
  500. #define CDAYR2 0xFE910090
  501. #define CDACR2 0xFE910094
  502. #define CDBYR2 0xFE910098
  503. #define CDBCR2 0xFE91009C
  504. /* VIO(VEU) */
  505. #define VESTR 0xFE920000
  506. #define VESWR 0xFE920010
  507. #define VESSR 0xFE920014
  508. #define VSAYR 0xFE920018
  509. #define VSACR 0xFE92001C
  510. #define VBSSR 0xFE920020
  511. #define VEDWR 0xFE920030
  512. #define VDAYR 0xFE920034
  513. #define VDACR 0xFE920038
  514. #define VTRCR 0xFE920050
  515. #define VRFCR 0xFE920054
  516. #define VRFSR 0xFE920058
  517. #define VENHR 0xFE92005C
  518. #define VFMCR 0xFE920070
  519. #define VVTCR 0xFE920074
  520. #define VHTCR 0xFE920078
  521. #define VAPCR 0xFE920080
  522. #define VECCR 0xFE920084
  523. #define VAFXR 0xFE920090
  524. #define VSWPR 0xFE920094
  525. #define VEIER 0xFE9200A0
  526. #define VEVTR 0xFE9200A4
  527. #define VSTAR 0xFE9200B0
  528. #define VBSRR 0xFE9200B4
  529. /* VIO(BEU) */
  530. #define BESTR 0xFE930000
  531. #define BSMWR1 0xFE930010
  532. #define BSSZR1 0xFE930014
  533. #define BSAYR1 0xFE930018
  534. #define BSACR1 0xFE93001C
  535. #define BSAAR1 0xFE930020
  536. #define BSIFR1 0xFE930024
  537. #define BSMWR2 0xFE930028
  538. #define BSSZR2 0xFE93002C
  539. #define BSAYR2 0xFE930030
  540. #define BSACR2 0xFE930034
  541. #define BSAAR2 0xFE930038
  542. #define BSIFR2 0xFE93003C
  543. #define BSMWR3 0xFE930040
  544. #define BSSZR3 0xFE930044
  545. #define BSAYR3 0xFE930048
  546. #define BSACR3 0xFE93004C
  547. #define BSAAR3 0xFE930050
  548. #define BSIFR3 0xFE930054
  549. #define BTPSR 0xFE930058
  550. #define BMSMWR1 0xFE930070
  551. #define BMSSZR1 0xFE930074
  552. #define BMSAYR1 0xFE930078
  553. #define BMSACR1 0xFE93007C
  554. #define BMSMWR2 0xFE930080
  555. #define BMSSZR2 0xFE930084
  556. #define BMSAYR2 0xFE930088
  557. #define BMSACR2 0xFE93008C
  558. #define BMSMWR3 0xFE930090
  559. #define BMSSZR3 0xFE930094
  560. #define BMSAYR3 0xFE930098
  561. #define BMSACR3 0xFE93009C
  562. #define BMSMWR4 0xFE9300A0
  563. #define BMSSZR4 0xFE9300A4
  564. #define BMSAYR4 0xFE9300A8
  565. #define BMSACR4 0xFE9300AC
  566. #define BMSIFR 0xFE9300F0
  567. #define BBLCR0 0xFE930100
  568. #define BBLCR1 0xFE930104
  569. #define BPROCR 0xFE930108
  570. #define BMWCR0 0xFE93010C
  571. #define BLOCR1 0xFE930114
  572. #define BLOCR2 0xFE930118
  573. #define BLOCR3 0xFE93011C
  574. #define BMLOCR1 0xFE930120
  575. #define BMLOCR2 0xFE930124
  576. #define BMLOCR3 0xFE930128
  577. #define BMLOCR4 0xFE93012C
  578. #define BMPCCR1 0xFE930130
  579. #define BMPCCR2 0xFE930134
  580. #define BPKFR 0xFE930140
  581. #define BPCCR0 0xFE930144
  582. #define BPCCR11 0xFE930148
  583. #define BPCCR12 0xFE93014C
  584. #define BPCCR21 0xFE930150
  585. #define BPCCR22 0xFE930154
  586. #define BPCCR31 0xFE930158
  587. #define BPCCR32 0xFE93015C
  588. #define BDMWR 0xFE930160
  589. #define BDAYR 0xFE930164
  590. #define BDACR 0xFE930168
  591. #define BAFXR 0xFE930180
  592. #define BSWPR 0xFE930184
  593. #define BEIER 0xFE930188
  594. #define BEVTR 0xFE93018C
  595. #define BRCNTR 0xFE930194
  596. #define BSTAR 0xFE930198
  597. #define BBRSTR 0xFE93019C
  598. #define BRCHR 0xFE9301A0
  599. #define CLUT 0xFE933000
  600. /* JPU */
  601. #define JCMOD 0xFEA00000
  602. #define JCCMD 0xFEA00004
  603. #define JCSTS 0xFEA00008
  604. #define JCQTN 0xFEA0000C
  605. #define JCHTN 0xFEA00010
  606. #define JCDRIU 0xFEA00014
  607. #define JCDRID 0xFEA00018
  608. #define JCVSZU 0xFEA0001C
  609. #define JCVSZD 0xFEA00020
  610. #define JCHSZU 0xFEA00024
  611. #define JCHSZD 0xFEA00028
  612. #define JCDTCU 0xFEA0002C
  613. #define JCDTCM 0xFEA00030
  614. #define JCDTCD 0xFEA00034
  615. #define JINTE 0xFEA00038
  616. #define JINTS 0xFEA0003C
  617. #define JCDERR 0xFEA00040
  618. #define JCRST 0xFEA00044
  619. #define JIFCNT 0xFEA00060
  620. #define JIFECNT 0xFEA00070
  621. #define JIFESYA1 0xFEA00074
  622. #define JIFESCA1 0xFEA00078
  623. #define JIFESYA2 0xFEA0007C
  624. #define JIFESCA2 0xFEA00080
  625. #define JIFESMW 0xFEA00084
  626. #define JIFESVSZ 0xFEA00088
  627. #define JIFESHSZ 0xFEA0008C
  628. #define JIFEDA1 0xFEA00090
  629. #define JIFEDA2 0xFEA00094
  630. #define JIFEDRSZ 0xFEA00098
  631. #define JIFDCNT 0xFEA000A0
  632. #define JIFDSA1 0xFEA000A4
  633. #define JIFDSA2 0xFEA000A8
  634. #define JIFDDRSZ 0xFEA000AC
  635. #define JIFDDMW 0xFEA000B0
  636. #define JIFDDVSZ 0xFEA000B4
  637. #define JIFDDHSZ 0xFEA000B8
  638. #define JIFDDYA1 0xFEA000BC
  639. #define JIFDDCA1 0xFEA000C0
  640. #define JIFDDYA2 0xFEA000C4
  641. #define JIFDDCA2 0xFEA000C8
  642. #define JCQTBL0 0xFEA10000
  643. #define JCQTBL1 0xFEA10040
  644. #define JCQTBL2 0xFEA10080
  645. #define JCQTBL3 0xFEA100C0
  646. #define JCHTBD0 0xFEA10100
  647. #define JCHTBA0 0xFEA10120
  648. #define JCHTBD1 0xFEA10200
  649. #define JCHTBA1 0xFEA10220
  650. /* LCDC */
  651. #define MLDDCKPAT1R 0xFE940400
  652. #define MLDDCKPAT2R 0xFE940404
  653. #define SLDDCKPAT1R 0xFE940408
  654. #define SLDDCKPAT2R 0xFE94040C
  655. #define LDDCKR 0xFE940410
  656. #define LDDCKSTPR 0xFE940414
  657. #define MLDMT1R 0xFE940418
  658. #define MLDMT2R 0xFE94041C
  659. #define MLDMT3R 0xFE940420
  660. #define MLDDFR 0xFE940424
  661. #define MLDSM1R 0xFE940428
  662. #define MLDSM2R 0xFE94042C
  663. #define MLDSA1R 0xFE940430
  664. #define MLDSA2R 0xFE940434
  665. #define MLDMLSR 0xFE940438
  666. #define MLDWBFR 0xFE94043C
  667. #define MLDWBCNTR 0xFE940440
  668. #define MLDWBAR 0xFE940444
  669. #define MLDHCNR 0xFE940448
  670. #define MLDHSYNR 0xFE94044C
  671. #define MLDVLNR 0xFE940450
  672. #define MLDVSYNR 0xFE940454
  673. #define MLDHPDR 0xFE940458
  674. #define MLDVPDR 0xFE94045C
  675. #define MLDPMR 0xFE940460
  676. #define LDPALCR 0xFE940464
  677. #define LDINTR 0xFE940468
  678. #define LDSR 0xFE94046C
  679. #define LDCNT1R 0xFE940470
  680. #define LDCNT2R 0xFE940474
  681. #define LDRCNTR 0xFE940478
  682. #define LDDDSR 0xFE94047C
  683. #define LDRCR 0xFE940484
  684. #define LDCMRKRGBR 0xFE9404C4
  685. #define LDCMRKCMYR 0xFE9404C8
  686. #define LDCMRK1R 0xFE9404CC
  687. #define LDCMRK2R 0xFE9404D0
  688. #define LDCMGKRGBR 0xFE9404D4
  689. #define LDCMGKCMYR 0xFE9404D8
  690. #define LDCMGK1R 0xFE9404DC
  691. #define LDCMGK2R 0xFE9404E0
  692. #define LDCMBKRGBR 0xFE9404E4
  693. #define LDCMBKCMYR 0xFE9404E8
  694. #define LDCMBK1R 0xFE9404EC
  695. #define LDCMBK2R 0xFE9404F0
  696. #define LDCMHKPR 0xFE9404F4
  697. #define LDCMHKQR 0xFE9404F8
  698. #define LDCMSELR 0xFE9404FC
  699. #define LDCMTVR 0xFE940500
  700. #define LDCMTVSELR 0xFE940504
  701. #define LDCMDTHR 0xFE940508
  702. #define LDCMCNTR 0xFE94050C
  703. #define SLDMT1R 0xFE940600
  704. #define SLDMT2R 0xFE940604
  705. #define SLDMT3R 0xFE940608
  706. #define SLDDFR 0xFE94060C
  707. #define SLDSM1R 0xFE940610
  708. #define SLDSM2R 0xFE940614
  709. #define SLDSA1R 0xFE940618
  710. #define SLDSA2R 0xFE94061C
  711. #define SLDMLSR 0xFE940620
  712. #define SLDHCNR 0xFE940624
  713. #define SLDHSYNR 0xFE940628
  714. #define SLDVLNR 0xFE94062C
  715. #define SLDVSYNR 0xFE940630
  716. #define SLDHPDR 0xFE940634
  717. #define SLDVPDR 0xFE940638
  718. #define SLDPMR 0xFE94063C
  719. #define LDDWD0R 0xFE940800
  720. #define LDDWD1R 0xFE940804
  721. #define LDDWD2R 0xFE940808
  722. #define LDDWD3R 0xFE94080C
  723. #define LDDWD4R 0xFE940810
  724. #define LDDWD5R 0xFE940814
  725. #define LDDWD6R 0xFE940818
  726. #define LDDWD7R 0xFE94081C
  727. #define LDDWD8R 0xFE940820
  728. #define LDDWD9R 0xFE940824
  729. #define LDDWDAR 0xFE940828
  730. #define LDDWDBR 0xFE94082C
  731. #define LDDWDCR 0xFE940830
  732. #define LDDWDDR 0xFE940834
  733. #define LDDWDER 0xFE940838
  734. #define LDDWDFR 0xFE94083C
  735. #define LDDRDR 0xFE940840
  736. #define LDDWAR 0xFE940900
  737. #define LDDRAR 0xFE940904
  738. #define LDPR00 0xFE940000
  739. /* VOU */
  740. #define VOUER 0xFE960000
  741. #define VOUCR 0xFE960004
  742. #define VOUSTR 0xFE960008
  743. #define VOUVCR 0xFE96000C
  744. #define VOUISR 0xFE960010
  745. #define VOUBCR 0xFE960014
  746. #define VOUDPR 0xFE960018
  747. #define VOUDSR 0xFE96001C
  748. #define VOUVPR 0xFE960020
  749. #define VOUIR 0xFE960024
  750. #define VOUSRR 0xFE960028
  751. #define VOUMSR 0xFE96002C
  752. #define VOUHIR 0xFE960030
  753. #define VOUDFR 0xFE960034
  754. #define VOUAD1R 0xFE960038
  755. #define VOUAD2R 0xFE96003C
  756. #define VOUAIR 0xFE960040
  757. #define VOUSWR 0xFE960044
  758. #define VOURCR 0xFE960048
  759. #define VOURPR 0xFE960050
  760. /* TSIF */
  761. #define TSCTLR 0xA4C80000
  762. #define TSPIDR 0xA4C80004
  763. #define TSCMDR 0xA4C80008
  764. #define TSSTR 0xA4C8000C
  765. #define TSTSDR 0xA4C80010
  766. #define TSBUFCLRR 0xA4C80014
  767. #define TSINTER 0xA4C80018
  768. #define TSPSCALER 0xA4C80020
  769. #define TSPSCALERR 0xA4C80024
  770. #define TSPCRADCMDR 0xA4C80028
  771. #define TSPCRADCR 0xA4C8002C
  772. #define TSTRPCRADCR 0xA4C80030
  773. #define TSDPCRADCR 0xA4C80034
  774. /* SIU */
  775. #define IFCTL 0xA454C000
  776. #define SRCTL 0xA454C004
  777. #define SFORM 0xA454C008
  778. #define CKCTL 0xA454C00C
  779. #define TRDAT 0xA454C010
  780. #define STFIFO 0xA454C014
  781. #define DPAK 0xA454C01C
  782. #define CKREV 0xA454C020
  783. #define EVNTC 0xA454C028
  784. #define SBCTL 0xA454C040
  785. #define SBPSET 0xA454C044
  786. #define SBBUS 0xA454C048
  787. #define SBWFLG 0xA454C058
  788. #define SBRFLG 0xA454C05C
  789. #define SBWDAT 0xA454C060
  790. #define SBRDAT 0xA454C064
  791. #define SBFSTS 0xA454C068
  792. #define SBDVCA 0xA454C06C
  793. #define SBDVCB 0xA454C070
  794. #define SBACTIV 0xA454C074
  795. #define DMAIA 0xA454C090
  796. #define DMAIB 0xA454C094
  797. #define DMAOA 0xA454C098
  798. #define DMAOB 0xA454C09C
  799. #define SPLRI 0xA454C0B8
  800. #define SPRRI 0xA454C0BC
  801. #define SPURI 0xA454C0C4
  802. #define SPTIS 0xA454C0C8
  803. #define SPSTS 0xA454C0CC
  804. #define SPCTL 0xA454C0D0
  805. #define SPIRI 0xA454C0D4
  806. #define SPQCF 0xA454C0D8
  807. #define SPQCS 0xA454C0DC
  808. #define SPQCT 0xA454C0E0
  809. #define DPEAK 0xA454C0F0
  810. #define DSLPD 0xA454C0F4
  811. #define DSLLV 0xA454C0F8
  812. #define BRGASEL 0xA454C100
  813. #define BRRA 0xA454C104
  814. #define BRGBSEL 0xA454C108
  815. #define BRRB 0xA454C10C
  816. /* USB */
  817. #define IFR0 0xA4480000
  818. #define ISR0 0xA4480010
  819. #define IER0 0xA4480020
  820. #define EPDR0I 0xA4480030
  821. #define EPDR0O 0xA4480034
  822. #define EPDR0S 0xA4480038
  823. #define EPDR1 0xA448003C
  824. #define EPDR2 0xA4480040
  825. #define EPDR3 0xA4480044
  826. #define EPDR4 0xA4480048
  827. #define EPDR5 0xA448004C
  828. #define EPDR6 0xA4480050
  829. #define EPDR7 0xA4480054
  830. #define EPDR8 0xA4480058
  831. #define EPDR9 0xA448005C
  832. #define EPSZ0O 0xA4480080
  833. #define EPSZ3 0xA4480084
  834. #define EPSZ6 0xA4480088
  835. #define EPSZ9 0xA448008C
  836. #define TRG 0xA44800A0
  837. #define DASTS 0xA44800A4
  838. #define FCLR 0xA44800AA
  839. #define DMA 0xA44800AC
  840. #define EPSTL 0xA44800B2
  841. #define CVR 0xA44800B4
  842. #define TSR 0xA44800B8
  843. #define CTLR 0xA44800BC
  844. #define EPIR 0xA44800C0
  845. #define XVERCR 0xA44800D0
  846. #define STLMR 0xA44800D4
  847. /* KEYSC */
  848. #define KYCR1 0xA44B0000
  849. #define KYCR2 0xA44B0004
  850. #define KYINDR 0xA44B0008
  851. #define KYOUTDR 0xA44B000C
  852. /* MMCIF */
  853. #define CMDR0 0xA4448000
  854. #define CMDR1 0xA4448001
  855. #define CMDR2 0xA4448002
  856. #define CMDR3 0xA4448003
  857. #define CMDR4 0xA4448004
  858. #define CMDR5 0xA4448005
  859. #define CMDSTRT 0xA4448006
  860. #define OPCR 0xA444800A
  861. #define CSTR 0xA444800B
  862. #define INTCR0 0xA444800C
  863. #define INTCR1 0xA444800D
  864. #define INTSTR0 0xA444800E
  865. #define INTSTR1 0xA444800F
  866. #define CLKON 0xA4448010
  867. #define CTOCR 0xA4448011
  868. #define VDCNT 0xA4448012
  869. #define TBCR 0xA4448014
  870. #define MODER 0xA4448016
  871. #define CMDTYR 0xA4448018
  872. #define RSPTYR 0xA4448019
  873. #define TBNCR 0xA444801A
  874. #define RSPR0 0xA4448020
  875. #define RSPR1 0xA4448021
  876. #define RSPR2 0xA4448022
  877. #define RSPR3 0xA4448023
  878. #define RSPR4 0xA4448024
  879. #define RSPR5 0xA4448025
  880. #define RSPR6 0xA4448026
  881. #define RSPR7 0xA4448027
  882. #define RSPR8 0xA4448028
  883. #define RSPR9 0xA4448029
  884. #define RSPR10 0xA444802A
  885. #define RSPR11 0xA444802B
  886. #define RSPR12 0xA444802C
  887. #define RSPR13 0xA444802D
  888. #define RSPR14 0xA444802E
  889. #define RSPR15 0xA444802F
  890. #define RSPR16 0xA4448030
  891. #define RSPRD 0xA4448031
  892. #define DTOUTR 0xA4448032
  893. #define DR 0xA4448040
  894. #define FIFOCLR 0xA4448042
  895. #define DMACR 0xA4448044
  896. #define INTCR2 0xA4448046
  897. #define INTSTR2 0xA4448048
  898. /* Z3D3 */
  899. #define DLBI 0xFD980000
  900. #define DLBD0 0xFD980080
  901. #define DLBD1 0xFD980100
  902. #define GEWM 0xFD984000
  903. #define ICD0 0xFD988000
  904. #define ICD1 0xFD989000
  905. #define ICT 0xFD98A000
  906. #define ILM 0xFD98C000
  907. #define FLM0 0xFD98C800
  908. #define FLM1 0xFD98D000
  909. #define FLUT 0xFD98D800
  910. #define Z3D_PC 0xFD98E400
  911. #define Z3D_PCSP 0xFD98E404
  912. #define Z3D_PAR 0xFD98E408
  913. #define Z3D_IMADR 0xFD98E40C
  914. #define Z3D_BTR0 0xFD98E410
  915. #define Z3D_BTR1 0xFD98E414
  916. #define Z3D_BTR2 0xFD98E418
  917. #define Z3D_BTR3 0xFD98E41C
  918. #define Z3D_LC0 0xFD98E420
  919. #define Z3D_LC1 0xFD98E424
  920. #define Z3D_LC2 0xFD98E428
  921. #define Z3D_LC3 0xFD98E42C
  922. #define Z3D_FR0 0xFD98E430
  923. #define Z3D_FR1 0xFD98E434
  924. #define Z3D_FR2 0xFD98E438
  925. #define Z3D_SR 0xFD98E440
  926. #define Z3D_SMDR 0xFD98E444
  927. #define Z3D_PBIR 0xFD98E448
  928. #define Z3D_DMDR 0xFD98E44C
  929. #define Z3D_IREG 0xFD98E460
  930. #define Z3D_AR00 0xFD98E480
  931. #define Z3D_AR01 0xFD98E484
  932. #define Z3D_AR02 0xFD98E488
  933. #define Z3D_AR03 0xFD98E48C
  934. #define Z3D_BR00 0xFD98E490
  935. #define Z3D_BR01 0xFD98E494
  936. #define Z3D_IXR00 0xFD98E4A0
  937. #define Z3D_IXR01 0xFD98E4A4
  938. #define Z3D_IXR02 0xFD98E4A8
  939. #define Z3D_IXR03 0xFD98E4AC
  940. #define Z3D_AR10 0xFD98E4C0
  941. #define Z3D_AR11 0xFD98E4C4
  942. #define Z3D_AR12 0xFD98E4C8
  943. #define Z3D_AR13 0xFD98E4CC
  944. #define Z3D_BR10 0xFD98E4D0
  945. #define Z3D_BR11 0xFD98E4D4
  946. #define Z3D_IXR10 0xFD98E4E0
  947. #define Z3D_IXR11 0xFD98E4E4
  948. #define Z3D_IXR12 0xFD98E4E8
  949. #define Z3D_IXR13 0xFD98E4EC
  950. #define Z3D_AR20 0xFD98E500
  951. #define Z3D_AR21 0xFD98E504
  952. #define Z3D_AR22 0xFD98E508
  953. #define Z3D_AR23 0xFD98E50C
  954. #define Z3D_BR20 0xFD98E510
  955. #define Z3D_BR21 0xFD98E514
  956. #define Z3D_IXR20 0xFD98E520
  957. #define Z3D_IXR21 0xFD98E524
  958. #define Z3D_IXR22 0xFD98E528
  959. #define Z3D_IXR23 0xFD98E52C
  960. #define Z3D_MR0 0xFD98E540
  961. #define Z3D_MR1 0xFD98E544
  962. #define Z3D_MR2 0xFD98E548
  963. #define Z3D_MR3 0xFD98E54C
  964. #define Z3D_WORKRST 0xFD98E558
  965. #define Z3D_WORKWST 0xFD98E55C
  966. #define Z3D_DBADR 0xFD98E560
  967. #define Z3D_DLBPRST 0xFD98E564
  968. #define Z3D_DLBRST 0xFD98E568
  969. #define Z3D_DLBWST 0xFD98E56C
  970. #define Z3D_UDR0 0xFD98E570
  971. #define Z3D_UDR1 0xFD98E574
  972. #define Z3D_UDR2 0xFD98E578
  973. #define Z3D_UDR3 0xFD98E57C
  974. #define Z3D_CCR0 0xFD98E580
  975. #define Z3D_CCR1 0xFD98E584
  976. #define Z3D_EXPR 0xFD98E588
  977. #define Z3D_V0_X 0xFD9A0000
  978. #define Z3D_V0_Y 0xFD9A0004
  979. #define Z3D_V0_Z 0xFD9A0008
  980. #define Z3D_V0_W 0xFD9A000C
  981. #define Z3D_V0_A 0xFD9A0010
  982. #define Z3D_V0_R 0xFD9A0014
  983. #define Z3D_V0_G 0xFD9A0018
  984. #define Z3D_V0_B 0xFD9A001C
  985. #define Z3D_V0_F 0xFD9A0020
  986. #define Z3D_V0_SR 0xFD9A0024
  987. #define Z3D_V0_SG 0xFD9A0028
  988. #define Z3D_V0_SB 0xFD9A002C
  989. #define Z3D_V0_U0 0xFD9A0030
  990. #define Z3D_V0_V0 0xFD9A0034
  991. #define Z3D_V0_U1 0xFD9A0038
  992. #define Z3D_V0_V1 0xFD9A003C
  993. #define Z3D_V1_X 0xFD9A0080
  994. #define Z3D_V1_Y 0xFD9A0084
  995. #define Z3D_V1_Z 0xFD9A0088
  996. #define Z3D_V1_W 0xFD9A008C
  997. #define Z3D_V1_A 0xFD9A0090
  998. #define Z3D_V1_R 0xFD9A0094
  999. #define Z3D_V1_G 0xFD9A0098
  1000. #define Z3D_V1_B 0xFD9A009C
  1001. #define Z3D_V1_F 0xFD9A00A0
  1002. #define Z3D_V1_SR 0xFD9A00A4
  1003. #define Z3D_V1_SG 0xFD9A00A8
  1004. #define Z3D_V1_SB 0xFD9A00AC
  1005. #define Z3D_V1_U0 0xFD9A00B0
  1006. #define Z3D_V1_V0 0xFD9A00B4
  1007. #define Z3D_V1_U1 0xFD9A00B8
  1008. #define Z3D_V1_V1 0xFD9A00BC
  1009. #define Z3D_V2_X 0xFD9A0100
  1010. #define Z3D_V2_Y 0xFD9A0104
  1011. #define Z3D_V2_Z 0xFD9A0108
  1012. #define Z3D_V2_W 0xFD9A010C
  1013. #define Z3D_V2_A 0xFD9A0110
  1014. #define Z3D_V2_R 0xFD9A0114
  1015. #define Z3D_V2_G 0xFD9A0118
  1016. #define Z3D_V2_B 0xFD9A011C
  1017. #define Z3D_V2_F 0xFD9A0120
  1018. #define Z3D_V2_SR 0xFD9A0124
  1019. #define Z3D_V2_SG 0xFD9A0128
  1020. #define Z3D_V2_SB 0xFD9A012C
  1021. #define Z3D_V2_U0 0xFD9A0130
  1022. #define Z3D_V2_V0 0xFD9A0134
  1023. #define Z3D_V2_U1 0xFD9A0138
  1024. #define Z3D_V2_V1 0xFD9A013C
  1025. #define Z3D_RENDER 0xFD9A0180
  1026. #define Z3D_POLYGON_OFFSET 0xFD9A0184
  1027. #define Z3D_VERTEX_CONTROL 0xFD9A0200
  1028. #define Z3D_STATE_MODE 0xFD9A0204
  1029. #define Z3D_FPU_MODE 0xFD9A0318
  1030. #define Z3D_SCISSOR_MIN 0xFD9A0400
  1031. #define Z3D_SCISSOR_MAX 0xFD9A0404
  1032. #define Z3D_TEXTURE_MODE_A 0xFD9A0408
  1033. #define Z3D_TEXTURE_MODE_B 0xFD9A040C
  1034. #define Z3D_TEXTURE_BASE_HI_A 0xFD9A0418
  1035. #define Z3D_TEXTURE_BASE_LO_A 0xFD9A041C
  1036. #define Z3D_TEXTURE_BASE_HI_B 0xFD9A0420
  1037. #define Z3D_TEXTURE_BASE_LO_B 0xFD9A0424
  1038. #define Z3D_TEXTURE_ALPHA_A0 0xFD9A0438
  1039. #define Z3D_TEXTURE_ALPHA_A1 0xFD9A043C
  1040. #define Z3D_TEXTURE_ALPHA_A2 0xFD9A0440
  1041. #define Z3D_TEXTURE_ALPHA_A3 0xFD9A0444
  1042. #define Z3D_TEXTURE_ALPHA_A4 0xFD9A0448
  1043. #define Z3D_TEXTURE_ALPHA_A5 0xFD9A044C
  1044. #define Z3D_TEXTURE_ALPHA_B0 0xFD9A0450
  1045. #define Z3D_TEXTURE_ALPHA_B1 0xFD9A0454
  1046. #define Z3D_TEXTURE_ALPHA_B2 0xFD9A0458
  1047. #define Z3D_TEXTURE_ALPHA_B3 0xFD9A045C
  1048. #define Z3D_TEXTURE_ALPHA_B4 0xFD9A0460
  1049. #define Z3D_TEXTURE_ALPHA_B5 0xFD9A0464
  1050. #define Z3D_TEXTURE_FLUSH 0xFD9A0498
  1051. #define Z3D_GAMMA_TABLE0 0xFD9A049C
  1052. #define Z3D_GAMMA_TABLE1 0xFD9A04A0
  1053. #define Z3D_GAMMA_TABLE2 0xFD9A04A4
  1054. #define Z3D_ALPHA_TEST 0xFD9A0800
  1055. #define Z3D_STENCIL_TEST 0xFD9A0804
  1056. #define Z3D_DEPTH_ROP_BLEND_DITHER 0xFD9A0808
  1057. #define Z3D_MASK 0xFD9A080C
  1058. #define Z3D_FBUS_MODE 0xFD9A0810
  1059. #define Z3D_GNT_SET 0xFD9A0814
  1060. #define Z3D_BETWEEN_TEST 0xFD9A0818
  1061. #define Z3D_FB_BASE 0xFD9A081C
  1062. #define Z3D_LCD_SIZE 0xFD9A0820
  1063. #define Z3D_FB_FLUSH 0xFD9A0824
  1064. #define Z3D_CACHE_INVALID 0xFD9A0828
  1065. #define Z3D_SC_MODE 0xFD9A0830
  1066. #define Z3D_SC0_MIN 0xFD9A0834
  1067. #define Z3D_SC0_MAX 0xFD9A0838
  1068. #define Z3D_SC1_MIN 0xFD9A083C
  1069. #define Z3D_SC1_MAX 0xFD9A0840
  1070. #define Z3D_SC2_MIN 0xFD9A0844
  1071. #define Z3D_SC2_MAX 0xFD9A0848
  1072. #define Z3D_SC3_MIN 0xFD9A084C
  1073. #define Z3D_SC3_MAX 0xFD9A0850
  1074. #define Z3D_READRESET 0xFD9A0854
  1075. #define Z3D_DET_MIN 0xFD9A0858
  1076. #define Z3D_DET_MAX 0xFD9A085C
  1077. #define Z3D_FB_BASE_SR 0xFD9A0860
  1078. #define Z3D_LCD_SIZE_SR 0xFD9A0864
  1079. #define Z3D_2D_CTRL_STATUS 0xFD9A0C00
  1080. #define Z3D_2D_SIZE 0xFD9A0C04
  1081. #define Z3D_2D_SRCLOC 0xFD9A0C08
  1082. #define Z3D_2D_DSTLOC 0xFD9A0C0C
  1083. #define Z3D_2D_DMAPORT 0xFD9A0C10
  1084. #define Z3D_2D_CONSTANT_SOURCE0 0xFD9A0C14
  1085. #define Z3D_2D_CONSTANT_SOURCE1 0xFD9A0C18
  1086. #define Z3D_2D_STPCOLOR0 0xFD9A0C1C
  1087. #define Z3D_2D_STPCOLOR1 0xFD9A0C20
  1088. #define Z3D_2D_STPPARAMETER_SET0 0xFD9A0C24
  1089. #define Z3D_2D_STPPARAMETER_SET1 0xFD9A0C28
  1090. #define Z3D_2D_STPPAT_0 0xFD9A0C40
  1091. #define Z3D_2D_STPPAT_1 0xFD9A0C44
  1092. #define Z3D_2D_STPPAT_2 0xFD9A0C48
  1093. #define Z3D_2D_STPPAT_3 0xFD9A0C4C
  1094. #define Z3D_2D_STPPAT_4 0xFD9A0C50
  1095. #define Z3D_2D_STPPAT_5 0xFD9A0C54
  1096. #define Z3D_2D_STPPAT_6 0xFD9A0C58
  1097. #define Z3D_2D_STPPAT_7 0xFD9A0C5C
  1098. #define Z3D_2D_STPPAT_8 0xFD9A0C60
  1099. #define Z3D_2D_STPPAT_9 0xFD9A0C64
  1100. #define Z3D_2D_STPPAT_10 0xFD9A0C68
  1101. #define Z3D_2D_STPPAT_11 0xFD9A0C6C
  1102. #define Z3D_2D_STPPAT_12 0xFD9A0C70
  1103. #define Z3D_2D_STPPAT_13 0xFD9A0C74
  1104. #define Z3D_2D_STPPAT_14 0xFD9A0C78
  1105. #define Z3D_2D_STPPAT_15 0xFD9A0C7C
  1106. #define Z3D_2D_STPPAT_16 0xFD9A0C80
  1107. #define Z3D_2D_STPPAT_17 0xFD9A0C84
  1108. #define Z3D_2D_STPPAT_18 0xFD9A0C88
  1109. #define Z3D_2D_STPPAT_19 0xFD9A0C8C
  1110. #define Z3D_2D_STPPAT_20 0xFD9A0C90
  1111. #define Z3D_2D_STPPAT_21 0xFD9A0C94
  1112. #define Z3D_2D_STPPAT_22 0xFD9A0C98
  1113. #define Z3D_2D_STPPAT_23 0xFD9A0C9C
  1114. #define Z3D_2D_STPPAT_24 0xFD9A0CA0
  1115. #define Z3D_2D_STPPAT_25 0xFD9A0CA4
  1116. #define Z3D_2D_STPPAT_26 0xFD9A0CA8
  1117. #define Z3D_2D_STPPAT_27 0xFD9A0CAC
  1118. #define Z3D_2D_STPPAT_28 0xFD9A0CB0
  1119. #define Z3D_2D_STPPAT_29 0xFD9A0CB4
  1120. #define Z3D_2D_STPPAT_30 0xFD9A0CB8
  1121. #define Z3D_2D_STPPAT_31 0xFD9A0CBC
  1122. #define Z3D_WR_CTRL 0xFD9A1000
  1123. #define Z3D_WR_P0 0xFD9A1004
  1124. #define Z3D_WR_P1 0xFD9A1008
  1125. #define Z3D_WR_P2 0xFD9A100C
  1126. #define Z3D_WR_FGC 0xFD9A1010
  1127. #define Z3D_WR_BGC 0xFD9A1014
  1128. #define Z3D_WR_SZ 0xFD9A1018
  1129. #define Z3D_WR_PATPARAM 0xFD9A101C
  1130. #define Z3D_WR_PAT 0xFD9A1020
  1131. #define Z3D_SYS_STATUS 0xFD9A1400
  1132. #define Z3D_SYS_RESET 0xFD9A1404
  1133. #define Z3D_SYS_CLK 0xFD9A1408
  1134. #define Z3D_SYS_CONF 0xFD9A140C
  1135. #define Z3D_SYS_VERSION 0xFD9A1410
  1136. #define Z3D_SYS_DBINV 0xFD9A1418
  1137. #define Z3D_SYS_I2F_FMT 0xFD9A1420
  1138. #define Z3D_SYS_I2F_SRC 0xFD9A1424
  1139. #define Z3D_SYS_I2F_DST 0xFD9A1428
  1140. #define Z3D_SYS_GBCNT 0xFD9A1430
  1141. #define Z3D_SYS_BSYCNT 0xFD9A1434
  1142. #define Z3D_SYS_INT_STATUS 0xFD9A1450
  1143. #define Z3D_SYS_INT_MASK 0xFD9A1454
  1144. #define Z3D_SYS_INT_CLEAR 0xFD9A1458
  1145. #define TCD0 0xFD9C0000
  1146. #define TCD1 0xFD9C0400
  1147. #define TCD2 0xFD9C0800
  1148. #define TCD3 0xFD9C0C00
  1149. #define TCT0 0xFD9C1000
  1150. #define TCT1 0xFD9C1400
  1151. #define TCT2 0xFD9C1800
  1152. #define TCT3 0xFD9C1C00
  1153. /* PFC */
  1154. #define PACR 0xA4050100
  1155. #define PBCR 0xA4050102
  1156. #define PCCR 0xA4050104
  1157. #define PDCR 0xA4050106
  1158. #define PECR 0xA4050108
  1159. #define PFCR 0xA405010A
  1160. #define PGCR 0xA405010C
  1161. #define PHCR 0xA405010E
  1162. #define PJCR 0xA4050110
  1163. #define PKCR 0xA4050112
  1164. #define PLCR 0xA4050114
  1165. #define PMCR 0xA4050116
  1166. #define PNCR 0xA4050118
  1167. #define PQCR 0xA405011A
  1168. #define PRCR 0xA405011C
  1169. #define PSCR 0xA405011E
  1170. #define PTCR 0xA4050140
  1171. #define PUCR 0xA4050142
  1172. #define PVCR 0xA4050144
  1173. #define PWCR 0xA4050146
  1174. #define PXCR 0xA4050148
  1175. #define PYCR 0xA405014A
  1176. #define PZCR 0xA405014C
  1177. #define PSELA 0xA405014E
  1178. #define PSELB 0xA4050150
  1179. #define PSELC 0xA4050152
  1180. #define PSELD 0xA4050154
  1181. #define PSELE 0xA4050156
  1182. #define HIZCRA 0xA4050158
  1183. #define HIZCRB 0xA405015A
  1184. #define HIZCRC 0xA405015C
  1185. #define HIZCRC 0xA405015C
  1186. #define MSELCRA 0xA4050180
  1187. #define MSELCRB 0xA4050182
  1188. #define PULCR 0xA4050184
  1189. #define SBSCR 0xA4050186
  1190. #define DRVCR 0xA405018A
  1191. /* I/O Port */
  1192. #define PADR 0xA4050120
  1193. #define PBDR 0xA4050122
  1194. #define PCDR 0xA4050124
  1195. #define PDDR 0xA4050126
  1196. #define PEDR 0xA4050128
  1197. #define PFDR 0xA405012A
  1198. #define PGDR 0xA405012C
  1199. #define PHDR 0xA405012E
  1200. #define PJDR 0xA4050130
  1201. #define PKDR 0xA4050132
  1202. #define PLDR 0xA4050134
  1203. #define PMDR 0xA4050136
  1204. #define PNDR 0xA4050138
  1205. #define PQDR 0xA405013A
  1206. #define PRDR 0xA405013C
  1207. #define PSDR 0xA405013E
  1208. #define PTDR 0xA4050160
  1209. #define PUDR 0xA4050162
  1210. #define PVDR 0xA4050164
  1211. #define PWDR 0xA4050166
  1212. #define PXDR 0xA4050168
  1213. #define PYDR 0xA405016A
  1214. #define PZDR 0xA405016C
  1215. /* UBC */
  1216. #define CBR0 0xFF200000
  1217. #define CRR0 0xFF200004
  1218. #define CAR0 0xFF200008
  1219. #define CAMR0 0xFF20000C
  1220. #define CBR1 0xFF200020
  1221. #define CRR1 0xFF200024
  1222. #define CAR1 0xFF200028
  1223. #define CAMR1 0xFF20002C
  1224. #define CDR1 0xFF200030
  1225. #define CDMR1 0xFF200034
  1226. #define CETR1 0xFF200038
  1227. #define CCMFR 0xFF200600
  1228. #define CBCR 0xFF200620
  1229. /* H-UDI */
  1230. #define SDIR 0xFC110000
  1231. #define SDDRH 0xFC110008
  1232. #define SDDRL 0xFC11000A
  1233. #define SDINT 0xFC110018
  1234. #endif /* _ASM_CPU_SH7722_H_ */