nvr4121.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:15k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* nvr4121.h - NEC NVR4121 header file */
  2. /* Copyright 1984-1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,14oct99,jmw  fix RTC reg VR4121_ECMPHREG address
  7. 01b,07oct99,jmw  add vr4102 RTC and new BCU registers
  8. 01a,23aug99,jmw  created from nvr4102.h for vr4121 bsp
  9. */
  10. /*
  11. This file contains constants for the NEC V4R4101.  Register address
  12. definitions for the various subsystems are provided, and some (but
  13. not all) register field definitions are provided.
  14. */
  15. #ifndef __INCnvr4121h
  16. #define __INCnvr4121h
  17. #include "vxWorks.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. #define VR4121_ICACHE_SIZE 16384
  22. #define VR4121_DCACHE_SIZE 8192
  23. #define VR4121_ISA_IO_BASE_ADRS PHYS_TO_K1(0x15000000)   /* vr4121 SDB    */
  24. /* interrupt bits in the status register */
  25. #define VR4121_SR_ICU_INTERVAL_TIMER  (1 << 11)
  26. #define VR4121_SR_ICU_OTHER       (1 << 10)
  27. /* VR4121 register definitions. */
  28. #define VR4121_REG_BASE   (0x0b000000 | K1BASE)
  29. #ifdef _ASMLANGUAGE
  30. #define VR4121_ADRS(reg)   (VR4121_REG_BASE + (reg))
  31. #else
  32. #define VR4121_ADRS(reg)   ((volatile UINT16 *)(VR4121_REG_BASE + (reg)))
  33. #endif /* _ASMLANGUAGE */
  34. /* BCU registers */
  35. #define VR4121_BCUCNTREG1 VR4121_ADRS(0x00)
  36. #define VR4121_BCUCNTREG2 VR4121_ADRS(0x02)
  37. #define VR4121_ROMSIZEREG VR4121_ADRS(0x04)  /* new */
  38. #define VR4121_RAMSIZEREG VR4121_ADRS(0x06)  /* new */
  39. #define VR4121_BCUSPEEDREG VR4121_ADRS(0x0a)
  40. #define VR4121_BCUERRSTREG VR4121_ADRS(0x0c)
  41. #define VR4121_BCURFCNTREG VR4121_ADRS(0x0e)
  42. #define VR4121_REVIDREG VR4121_ADRS(0x10)
  43. #define VR4121_BCURCOUNTRE VR4121_ADRS(0x12)
  44. #define VR4121_CLKSPEEDREG VR4121_ADRS(0x14)
  45. #define VR4121_BCUCNTREG3 VR4121_ADRS(0x16)  /* new */
  46. #define VR4121_SDRAMMODEREG VR4121_ADRS(0x1a)  /* new */
  47. #define VR4121_SROMMODEREG VR4121_ADRS(0x1c)  /* new */
  48. #define VR4121_SDRAMCNTREG VR4121_ADRS(0x1e)  /* new */
  49. /* BCUCNTREG1 bit definitions */
  50. #define VR4121_ROM64 (1 << 15)
  51. #define VR4121_DRAM64 (1 << 14)
  52. #define VR4121_ISAM_LCD (1 << 13) /* XXX set this? */
  53. #define VR4121_PAGE128 (1 << 12)
  54. #define VR4121_PAGEROM2 (1 << 10)
  55. #define VR4121_PAGEROM0 (1 << 8)
  56. #define VR4121_ROMWEN2 (1 << 6)
  57. #define VR4121_ROMWEN0 (1 << 4)
  58. #define VR4121_BUSHERREN (1 << 2)
  59. #define VR4121_RSTOUT (1 << 0)
  60. /* BCUCNTREG2 bit definitions */
  61. #define VR4121_GMODE (1 << 0)
  62. /* DMAAU registers */
  63. #define VR4121_AIUBALREG VR4121_ADRS(0x20)
  64. #define VR4121_AIUBAHREG VR4121_ADRS(0x22)
  65. #define VR4121_AIUALREG VR4121_ADRS(0x24)
  66. #define VR4121_AIUAHREG VR4121_ADRS(0x26)
  67. #define VR4121_AIUOBALREG VR4121_ADRS(0x28)
  68. #define VR4121_AIUOBAHREG VR4121_ADRS(0x2a)
  69. #define VR4121_AIUOALREG VR4121_ADRS(0x2c)
  70. #define VR4121_AIUOAHREG VR4121_ADRS(0x2e)
  71. #define VR4121_FIRBALREG VR4121_ADRS(0x30)
  72. #define VR4121_FIRBAHREG VR4121_ADRS(0x32)
  73. #define VR4121_FIRALREG VR4121_ADRS(0x34)
  74. #define VR4121_FIRAHREG VR4121_ADRS(0x36)
  75. /* DCU registers */
  76. #define VR4121_DMARSTREG VR4121_ADRS(0x40)
  77. #define VR4121_DMAIDLEREG VR4121_ADRS(0x42)
  78. #define VR4121_DMASENREG VR4121_ADRS(0x44)
  79. #define VR4121_DMAMSKREG VR4121_ADRS(0x46)
  80. #define VR4121_DMAREQREG VR4121_ADRS(0x48)
  81. #define VR4121_TDREG VR4121_ADRS(0x4a)
  82. /* DMA mask bit definitions */
  83. #define  VR4121_DMAMSKAIN (1 << 3)
  84. #define  VR4121_DMAMSKAOUT (1 << 2)
  85. #define  VR4121_DMAMSKFOUT (1 << 0)
  86. /* CMU register */
  87. #define VR4121_CMUCLKMSK VR4121_ADRS(0x60)
  88. #define  VR4121_MSKFFIR (1 << 10)
  89. #define  VR4121_MSKSHSP (1 << 9)
  90. #define  VR4121_MSKSSIU (1 << 8)  /* XXX set this */
  91. #define  VR4121_MSKDSIU (1 << 5)  /* XXX set this */
  92. #define  VR4121_MSKFIR (1 << 4)
  93. #define  VR4121_MSKKIU (1 << 3)
  94. #define  VR4121_MSKADU (1 << 2)
  95. #define  VR4121_MSKSIU (1 << 1)  /* XXX set this */
  96. #define  VR4121_MSKPIU (1 << 0)
  97. /* ICU system and system mask registers */
  98. #define VR4121_ICU_SYSINT1REG   VR4121_ADRS(0x80)
  99. #define VR4121_ICU_MSYSINT1REG VR4121_ADRS(0x8c)
  100. #define  VR4121_DOZEPIUINTR (1 << 13)
  101. #define  VR4121_SOFTINTR (1 << 11)
  102. #define  VR4121_WRBERRINTR (1 << 10)
  103. #define  VR4121_SIUINTR (1 << 9)
  104. #define  VR4121_GIUINTR (1 << 8)
  105. #define  VR4121_KIUINTR (1 << 7)
  106. #define  VR4121_AIUINTR (1 << 6)
  107. #define  VR4121_PIUINTR (1 << 5)
  108. #define  VR4121_ETIMERINTR (1 << 3)
  109. #define  VR4121_RTCL1INTR (1 << 2)
  110. #define  VR4121_POWERINTR (1 << 1)
  111. #define  VR4121_BATINTR (1 << 0)
  112. #define  VR4121_ZEROINTR  0
  113. #define VR4121_ICU_SYSINT2REG   VR4121_ADRS(0x200)
  114. #define VR4121_ICU_MSYSINT2REG VR4121_ADRS(0x206)
  115. #define  VR4121_DSIUINTR (1 << 5)
  116. #define  VR4121_FIRINTR (1 << 4)
  117. #define  VR4121_TCLKINTR (1 << 3)
  118. #define  VR4121_HSPINTR (1 << 2)
  119. #define  VR4121_LEDINTR (1 << 1)
  120. #define  VR4121_RTCL2INTR (1 << 0)
  121. /* ICU subsystem status and mask registers */
  122. #define VR4121_ICU_PIUINTREG VR4121_ADRS(0x82)
  123. #define VR4121_ICU_ADUINTREG VR4121_ADRS(0x84)
  124. #define VR4121_ICU_KIUINTREG VR4121_ADRS(0x86)
  125. #define VR4121_ICU_GIUINTLREG VR4121_ADRS(0x88)
  126. #define VR4121_ICU_DSIUINTREG VR4121_ADRS(0x8a)
  127. #define VR4121_ICU_MPIUINTREG VR4121_ADRS(0x8e)
  128. #define VR4121_ICU_MAIUINTREG VR4121_ADRS(0x90)
  129. #define VR4121_ICU_MKIUINTREG VR4121_ADRS(0x92)
  130. #define VR4121_ICU_MGIUINTLREG VR4121_ADRS(0x94)
  131. #define VR4121_ICU_MDSIUINTREG VR4121_ADRS(0x96)
  132. #define VR4121_ICU_NMIREG VR4121_ADRS(0x98)
  133. #define VR4121_ICU_SOFTINTREG VR4121_ADRS(0x9a)
  134. #define VR4121_ICU_GIUINTHREG   VR4121_ADRS(0x202)
  135. #define VR4121_ICU_FIRINTHREG   VR4121_ADRS(0x204)
  136. #define VR4121_ICU_MGIUINTHREG  VR4121_ADRS(0x208)
  137. #define VR4121_ICU_MFIRINTHREG  VR4121_ADRS(0x20a)
  138. /* ICU MDSIUINTREG bit definitions */
  139. #define  VR4121_ICU_DSIU_INTSR0    (1 << 9)
  140. #define  VR4121_ICU_DSIU_INTST0    (1 << 8)
  141. /* PMU registers */
  142. #define VR4121_PMUINTREG VR4121_ADRS(0xa0)  /* verify this adr XXX */
  143. #define VR4121_PMUCNTREG VR4121_ADRS(0xa2)  /* verify this adr XXX */
  144. #define VR4121_HALTIMERRST (1 << 2)
  145. /* RTC registers */
  146. #define VR4121_ETIMELREG VR4121_ADRS(0xc0)
  147. #define VR4121_ETIMEMREG VR4121_ADRS(0xc2)
  148. #define VR4121_ETIMEHREG VR4121_ADRS(0xc4)
  149. #define VR4121_ECMPLREG VR4121_ADRS(0xc8)
  150. #define VR4121_ECMPMREG VR4121_ADRS(0xca)
  151. #define VR4121_ECMPHREG VR4121_ADRS(0xcc)  /* modified XXX was 0xce */
  152. #define VR4121_RTCL1LREG VR4121_ADRS(0xd0)
  153. #define VR4121_RTCL1HREG VR4121_ADRS(0xd2)
  154. #define VR4121_RTCL1CNTLREG VR4121_ADRS(0xd4)
  155. #define VR4121_RTCL1CNTHREG VR4121_ADRS(0xd6)
  156. #define VR4121_RTCL2LREG VR4121_ADRS(0xd8)
  157. #define VR4121_RTCL2HREG VR4121_ADRS(0xda)
  158. #define VR4121_RTCL2CNTLREG VR4121_ADRS(0xdc)
  159. #define VR4121_RTCL2CNTHREG VR4121_ADRS(0xde)
  160. #define VR4121_TCLKLREG VR4121_ADRS(0x1c0)
  161. #define VR4121_TCLKHREG VR4121_ADRS(0x1c2)
  162. #define VR4121_TCLKCNTLREG VR4121_ADRS(0x1c4)
  163. #define VR4121_TCLKCNTHREG VR4121_ADRS(0x1c6)
  164. #define VR4121_RTCINTREG VR4121_ADRS(0x1de)
  165. #define  VR4121_RTC_RTCINTR0 (1 << 0)
  166. #define  VR4121_RTC_RTCINTR1 (1 << 1)
  167. #define  VR4121_RTC_RTCINTR2 (1 << 2)
  168. #define  VR4121_RTC_RTCINTR3 (1 << 3)
  169. /* define VR4102 RTC registers to use nvr4102RTCTimer.c */
  170. #define VR4102_ETIMELREG VR4121_ETIMELREG
  171. #define VR4102_ETIMEMRE VR4121_ETIMEMRE
  172. #define VR4102_ETIMEHREG VR4121_ETIMEHREG
  173. #define VR4102_ECMPLREG  VR4121_ECMPLREG
  174. #define VR4102_ECMPMREG  VR4121_ECMPMREG
  175. #define VR4102_ECMPHREG  VR4121_ECMPHREG
  176. #define VR4102_RTCL1LREG VR4121_RTCL1LREG
  177. #define VR4102_RTCL1HREG VR4121_RTCL1HREG
  178. #define VR4102_RTCL1CNTLREG VR4121_RTCL1CNTLREG
  179. #define VR4102_RTCL1CNTHREG VR4121_RTCL1CNTHREG
  180. #define VR4102_RTCL2LREG VR4121_RTCL2LREG
  181. #define VR4102_RTCL2HREG VR4121_RTCL2HREG
  182. #define VR4102_RTCL2CNTLREG VR4121_RTCL2CNTLREG
  183. #define VR4102_RTCL2CNTHREG VR4121_RTCL2CNTHREG
  184. #define VR4102_TCLKLREG VR4121_TCLKLREG
  185. #define VR4102_TCLKHREG VR4121_TCLKHREG
  186. #define VR4102_TCLKCNTLREG VR4121_TCLKCNTLREG
  187. #define VR4102_TCLKCNTHREG VR4121_TCLKCNTHREG
  188. #define VR4102_RTCINTREG   VR4121_RTCINTREG
  189. #define  VR4102_RTC_RTCINTR0 VR4121_RTC_RTCINTR0
  190. #define  VR4102_RTC_RTCINTR1 VR4121_RTC_RTCINTR1
  191. #define  VR4102_RTC_RTCINTR2 VR4121_RTC_RTCINTR2
  192. #define  VR4102_RTC_RTCINTR3 VR4121_RTC_RTCINTR3
  193. #define  VR4102_RTCL1INTR VR4121_RTCL1INTR
  194. #define  VR4102_RTCL2INTR VR4121_RTCL2INTR
  195. #define VR4102_ICU_MSYSINT1REG VR4121_ICU_MSYSINT1REG
  196. /* DSU registers */
  197. #define VR4121_DSUCNTREG VR4121_ADRS(0xe0)
  198. #define VR4121_DSUSETREG VR4121_ADRS(0xe2)
  199. #define VR4121_DSUCLRREG VR4121_ADRS(0xe4)
  200. #define VR4121_DSUTIMREG VR4121_ADRS(0xe6)
  201. #define VR4121_DSULOADREG VR4121_ADRS(0xe8)
  202. /* GIU registers */
  203. #define VR4121_GIUIOSELL VR4121_ADRS(0x100)
  204. #define VR4121_GIUIOSELH VR4121_ADRS(0x102)
  205. #define VR4121_GIUPIODL VR4121_ADRS(0x104)
  206. #define VR4121_GIUPIODH VR4121_ADRS(0x106)
  207. #define VR4121_GIUINTSTATL VR4121_ADRS(0x108)
  208. #define VR4121_GIUINTSTATH VR4121_ADRS(0x10a)
  209. #define VR4121_GIUINTENL VR4121_ADRS(0x10c)
  210. #define VR4121_GIUINTENH VR4121_ADRS(0x10e)
  211. #define VR4121_GIUINTTYPL VR4121_ADRS(0x110)
  212. #define VR4121_GIUINTTYPH VR4121_ADRS(0x112)
  213. #define VR4121_GIUINTALSELL VR4121_ADRS(0x114)
  214. #define VR4121_GIUINTALSELH VR4121_ADRS(0x116)
  215. #define VR4121_GIUINTHTSELL VR4121_ADRS(0x118)
  216. #define VR4121_GIUINTHTSELH VR4121_ADRS(0x11a)
  217. #define VR4121_GIUPODATL VR4121_ADRS(0x11c)
  218. #define VR4121_GIUPODATH VR4121_ADRS(0x11e)
  219. /* The general-purpose I/O pins (GPIO) are enabled and controlled
  220.    via identically placed bits in the GIU registers and some of the
  221.    ICU registers. This set of pin masks can be used with whichever
  222.    registers contain GPIO pin configuration. */
  223. #define  VR4121_GPIO_PIN_31 (1 << 15)
  224. #define  VR4121_GPIO_PIN_30 (1 << 14)
  225. #define  VR4121_GPIO_PIN_29 (1 << 13)
  226. #define  VR4121_GPIO_PIN_28 (1 << 12)
  227. #define  VR4121_GPIO_PIN_27 (1 << 11)
  228. #define  VR4121_GPIO_PIN_26 (1 << 10)
  229. #define  VR4121_GPIO_PIN_25 (1 << 9)
  230. #define  VR4121_GPIO_PIN_24 (1 << 8)
  231. #define  VR4121_GPIO_PIN_23 (1 << 7)
  232. #define  VR4121_GPIO_PIN_22 (1 << 6)
  233. #define  VR4121_GPIO_PIN_21 (1 << 5)
  234. #define  VR4121_GPIO_PIN_20 (1 << 4)
  235. #define  VR4121_GPIO_PIN_19 (1 << 3)
  236. #define  VR4121_GPIO_PIN_18 (1 << 2)
  237. #define  VR4121_GPIO_PIN_17 (1 << 1)
  238. #define  VR4121_GPIO_PIN_16 (1 << 0)
  239. #define  VR4121_GPIO_PIN_15 (1 << 15)
  240. #define  VR4121_GPIO_PIN_14 (1 << 14)
  241. #define  VR4121_GPIO_PIN_13 (1 << 13)
  242. #define  VR4121_GPIO_PIN_12 (1 << 12)
  243. #define  VR4121_GPIO_PIN_11 (1 << 11)
  244. #define  VR4121_GPIO_PIN_10 (1 << 10)
  245. #define  VR4121_GPIO_PIN_9 (1 << 9)
  246. #define  VR4121_GPIO_PIN_8 (1 << 8)
  247. #define  VR4121_GPIO_PIN_7 (1 << 7)
  248. #define  VR4121_GPIO_PIN_6 (1 << 6)
  249. #define  VR4121_GPIO_PIN_5 (1 << 5)
  250. #define  VR4121_GPIO_PIN_4 (1 << 4)
  251. #define  VR4121_GPIO_PIN_3 (1 << 3)
  252. #define  VR4121_GPIO_PIN_2 (1 << 2)
  253. #define  VR4121_GPIO_PIN_1 (1 << 1)
  254. #define  VR4121_GPIO_PIN_0 (1 << 0)
  255. /* PIU registers */
  256. #define VR4121_PIUCNTREG VR4121_ADRS(0x122)
  257. #define VR4121_PIUINTREG VR4121_ADRS(0x124)
  258. #define VR4121_PIUSIVLREG VR4121_ADRS(0x126)
  259. #define VR4121_PIUSTBLREG VR4121_ADRS(0x128)
  260. #define VR4121_PIUCMDREG VR4121_ADRS(0x12a)
  261. #define VR4121_PIUASCNREG VR4121_ADRS(0x130)
  262. #define VR4121_PIUAMSKREG VR4121_ADRS(0x132)
  263. #define VR4121_PIUCIVLREG VR4121_ADRS(0x13e)
  264. #define VR4121_PIUPB00REG VR4121_ADRS(0x2a0)
  265. #define VR4121_PIUPB01REG VR4121_ADRS(0x2a2)
  266. #define VR4121_PIUPB02REG VR4121_ADRS(0x2a4)
  267. #define VR4121_PIUPB03REG VR4121_ADRS(0x2a6)
  268. #define VR4121_PIUPB10REG VR4121_ADRS(0x2a8)
  269. #define VR4121_PIUPB11REG VR4121_ADRS(0x2aa)
  270. #define VR4121_PIUPB12REG VR4121_ADRS(0x2ac)
  271. #define VR4121_PIUPB13REG VR4121_ADRS(0x2ae)
  272. #define VR4121_PIUAB0REG VR4121_ADRS(0x2b0)
  273. #define VR4121_PIUAB1REG VR4121_ADRS(0x2b2)
  274. #define VR4121_PIUAB2REG VR4121_ADRS(0x2b4)
  275. #define VR4121_PIUAB3REG VR4121_ADRS(0x2b6)
  276. #define VR4121_PIUPB04REG VR4121_ADRS(0x2bc)
  277. #define VR4121_PIUPB14REG VR4121_ADRS(0x2be)
  278. /* AIU registers */
  279. #define VR4121_MDMADATREG VR4121_ADRS(0x160)
  280. #define VR4121_SDMADATREG VR4121_ADRS(0x162)
  281. #define VR4121_SODATREG VR4121_ADRS(0x166)
  282. #define VR4121_SCNTREG VR4121_ADRS(0x168)
  283. #define VR4121_SCNVRREG VR4121_ADRS(0x16a)
  284. #define VR4121_SCNVCUNTREG VR4121_ADRS(0x16c)
  285. #define VR4121_MIDATREG VR4121_ADRS(0x170)
  286. #define VR4121_MCNTREG VR4121_ADRS(0x172)
  287. #define VR4121_MCNVRREG VR4121_ADRS(0x174)
  288. #define VR4121_MCNVCUNTREG VR4121_ADRS(0x176)
  289. #define VR4121_DVALIDREG VR4121_ADRS(0x178)
  290. #define VR4121_SEQREG VR4121_ADRS(0x17a)
  291. #define VR4121_INTREG VR4121_ADRS(0x17c)
  292. /* KIU registers */
  293. #define VR4121_KIUDAT0REG VR4121_ADRS(0x180)
  294. #define VR4121_KIUDAT1REG VR4121_ADRS(0x182)
  295. #define VR4121_KIUDAT2REG VR4121_ADRS(0x184)
  296. #define VR4121_KIUDAT3REG VR4121_ADRS(0x186)
  297. #define VR4121_KIUDAT4REG VR4121_ADRS(0x188)
  298. #define VR4121_KIUDAT5REG VR4121_ADRS(0x18a)
  299. #define VR4121_KIUSCANREP VR4121_ADRS(0x190)
  300. #define VR4121_DIUSCANS VR4121_ADRS(0x192)
  301. #define VR4121_KIUWKS VR4121_ADRS(0x194)
  302. #define VR4121_KIUWKI VR4121_ADRS(0x196)
  303. #define VR4121_KIUINT VR4121_ADRS(0x198)
  304. #define VR4121_KIURST VR4121_ADRS(0x19a)
  305. #define VR4121_KIUGPEN VR4121_ADRS(0x19c)
  306. #define VR4121_SCANLINE VR4121_ADRS(0x19e)
  307. /* Debug SIU registers */
  308. #define VR4121_PORTREG VR4121_ADRS(0x1a0)  /* new XXX */
  309. #define VR4121_MODEMREG VR4121_ADRS(0x1a2)  /* new XXX */
  310. #define VR4121_ASIM00REG VR4121_ADRS(0x1a4)
  311. #define VR4121_ASIM01REG VR4121_ADRS(0x1a6)
  312. #define VR4121_RXB0RREG VR4121_ADRS(0x1a8)
  313. #define VR4121_RXB0LREG VR4121_ADRS(0x1aa)
  314. #define VR4121_RXS0RREG VR4121_ADRS(0x1ac)
  315. #define VR4121_TXS0LREG VR4121_ADRS(0x1ae)
  316. #define VR4121_ASIS0REG VR4121_ADRS(0x1b0)
  317. #define VR4121_INTR0REG VR4121_ADRS(0x1b2)
  318. #define VR4121_BRG0REG VR4121_ADRS(0x1b4)  /* new XXX */
  319. #define VR4121_BPRM0REG VR4121_ADRS(0x1b6)
  320. #define VR4121_DSIURESETREG VR4121_ADRS(0x1b8)
  321. /* DSIU subsystem DSIURESETREG bit definitions */
  322. #define VR4121_DSIURST (1 << 0)
  323. /* DSIU subsystem ASIM00REG register bit definitions */
  324. #define VR4121_ASIM00REG_RESERVED  (1 << 7)
  325. #define VR4121_RXE0    (1 << 6)
  326. #define VR4121_DSIU_PAR_SHIFT    4
  327. #define VR4121_DSIU_PAR_EVEN    (3 << VR4121_DSIU_PAR_SHIFT)
  328. #define VR4121_DSIU_PAR_ODD    (2 << VR4121_DSIU_PAR_SHIFT)
  329. #define VR4121_DSIU_PAR_ZERO    (1 << VR4121_DSIU_PAR_SHIFT)
  330. #define VR4121_DSIU_PAR_EXTEND    (0 << VR4121_DSIU_PAR_SHIFT)
  331. #define VR4121_DSIU_CHARLEN_8    (1 << 3)
  332. #define VR4121_DSIU_CHARLEN_7    (0 << 3)
  333. #define VR4121_DSIU_STOPBITS_2    (1 << 2)
  334. #define VR4121_DSIU_STOPBITS_1    (1 << 2)
  335. #define VR4121_DSIU_SCLS0    (1 << 0)  /* new XXX */
  336. /* DSIU subsystem BPRM0REG register bit definitions */
  337. #define VR4121_BRCE0    (1 << 7)
  338. /* DSIU subsystem INTR0REG register bit definitions */
  339. #define VR4121_INTDCD    (1 << 3)
  340. #define VR4121_INTSER0    (1 << 2)
  341. #define VR4121_INTSR0    (1 << 1)
  342. #define VR4121_INTST0    (1 << 0)
  343. /* DSIU subsystem ASIS0REG register bit definitions */
  344. #define VR4121_SOT0    (1 << 7)
  345. #define VR4121_PE0    (1 << 2)
  346. #define VR4121_FE0    (1 << 1)
  347. #define VR4121_OVE0    (1 << 0)
  348. /* LED registers */
  349. #define VR4121_LEDHTSREG    VR4121_ADRS(0x240)
  350. #define VR4121_LEDTLSREG    VR4121_ADRS(0x242)
  351. #define VR4121_LEDHLTCLREG    VR4121_ADRS(0x244)
  352. #define VR4121_LEDHLTCHREG    VR4121_ADRS(0x246)
  353. #define VR4121_LEDCNTREG    VR4121_ADRS(0x248)
  354. #define VR4121_LEDASTCREG    VR4121_ADRS(0x24a)
  355. #define VR4121_LEDINTREG    VR4121_ADRS(0x24c)
  356. /* SIU registers -- (16550-compatible registers not included) */
  357. #define VR4121_SIURSEL    VR4121_ADRS(0x01000008)
  358. /* HSP registers */
  359. #define VR4121_HSPINIT    VR4121_ADRS(0x01000020)
  360. #define VR4121_HSPDATA    VR4121_ADRS(0x01000022)
  361. #define VR4121_HSPINDEX    VR4121_ADRS(0x01000024)
  362. #define VR4121_HSPID    VR4121_ADRS(0x01000028)
  363. #define VR4121_HSPPCS    VR4121_ADRS(0x01000029)
  364. #define VR4121_HSPPCTEL    VR4121_ADRS(0x01000029)
  365. #ifdef __cplusplus
  366. }
  367. #endif
  368. #endif /* __INCnvr4121h */