ibm403.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. /*
  2. * Authors: Armin Kuster <akuster@mvista.com> and Tom Rini <trini@mvista.com>
  3. *
  4. * 2001 (c) MontaVista, Software, Inc. This file is licensed under
  5. * the terms of the GNU General Public License version 2. This program
  6. * is licensed "as is" without any warranty of any kind, whether express
  7. * or implied.
  8. */
  9. #ifdef __KERNEL__
  10. #ifndef __ASM_IBM403_H__
  11. #define __ASM_IBM403_H__
  12. #include <linux/config.h>
  13. #if defined(CONFIG_403GCX)
  14. #define DCRN_BE_BASE 0x090
  15. #define DCRN_DMA0_BASE 0x0C0
  16. #define DCRN_DMA1_BASE 0x0C8
  17. #define DCRN_DMA2_BASE 0x0D0
  18. #define DCRN_DMA3_BASE 0x0D8
  19. #define DCRNCAP_DMA_CC 1 /* have DMA chained count capability */
  20. #define DCRN_DMASR_BASE 0x0E0
  21. #define DCRN_EXIER_BASE 0x042
  22. #define DCRN_EXISR_BASE 0x040
  23. #define DCRN_IOCR_BASE 0x0A0
  24. /* ------------------------------------------------------------------------- */
  25. #endif
  26. #ifdef DCRN_BE_BASE
  27. #define DCRN_BEAR (DCRN_BE_BASE + 0x0) /* Bus Error Address Register */
  28. #define DCRN_BESR (DCRN_BE_BASE + 0x1) /* Bus Error Syndrome Register*/
  29. #endif
  30. /* DCRN_BESR */
  31. #define BESR_DSES 0x80000000 /* Data-Side Error Status */
  32. #define BESR_DMES 0x40000000 /* DMA Error Status */
  33. #define BESR_RWS 0x20000000 /* Read/Write Status */
  34. #define BESR_ETMASK 0x1C000000 /* Error Type */
  35. #define ET_PROT 0
  36. #define ET_PARITY 1
  37. #define ET_NCFG 2
  38. #define ET_BUSERR 4
  39. #define ET_BUSTO 6
  40. #ifdef DCRN_CHCR_BASE
  41. #define DCRN_CHCR0 (DCRN_CHCR_BASE + 0x0) /* Chip Control Register 1 */
  42. #define DCRN_CHCR1 (DCRN_CHCR_BASE + 0x1) /* Chip Control Register 2 */
  43. #endif
  44. #define CHR1_CETE 0x00800000 /* CPU external timer enable */
  45. #define CHR1_PCIPW 0x00008000 /* PCI Int enable/Peripheral Write enable */
  46. #ifdef DCRN_CHPSR_BASE
  47. #define DCRN_CHPSR (DCRN_CHPSR_BASE + 0x0) /* Chip Pin Strapping */
  48. #endif
  49. #ifdef DCRN_CIC_BASE
  50. #define DCRN_CICCR (DCRN_CIC_BASE + 0x0) /* CIC Control Register */
  51. #define DCRN_DMAS1 (DCRN_CIC_BASE + 0x1) /* DMA Select1 Register */
  52. #define DCRN_DMAS2 (DCRN_CIC_BASE + 0x2) /* DMA Select2 Register */
  53. #define DCRN_CICVCR (DCRN_CIC_BASE + 0x3) /* CIC Video COntro Register */
  54. #define DCRN_CICSEL3 (DCRN_CIC_BASE + 0x5) /* CIC Select 3 Register */
  55. #define DCRN_SGPO (DCRN_CIC_BASE + 0x6) /* CIC GPIO Output Register */
  56. #define DCRN_SGPOD (DCRN_CIC_BASE + 0x7) /* CIC GPIO OD Register */
  57. #define DCRN_SGPTC (DCRN_CIC_BASE + 0x8) /* CIC GPIO Tristate Ctrl Reg */
  58. #define DCRN_SGPI (DCRN_CIC_BASE + 0x9) /* CIC GPIO Input Reg */
  59. #endif
  60. #ifdef DCRN_CPMFR_BASE
  61. #define DCRN_CPMFR (DCRN_CPMFR_BASE + 0x0) /* CPM Force */
  62. #endif
  63. #ifndef CPM_AUD
  64. #define CPM_AUD 0x00000000
  65. #endif
  66. #ifndef CPM_BRG
  67. #define CPM_BRG 0x00000000
  68. #endif
  69. #ifndef CPM_CBS
  70. #define CPM_CBS 0x00000000
  71. #endif
  72. #ifndef CPM_CPU
  73. #define CPM_CPU 0x00000000
  74. #endif
  75. #ifndef CPM_DCP
  76. #define CPM_DCP 0x00000000
  77. #endif
  78. #ifndef CPM_DCRX
  79. #define CPM_DCRX 0x00000000
  80. #endif
  81. #ifndef CPM_DENC
  82. #define CPM_DENC 0x00000000
  83. #endif
  84. #ifndef CPM_DMA
  85. #define CPM_DMA 0x00000000
  86. #endif
  87. #ifndef CPM_DSCR
  88. #define CPM_DSCR 0x00000000
  89. #endif
  90. #ifndef CPM_EBC
  91. #define CPM_EBC 0x00000000
  92. #endif
  93. #ifndef CPM_EBIU
  94. #define CPM_EBIU 0x00000000
  95. #endif
  96. #ifndef CPM_EMAC_MM
  97. #define CPM_EMAC_MM 0x00000000
  98. #endif
  99. #ifndef CPM_EMAC_RM
  100. #define CPM_EMAC_RM 0x00000000
  101. #endif
  102. #ifndef CPM_EMAC_TM
  103. #define CPM_EMAC_TM 0x00000000
  104. #endif
  105. #ifndef CPM_GPIO0
  106. #define CPM_GPIO0 0x00000000
  107. #endif
  108. #ifndef CPM_GPT
  109. #define CPM_GPT 0x00000000
  110. #endif
  111. #ifndef CPM_I1284
  112. #define CPM_I1284 0x00000000
  113. #endif
  114. #ifndef CPM_IIC0
  115. #define CPM_IIC0 0x00000000
  116. #endif
  117. #ifndef CPM_IIC1
  118. #define CPM_IIC1 0x00000000
  119. #endif
  120. #ifndef CPM_MSI
  121. #define CPM_MSI 0x00000000
  122. #endif
  123. #ifndef CPM_PCI
  124. #define CPM_PCI 0x00000000
  125. #endif
  126. #ifndef CPM_PLB
  127. #define CPM_PLB 0x00000000
  128. #endif
  129. #ifndef CPM_SC0
  130. #define CPM_SC0 0x00000000
  131. #endif
  132. #ifndef CPM_SC1
  133. #define CPM_SC1 0x00000000
  134. #endif
  135. #ifndef CPM_SDRAM0
  136. #define CPM_SDRAM0 0x00000000
  137. #endif
  138. #ifndef CPM_SDRAM1
  139. #define CPM_SDRAM1 0x00000000
  140. #endif
  141. #ifndef CPM_TMRCLK
  142. #define CPM_TMRCLK 0x00000000
  143. #endif
  144. #ifndef CPM_UART0
  145. #define CPM_UART0 0x00000000
  146. #endif
  147. #ifndef CPM_UART1
  148. #define CPM_UART1 0x00000000
  149. #endif
  150. #ifndef CPM_UART2
  151. #define CPM_UART2 0x00000000
  152. #endif
  153. #ifndef CPM_UIC
  154. #define CPM_UIC 0x00000000
  155. #endif
  156. #ifndef CPM_VID2
  157. #define CPM_VID2 0x00000000
  158. #endif
  159. #ifndef CPM_XPT27
  160. #define CPM_XPT27 0x00000000
  161. #endif
  162. #ifndef CPM_XPT54
  163. #define CPM_XPT54 0x00000000
  164. #endif
  165. #ifdef DCRN_CPMSR_BASE
  166. #define DCRN_CPMSR (DCRN_CPMSR_BASE + 0x0) /* CPM Status */
  167. #define DCRN_CPMER (DCRN_CPMSR_BASE + 0x1) /* CPM Enable */
  168. #endif
  169. #ifdef DCRN_DCP0_BASE
  170. #define DCRN_DCP0_CFGADDR (DCRN_DCP0_BASE + 0x0) /* Decompression Controller Address */
  171. #define DCRN_DCP0_CFGDATA (DCRN_DCP0_BASE + 0x1) /* Decompression Controller Data */
  172. #endif
  173. #ifdef DCRN_DCRX_BASE
  174. #define DCRN_DCRXICR (DCRN_DCRX_BASE + 0x0) /* Internal Control Register */
  175. #define DCRN_DCRXISR (DCRN_DCRX_BASE + 0x1) /* Internal Status Register */
  176. #define DCRN_DCRXECR (DCRN_DCRX_BASE + 0x2) /* External Control Register */
  177. #define DCRN_DCRXESR (DCRN_DCRX_BASE + 0x3) /* External Status Register */
  178. #define DCRN_DCRXTAR (DCRN_DCRX_BASE + 0x4) /* Target Address Register */
  179. #define DCRN_DCRXTDR (DCRN_DCRX_BASE + 0x5) /* Target Data Register */
  180. #define DCRN_DCRXIGR (DCRN_DCRX_BASE + 0x6) /* Interrupt Generation Register */
  181. #define DCRN_DCRXBCR (DCRN_DCRX_BASE + 0x7) /* Line Buffer Control Register */
  182. #endif
  183. #ifdef DCRN_DMA0_BASE
  184. #define DCRN_DMACR0 (DCRN_DMA0_BASE + 0x0) /* DMA Channel Control Register 0 */
  185. #define DCRN_DMACT0 (DCRN_DMA0_BASE + 0x1) /* DMA Count Register 0 */
  186. #define DCRN_DMADA0 (DCRN_DMA0_BASE + 0x2) /* DMA Destination Address Register 0 */
  187. #define DCRN_DMASA0 (DCRN_DMA0_BASE + 0x3) /* DMA Source Address Register 0 */
  188. #ifdef DCRNCAP_DMA_CC
  189. #define DCRN_DMACC0 (DCRN_DMA0_BASE + 0x4) /* DMA Chained Count Register 0 */
  190. #endif
  191. #ifdef DCRNCAP_DMA_SG
  192. #define DCRN_ASG0 (DCRN_DMA0_BASE + 0x4) /* DMA Scatter/Gather Descriptor Addr 0 */
  193. #endif
  194. #endif
  195. #ifdef DCRN_DMA1_BASE
  196. #define DCRN_DMACR1 (DCRN_DMA1_BASE + 0x0) /* DMA Channel Control Register 1 */
  197. #define DCRN_DMACT1 (DCRN_DMA1_BASE + 0x1) /* DMA Count Register 1 */
  198. #define DCRN_DMADA1 (DCRN_DMA1_BASE + 0x2) /* DMA Destination Address Register 1 */
  199. #define DCRN_DMASA1 (DCRN_DMA1_BASE + 0x3) /* DMA Source Address Register 1 */
  200. #ifdef DCRNCAP_DMA_CC
  201. #define DCRN_DMACC1 (DCRN_DMA1_BASE + 0x4) /* DMA Chained Count Register 1 */
  202. #endif
  203. #ifdef DCRNCAP_DMA_SG
  204. #define DCRN_ASG1 (DCRN_DMA1_BASE + 0x4) /* DMA Scatter/Gather Descriptor Addr 1 */
  205. #endif
  206. #endif
  207. #ifdef DCRN_DMA2_BASE
  208. #define DCRN_DMACR2 (DCRN_DMA2_BASE + 0x0) /* DMA Channel Control Register 2 */
  209. #define DCRN_DMACT2 (DCRN_DMA2_BASE + 0x1) /* DMA Count Register 2 */
  210. #define DCRN_DMADA2 (DCRN_DMA2_BASE + 0x2) /* DMA Destination Address Register 2 */
  211. #define DCRN_DMASA2 (DCRN_DMA2_BASE + 0x3) /* DMA Source Address Register 2 */
  212. #ifdef DCRNCAP_DMA_CC
  213. #define DCRN_DMACC2 (DCRN_DMA2_BASE + 0x4) /* DMA Chained Count Register 2 */
  214. #endif
  215. #ifdef DCRNCAP_DMA_SG
  216. #define DCRN_ASG2 (DCRN_DMA2_BASE + 0x4) /* DMA Scatter/Gather Descriptor Addr 2 */
  217. #endif
  218. #endif
  219. #ifdef DCRN_DMA3_BASE
  220. #define DCRN_DMACR3 (DCRN_DMA3_BASE + 0x0) /* DMA Channel Control Register 3 */
  221. #define DCRN_DMACT3 (DCRN_DMA3_BASE + 0x1) /* DMA Count Register 3 */
  222. #define DCRN_DMADA3 (DCRN_DMA3_BASE + 0x2) /* DMA Destination Address Register 3 */
  223. #define DCRN_DMASA3 (DCRN_DMA3_BASE + 0x3) /* DMA Source Address Register 3 */
  224. #ifdef DCRNCAP_DMA_CC
  225. #define DCRN_DMACC3 (DCRN_DMA3_BASE + 0x4) /* DMA Chained Count Register 3 */
  226. #endif
  227. #ifdef DCRNCAP_DMA_SG
  228. #define DCRN_ASG3 (DCRN_DMA3_BASE + 0x4) /* DMA Scatter/Gather Descriptor Addr 3 */
  229. #endif
  230. #endif
  231. #ifdef DCRN_DMASR_BASE
  232. #define DCRN_DMASR (DCRN_DMASR_BASE + 0x0) /* DMA Status Register */
  233. #ifdef DCRNCAP_DMA_SG
  234. #define DCRN_ASGC (DCRN_DMASR_BASE + 0x3) /* DMA Scatter/Gather Command */
  235. /* don't know if these two registers always exist if scatter/gather exists */
  236. #define DCRN_POL (DCRN_DMASR_BASE + 0x6) /* DMA Polarity Register */
  237. #define DCRN_SLP (DCRN_DMASR_BASE + 0x5) /* DMA Sleep Register */
  238. #endif
  239. #endif
  240. #ifdef DCRN_EBC_BASE
  241. #define DCRN_EBCCFGADR (DCRN_EBC_BASE + 0x0) /* Peripheral Controller Address */
  242. #define DCRN_EBCCFGDATA (DCRN_EBC_BASE + 0x1) /* Peripheral Controller Data */
  243. #endif
  244. #ifdef DCRN_EXIER_BASE
  245. #define DCRN_EXIER (DCRN_EXIER_BASE + 0x0) /* External Interrupt Enable Register */
  246. #endif
  247. #ifdef DCRN_EBIMC_BASE
  248. #define DCRN_BRCRH0 (DCRN_EBIMC_BASE + 0x0) /* Bus Region Config High 0 */
  249. #define DCRN_BRCRH1 (DCRN_EBIMC_BASE + 0x1) /* Bus Region Config High 1 */
  250. #define DCRN_BRCRH2 (DCRN_EBIMC_BASE + 0x2) /* Bus Region Config High 2 */
  251. #define DCRN_BRCRH3 (DCRN_EBIMC_BASE + 0x3) /* Bus Region Config High 3 */
  252. #define DCRN_BRCRH4 (DCRN_EBIMC_BASE + 0x4) /* Bus Region Config High 4 */
  253. #define DCRN_BRCRH5 (DCRN_EBIMC_BASE + 0x5) /* Bus Region Config High 5 */
  254. #define DCRN_BRCRH6 (DCRN_EBIMC_BASE + 0x6) /* Bus Region Config High 6 */
  255. #define DCRN_BRCRH7 (DCRN_EBIMC_BASE + 0x7) /* Bus Region Config High 7 */
  256. #define DCRN_BRCR0 (DCRN_EBIMC_BASE + 0x10)/* BRC 0 */
  257. #define DCRN_BRCR1 (DCRN_EBIMC_BASE + 0x11)/* BRC 1 */
  258. #define DCRN_BRCR2 (DCRN_EBIMC_BASE + 0x12)/* BRC 2 */
  259. #define DCRN_BRCR3 (DCRN_EBIMC_BASE + 0x13)/* BRC 3 */
  260. #define DCRN_BRCR4 (DCRN_EBIMC_BASE + 0x14)/* BRC 4 */
  261. #define DCRN_BRCR5 (DCRN_EBIMC_BASE + 0x15)/* BRC 5 */
  262. #define DCRN_BRCR6 (DCRN_EBIMC_BASE + 0x16)/* BRC 6 */
  263. #define DCRN_BRCR7 (DCRN_EBIMC_BASE + 0x17)/* BRC 7 */
  264. #define DCRN_BEAR0 (DCRN_EBIMC_BASE + 0x20)/* Bus Error Address Register */
  265. #define DCRN_BESR0 (DCRN_EBIMC_BASE + 0x21)/* Bus Error Status Register */
  266. #define DCRN_BIUCR (DCRN_EBIMC_BASE + 0x2A)/* Bus Interfac Unit Ctrl Reg */
  267. #endif
  268. #ifdef DCRN_EXISR_BASE
  269. #define DCRN_EXISR (DCRN_EXISR_BASE + 0x0) /* External Interrupt Status Register */
  270. #endif
  271. #define EXIER_CIE 0x80000000 /* Critical Interrupt Enable */
  272. #define EXIER_SRIE 0x08000000 /* Serial Port Rx Int. Enable */
  273. #define EXIER_STIE 0x04000000 /* Serial Port Tx Int. Enable */
  274. #define EXIER_JRIE 0x02000000 /* JTAG Serial Port Rx Int. Enable */
  275. #define EXIER_JTIE 0x01000000 /* JTAG Serial Port Tx Int. Enable */
  276. #define EXIER_D0IE 0x00800000 /* DMA Channel 0 Interrupt Enable */
  277. #define EXIER_D1IE 0x00400000 /* DMA Channel 1 Interrupt Enable */
  278. #define EXIER_D2IE 0x00200000 /* DMA Channel 2 Interrupt Enable */
  279. #define EXIER_D3IE 0x00100000 /* DMA Channel 3 Interrupt Enable */
  280. #define EXIER_E0IE 0x00000010 /* External Interrupt 0 Enable */
  281. #define EXIER_E1IE 0x00000008 /* External Interrupt 1 Enable */
  282. #define EXIER_E2IE 0x00000004 /* External Interrupt 2 Enable */
  283. #define EXIER_E3IE 0x00000002 /* External Interrupt 3 Enable */
  284. #define EXIER_E4IE 0x00000001 /* External Interrupt 4 Enable */
  285. #ifdef DCRN_IOCR_BASE
  286. #define DCRN_IOCR (DCRN_IOCR_BASE + 0x0) /* Input/Output Configuration Register */
  287. #endif
  288. #define IOCR_E0TE 0x80000000
  289. #define IOCR_E0LP 0x40000000
  290. #define IOCR_E1TE 0x20000000
  291. #define IOCR_E1LP 0x10000000
  292. #define IOCR_E2TE 0x08000000
  293. #define IOCR_E2LP 0x04000000
  294. #define IOCR_E3TE 0x02000000
  295. #define IOCR_E3LP 0x01000000
  296. #define IOCR_E4TE 0x00800000
  297. #define IOCR_E4LP 0x00400000
  298. #define IOCR_EDT 0x00080000
  299. #define IOCR_SOR 0x00040000
  300. #define IOCR_EDO 0x00008000
  301. #define IOCR_2XC 0x00004000
  302. #define IOCR_ATC 0x00002000
  303. #define IOCR_SPD 0x00001000
  304. #define IOCR_BEM 0x00000800
  305. #define IOCR_PTD 0x00000400
  306. #define IOCR_ARE 0x00000080
  307. #define IOCR_DRC 0x00000020
  308. #define IOCR_RDM(x) (((x) & 0x3) << 3)
  309. #define IOCR_TCS 0x00000004
  310. #define IOCR_SCS 0x00000002
  311. #define IOCR_SPC 0x00000001
  312. #ifdef DCRN_MAL_BASE
  313. #define DCRN_MALCR (DCRN_MAL_BASE + 0x0) /* MAL Configuration */
  314. #define DCRN_MALDBR (DCRN_MAL_BASE + 0x3) /* Debug Register */
  315. #define DCRN_MALESR (DCRN_MAL_BASE + 0x1) /* Error Status */
  316. #define DCRN_MALIER (DCRN_MAL_BASE + 0x2) /* Interrupt Enable */
  317. #define DCRN_MALTXCARR (DCRN_MAL_BASE + 0x5) /* TX Channed Active Reset Register */
  318. #define DCRN_MALTXCASR (DCRN_MAL_BASE + 0x4) /* TX Channel Active Set Register */
  319. #define DCRN_MALTXDEIR (DCRN_MAL_BASE + 0x7) /* Tx Descriptor Error Interrupt */
  320. #define DCRN_MALTXEOBISR (DCRN_MAL_BASE + 0x6) /* Tx End of Buffer Interrupt Status */
  321. #define DCRN_MALRXCARR (DCRN_MAL_BASE + 0x11) /* RX Channed Active Reset Register */
  322. #define DCRN_MALRXCASR (DCRN_MAL_BASE + 0x10) /* RX Channel Active Set Register */
  323. #define DCRN_MALRXDEIR (DCRN_MAL_BASE + 0x13) /* Rx Descriptor Error Interrupt */
  324. #define DCRN_MALRXEOBISR (DCRN_MAL_BASE + 0x12) /* Rx End of Buffer Interrupt Status */
  325. #define DCRN_MALRXCTP0R (DCRN_MAL_BASE + 0x40) /* Channel Rx 0 Channel Table Pointer */
  326. #define DCRN_MALTXCTP0R (DCRN_MAL_BASE + 0x20) /* Channel Tx 0 Channel Table Pointer */
  327. #define DCRN_MALTXCTP1R (DCRN_MAL_BASE + 0x21) /* Channel Tx 1 Channel Table Pointer */
  328. #define DCRN_MALRCBS0 (DCRN_MAL_BASE + 0x60) /* Channel Rx 0 Channel Buffer Size */
  329. #endif
  330. /* DCRN_MALCR */
  331. #define MALCR_MMSR 0x80000000/* MAL Software reset */
  332. #define MALCR_PLBP_1 0x00400000 /* MAL reqest priority: */
  333. #define MALCR_PLBP_2 0x00800000 /* lowsest is 00 */
  334. #define MALCR_PLBP_3 0x00C00000 /* highest */
  335. #define MALCR_GA 0x00200000 /* Guarded Active Bit */
  336. #define MALCR_OA 0x00100000 /* Ordered Active Bit */
  337. #define MALCR_PLBLE 0x00080000 /* PLB Lock Error Bit */
  338. #define MALCR_PLBLT_1 0x00040000 /* PLB Latency Timer */
  339. #define MALCR_PLBLT_2 0x00020000
  340. #define MALCR_PLBLT_3 0x00010000
  341. #define MALCR_PLBLT_4 0x00008000
  342. #define MALCR_PLBLT_DEFAULT 0x00078000 /* JSP: Is this a valid default?? */
  343. #define MALCR_PLBB 0x00004000 /* PLB Burst Deactivation Bit */
  344. #define MALCR_OPBBL 0x00000080 /* OPB Lock Bit */
  345. #define MALCR_EOPIE 0x00000004 /* End Of Packet Interrupt Enable */
  346. #define MALCR_LEA 0x00000002 /* Locked Error Active */
  347. #define MALCR_MSD 0x00000001 /* MAL Scroll Descriptor Bit */
  348. /* DCRN_MALESR */
  349. #define MALESR_EVB 0x80000000 /* Error Valid Bit */
  350. #define MALESR_CIDRX 0x40000000 /* Channel ID Receive */
  351. #define MALESR_DE 0x00100000 /* Descriptor Error */
  352. #define MALESR_OEN 0x00080000 /* OPB Non-Fullword Error */
  353. #define MALESR_OTE 0x00040000 /* OPB Timeout Error */
  354. #define MALESR_OSE 0x00020000 /* OPB Slave Error */
  355. #define MALESR_PEIN 0x00010000 /* PLB Bus Error Indication */
  356. #define MALESR_DEI 0x00000010 /* Descriptor Error Interrupt */
  357. #define MALESR_ONEI 0x00000008 /* OPB Non-Fullword Error Interrupt */
  358. #define MALESR_OTEI 0x00000004 /* OPB Timeout Error Interrupt */
  359. #define MALESR_OSEI 0x00000002 /* OPB Slace Error Interrupt */
  360. #define MALESR_PBEI 0x00000001 /* PLB Bus Error Interrupt */
  361. /* DCRN_MALIER */
  362. #define MALIER_DE 0x00000010 /* Descriptor Error Interrupt Enable */
  363. #define MALIER_NE 0x00000008 /* OPB Non-word Transfer Int Enable */
  364. #define MALIER_TE 0x00000004 /* OPB Time Out Error Interrupt Enable */
  365. #define MALIER_OPBE 0x00000002 /* OPB Slave Error Interrupt Enable */
  366. #define MALIER_PLBE 0x00000001 /* PLB Error Interrupt Enable */
  367. /* DCRN_MALTXEOBISR */
  368. #define MALOBISR_CH0 0x80000000 /* EOB channel 1 bit */
  369. #define MALOBISR_CH2 0x40000000 /* EOB channel 2 bit */
  370. #ifdef DCRN_OCM0_BASE
  371. #define DCRN_OCMISARC (DCRN_OCM0_BASE + 0x0) /* OCM Instr Side Addr Range Compare */
  372. #define DCRN_OCMISCR (DCRN_OCM0_BASE + 0x1) /* OCM Instr Side Control */
  373. #define DCRN_OCMDSARC (DCRN_OCM0_BASE + 0x2) /* OCM Data Side Addr Range Compare */
  374. #define DCRN_OCMDSCR (DCRN_OCM0_BASE + 0x3) /* OCM Data Side Control */
  375. #endif
  376. #ifdef DCRN_PLB0_BASE
  377. #define DCRN_PLB0_BESR (DCRN_PLB0_BASE + 0x0)
  378. #define DCRN_PLB0_BEAR (DCRN_PLB0_BASE + 0x2)
  379. /* doesn't exist on stb03xxx? */
  380. #define DCRN_PLB0_ACR (DCRN_PLB0_BASE + 0x3)
  381. #endif
  382. #ifdef DCRN_PLB1_BASE
  383. #define DCRN_PLB1_BESR (DCRN_PLB1_BASE + 0x0)
  384. #define DCRN_PLB1_BEAR (DCRN_PLB1_BASE + 0x1)
  385. /* doesn't exist on stb03xxx? */
  386. #define DCRN_PLB1_ACR (DCRN_PLB1_BASE + 0x2)
  387. #endif
  388. #ifdef DCRN_PLLMR_BASE
  389. #define DCRN_PLLMR (DCRN_PLLMR_BASE + 0x0) /* PL1 Mode */
  390. #endif
  391. #ifdef DCRN_POB0_BASE
  392. #define DCRN_POB0_BESR0 (DCRN_POB0_BASE + 0x0)
  393. #define DCRN_POB0_BEAR (DCRN_POB0_BASE + 0x2)
  394. #define DCRN_POB0_BESR1 (DCRN_POB0_BASE + 0x4)
  395. #endif
  396. #ifdef DCRN_SCCR_BASE
  397. #define DCRN_SCCR (DCRN_SCCR_BASE + 0x0)
  398. #endif
  399. #ifdef DCRN_SDRAM0_BASE
  400. #define DCRN_SDRAM0_CFGADDR (DCRN_SDRAM0_BASE + 0x0) /* Mem Ctrlr Address */
  401. #define DCRN_SDRAM0_CFGDATA (DCRN_SDRAM0_BASE + 0x1) /* Mem Ctrlr Data */
  402. #endif
  403. #ifdef DCRN_UIC0_BASE
  404. #define DCRN_UIC0_SR (DCRN_UIC0_BASE + 0x0)
  405. #define DCRN_UIC0_ER (DCRN_UIC0_BASE + 0x2)
  406. #define DCRN_UIC0_CR (DCRN_UIC0_BASE + 0x3)
  407. #define DCRN_UIC0_PR (DCRN_UIC0_BASE + 0x4)
  408. #define DCRN_UIC0_TR (DCRN_UIC0_BASE + 0x5)
  409. #define DCRN_UIC0_MSR (DCRN_UIC0_BASE + 0x6)
  410. #define DCRN_UIC0_VR (DCRN_UIC0_BASE + 0x7)
  411. #define DCRN_UIC0_VCR (DCRN_UIC0_BASE + 0x8)
  412. #endif
  413. #ifdef DCRN_UIC1_BASE
  414. #define DCRN_UIC1_SR (DCRN_UIC1_BASE + 0x0)
  415. #define DCRN_UIC1_SRS (DCRN_UIC1_BASE + 0x1)
  416. #define DCRN_UIC1_ER (DCRN_UIC1_BASE + 0x2)
  417. #define DCRN_UIC1_CR (DCRN_UIC1_BASE + 0x3)
  418. #define DCRN_UIC1_PR (DCRN_UIC1_BASE + 0x4)
  419. #define DCRN_UIC1_TR (DCRN_UIC1_BASE + 0x5)
  420. #define DCRN_UIC1_MSR (DCRN_UIC1_BASE + 0x6)
  421. #define DCRN_UIC1_VR (DCRN_UIC1_BASE + 0x7)
  422. #define DCRN_UIC1_VCR (DCRN_UIC1_BASE + 0x8)
  423. #endif
  424. #ifdef DCRN_SDRAM0_BASE
  425. #define DCRN_SDRAM0_CFGADDR (DCRN_SDRAM0_BASE + 0x0) /* Memory Controller Address */
  426. #define DCRN_SDRAM0_CFGDATA (DCRN_SDRAM0_BASE + 0x1) /* Memory Controller Data */
  427. #endif
  428. #ifdef DCRN_OCM0_BASE
  429. #define DCRN_OCMISARC (DCRN_OCM0_BASE + 0x0) /* OCM Instr Side Addr Range Compare */
  430. #define DCRN_OCMISCR (DCRN_OCM0_BASE + 0x1) /* OCM Instr Side Control */
  431. #define DCRN_OCMDSARC (DCRN_OCM0_BASE + 0x2) /* OCM Data Side Addr Range Compare */
  432. #define DCRN_OCMDSCR (DCRN_OCM0_BASE + 0x3) /* OCM Data Side Control */
  433. #endif
  434. #endif /* __ASM_IBM403_H__ */
  435. #endif /* __KERNEL__ */