sv_addr.agh
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:292k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2. !* This file was automatically generated by /n/asic/bin/reg_macro_gen
  3. !* from the file `/n/asic/projects/etrax_ng/doc/work/etrax_ng_regs.rd'.
  4. !* Editing within this file is thus not recommended,
  5. !* make the changes in `/n/asic/projects/etrax_ng/doc/work/etrax_ng_regs.rd' instead.
  6. !*/
  7. /*
  8. !* Bus interface configuration registers
  9. !*/
  10. #define R_WAITSTATES (IO_TYPECAST_UDWORD 0xb0000000)
  11. #define R_WAITSTATES__pcs4_7_zw__BITNR 30
  12. #define R_WAITSTATES__pcs4_7_zw__WIDTH 2
  13. #define R_WAITSTATES__pcs4_7_ew__BITNR 28
  14. #define R_WAITSTATES__pcs4_7_ew__WIDTH 2
  15. #define R_WAITSTATES__pcs4_7_lw__BITNR 24
  16. #define R_WAITSTATES__pcs4_7_lw__WIDTH 4
  17. #define R_WAITSTATES__pcs0_3_zw__BITNR 22
  18. #define R_WAITSTATES__pcs0_3_zw__WIDTH 2
  19. #define R_WAITSTATES__pcs0_3_ew__BITNR 20
  20. #define R_WAITSTATES__pcs0_3_ew__WIDTH 2
  21. #define R_WAITSTATES__pcs0_3_lw__BITNR 16
  22. #define R_WAITSTATES__pcs0_3_lw__WIDTH 4
  23. #define R_WAITSTATES__sram_zw__BITNR 14
  24. #define R_WAITSTATES__sram_zw__WIDTH 2
  25. #define R_WAITSTATES__sram_ew__BITNR 12
  26. #define R_WAITSTATES__sram_ew__WIDTH 2
  27. #define R_WAITSTATES__sram_lw__BITNR 8
  28. #define R_WAITSTATES__sram_lw__WIDTH 4
  29. #define R_WAITSTATES__flash_zw__BITNR 6
  30. #define R_WAITSTATES__flash_zw__WIDTH 2
  31. #define R_WAITSTATES__flash_ew__BITNR 4
  32. #define R_WAITSTATES__flash_ew__WIDTH 2
  33. #define R_WAITSTATES__flash_lw__BITNR 0
  34. #define R_WAITSTATES__flash_lw__WIDTH 4
  35. #define R_BUS_CONFIG (IO_TYPECAST_UDWORD 0xb0000004)
  36. #define R_BUS_CONFIG__sram_type__BITNR 9
  37. #define R_BUS_CONFIG__sram_type__WIDTH 1
  38. #define R_BUS_CONFIG__sram_type__cwe 1
  39. #define R_BUS_CONFIG__sram_type__bwe 0
  40. #define R_BUS_CONFIG__dma_burst__BITNR 8
  41. #define R_BUS_CONFIG__dma_burst__WIDTH 1
  42. #define R_BUS_CONFIG__dma_burst__burst16 1
  43. #define R_BUS_CONFIG__dma_burst__burst32 0
  44. #define R_BUS_CONFIG__pcs4_7_wr__BITNR 7
  45. #define R_BUS_CONFIG__pcs4_7_wr__WIDTH 1
  46. #define R_BUS_CONFIG__pcs4_7_wr__ext 1
  47. #define R_BUS_CONFIG__pcs4_7_wr__norm 0
  48. #define R_BUS_CONFIG__pcs0_3_wr__BITNR 6
  49. #define R_BUS_CONFIG__pcs0_3_wr__WIDTH 1
  50. #define R_BUS_CONFIG__pcs0_3_wr__ext 1
  51. #define R_BUS_CONFIG__pcs0_3_wr__norm 0
  52. #define R_BUS_CONFIG__sram_wr__BITNR 5
  53. #define R_BUS_CONFIG__sram_wr__WIDTH 1
  54. #define R_BUS_CONFIG__sram_wr__ext 1
  55. #define R_BUS_CONFIG__sram_wr__norm 0
  56. #define R_BUS_CONFIG__flash_wr__BITNR 4
  57. #define R_BUS_CONFIG__flash_wr__WIDTH 1
  58. #define R_BUS_CONFIG__flash_wr__ext 1
  59. #define R_BUS_CONFIG__flash_wr__norm 0
  60. #define R_BUS_CONFIG__pcs4_7_bw__BITNR 3
  61. #define R_BUS_CONFIG__pcs4_7_bw__WIDTH 1
  62. #define R_BUS_CONFIG__pcs4_7_bw__bw32 1
  63. #define R_BUS_CONFIG__pcs4_7_bw__bw16 0
  64. #define R_BUS_CONFIG__pcs0_3_bw__BITNR 2
  65. #define R_BUS_CONFIG__pcs0_3_bw__WIDTH 1
  66. #define R_BUS_CONFIG__pcs0_3_bw__bw32 1
  67. #define R_BUS_CONFIG__pcs0_3_bw__bw16 0
  68. #define R_BUS_CONFIG__sram_bw__BITNR 1
  69. #define R_BUS_CONFIG__sram_bw__WIDTH 1
  70. #define R_BUS_CONFIG__sram_bw__bw32 1
  71. #define R_BUS_CONFIG__sram_bw__bw16 0
  72. #define R_BUS_CONFIG__flash_bw__BITNR 0
  73. #define R_BUS_CONFIG__flash_bw__WIDTH 1
  74. #define R_BUS_CONFIG__flash_bw__bw32 1
  75. #define R_BUS_CONFIG__flash_bw__bw16 0
  76. #define R_BUS_STATUS (IO_TYPECAST_RO_UDWORD 0xb0000004)
  77. #define R_BUS_STATUS__pll_lock_tm__BITNR 5
  78. #define R_BUS_STATUS__pll_lock_tm__WIDTH 1
  79. #define R_BUS_STATUS__pll_lock_tm__expired 0
  80. #define R_BUS_STATUS__pll_lock_tm__counting 1
  81. #define R_BUS_STATUS__both_faults__BITNR 4
  82. #define R_BUS_STATUS__both_faults__WIDTH 1
  83. #define R_BUS_STATUS__both_faults__no 0
  84. #define R_BUS_STATUS__both_faults__yes 1
  85. #define R_BUS_STATUS__bsen___BITNR 3
  86. #define R_BUS_STATUS__bsen___WIDTH 1
  87. #define R_BUS_STATUS__bsen___enable 0
  88. #define R_BUS_STATUS__bsen___disable 1
  89. #define R_BUS_STATUS__boot__BITNR 1
  90. #define R_BUS_STATUS__boot__WIDTH 2
  91. #define R_BUS_STATUS__boot__uncached 0
  92. #define R_BUS_STATUS__boot__serial 1
  93. #define R_BUS_STATUS__boot__network 2
  94. #define R_BUS_STATUS__boot__parallel 3
  95. #define R_BUS_STATUS__flashw__BITNR 0
  96. #define R_BUS_STATUS__flashw__WIDTH 1
  97. #define R_BUS_STATUS__flashw__bw32 1
  98. #define R_BUS_STATUS__flashw__bw16 0
  99. #define R_DRAM_TIMING (IO_TYPECAST_UDWORD 0xb0000008)
  100. #define R_DRAM_TIMING__sdram__BITNR 31
  101. #define R_DRAM_TIMING__sdram__WIDTH 1
  102. #define R_DRAM_TIMING__sdram__enable 1
  103. #define R_DRAM_TIMING__sdram__disable 0
  104. #define R_DRAM_TIMING__ref__BITNR 14
  105. #define R_DRAM_TIMING__ref__WIDTH 2
  106. #define R_DRAM_TIMING__ref__e52us 0
  107. #define R_DRAM_TIMING__ref__e13us 1
  108. #define R_DRAM_TIMING__ref__e8700ns 2
  109. #define R_DRAM_TIMING__ref__disable 3
  110. #define R_DRAM_TIMING__rp__BITNR 12
  111. #define R_DRAM_TIMING__rp__WIDTH 2
  112. #define R_DRAM_TIMING__rs__BITNR 10
  113. #define R_DRAM_TIMING__rs__WIDTH 2
  114. #define R_DRAM_TIMING__rh__BITNR 8
  115. #define R_DRAM_TIMING__rh__WIDTH 2
  116. #define R_DRAM_TIMING__w__BITNR 7
  117. #define R_DRAM_TIMING__w__WIDTH 1
  118. #define R_DRAM_TIMING__w__norm 0
  119. #define R_DRAM_TIMING__w__ext 1
  120. #define R_DRAM_TIMING__c__BITNR 6
  121. #define R_DRAM_TIMING__c__WIDTH 1
  122. #define R_DRAM_TIMING__c__norm 0
  123. #define R_DRAM_TIMING__c__ext 1
  124. #define R_DRAM_TIMING__cz__BITNR 4
  125. #define R_DRAM_TIMING__cz__WIDTH 2
  126. #define R_DRAM_TIMING__cp__BITNR 2
  127. #define R_DRAM_TIMING__cp__WIDTH 2
  128. #define R_DRAM_TIMING__cw__BITNR 0
  129. #define R_DRAM_TIMING__cw__WIDTH 2
  130. #define R_SDRAM_TIMING (IO_TYPECAST_UDWORD 0xb0000008)
  131. #define R_SDRAM_TIMING__sdram__BITNR 31
  132. #define R_SDRAM_TIMING__sdram__WIDTH 1
  133. #define R_SDRAM_TIMING__sdram__enable 1
  134. #define R_SDRAM_TIMING__sdram__disable 0
  135. #define R_SDRAM_TIMING__mrs_data__BITNR 16
  136. #define R_SDRAM_TIMING__mrs_data__WIDTH 15
  137. #define R_SDRAM_TIMING__ref__BITNR 14
  138. #define R_SDRAM_TIMING__ref__WIDTH 2
  139. #define R_SDRAM_TIMING__ref__e52us 0
  140. #define R_SDRAM_TIMING__ref__e13us 1
  141. #define R_SDRAM_TIMING__ref__e6500ns 2
  142. #define R_SDRAM_TIMING__ref__disable 3
  143. #define R_SDRAM_TIMING__ddr__BITNR 13
  144. #define R_SDRAM_TIMING__ddr__WIDTH 1
  145. #define R_SDRAM_TIMING__ddr__on 1
  146. #define R_SDRAM_TIMING__ddr__off 0
  147. #define R_SDRAM_TIMING__clk100__BITNR 12
  148. #define R_SDRAM_TIMING__clk100__WIDTH 1
  149. #define R_SDRAM_TIMING__clk100__on 1
  150. #define R_SDRAM_TIMING__clk100__off 0
  151. #define R_SDRAM_TIMING__ps__BITNR 11
  152. #define R_SDRAM_TIMING__ps__WIDTH 1
  153. #define R_SDRAM_TIMING__ps__on 1
  154. #define R_SDRAM_TIMING__ps__off 0
  155. #define R_SDRAM_TIMING__cmd__BITNR 9
  156. #define R_SDRAM_TIMING__cmd__WIDTH 2
  157. #define R_SDRAM_TIMING__cmd__pre 3
  158. #define R_SDRAM_TIMING__cmd__ref 2
  159. #define R_SDRAM_TIMING__cmd__mrs 1
  160. #define R_SDRAM_TIMING__cmd__nop 0
  161. #define R_SDRAM_TIMING__pde__BITNR 8
  162. #define R_SDRAM_TIMING__pde__WIDTH 1
  163. #define R_SDRAM_TIMING__rc__BITNR 6
  164. #define R_SDRAM_TIMING__rc__WIDTH 2
  165. #define R_SDRAM_TIMING__rp__BITNR 4
  166. #define R_SDRAM_TIMING__rp__WIDTH 2
  167. #define R_SDRAM_TIMING__rcd__BITNR 2
  168. #define R_SDRAM_TIMING__rcd__WIDTH 2
  169. #define R_SDRAM_TIMING__cl__BITNR 0
  170. #define R_SDRAM_TIMING__cl__WIDTH 2
  171. #define R_DRAM_CONFIG (IO_TYPECAST_UDWORD 0xb000000c)
  172. #define R_DRAM_CONFIG__wmm1__BITNR 31
  173. #define R_DRAM_CONFIG__wmm1__WIDTH 1
  174. #define R_DRAM_CONFIG__wmm1__wmm 1
  175. #define R_DRAM_CONFIG__wmm1__norm 0
  176. #define R_DRAM_CONFIG__wmm0__BITNR 30
  177. #define R_DRAM_CONFIG__wmm0__WIDTH 1
  178. #define R_DRAM_CONFIG__wmm0__wmm 1
  179. #define R_DRAM_CONFIG__wmm0__norm 0
  180. #define R_DRAM_CONFIG__sh1__BITNR 27
  181. #define R_DRAM_CONFIG__sh1__WIDTH 3
  182. #define R_DRAM_CONFIG__sh0__BITNR 24
  183. #define R_DRAM_CONFIG__sh0__WIDTH 3
  184. #define R_DRAM_CONFIG__w__BITNR 23
  185. #define R_DRAM_CONFIG__w__WIDTH 1
  186. #define R_DRAM_CONFIG__w__bw16 0
  187. #define R_DRAM_CONFIG__w__bw32 1
  188. #define R_DRAM_CONFIG__c__BITNR 22
  189. #define R_DRAM_CONFIG__c__WIDTH 1
  190. #define R_DRAM_CONFIG__c__byte 0
  191. #define R_DRAM_CONFIG__c__bank 1
  192. #define R_DRAM_CONFIG__e__BITNR 21
  193. #define R_DRAM_CONFIG__e__WIDTH 1
  194. #define R_DRAM_CONFIG__e__fast 0
  195. #define R_DRAM_CONFIG__e__edo 1
  196. #define R_DRAM_CONFIG__group_sel__BITNR 16
  197. #define R_DRAM_CONFIG__group_sel__WIDTH 5
  198. #define R_DRAM_CONFIG__group_sel__grp0 0
  199. #define R_DRAM_CONFIG__group_sel__grp1 1
  200. #define R_DRAM_CONFIG__group_sel__bit9 9
  201. #define R_DRAM_CONFIG__group_sel__bit10 10
  202. #define R_DRAM_CONFIG__group_sel__bit11 11
  203. #define R_DRAM_CONFIG__group_sel__bit12 12
  204. #define R_DRAM_CONFIG__group_sel__bit13 13
  205. #define R_DRAM_CONFIG__group_sel__bit14 14
  206. #define R_DRAM_CONFIG__group_sel__bit15 15
  207. #define R_DRAM_CONFIG__group_sel__bit16 16
  208. #define R_DRAM_CONFIG__group_sel__bit17 17
  209. #define R_DRAM_CONFIG__group_sel__bit18 18
  210. #define R_DRAM_CONFIG__group_sel__bit19 19
  211. #define R_DRAM_CONFIG__group_sel__bit20 20
  212. #define R_DRAM_CONFIG__group_sel__bit21 21
  213. #define R_DRAM_CONFIG__group_sel__bit22 22
  214. #define R_DRAM_CONFIG__group_sel__bit23 23
  215. #define R_DRAM_CONFIG__group_sel__bit24 24
  216. #define R_DRAM_CONFIG__group_sel__bit25 25
  217. #define R_DRAM_CONFIG__group_sel__bit26 26
  218. #define R_DRAM_CONFIG__group_sel__bit27 27
  219. #define R_DRAM_CONFIG__group_sel__bit28 28
  220. #define R_DRAM_CONFIG__group_sel__bit29 29
  221. #define R_DRAM_CONFIG__ca1__BITNR 13
  222. #define R_DRAM_CONFIG__ca1__WIDTH 3
  223. #define R_DRAM_CONFIG__bank23sel__BITNR 8
  224. #define R_DRAM_CONFIG__bank23sel__WIDTH 5
  225. #define R_DRAM_CONFIG__bank23sel__bank0 0
  226. #define R_DRAM_CONFIG__bank23sel__bank1 1
  227. #define R_DRAM_CONFIG__bank23sel__bit9 9
  228. #define R_DRAM_CONFIG__bank23sel__bit10 10
  229. #define R_DRAM_CONFIG__bank23sel__bit11 11
  230. #define R_DRAM_CONFIG__bank23sel__bit12 12
  231. #define R_DRAM_CONFIG__bank23sel__bit13 13
  232. #define R_DRAM_CONFIG__bank23sel__bit14 14
  233. #define R_DRAM_CONFIG__bank23sel__bit15 15
  234. #define R_DRAM_CONFIG__bank23sel__bit16 16
  235. #define R_DRAM_CONFIG__bank23sel__bit17 17
  236. #define R_DRAM_CONFIG__bank23sel__bit18 18
  237. #define R_DRAM_CONFIG__bank23sel__bit19 19
  238. #define R_DRAM_CONFIG__bank23sel__bit20 20
  239. #define R_DRAM_CONFIG__bank23sel__bit21 21
  240. #define R_DRAM_CONFIG__bank23sel__bit22 22
  241. #define R_DRAM_CONFIG__bank23sel__bit23 23
  242. #define R_DRAM_CONFIG__bank23sel__bit24 24
  243. #define R_DRAM_CONFIG__bank23sel__bit25 25
  244. #define R_DRAM_CONFIG__bank23sel__bit26 26
  245. #define R_DRAM_CONFIG__bank23sel__bit27 27
  246. #define R_DRAM_CONFIG__bank23sel__bit28 28
  247. #define R_DRAM_CONFIG__bank23sel__bit29 29
  248. #define R_DRAM_CONFIG__ca0__BITNR 5
  249. #define R_DRAM_CONFIG__ca0__WIDTH 3
  250. #define R_DRAM_CONFIG__bank01sel__BITNR 0
  251. #define R_DRAM_CONFIG__bank01sel__WIDTH 5
  252. #define R_DRAM_CONFIG__bank01sel__bank0 0
  253. #define R_DRAM_CONFIG__bank01sel__bank1 1
  254. #define R_DRAM_CONFIG__bank01sel__bit9 9
  255. #define R_DRAM_CONFIG__bank01sel__bit10 10
  256. #define R_DRAM_CONFIG__bank01sel__bit11 11
  257. #define R_DRAM_CONFIG__bank01sel__bit12 12
  258. #define R_DRAM_CONFIG__bank01sel__bit13 13
  259. #define R_DRAM_CONFIG__bank01sel__bit14 14
  260. #define R_DRAM_CONFIG__bank01sel__bit15 15
  261. #define R_DRAM_CONFIG__bank01sel__bit16 16
  262. #define R_DRAM_CONFIG__bank01sel__bit17 17
  263. #define R_DRAM_CONFIG__bank01sel__bit18 18
  264. #define R_DRAM_CONFIG__bank01sel__bit19 19
  265. #define R_DRAM_CONFIG__bank01sel__bit20 20
  266. #define R_DRAM_CONFIG__bank01sel__bit21 21
  267. #define R_DRAM_CONFIG__bank01sel__bit22 22
  268. #define R_DRAM_CONFIG__bank01sel__bit23 23
  269. #define R_DRAM_CONFIG__bank01sel__bit24 24
  270. #define R_DRAM_CONFIG__bank01sel__bit25 25
  271. #define R_DRAM_CONFIG__bank01sel__bit26 26
  272. #define R_DRAM_CONFIG__bank01sel__bit27 27
  273. #define R_DRAM_CONFIG__bank01sel__bit28 28
  274. #define R_DRAM_CONFIG__bank01sel__bit29 29
  275. #define R_SDRAM_CONFIG (IO_TYPECAST_UDWORD 0xb000000c)
  276. #define R_SDRAM_CONFIG__wmm1__BITNR 31
  277. #define R_SDRAM_CONFIG__wmm1__WIDTH 1
  278. #define R_SDRAM_CONFIG__wmm1__wmm 1
  279. #define R_SDRAM_CONFIG__wmm1__norm 0
  280. #define R_SDRAM_CONFIG__wmm0__BITNR 30
  281. #define R_SDRAM_CONFIG__wmm0__WIDTH 1
  282. #define R_SDRAM_CONFIG__wmm0__wmm 1
  283. #define R_SDRAM_CONFIG__wmm0__norm 0
  284. #define R_SDRAM_CONFIG__sh1__BITNR 27
  285. #define R_SDRAM_CONFIG__sh1__WIDTH 3
  286. #define R_SDRAM_CONFIG__sh0__BITNR 24
  287. #define R_SDRAM_CONFIG__sh0__WIDTH 3
  288. #define R_SDRAM_CONFIG__w__BITNR 23
  289. #define R_SDRAM_CONFIG__w__WIDTH 1
  290. #define R_SDRAM_CONFIG__w__bw16 0
  291. #define R_SDRAM_CONFIG__w__bw32 1
  292. #define R_SDRAM_CONFIG__type1__BITNR 22
  293. #define R_SDRAM_CONFIG__type1__WIDTH 1
  294. #define R_SDRAM_CONFIG__type1__bank2 0
  295. #define R_SDRAM_CONFIG__type1__bank4 1
  296. #define R_SDRAM_CONFIG__type0__BITNR 21
  297. #define R_SDRAM_CONFIG__type0__WIDTH 1
  298. #define R_SDRAM_CONFIG__type0__bank2 0
  299. #define R_SDRAM_CONFIG__type0__bank4 1
  300. #define R_SDRAM_CONFIG__group_sel__BITNR 16
  301. #define R_SDRAM_CONFIG__group_sel__WIDTH 5
  302. #define R_SDRAM_CONFIG__group_sel__grp0 0
  303. #define R_SDRAM_CONFIG__group_sel__grp1 1
  304. #define R_SDRAM_CONFIG__group_sel__bit9 9
  305. #define R_SDRAM_CONFIG__group_sel__bit10 10
  306. #define R_SDRAM_CONFIG__group_sel__bit11 11
  307. #define R_SDRAM_CONFIG__group_sel__bit12 12
  308. #define R_SDRAM_CONFIG__group_sel__bit13 13
  309. #define R_SDRAM_CONFIG__group_sel__bit14 14
  310. #define R_SDRAM_CONFIG__group_sel__bit15 15
  311. #define R_SDRAM_CONFIG__group_sel__bit16 16
  312. #define R_SDRAM_CONFIG__group_sel__bit17 17
  313. #define R_SDRAM_CONFIG__group_sel__bit18 18
  314. #define R_SDRAM_CONFIG__group_sel__bit19 19
  315. #define R_SDRAM_CONFIG__group_sel__bit20 20
  316. #define R_SDRAM_CONFIG__group_sel__bit21 21
  317. #define R_SDRAM_CONFIG__group_sel__bit22 22
  318. #define R_SDRAM_CONFIG__group_sel__bit23 23
  319. #define R_SDRAM_CONFIG__group_sel__bit24 24
  320. #define R_SDRAM_CONFIG__group_sel__bit25 25
  321. #define R_SDRAM_CONFIG__group_sel__bit26 26
  322. #define R_SDRAM_CONFIG__group_sel__bit27 27
  323. #define R_SDRAM_CONFIG__group_sel__bit28 28
  324. #define R_SDRAM_CONFIG__group_sel__bit29 29
  325. #define R_SDRAM_CONFIG__ca1__BITNR 13
  326. #define R_SDRAM_CONFIG__ca1__WIDTH 3
  327. #define R_SDRAM_CONFIG__bank_sel1__BITNR 8
  328. #define R_SDRAM_CONFIG__bank_sel1__WIDTH 5
  329. #define R_SDRAM_CONFIG__bank_sel1__bit9 9
  330. #define R_SDRAM_CONFIG__bank_sel1__bit10 10
  331. #define R_SDRAM_CONFIG__bank_sel1__bit11 11
  332. #define R_SDRAM_CONFIG__bank_sel1__bit12 12
  333. #define R_SDRAM_CONFIG__bank_sel1__bit13 13
  334. #define R_SDRAM_CONFIG__bank_sel1__bit14 14
  335. #define R_SDRAM_CONFIG__bank_sel1__bit15 15
  336. #define R_SDRAM_CONFIG__bank_sel1__bit16 16
  337. #define R_SDRAM_CONFIG__bank_sel1__bit17 17
  338. #define R_SDRAM_CONFIG__bank_sel1__bit18 18
  339. #define R_SDRAM_CONFIG__bank_sel1__bit19 19
  340. #define R_SDRAM_CONFIG__bank_sel1__bit20 20
  341. #define R_SDRAM_CONFIG__bank_sel1__bit21 21
  342. #define R_SDRAM_CONFIG__bank_sel1__bit22 22
  343. #define R_SDRAM_CONFIG__bank_sel1__bit23 23
  344. #define R_SDRAM_CONFIG__bank_sel1__bit24 24
  345. #define R_SDRAM_CONFIG__bank_sel1__bit25 25
  346. #define R_SDRAM_CONFIG__bank_sel1__bit26 26
  347. #define R_SDRAM_CONFIG__bank_sel1__bit27 27
  348. #define R_SDRAM_CONFIG__bank_sel1__bit28 28
  349. #define R_SDRAM_CONFIG__bank_sel1__bit29 29
  350. #define R_SDRAM_CONFIG__ca0__BITNR 5
  351. #define R_SDRAM_CONFIG__ca0__WIDTH 3
  352. #define R_SDRAM_CONFIG__bank_sel0__BITNR 0
  353. #define R_SDRAM_CONFIG__bank_sel0__WIDTH 5
  354. #define R_SDRAM_CONFIG__bank_sel0__bit9 9
  355. #define R_SDRAM_CONFIG__bank_sel0__bit10 10
  356. #define R_SDRAM_CONFIG__bank_sel0__bit11 11
  357. #define R_SDRAM_CONFIG__bank_sel0__bit12 12
  358. #define R_SDRAM_CONFIG__bank_sel0__bit13 13
  359. #define R_SDRAM_CONFIG__bank_sel0__bit14 14
  360. #define R_SDRAM_CONFIG__bank_sel0__bit15 15
  361. #define R_SDRAM_CONFIG__bank_sel0__bit16 16
  362. #define R_SDRAM_CONFIG__bank_sel0__bit17 17
  363. #define R_SDRAM_CONFIG__bank_sel0__bit18 18
  364. #define R_SDRAM_CONFIG__bank_sel0__bit19 19
  365. #define R_SDRAM_CONFIG__bank_sel0__bit20 20
  366. #define R_SDRAM_CONFIG__bank_sel0__bit21 21
  367. #define R_SDRAM_CONFIG__bank_sel0__bit22 22
  368. #define R_SDRAM_CONFIG__bank_sel0__bit23 23
  369. #define R_SDRAM_CONFIG__bank_sel0__bit24 24
  370. #define R_SDRAM_CONFIG__bank_sel0__bit25 25
  371. #define R_SDRAM_CONFIG__bank_sel0__bit26 26
  372. #define R_SDRAM_CONFIG__bank_sel0__bit27 27
  373. #define R_SDRAM_CONFIG__bank_sel0__bit28 28
  374. #define R_SDRAM_CONFIG__bank_sel0__bit29 29
  375. /*
  376. !* External DMA registers
  377. !*/
  378. #define R_EXT_DMA_0_CMD (IO_TYPECAST_UDWORD 0xb0000010)
  379. #define R_EXT_DMA_0_CMD__cnt__BITNR 23
  380. #define R_EXT_DMA_0_CMD__cnt__WIDTH 1
  381. #define R_EXT_DMA_0_CMD__cnt__enable 1
  382. #define R_EXT_DMA_0_CMD__cnt__disable 0
  383. #define R_EXT_DMA_0_CMD__rqpol__BITNR 22
  384. #define R_EXT_DMA_0_CMD__rqpol__WIDTH 1
  385. #define R_EXT_DMA_0_CMD__rqpol__ahigh 0
  386. #define R_EXT_DMA_0_CMD__rqpol__alow 1
  387. #define R_EXT_DMA_0_CMD__apol__BITNR 21
  388. #define R_EXT_DMA_0_CMD__apol__WIDTH 1
  389. #define R_EXT_DMA_0_CMD__apol__ahigh 0
  390. #define R_EXT_DMA_0_CMD__apol__alow 1
  391. #define R_EXT_DMA_0_CMD__rq_ack__BITNR 20
  392. #define R_EXT_DMA_0_CMD__rq_ack__WIDTH 1
  393. #define R_EXT_DMA_0_CMD__rq_ack__burst 0
  394. #define R_EXT_DMA_0_CMD__rq_ack__handsh 1
  395. #define R_EXT_DMA_0_CMD__wid__BITNR 18
  396. #define R_EXT_DMA_0_CMD__wid__WIDTH 2
  397. #define R_EXT_DMA_0_CMD__wid__byte 0
  398. #define R_EXT_DMA_0_CMD__wid__word 1
  399. #define R_EXT_DMA_0_CMD__wid__dword 2
  400. #define R_EXT_DMA_0_CMD__dir__BITNR 17
  401. #define R_EXT_DMA_0_CMD__dir__WIDTH 1
  402. #define R_EXT_DMA_0_CMD__dir__input 0
  403. #define R_EXT_DMA_0_CMD__dir__output 1
  404. #define R_EXT_DMA_0_CMD__run__BITNR 16
  405. #define R_EXT_DMA_0_CMD__run__WIDTH 1
  406. #define R_EXT_DMA_0_CMD__run__start 1
  407. #define R_EXT_DMA_0_CMD__run__stop 0
  408. #define R_EXT_DMA_0_CMD__trf_count__BITNR 0
  409. #define R_EXT_DMA_0_CMD__trf_count__WIDTH 16
  410. #define R_EXT_DMA_0_STAT (IO_TYPECAST_RO_UDWORD 0xb0000010)
  411. #define R_EXT_DMA_0_STAT__run__BITNR 16
  412. #define R_EXT_DMA_0_STAT__run__WIDTH 1
  413. #define R_EXT_DMA_0_STAT__run__start 1
  414. #define R_EXT_DMA_0_STAT__run__stop 0
  415. #define R_EXT_DMA_0_STAT__trf_count__BITNR 0
  416. #define R_EXT_DMA_0_STAT__trf_count__WIDTH 16
  417. #define R_EXT_DMA_0_ADDR (IO_TYPECAST_UDWORD 0xb0000014)
  418. #define R_EXT_DMA_0_ADDR__ext0_addr__BITNR 2
  419. #define R_EXT_DMA_0_ADDR__ext0_addr__WIDTH 28
  420. #define R_EXT_DMA_1_CMD (IO_TYPECAST_UDWORD 0xb0000018)
  421. #define R_EXT_DMA_1_CMD__cnt__BITNR 23
  422. #define R_EXT_DMA_1_CMD__cnt__WIDTH 1
  423. #define R_EXT_DMA_1_CMD__cnt__enable 1
  424. #define R_EXT_DMA_1_CMD__cnt__disable 0
  425. #define R_EXT_DMA_1_CMD__rqpol__BITNR 22
  426. #define R_EXT_DMA_1_CMD__rqpol__WIDTH 1
  427. #define R_EXT_DMA_1_CMD__rqpol__ahigh 0
  428. #define R_EXT_DMA_1_CMD__rqpol__alow 1
  429. #define R_EXT_DMA_1_CMD__apol__BITNR 21
  430. #define R_EXT_DMA_1_CMD__apol__WIDTH 1
  431. #define R_EXT_DMA_1_CMD__apol__ahigh 0
  432. #define R_EXT_DMA_1_CMD__apol__alow 1
  433. #define R_EXT_DMA_1_CMD__rq_ack__BITNR 20
  434. #define R_EXT_DMA_1_CMD__rq_ack__WIDTH 1
  435. #define R_EXT_DMA_1_CMD__rq_ack__burst 0
  436. #define R_EXT_DMA_1_CMD__rq_ack__handsh 1
  437. #define R_EXT_DMA_1_CMD__wid__BITNR 18
  438. #define R_EXT_DMA_1_CMD__wid__WIDTH 2
  439. #define R_EXT_DMA_1_CMD__wid__byte 0
  440. #define R_EXT_DMA_1_CMD__wid__word 1
  441. #define R_EXT_DMA_1_CMD__wid__dword 2
  442. #define R_EXT_DMA_1_CMD__dir__BITNR 17
  443. #define R_EXT_DMA_1_CMD__dir__WIDTH 1
  444. #define R_EXT_DMA_1_CMD__dir__input 0
  445. #define R_EXT_DMA_1_CMD__dir__output 1
  446. #define R_EXT_DMA_1_CMD__run__BITNR 16
  447. #define R_EXT_DMA_1_CMD__run__WIDTH 1
  448. #define R_EXT_DMA_1_CMD__run__start 1
  449. #define R_EXT_DMA_1_CMD__run__stop 0
  450. #define R_EXT_DMA_1_CMD__trf_count__BITNR 0
  451. #define R_EXT_DMA_1_CMD__trf_count__WIDTH 16
  452. #define R_EXT_DMA_1_STAT (IO_TYPECAST_RO_UDWORD 0xb0000018)
  453. #define R_EXT_DMA_1_STAT__run__BITNR 16
  454. #define R_EXT_DMA_1_STAT__run__WIDTH 1
  455. #define R_EXT_DMA_1_STAT__run__start 1
  456. #define R_EXT_DMA_1_STAT__run__stop 0
  457. #define R_EXT_DMA_1_STAT__trf_count__BITNR 0
  458. #define R_EXT_DMA_1_STAT__trf_count__WIDTH 16
  459. #define R_EXT_DMA_1_ADDR (IO_TYPECAST_UDWORD 0xb000001c)
  460. #define R_EXT_DMA_1_ADDR__ext0_addr__BITNR 2
  461. #define R_EXT_DMA_1_ADDR__ext0_addr__WIDTH 28
  462. /*
  463. !* Timer registers
  464. !*/
  465. #define R_TIMER_CTRL (IO_TYPECAST_UDWORD 0xb0000020)
  466. #define R_TIMER_CTRL__timerdiv1__BITNR 24
  467. #define R_TIMER_CTRL__timerdiv1__WIDTH 8
  468. #define R_TIMER_CTRL__timerdiv0__BITNR 16
  469. #define R_TIMER_CTRL__timerdiv0__WIDTH 8
  470. #define R_TIMER_CTRL__presc_timer1__BITNR 15
  471. #define R_TIMER_CTRL__presc_timer1__WIDTH 1
  472. #define R_TIMER_CTRL__presc_timer1__normal 0
  473. #define R_TIMER_CTRL__presc_timer1__prescale 1
  474. #define R_TIMER_CTRL__i1__BITNR 14
  475. #define R_TIMER_CTRL__i1__WIDTH 1
  476. #define R_TIMER_CTRL__i1__clr 1
  477. #define R_TIMER_CTRL__i1__nop 0
  478. #define R_TIMER_CTRL__tm1__BITNR 12
  479. #define R_TIMER_CTRL__tm1__WIDTH 2
  480. #define R_TIMER_CTRL__tm1__stop_ld 0
  481. #define R_TIMER_CTRL__tm1__freeze 1
  482. #define R_TIMER_CTRL__tm1__run 2
  483. #define R_TIMER_CTRL__tm1__reserved 3
  484. #define R_TIMER_CTRL__clksel1__BITNR 8
  485. #define R_TIMER_CTRL__clksel1__WIDTH 4
  486. #define R_TIMER_CTRL__clksel1__c300Hz 0
  487. #define R_TIMER_CTRL__clksel1__c600Hz 1
  488. #define R_TIMER_CTRL__clksel1__c1200Hz 2
  489. #define R_TIMER_CTRL__clksel1__c2400Hz 3
  490. #define R_TIMER_CTRL__clksel1__c4800Hz 4
  491. #define R_TIMER_CTRL__clksel1__c9600Hz 5
  492. #define R_TIMER_CTRL__clksel1__c19k2Hz 6
  493. #define R_TIMER_CTRL__clksel1__c38k4Hz 7
  494. #define R_TIMER_CTRL__clksel1__c57k6Hz 8
  495. #define R_TIMER_CTRL__clksel1__c115k2Hz 9
  496. #define R_TIMER_CTRL__clksel1__c230k4Hz 10
  497. #define R_TIMER_CTRL__clksel1__c460k8Hz 11
  498. #define R_TIMER_CTRL__clksel1__c921k6Hz 12
  499. #define R_TIMER_CTRL__clksel1__c1843k2Hz 13
  500. #define R_TIMER_CTRL__clksel1__c6250kHz 14
  501. #define R_TIMER_CTRL__clksel1__cascade0 15
  502. #define R_TIMER_CTRL__presc_ext__BITNR 7
  503. #define R_TIMER_CTRL__presc_ext__WIDTH 1
  504. #define R_TIMER_CTRL__presc_ext__prescale 0
  505. #define R_TIMER_CTRL__presc_ext__external 1
  506. #define R_TIMER_CTRL__i0__BITNR 6
  507. #define R_TIMER_CTRL__i0__WIDTH 1
  508. #define R_TIMER_CTRL__i0__clr 1
  509. #define R_TIMER_CTRL__i0__nop 0
  510. #define R_TIMER_CTRL__tm0__BITNR 4
  511. #define R_TIMER_CTRL__tm0__WIDTH 2
  512. #define R_TIMER_CTRL__tm0__stop_ld 0
  513. #define R_TIMER_CTRL__tm0__freeze 1
  514. #define R_TIMER_CTRL__tm0__run 2
  515. #define R_TIMER_CTRL__tm0__reserved 3
  516. #define R_TIMER_CTRL__clksel0__BITNR 0
  517. #define R_TIMER_CTRL__clksel0__WIDTH 4
  518. #define R_TIMER_CTRL__clksel0__c300Hz 0
  519. #define R_TIMER_CTRL__clksel0__c600Hz 1
  520. #define R_TIMER_CTRL__clksel0__c1200Hz 2
  521. #define R_TIMER_CTRL__clksel0__c2400Hz 3
  522. #define R_TIMER_CTRL__clksel0__c4800Hz 4
  523. #define R_TIMER_CTRL__clksel0__c9600Hz 5
  524. #define R_TIMER_CTRL__clksel0__c19k2Hz 6
  525. #define R_TIMER_CTRL__clksel0__c38k4Hz 7
  526. #define R_TIMER_CTRL__clksel0__c57k6Hz 8
  527. #define R_TIMER_CTRL__clksel0__c115k2Hz 9
  528. #define R_TIMER_CTRL__clksel0__c230k4Hz 10
  529. #define R_TIMER_CTRL__clksel0__c460k8Hz 11
  530. #define R_TIMER_CTRL__clksel0__c921k6Hz 12
  531. #define R_TIMER_CTRL__clksel0__c1843k2Hz 13
  532. #define R_TIMER_CTRL__clksel0__c6250kHz 14
  533. #define R_TIMER_CTRL__clksel0__flexible 15
  534. #define R_TIMER_DATA (IO_TYPECAST_RO_UDWORD 0xb0000020)
  535. #define R_TIMER_DATA__timer1__BITNR 24
  536. #define R_TIMER_DATA__timer1__WIDTH 8
  537. #define R_TIMER_DATA__timer0__BITNR 16
  538. #define R_TIMER_DATA__timer0__WIDTH 8
  539. #define R_TIMER_DATA__clkdiv_high__BITNR 8
  540. #define R_TIMER_DATA__clkdiv_high__WIDTH 8
  541. #define R_TIMER_DATA__clkdiv_low__BITNR 0
  542. #define R_TIMER_DATA__clkdiv_low__WIDTH 8
  543. #define R_TIMER01_DATA (IO_TYPECAST_RO_UWORD 0xb0000022)
  544. #define R_TIMER01_DATA__count__BITNR 0
  545. #define R_TIMER01_DATA__count__WIDTH 16
  546. #define R_TIMER0_DATA (IO_TYPECAST_RO_BYTE 0xb0000022)
  547. #define R_TIMER0_DATA__count__BITNR 0
  548. #define R_TIMER0_DATA__count__WIDTH 8
  549. #define R_TIMER1_DATA (IO_TYPECAST_RO_BYTE 0xb0000023)
  550. #define R_TIMER1_DATA__count__BITNR 0
  551. #define R_TIMER1_DATA__count__WIDTH 8
  552. #define R_WATCHDOG (IO_TYPECAST_UDWORD 0xb0000024)
  553. #define R_WATCHDOG__key__BITNR 1
  554. #define R_WATCHDOG__key__WIDTH 3
  555. #define R_WATCHDOG__enable__BITNR 0
  556. #define R_WATCHDOG__enable__WIDTH 1
  557. #define R_WATCHDOG__enable__stop 0
  558. #define R_WATCHDOG__enable__start 1
  559. #define R_CLOCK_PRESCALE (IO_TYPECAST_UDWORD 0xb00000f0)
  560. #define R_CLOCK_PRESCALE__ser_presc__BITNR 16
  561. #define R_CLOCK_PRESCALE__ser_presc__WIDTH 16
  562. #define R_CLOCK_PRESCALE__tim_presc__BITNR 0
  563. #define R_CLOCK_PRESCALE__tim_presc__WIDTH 16
  564. #define R_SERIAL_PRESCALE (IO_TYPECAST_UWORD 0xb00000f2)
  565. #define R_SERIAL_PRESCALE__ser_presc__BITNR 0
  566. #define R_SERIAL_PRESCALE__ser_presc__WIDTH 16
  567. #define R_TIMER_PRESCALE (IO_TYPECAST_UWORD 0xb00000f0)
  568. #define R_TIMER_PRESCALE__tim_presc__BITNR 0
  569. #define R_TIMER_PRESCALE__tim_presc__WIDTH 16
  570. #define R_PRESCALE_STATUS (IO_TYPECAST_RO_UDWORD 0xb00000f0)
  571. #define R_PRESCALE_STATUS__ser_status__BITNR 16
  572. #define R_PRESCALE_STATUS__ser_status__WIDTH 16
  573. #define R_PRESCALE_STATUS__tim_status__BITNR 0
  574. #define R_PRESCALE_STATUS__tim_status__WIDTH 16
  575. #define R_SER_PRESC_STATUS (IO_TYPECAST_RO_UWORD 0xb00000f2)
  576. #define R_SER_PRESC_STATUS__ser_status__BITNR 0
  577. #define R_SER_PRESC_STATUS__ser_status__WIDTH 16
  578. #define R_TIM_PRESC_STATUS (IO_TYPECAST_RO_UWORD 0xb00000f0)
  579. #define R_TIM_PRESC_STATUS__tim_status__BITNR 0
  580. #define R_TIM_PRESC_STATUS__tim_status__WIDTH 16
  581. #define R_SYNC_SERIAL_PRESCALE (IO_TYPECAST_UDWORD 0xb00000f4)
  582. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u3__BITNR 23
  583. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u3__WIDTH 1
  584. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u3__codec 0
  585. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u3__baudrate 1
  586. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u3__BITNR 22
  587. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u3__WIDTH 1
  588. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u3__external 0
  589. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u3__internal 1
  590. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u1__BITNR 21
  591. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u1__WIDTH 1
  592. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u1__codec 0
  593. #define R_SYNC_SERIAL_PRESCALE__clk_sel_u1__baudrate 1
  594. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u1__BITNR 20
  595. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u1__WIDTH 1
  596. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u1__external 0
  597. #define R_SYNC_SERIAL_PRESCALE__word_stb_sel_u1__internal 1
  598. #define R_SYNC_SERIAL_PRESCALE__prescaler__BITNR 16
  599. #define R_SYNC_SERIAL_PRESCALE__prescaler__WIDTH 3
  600. #define R_SYNC_SERIAL_PRESCALE__prescaler__div1 0
  601. #define R_SYNC_SERIAL_PRESCALE__prescaler__div2 1
  602. #define R_SYNC_SERIAL_PRESCALE__prescaler__div4 2
  603. #define R_SYNC_SERIAL_PRESCALE__prescaler__div8 3
  604. #define R_SYNC_SERIAL_PRESCALE__prescaler__div16 4
  605. #define R_SYNC_SERIAL_PRESCALE__prescaler__div32 5
  606. #define R_SYNC_SERIAL_PRESCALE__prescaler__div64 6
  607. #define R_SYNC_SERIAL_PRESCALE__prescaler__div128 7
  608. #define R_SYNC_SERIAL_PRESCALE__warp_mode__BITNR 15
  609. #define R_SYNC_SERIAL_PRESCALE__warp_mode__WIDTH 1
  610. #define R_SYNC_SERIAL_PRESCALE__warp_mode__normal 0
  611. #define R_SYNC_SERIAL_PRESCALE__warp_mode__enabled 1
  612. #define R_SYNC_SERIAL_PRESCALE__frame_rate__BITNR 11
  613. #define R_SYNC_SERIAL_PRESCALE__frame_rate__WIDTH 4
  614. #define R_SYNC_SERIAL_PRESCALE__word_rate__BITNR 0
  615. #define R_SYNC_SERIAL_PRESCALE__word_rate__WIDTH 10
  616. /*
  617. !* Shared RAM interface registers
  618. !*/
  619. #define R_SHARED_RAM_CONFIG (IO_TYPECAST_UDWORD 0xb0000040)
  620. #define R_SHARED_RAM_CONFIG__width__BITNR 3
  621. #define R_SHARED_RAM_CONFIG__width__WIDTH 1
  622. #define R_SHARED_RAM_CONFIG__width__byte 0
  623. #define R_SHARED_RAM_CONFIG__width__word 1
  624. #define R_SHARED_RAM_CONFIG__enable__BITNR 2
  625. #define R_SHARED_RAM_CONFIG__enable__WIDTH 1
  626. #define R_SHARED_RAM_CONFIG__enable__yes 1
  627. #define R_SHARED_RAM_CONFIG__enable__no 0
  628. #define R_SHARED_RAM_CONFIG__pint__BITNR 1
  629. #define R_SHARED_RAM_CONFIG__pint__WIDTH 1
  630. #define R_SHARED_RAM_CONFIG__pint__int 1
  631. #define R_SHARED_RAM_CONFIG__pint__nop 0
  632. #define R_SHARED_RAM_CONFIG__clri__BITNR 0
  633. #define R_SHARED_RAM_CONFIG__clri__WIDTH 1
  634. #define R_SHARED_RAM_CONFIG__clri__clr 1
  635. #define R_SHARED_RAM_CONFIG__clri__nop 0
  636. #define R_SHARED_RAM_ADDR (IO_TYPECAST_UDWORD 0xb0000044)
  637. #define R_SHARED_RAM_ADDR__base_addr__BITNR 8
  638. #define R_SHARED_RAM_ADDR__base_addr__WIDTH 22
  639. /*
  640. !* General config registers
  641. !*/
  642. #define R_GEN_CONFIG (IO_TYPECAST_UDWORD 0xb000002c)
  643. #define R_GEN_CONFIG__par_w__BITNR 31
  644. #define R_GEN_CONFIG__par_w__WIDTH 1
  645. #define R_GEN_CONFIG__par_w__select 1
  646. #define R_GEN_CONFIG__par_w__disable 0
  647. #define R_GEN_CONFIG__usb2__BITNR 30
  648. #define R_GEN_CONFIG__usb2__WIDTH 1
  649. #define R_GEN_CONFIG__usb2__select 1
  650. #define R_GEN_CONFIG__usb2__disable 0
  651. #define R_GEN_CONFIG__usb1__BITNR 29
  652. #define R_GEN_CONFIG__usb1__WIDTH 1
  653. #define R_GEN_CONFIG__usb1__select 1
  654. #define R_GEN_CONFIG__usb1__disable 0
  655. #define R_GEN_CONFIG__g24dir__BITNR 27
  656. #define R_GEN_CONFIG__g24dir__WIDTH 1
  657. #define R_GEN_CONFIG__g24dir__in 0
  658. #define R_GEN_CONFIG__g24dir__out 1
  659. #define R_GEN_CONFIG__g16_23dir__BITNR 26
  660. #define R_GEN_CONFIG__g16_23dir__WIDTH 1
  661. #define R_GEN_CONFIG__g16_23dir__in 0
  662. #define R_GEN_CONFIG__g16_23dir__out 1
  663. #define R_GEN_CONFIG__g8_15dir__BITNR 25
  664. #define R_GEN_CONFIG__g8_15dir__WIDTH 1
  665. #define R_GEN_CONFIG__g8_15dir__in 0
  666. #define R_GEN_CONFIG__g8_15dir__out 1
  667. #define R_GEN_CONFIG__g0dir__BITNR 24
  668. #define R_GEN_CONFIG__g0dir__WIDTH 1
  669. #define R_GEN_CONFIG__g0dir__in 0
  670. #define R_GEN_CONFIG__g0dir__out 1
  671. #define R_GEN_CONFIG__dma9__BITNR 23
  672. #define R_GEN_CONFIG__dma9__WIDTH 1
  673. #define R_GEN_CONFIG__dma9__usb 0
  674. #define R_GEN_CONFIG__dma9__serial1 1
  675. #define R_GEN_CONFIG__dma8__BITNR 22
  676. #define R_GEN_CONFIG__dma8__WIDTH 1
  677. #define R_GEN_CONFIG__dma8__usb 0
  678. #define R_GEN_CONFIG__dma8__serial1 1
  679. #define R_GEN_CONFIG__dma7__BITNR 20
  680. #define R_GEN_CONFIG__dma7__WIDTH 2
  681. #define R_GEN_CONFIG__dma7__unused 0
  682. #define R_GEN_CONFIG__dma7__serial0 1
  683. #define R_GEN_CONFIG__dma7__extdma1 2
  684. #define R_GEN_CONFIG__dma7__intdma6 3
  685. #define R_GEN_CONFIG__dma6__BITNR 18
  686. #define R_GEN_CONFIG__dma6__WIDTH 2
  687. #define R_GEN_CONFIG__dma6__unused 0
  688. #define R_GEN_CONFIG__dma6__serial0 1
  689. #define R_GEN_CONFIG__dma6__extdma1 2
  690. #define R_GEN_CONFIG__dma6__intdma7 3
  691. #define R_GEN_CONFIG__dma5__BITNR 16
  692. #define R_GEN_CONFIG__dma5__WIDTH 2
  693. #define R_GEN_CONFIG__dma5__par1 0
  694. #define R_GEN_CONFIG__dma5__scsi1 1
  695. #define R_GEN_CONFIG__dma5__serial3 2
  696. #define R_GEN_CONFIG__dma5__extdma0 3
  697. #define R_GEN_CONFIG__dma4__BITNR 14
  698. #define R_GEN_CONFIG__dma4__WIDTH 2
  699. #define R_GEN_CONFIG__dma4__par1 0
  700. #define R_GEN_CONFIG__dma4__scsi1 1
  701. #define R_GEN_CONFIG__dma4__serial3 2
  702. #define R_GEN_CONFIG__dma4__extdma0 3
  703. #define R_GEN_CONFIG__dma3__BITNR 12
  704. #define R_GEN_CONFIG__dma3__WIDTH 2
  705. #define R_GEN_CONFIG__dma3__par0 0
  706. #define R_GEN_CONFIG__dma3__scsi0 1
  707. #define R_GEN_CONFIG__dma3__serial2 2
  708. #define R_GEN_CONFIG__dma3__ata 3
  709. #define R_GEN_CONFIG__dma2__BITNR 10
  710. #define R_GEN_CONFIG__dma2__WIDTH 2
  711. #define R_GEN_CONFIG__dma2__par0 0
  712. #define R_GEN_CONFIG__dma2__scsi0 1
  713. #define R_GEN_CONFIG__dma2__serial2 2
  714. #define R_GEN_CONFIG__dma2__ata 3
  715. #define R_GEN_CONFIG__mio_w__BITNR 9
  716. #define R_GEN_CONFIG__mio_w__WIDTH 1
  717. #define R_GEN_CONFIG__mio_w__select 1
  718. #define R_GEN_CONFIG__mio_w__disable 0
  719. #define R_GEN_CONFIG__ser3__BITNR 8
  720. #define R_GEN_CONFIG__ser3__WIDTH 1
  721. #define R_GEN_CONFIG__ser3__select 1
  722. #define R_GEN_CONFIG__ser3__disable 0
  723. #define R_GEN_CONFIG__par1__BITNR 7
  724. #define R_GEN_CONFIG__par1__WIDTH 1
  725. #define R_GEN_CONFIG__par1__select 1
  726. #define R_GEN_CONFIG__par1__disable 0
  727. #define R_GEN_CONFIG__scsi0w__BITNR 6
  728. #define R_GEN_CONFIG__scsi0w__WIDTH 1
  729. #define R_GEN_CONFIG__scsi0w__select 1
  730. #define R_GEN_CONFIG__scsi0w__disable 0
  731. #define R_GEN_CONFIG__scsi1__BITNR 5
  732. #define R_GEN_CONFIG__scsi1__WIDTH 1
  733. #define R_GEN_CONFIG__scsi1__select 1
  734. #define R_GEN_CONFIG__scsi1__disable 0
  735. #define R_GEN_CONFIG__mio__BITNR 4
  736. #define R_GEN_CONFIG__mio__WIDTH 1
  737. #define R_GEN_CONFIG__mio__select 1
  738. #define R_GEN_CONFIG__mio__disable 0
  739. #define R_GEN_CONFIG__ser2__BITNR 3
  740. #define R_GEN_CONFIG__ser2__WIDTH 1
  741. #define R_GEN_CONFIG__ser2__select 1
  742. #define R_GEN_CONFIG__ser2__disable 0
  743. #define R_GEN_CONFIG__par0__BITNR 2
  744. #define R_GEN_CONFIG__par0__WIDTH 1
  745. #define R_GEN_CONFIG__par0__select 1
  746. #define R_GEN_CONFIG__par0__disable 0
  747. #define R_GEN_CONFIG__ata__BITNR 1
  748. #define R_GEN_CONFIG__ata__WIDTH 1
  749. #define R_GEN_CONFIG__ata__select 1
  750. #define R_GEN_CONFIG__ata__disable 0
  751. #define R_GEN_CONFIG__scsi0__BITNR 0
  752. #define R_GEN_CONFIG__scsi0__WIDTH 1
  753. #define R_GEN_CONFIG__scsi0__select 1
  754. #define R_GEN_CONFIG__scsi0__disable 0
  755. #define R_GEN_CONFIG_II (IO_TYPECAST_UDWORD 0xb0000034)
  756. #define R_GEN_CONFIG_II__sermode3__BITNR 6
  757. #define R_GEN_CONFIG_II__sermode3__WIDTH 1
  758. #define R_GEN_CONFIG_II__sermode3__async 0
  759. #define R_GEN_CONFIG_II__sermode3__sync 1
  760. #define R_GEN_CONFIG_II__sermode1__BITNR 4
  761. #define R_GEN_CONFIG_II__sermode1__WIDTH 1
  762. #define R_GEN_CONFIG_II__sermode1__async 0
  763. #define R_GEN_CONFIG_II__sermode1__sync 1
  764. #define R_GEN_CONFIG_II__ext_clk__BITNR 2
  765. #define R_GEN_CONFIG_II__ext_clk__WIDTH 1
  766. #define R_GEN_CONFIG_II__ext_clk__select 1
  767. #define R_GEN_CONFIG_II__ext_clk__disable 0
  768. #define R_GEN_CONFIG_II__ser2__BITNR 1
  769. #define R_GEN_CONFIG_II__ser2__WIDTH 1
  770. #define R_GEN_CONFIG_II__ser2__select 1
  771. #define R_GEN_CONFIG_II__ser2__disable 0
  772. #define R_GEN_CONFIG_II__ser3__BITNR 0
  773. #define R_GEN_CONFIG_II__ser3__WIDTH 1
  774. #define R_GEN_CONFIG_II__ser3__select 1
  775. #define R_GEN_CONFIG_II__ser3__disable 0
  776. #define R_PORT_G_DATA (IO_TYPECAST_UDWORD 0xb0000028)
  777. #define R_PORT_G_DATA__data__BITNR 0
  778. #define R_PORT_G_DATA__data__WIDTH 32
  779. /*
  780. !* General port configuration registers
  781. !*/
  782. #define R_PORT_PA_SET (IO_TYPECAST_UDWORD 0xb0000030)
  783. #define R_PORT_PA_SET__dir7__BITNR 15
  784. #define R_PORT_PA_SET__dir7__WIDTH 1
  785. #define R_PORT_PA_SET__dir7__input 0
  786. #define R_PORT_PA_SET__dir7__output 1
  787. #define R_PORT_PA_SET__dir6__BITNR 14
  788. #define R_PORT_PA_SET__dir6__WIDTH 1
  789. #define R_PORT_PA_SET__dir6__input 0
  790. #define R_PORT_PA_SET__dir6__output 1
  791. #define R_PORT_PA_SET__dir5__BITNR 13
  792. #define R_PORT_PA_SET__dir5__WIDTH 1
  793. #define R_PORT_PA_SET__dir5__input 0
  794. #define R_PORT_PA_SET__dir5__output 1
  795. #define R_PORT_PA_SET__dir4__BITNR 12
  796. #define R_PORT_PA_SET__dir4__WIDTH 1
  797. #define R_PORT_PA_SET__dir4__input 0
  798. #define R_PORT_PA_SET__dir4__output 1
  799. #define R_PORT_PA_SET__dir3__BITNR 11
  800. #define R_PORT_PA_SET__dir3__WIDTH 1
  801. #define R_PORT_PA_SET__dir3__input 0
  802. #define R_PORT_PA_SET__dir3__output 1
  803. #define R_PORT_PA_SET__dir2__BITNR 10
  804. #define R_PORT_PA_SET__dir2__WIDTH 1
  805. #define R_PORT_PA_SET__dir2__input 0
  806. #define R_PORT_PA_SET__dir2__output 1
  807. #define R_PORT_PA_SET__dir1__BITNR 9
  808. #define R_PORT_PA_SET__dir1__WIDTH 1
  809. #define R_PORT_PA_SET__dir1__input 0
  810. #define R_PORT_PA_SET__dir1__output 1
  811. #define R_PORT_PA_SET__dir0__BITNR 8
  812. #define R_PORT_PA_SET__dir0__WIDTH 1
  813. #define R_PORT_PA_SET__dir0__input 0
  814. #define R_PORT_PA_SET__dir0__output 1
  815. #define R_PORT_PA_SET__data_out__BITNR 0
  816. #define R_PORT_PA_SET__data_out__WIDTH 8
  817. #define R_PORT_PA_DATA (IO_TYPECAST_BYTE 0xb0000030)
  818. #define R_PORT_PA_DATA__data_out__BITNR 0
  819. #define R_PORT_PA_DATA__data_out__WIDTH 8
  820. #define R_PORT_PA_DIR (IO_TYPECAST_BYTE 0xb0000031)
  821. #define R_PORT_PA_DIR__dir7__BITNR 7
  822. #define R_PORT_PA_DIR__dir7__WIDTH 1
  823. #define R_PORT_PA_DIR__dir7__input 0
  824. #define R_PORT_PA_DIR__dir7__output 1
  825. #define R_PORT_PA_DIR__dir6__BITNR 6
  826. #define R_PORT_PA_DIR__dir6__WIDTH 1
  827. #define R_PORT_PA_DIR__dir6__input 0
  828. #define R_PORT_PA_DIR__dir6__output 1
  829. #define R_PORT_PA_DIR__dir5__BITNR 5
  830. #define R_PORT_PA_DIR__dir5__WIDTH 1
  831. #define R_PORT_PA_DIR__dir5__input 0
  832. #define R_PORT_PA_DIR__dir5__output 1
  833. #define R_PORT_PA_DIR__dir4__BITNR 4
  834. #define R_PORT_PA_DIR__dir4__WIDTH 1
  835. #define R_PORT_PA_DIR__dir4__input 0
  836. #define R_PORT_PA_DIR__dir4__output 1
  837. #define R_PORT_PA_DIR__dir3__BITNR 3
  838. #define R_PORT_PA_DIR__dir3__WIDTH 1
  839. #define R_PORT_PA_DIR__dir3__input 0
  840. #define R_PORT_PA_DIR__dir3__output 1
  841. #define R_PORT_PA_DIR__dir2__BITNR 2
  842. #define R_PORT_PA_DIR__dir2__WIDTH 1
  843. #define R_PORT_PA_DIR__dir2__input 0
  844. #define R_PORT_PA_DIR__dir2__output 1
  845. #define R_PORT_PA_DIR__dir1__BITNR 1
  846. #define R_PORT_PA_DIR__dir1__WIDTH 1
  847. #define R_PORT_PA_DIR__dir1__input 0
  848. #define R_PORT_PA_DIR__dir1__output 1
  849. #define R_PORT_PA_DIR__dir0__BITNR 0
  850. #define R_PORT_PA_DIR__dir0__WIDTH 1
  851. #define R_PORT_PA_DIR__dir0__input 0
  852. #define R_PORT_PA_DIR__dir0__output 1
  853. #define R_PORT_PA_READ (IO_TYPECAST_RO_UDWORD 0xb0000030)
  854. #define R_PORT_PA_READ__data_in__BITNR 0
  855. #define R_PORT_PA_READ__data_in__WIDTH 8
  856. #define R_PORT_PB_SET (IO_TYPECAST_UDWORD 0xb0000038)
  857. #define R_PORT_PB_SET__syncser3__BITNR 29
  858. #define R_PORT_PB_SET__syncser3__WIDTH 1
  859. #define R_PORT_PB_SET__syncser3__port_cs 0
  860. #define R_PORT_PB_SET__syncser3__ss3extra 1
  861. #define R_PORT_PB_SET__syncser1__BITNR 28
  862. #define R_PORT_PB_SET__syncser1__WIDTH 1
  863. #define R_PORT_PB_SET__syncser1__port_cs 0
  864. #define R_PORT_PB_SET__syncser1__ss1extra 1
  865. #define R_PORT_PB_SET__i2c_en__BITNR 27
  866. #define R_PORT_PB_SET__i2c_en__WIDTH 1
  867. #define R_PORT_PB_SET__i2c_en__off 0
  868. #define R_PORT_PB_SET__i2c_en__on 1
  869. #define R_PORT_PB_SET__i2c_d__BITNR 26
  870. #define R_PORT_PB_SET__i2c_d__WIDTH 1
  871. #define R_PORT_PB_SET__i2c_clk__BITNR 25
  872. #define R_PORT_PB_SET__i2c_clk__WIDTH 1
  873. #define R_PORT_PB_SET__i2c_oe___BITNR 24
  874. #define R_PORT_PB_SET__i2c_oe___WIDTH 1
  875. #define R_PORT_PB_SET__i2c_oe___enable 0
  876. #define R_PORT_PB_SET__i2c_oe___disable 1
  877. #define R_PORT_PB_SET__cs7__BITNR 23
  878. #define R_PORT_PB_SET__cs7__WIDTH 1
  879. #define R_PORT_PB_SET__cs7__port 0
  880. #define R_PORT_PB_SET__cs7__cs 1
  881. #define R_PORT_PB_SET__cs6__BITNR 22
  882. #define R_PORT_PB_SET__cs6__WIDTH 1
  883. #define R_PORT_PB_SET__cs6__port 0
  884. #define R_PORT_PB_SET__cs6__cs 1
  885. #define R_PORT_PB_SET__cs5__BITNR 21
  886. #define R_PORT_PB_SET__cs5__WIDTH 1
  887. #define R_PORT_PB_SET__cs5__port 0
  888. #define R_PORT_PB_SET__cs5__cs 1
  889. #define R_PORT_PB_SET__cs4__BITNR 20
  890. #define R_PORT_PB_SET__cs4__WIDTH 1
  891. #define R_PORT_PB_SET__cs4__port 0
  892. #define R_PORT_PB_SET__cs4__cs 1
  893. #define R_PORT_PB_SET__cs3__BITNR 19
  894. #define R_PORT_PB_SET__cs3__WIDTH 1
  895. #define R_PORT_PB_SET__cs3__port 0
  896. #define R_PORT_PB_SET__cs3__cs 1
  897. #define R_PORT_PB_SET__cs2__BITNR 18
  898. #define R_PORT_PB_SET__cs2__WIDTH 1
  899. #define R_PORT_PB_SET__cs2__port 0
  900. #define R_PORT_PB_SET__cs2__cs 1
  901. #define R_PORT_PB_SET__scsi1__BITNR 17
  902. #define R_PORT_PB_SET__scsi1__WIDTH 1
  903. #define R_PORT_PB_SET__scsi1__port_cs 0
  904. #define R_PORT_PB_SET__scsi1__enph 1
  905. #define R_PORT_PB_SET__scsi0__BITNR 16
  906. #define R_PORT_PB_SET__scsi0__WIDTH 1
  907. #define R_PORT_PB_SET__scsi0__port_cs 0
  908. #define R_PORT_PB_SET__scsi0__enph 1
  909. #define R_PORT_PB_SET__dir7__BITNR 15
  910. #define R_PORT_PB_SET__dir7__WIDTH 1
  911. #define R_PORT_PB_SET__dir7__input 0
  912. #define R_PORT_PB_SET__dir7__output 1
  913. #define R_PORT_PB_SET__dir6__BITNR 14
  914. #define R_PORT_PB_SET__dir6__WIDTH 1
  915. #define R_PORT_PB_SET__dir6__input 0
  916. #define R_PORT_PB_SET__dir6__output 1
  917. #define R_PORT_PB_SET__dir5__BITNR 13
  918. #define R_PORT_PB_SET__dir5__WIDTH 1
  919. #define R_PORT_PB_SET__dir5__input 0
  920. #define R_PORT_PB_SET__dir5__output 1
  921. #define R_PORT_PB_SET__dir4__BITNR 12
  922. #define R_PORT_PB_SET__dir4__WIDTH 1
  923. #define R_PORT_PB_SET__dir4__input 0
  924. #define R_PORT_PB_SET__dir4__output 1
  925. #define R_PORT_PB_SET__dir3__BITNR 11
  926. #define R_PORT_PB_SET__dir3__WIDTH 1
  927. #define R_PORT_PB_SET__dir3__input 0
  928. #define R_PORT_PB_SET__dir3__output 1
  929. #define R_PORT_PB_SET__dir2__BITNR 10
  930. #define R_PORT_PB_SET__dir2__WIDTH 1
  931. #define R_PORT_PB_SET__dir2__input 0
  932. #define R_PORT_PB_SET__dir2__output 1
  933. #define R_PORT_PB_SET__dir1__BITNR 9
  934. #define R_PORT_PB_SET__dir1__WIDTH 1
  935. #define R_PORT_PB_SET__dir1__input 0
  936. #define R_PORT_PB_SET__dir1__output 1
  937. #define R_PORT_PB_SET__dir0__BITNR 8
  938. #define R_PORT_PB_SET__dir0__WIDTH 1
  939. #define R_PORT_PB_SET__dir0__input 0
  940. #define R_PORT_PB_SET__dir0__output 1
  941. #define R_PORT_PB_SET__data_out__BITNR 0
  942. #define R_PORT_PB_SET__data_out__WIDTH 8
  943. #define R_PORT_PB_DATA (IO_TYPECAST_BYTE 0xb0000038)
  944. #define R_PORT_PB_DATA__data_out__BITNR 0
  945. #define R_PORT_PB_DATA__data_out__WIDTH 8
  946. #define R_PORT_PB_DIR (IO_TYPECAST_BYTE 0xb0000039)
  947. #define R_PORT_PB_DIR__dir7__BITNR 7
  948. #define R_PORT_PB_DIR__dir7__WIDTH 1
  949. #define R_PORT_PB_DIR__dir7__input 0
  950. #define R_PORT_PB_DIR__dir7__output 1
  951. #define R_PORT_PB_DIR__dir6__BITNR 6
  952. #define R_PORT_PB_DIR__dir6__WIDTH 1
  953. #define R_PORT_PB_DIR__dir6__input 0
  954. #define R_PORT_PB_DIR__dir6__output 1
  955. #define R_PORT_PB_DIR__dir5__BITNR 5
  956. #define R_PORT_PB_DIR__dir5__WIDTH 1
  957. #define R_PORT_PB_DIR__dir5__input 0
  958. #define R_PORT_PB_DIR__dir5__output 1
  959. #define R_PORT_PB_DIR__dir4__BITNR 4
  960. #define R_PORT_PB_DIR__dir4__WIDTH 1
  961. #define R_PORT_PB_DIR__dir4__input 0
  962. #define R_PORT_PB_DIR__dir4__output 1
  963. #define R_PORT_PB_DIR__dir3__BITNR 3
  964. #define R_PORT_PB_DIR__dir3__WIDTH 1
  965. #define R_PORT_PB_DIR__dir3__input 0
  966. #define R_PORT_PB_DIR__dir3__output 1
  967. #define R_PORT_PB_DIR__dir2__BITNR 2
  968. #define R_PORT_PB_DIR__dir2__WIDTH 1
  969. #define R_PORT_PB_DIR__dir2__input 0
  970. #define R_PORT_PB_DIR__dir2__output 1
  971. #define R_PORT_PB_DIR__dir1__BITNR 1
  972. #define R_PORT_PB_DIR__dir1__WIDTH 1
  973. #define R_PORT_PB_DIR__dir1__input 0
  974. #define R_PORT_PB_DIR__dir1__output 1
  975. #define R_PORT_PB_DIR__dir0__BITNR 0
  976. #define R_PORT_PB_DIR__dir0__WIDTH 1
  977. #define R_PORT_PB_DIR__dir0__input 0
  978. #define R_PORT_PB_DIR__dir0__output 1
  979. #define R_PORT_PB_CONFIG (IO_TYPECAST_BYTE 0xb000003a)
  980. #define R_PORT_PB_CONFIG__cs7__BITNR 7
  981. #define R_PORT_PB_CONFIG__cs7__WIDTH 1
  982. #define R_PORT_PB_CONFIG__cs7__port 0
  983. #define R_PORT_PB_CONFIG__cs7__cs 1
  984. #define R_PORT_PB_CONFIG__cs6__BITNR 6
  985. #define R_PORT_PB_CONFIG__cs6__WIDTH 1
  986. #define R_PORT_PB_CONFIG__cs6__port 0
  987. #define R_PORT_PB_CONFIG__cs6__cs 1
  988. #define R_PORT_PB_CONFIG__cs5__BITNR 5
  989. #define R_PORT_PB_CONFIG__cs5__WIDTH 1
  990. #define R_PORT_PB_CONFIG__cs5__port 0
  991. #define R_PORT_PB_CONFIG__cs5__cs 1
  992. #define R_PORT_PB_CONFIG__cs4__BITNR 4
  993. #define R_PORT_PB_CONFIG__cs4__WIDTH 1
  994. #define R_PORT_PB_CONFIG__cs4__port 0
  995. #define R_PORT_PB_CONFIG__cs4__cs 1
  996. #define R_PORT_PB_CONFIG__cs3__BITNR 3
  997. #define R_PORT_PB_CONFIG__cs3__WIDTH 1
  998. #define R_PORT_PB_CONFIG__cs3__port 0
  999. #define R_PORT_PB_CONFIG__cs3__cs 1
  1000. #define R_PORT_PB_CONFIG__cs2__BITNR 2
  1001. #define R_PORT_PB_CONFIG__cs2__WIDTH 1
  1002. #define R_PORT_PB_CONFIG__cs2__port 0
  1003. #define R_PORT_PB_CONFIG__cs2__cs 1
  1004. #define R_PORT_PB_CONFIG__scsi1__BITNR 1
  1005. #define R_PORT_PB_CONFIG__scsi1__WIDTH 1
  1006. #define R_PORT_PB_CONFIG__scsi1__port_cs 0
  1007. #define R_PORT_PB_CONFIG__scsi1__enph 1
  1008. #define R_PORT_PB_CONFIG__scsi0__BITNR 0
  1009. #define R_PORT_PB_CONFIG__scsi0__WIDTH 1
  1010. #define R_PORT_PB_CONFIG__scsi0__port_cs 0
  1011. #define R_PORT_PB_CONFIG__scsi0__enph 1
  1012. #define R_PORT_PB_I2C (IO_TYPECAST_BYTE 0xb000003b)
  1013. #define R_PORT_PB_I2C__syncser3__BITNR 5
  1014. #define R_PORT_PB_I2C__syncser3__WIDTH 1
  1015. #define R_PORT_PB_I2C__syncser3__port_cs 0
  1016. #define R_PORT_PB_I2C__syncser3__ss3extra 1
  1017. #define R_PORT_PB_I2C__syncser1__BITNR 4
  1018. #define R_PORT_PB_I2C__syncser1__WIDTH 1
  1019. #define R_PORT_PB_I2C__syncser1__port_cs 0
  1020. #define R_PORT_PB_I2C__syncser1__ss1extra 1
  1021. #define R_PORT_PB_I2C__i2c_en__BITNR 3
  1022. #define R_PORT_PB_I2C__i2c_en__WIDTH 1
  1023. #define R_PORT_PB_I2C__i2c_en__off 0
  1024. #define R_PORT_PB_I2C__i2c_en__on 1
  1025. #define R_PORT_PB_I2C__i2c_d__BITNR 2
  1026. #define R_PORT_PB_I2C__i2c_d__WIDTH 1
  1027. #define R_PORT_PB_I2C__i2c_clk__BITNR 1
  1028. #define R_PORT_PB_I2C__i2c_clk__WIDTH 1
  1029. #define R_PORT_PB_I2C__i2c_oe___BITNR 0
  1030. #define R_PORT_PB_I2C__i2c_oe___WIDTH 1
  1031. #define R_PORT_PB_I2C__i2c_oe___enable 0
  1032. #define R_PORT_PB_I2C__i2c_oe___disable 1
  1033. #define R_PORT_PB_READ (IO_TYPECAST_RO_UDWORD 0xb0000038)
  1034. #define R_PORT_PB_READ__data_in__BITNR 0
  1035. #define R_PORT_PB_READ__data_in__WIDTH 8
  1036. /*
  1037. !* Serial port registers
  1038. !*/
  1039. #define R_SERIAL0_CTRL (IO_TYPECAST_UDWORD 0xb0000060)
  1040. #define R_SERIAL0_CTRL__tr_baud__BITNR 28
  1041. #define R_SERIAL0_CTRL__tr_baud__WIDTH 4
  1042. #define R_SERIAL0_CTRL__tr_baud__c300Hz 0
  1043. #define R_SERIAL0_CTRL__tr_baud__c600Hz 1
  1044. #define R_SERIAL0_CTRL__tr_baud__c1200Hz 2
  1045. #define R_SERIAL0_CTRL__tr_baud__c2400Hz 3
  1046. #define R_SERIAL0_CTRL__tr_baud__c4800Hz 4
  1047. #define R_SERIAL0_CTRL__tr_baud__c9600Hz 5
  1048. #define R_SERIAL0_CTRL__tr_baud__c19k2Hz 6
  1049. #define R_SERIAL0_CTRL__tr_baud__c38k4Hz 7
  1050. #define R_SERIAL0_CTRL__tr_baud__c57k6Hz 8
  1051. #define R_SERIAL0_CTRL__tr_baud__c115k2Hz 9
  1052. #define R_SERIAL0_CTRL__tr_baud__c230k4Hz 10
  1053. #define R_SERIAL0_CTRL__tr_baud__c460k8Hz 11
  1054. #define R_SERIAL0_CTRL__tr_baud__c921k6Hz 12
  1055. #define R_SERIAL0_CTRL__tr_baud__c1843k2Hz 13
  1056. #define R_SERIAL0_CTRL__tr_baud__c6250kHz 14
  1057. #define R_SERIAL0_CTRL__tr_baud__reserved 15
  1058. #define R_SERIAL0_CTRL__rec_baud__BITNR 24
  1059. #define R_SERIAL0_CTRL__rec_baud__WIDTH 4
  1060. #define R_SERIAL0_CTRL__rec_baud__c300Hz 0
  1061. #define R_SERIAL0_CTRL__rec_baud__c600Hz 1
  1062. #define R_SERIAL0_CTRL__rec_baud__c1200Hz 2
  1063. #define R_SERIAL0_CTRL__rec_baud__c2400Hz 3
  1064. #define R_SERIAL0_CTRL__rec_baud__c4800Hz 4
  1065. #define R_SERIAL0_CTRL__rec_baud__c9600Hz 5
  1066. #define R_SERIAL0_CTRL__rec_baud__c19k2Hz 6
  1067. #define R_SERIAL0_CTRL__rec_baud__c38k4Hz 7
  1068. #define R_SERIAL0_CTRL__rec_baud__c57k6Hz 8
  1069. #define R_SERIAL0_CTRL__rec_baud__c115k2Hz 9
  1070. #define R_SERIAL0_CTRL__rec_baud__c230k4Hz 10
  1071. #define R_SERIAL0_CTRL__rec_baud__c460k8Hz 11
  1072. #define R_SERIAL0_CTRL__rec_baud__c921k6Hz 12
  1073. #define R_SERIAL0_CTRL__rec_baud__c1843k2Hz 13
  1074. #define R_SERIAL0_CTRL__rec_baud__c6250kHz 14
  1075. #define R_SERIAL0_CTRL__rec_baud__reserved 15
  1076. #define R_SERIAL0_CTRL__dma_err__BITNR 23
  1077. #define R_SERIAL0_CTRL__dma_err__WIDTH 1
  1078. #define R_SERIAL0_CTRL__dma_err__stop 0
  1079. #define R_SERIAL0_CTRL__dma_err__ignore 1
  1080. #define R_SERIAL0_CTRL__rec_enable__BITNR 22
  1081. #define R_SERIAL0_CTRL__rec_enable__WIDTH 1
  1082. #define R_SERIAL0_CTRL__rec_enable__disable 0
  1083. #define R_SERIAL0_CTRL__rec_enable__enable 1
  1084. #define R_SERIAL0_CTRL__rts___BITNR 21
  1085. #define R_SERIAL0_CTRL__rts___WIDTH 1
  1086. #define R_SERIAL0_CTRL__rts___active 0
  1087. #define R_SERIAL0_CTRL__rts___inactive 1
  1088. #define R_SERIAL0_CTRL__sampling__BITNR 20
  1089. #define R_SERIAL0_CTRL__sampling__WIDTH 1
  1090. #define R_SERIAL0_CTRL__sampling__middle 0
  1091. #define R_SERIAL0_CTRL__sampling__majority 1
  1092. #define R_SERIAL0_CTRL__rec_stick_par__BITNR 19
  1093. #define R_SERIAL0_CTRL__rec_stick_par__WIDTH 1
  1094. #define R_SERIAL0_CTRL__rec_stick_par__normal 0
  1095. #define R_SERIAL0_CTRL__rec_stick_par__stick 1
  1096. #define R_SERIAL0_CTRL__rec_par__BITNR 18
  1097. #define R_SERIAL0_CTRL__rec_par__WIDTH 1
  1098. #define R_SERIAL0_CTRL__rec_par__even 0
  1099. #define R_SERIAL0_CTRL__rec_par__odd 1
  1100. #define R_SERIAL0_CTRL__rec_par_en__BITNR 17
  1101. #define R_SERIAL0_CTRL__rec_par_en__WIDTH 1
  1102. #define R_SERIAL0_CTRL__rec_par_en__disable 0
  1103. #define R_SERIAL0_CTRL__rec_par_en__enable 1
  1104. #define R_SERIAL0_CTRL__rec_bitnr__BITNR 16
  1105. #define R_SERIAL0_CTRL__rec_bitnr__WIDTH 1
  1106. #define R_SERIAL0_CTRL__rec_bitnr__rec_8bit 0
  1107. #define R_SERIAL0_CTRL__rec_bitnr__rec_7bit 1
  1108. #define R_SERIAL0_CTRL__txd__BITNR 15
  1109. #define R_SERIAL0_CTRL__txd__WIDTH 1
  1110. #define R_SERIAL0_CTRL__tr_enable__BITNR 14
  1111. #define R_SERIAL0_CTRL__tr_enable__WIDTH 1
  1112. #define R_SERIAL0_CTRL__tr_enable__disable 0
  1113. #define R_SERIAL0_CTRL__tr_enable__enable 1
  1114. #define R_SERIAL0_CTRL__auto_cts__BITNR 13
  1115. #define R_SERIAL0_CTRL__auto_cts__WIDTH 1
  1116. #define R_SERIAL0_CTRL__auto_cts__disabled 0
  1117. #define R_SERIAL0_CTRL__auto_cts__active 1
  1118. #define R_SERIAL0_CTRL__stop_bits__BITNR 12
  1119. #define R_SERIAL0_CTRL__stop_bits__WIDTH 1
  1120. #define R_SERIAL0_CTRL__stop_bits__one_bit 0
  1121. #define R_SERIAL0_CTRL__stop_bits__two_bits 1
  1122. #define R_SERIAL0_CTRL__tr_stick_par__BITNR 11
  1123. #define R_SERIAL0_CTRL__tr_stick_par__WIDTH 1
  1124. #define R_SERIAL0_CTRL__tr_stick_par__normal 0
  1125. #define R_SERIAL0_CTRL__tr_stick_par__stick 1
  1126. #define R_SERIAL0_CTRL__tr_par__BITNR 10
  1127. #define R_SERIAL0_CTRL__tr_par__WIDTH 1
  1128. #define R_SERIAL0_CTRL__tr_par__even 0
  1129. #define R_SERIAL0_CTRL__tr_par__odd 1
  1130. #define R_SERIAL0_CTRL__tr_par_en__BITNR 9
  1131. #define R_SERIAL0_CTRL__tr_par_en__WIDTH 1
  1132. #define R_SERIAL0_CTRL__tr_par_en__disable 0
  1133. #define R_SERIAL0_CTRL__tr_par_en__enable 1
  1134. #define R_SERIAL0_CTRL__tr_bitnr__BITNR 8
  1135. #define R_SERIAL0_CTRL__tr_bitnr__WIDTH 1
  1136. #define R_SERIAL0_CTRL__tr_bitnr__tr_8bit 0
  1137. #define R_SERIAL0_CTRL__tr_bitnr__tr_7bit 1
  1138. #define R_SERIAL0_CTRL__data_out__BITNR 0
  1139. #define R_SERIAL0_CTRL__data_out__WIDTH 8
  1140. #define R_SERIAL0_BAUD (IO_TYPECAST_BYTE 0xb0000063)
  1141. #define R_SERIAL0_BAUD__tr_baud__BITNR 4
  1142. #define R_SERIAL0_BAUD__tr_baud__WIDTH 4
  1143. #define R_SERIAL0_BAUD__tr_baud__c300Hz 0
  1144. #define R_SERIAL0_BAUD__tr_baud__c600Hz 1
  1145. #define R_SERIAL0_BAUD__tr_baud__c1200Hz 2
  1146. #define R_SERIAL0_BAUD__tr_baud__c2400Hz 3
  1147. #define R_SERIAL0_BAUD__tr_baud__c4800Hz 4
  1148. #define R_SERIAL0_BAUD__tr_baud__c9600Hz 5
  1149. #define R_SERIAL0_BAUD__tr_baud__c19k2Hz 6
  1150. #define R_SERIAL0_BAUD__tr_baud__c38k4Hz 7
  1151. #define R_SERIAL0_BAUD__tr_baud__c57k6Hz 8
  1152. #define R_SERIAL0_BAUD__tr_baud__c115k2Hz 9
  1153. #define R_SERIAL0_BAUD__tr_baud__c230k4Hz 10
  1154. #define R_SERIAL0_BAUD__tr_baud__c460k8Hz 11
  1155. #define R_SERIAL0_BAUD__tr_baud__c921k6Hz 12
  1156. #define R_SERIAL0_BAUD__tr_baud__c1843k2Hz 13
  1157. #define R_SERIAL0_BAUD__tr_baud__c6250kHz 14
  1158. #define R_SERIAL0_BAUD__tr_baud__reserved 15
  1159. #define R_SERIAL0_BAUD__rec_baud__BITNR 0
  1160. #define R_SERIAL0_BAUD__rec_baud__WIDTH 4
  1161. #define R_SERIAL0_BAUD__rec_baud__c300Hz 0
  1162. #define R_SERIAL0_BAUD__rec_baud__c600Hz 1
  1163. #define R_SERIAL0_BAUD__rec_baud__c1200Hz 2
  1164. #define R_SERIAL0_BAUD__rec_baud__c2400Hz 3
  1165. #define R_SERIAL0_BAUD__rec_baud__c4800Hz 4
  1166. #define R_SERIAL0_BAUD__rec_baud__c9600Hz 5
  1167. #define R_SERIAL0_BAUD__rec_baud__c19k2Hz 6
  1168. #define R_SERIAL0_BAUD__rec_baud__c38k4Hz 7
  1169. #define R_SERIAL0_BAUD__rec_baud__c57k6Hz 8
  1170. #define R_SERIAL0_BAUD__rec_baud__c115k2Hz 9
  1171. #define R_SERIAL0_BAUD__rec_baud__c230k4Hz 10
  1172. #define R_SERIAL0_BAUD__rec_baud__c460k8Hz 11
  1173. #define R_SERIAL0_BAUD__rec_baud__c921k6Hz 12
  1174. #define R_SERIAL0_BAUD__rec_baud__c1843k2Hz 13
  1175. #define R_SERIAL0_BAUD__rec_baud__c6250kHz 14
  1176. #define R_SERIAL0_BAUD__rec_baud__reserved 15
  1177. #define R_SERIAL0_REC_CTRL (IO_TYPECAST_BYTE 0xb0000062)
  1178. #define R_SERIAL0_REC_CTRL__dma_err__BITNR 7
  1179. #define R_SERIAL0_REC_CTRL__dma_err__WIDTH 1
  1180. #define R_SERIAL0_REC_CTRL__dma_err__stop 0
  1181. #define R_SERIAL0_REC_CTRL__dma_err__ignore 1
  1182. #define R_SERIAL0_REC_CTRL__rec_enable__BITNR 6
  1183. #define R_SERIAL0_REC_CTRL__rec_enable__WIDTH 1
  1184. #define R_SERIAL0_REC_CTRL__rec_enable__disable 0
  1185. #define R_SERIAL0_REC_CTRL__rec_enable__enable 1
  1186. #define R_SERIAL0_REC_CTRL__rts___BITNR 5
  1187. #define R_SERIAL0_REC_CTRL__rts___WIDTH 1
  1188. #define R_SERIAL0_REC_CTRL__rts___active 0
  1189. #define R_SERIAL0_REC_CTRL__rts___inactive 1
  1190. #define R_SERIAL0_REC_CTRL__sampling__BITNR 4
  1191. #define R_SERIAL0_REC_CTRL__sampling__WIDTH 1
  1192. #define R_SERIAL0_REC_CTRL__sampling__middle 0
  1193. #define R_SERIAL0_REC_CTRL__sampling__majority 1
  1194. #define R_SERIAL0_REC_CTRL__rec_stick_par__BITNR 3
  1195. #define R_SERIAL0_REC_CTRL__rec_stick_par__WIDTH 1
  1196. #define R_SERIAL0_REC_CTRL__rec_stick_par__normal 0
  1197. #define R_SERIAL0_REC_CTRL__rec_stick_par__stick 1
  1198. #define R_SERIAL0_REC_CTRL__rec_par__BITNR 2
  1199. #define R_SERIAL0_REC_CTRL__rec_par__WIDTH 1
  1200. #define R_SERIAL0_REC_CTRL__rec_par__even 0
  1201. #define R_SERIAL0_REC_CTRL__rec_par__odd 1
  1202. #define R_SERIAL0_REC_CTRL__rec_par_en__BITNR 1
  1203. #define R_SERIAL0_REC_CTRL__rec_par_en__WIDTH 1
  1204. #define R_SERIAL0_REC_CTRL__rec_par_en__disable 0
  1205. #define R_SERIAL0_REC_CTRL__rec_par_en__enable 1
  1206. #define R_SERIAL0_REC_CTRL__rec_bitnr__BITNR 0
  1207. #define R_SERIAL0_REC_CTRL__rec_bitnr__WIDTH 1
  1208. #define R_SERIAL0_REC_CTRL__rec_bitnr__rec_8bit 0
  1209. #define R_SERIAL0_REC_CTRL__rec_bitnr__rec_7bit 1
  1210. #define R_SERIAL0_TR_CTRL (IO_TYPECAST_BYTE 0xb0000061)
  1211. #define R_SERIAL0_TR_CTRL__txd__BITNR 7
  1212. #define R_SERIAL0_TR_CTRL__txd__WIDTH 1
  1213. #define R_SERIAL0_TR_CTRL__tr_enable__BITNR 6
  1214. #define R_SERIAL0_TR_CTRL__tr_enable__WIDTH 1
  1215. #define R_SERIAL0_TR_CTRL__tr_enable__disable 0
  1216. #define R_SERIAL0_TR_CTRL__tr_enable__enable 1
  1217. #define R_SERIAL0_TR_CTRL__auto_cts__BITNR 5
  1218. #define R_SERIAL0_TR_CTRL__auto_cts__WIDTH 1
  1219. #define R_SERIAL0_TR_CTRL__auto_cts__disabled 0
  1220. #define R_SERIAL0_TR_CTRL__auto_cts__active 1
  1221. #define R_SERIAL0_TR_CTRL__stop_bits__BITNR 4
  1222. #define R_SERIAL0_TR_CTRL__stop_bits__WIDTH 1
  1223. #define R_SERIAL0_TR_CTRL__stop_bits__one_bit 0
  1224. #define R_SERIAL0_TR_CTRL__stop_bits__two_bits 1
  1225. #define R_SERIAL0_TR_CTRL__tr_stick_par__BITNR 3
  1226. #define R_SERIAL0_TR_CTRL__tr_stick_par__WIDTH 1
  1227. #define R_SERIAL0_TR_CTRL__tr_stick_par__normal 0
  1228. #define R_SERIAL0_TR_CTRL__tr_stick_par__stick 1
  1229. #define R_SERIAL0_TR_CTRL__tr_par__BITNR 2
  1230. #define R_SERIAL0_TR_CTRL__tr_par__WIDTH 1
  1231. #define R_SERIAL0_TR_CTRL__tr_par__even 0
  1232. #define R_SERIAL0_TR_CTRL__tr_par__odd 1
  1233. #define R_SERIAL0_TR_CTRL__tr_par_en__BITNR 1
  1234. #define R_SERIAL0_TR_CTRL__tr_par_en__WIDTH 1
  1235. #define R_SERIAL0_TR_CTRL__tr_par_en__disable 0
  1236. #define R_SERIAL0_TR_CTRL__tr_par_en__enable 1
  1237. #define R_SERIAL0_TR_CTRL__tr_bitnr__BITNR 0
  1238. #define R_SERIAL0_TR_CTRL__tr_bitnr__WIDTH 1
  1239. #define R_SERIAL0_TR_CTRL__tr_bitnr__tr_8bit 0
  1240. #define R_SERIAL0_TR_CTRL__tr_bitnr__tr_7bit 1
  1241. #define R_SERIAL0_TR_DATA (IO_TYPECAST_BYTE 0xb0000060)
  1242. #define R_SERIAL0_TR_DATA__data_out__BITNR 0
  1243. #define R_SERIAL0_TR_DATA__data_out__WIDTH 8
  1244. #define R_SERIAL0_READ (IO_TYPECAST_RO_UDWORD 0xb0000060)
  1245. #define R_SERIAL0_READ__xoff_detect__BITNR 15
  1246. #define R_SERIAL0_READ__xoff_detect__WIDTH 1
  1247. #define R_SERIAL0_READ__xoff_detect__no_xoff 0
  1248. #define R_SERIAL0_READ__xoff_detect__xoff 1
  1249. #define R_SERIAL0_READ__cts___BITNR 14
  1250. #define R_SERIAL0_READ__cts___WIDTH 1
  1251. #define R_SERIAL0_READ__cts___active 0
  1252. #define R_SERIAL0_READ__cts___inactive 1
  1253. #define R_SERIAL0_READ__tr_ready__BITNR 13
  1254. #define R_SERIAL0_READ__tr_ready__WIDTH 1
  1255. #define R_SERIAL0_READ__tr_ready__full 0
  1256. #define R_SERIAL0_READ__tr_ready__ready 1
  1257. #define R_SERIAL0_READ__rxd__BITNR 12
  1258. #define R_SERIAL0_READ__rxd__WIDTH 1
  1259. #define R_SERIAL0_READ__overrun__BITNR 11
  1260. #define R_SERIAL0_READ__overrun__WIDTH 1
  1261. #define R_SERIAL0_READ__overrun__no 0
  1262. #define R_SERIAL0_READ__overrun__yes 1
  1263. #define R_SERIAL0_READ__par_err__BITNR 10
  1264. #define R_SERIAL0_READ__par_err__WIDTH 1
  1265. #define R_SERIAL0_READ__par_err__no 0
  1266. #define R_SERIAL0_READ__par_err__yes 1
  1267. #define R_SERIAL0_READ__framing_err__BITNR 9
  1268. #define R_SERIAL0_READ__framing_err__WIDTH 1
  1269. #define R_SERIAL0_READ__framing_err__no 0
  1270. #define R_SERIAL0_READ__framing_err__yes 1
  1271. #define R_SERIAL0_READ__data_avail__BITNR 8
  1272. #define R_SERIAL0_READ__data_avail__WIDTH 1
  1273. #define R_SERIAL0_READ__data_avail__no 0
  1274. #define R_SERIAL0_READ__data_avail__yes 1
  1275. #define R_SERIAL0_READ__data_in__BITNR 0
  1276. #define R_SERIAL0_READ__data_in__WIDTH 8
  1277. #define R_SERIAL0_STATUS (IO_TYPECAST_RO_BYTE 0xb0000061)
  1278. #define R_SERIAL0_STATUS__xoff_detect__BITNR 7
  1279. #define R_SERIAL0_STATUS__xoff_detect__WIDTH 1
  1280. #define R_SERIAL0_STATUS__xoff_detect__no_xoff 0
  1281. #define R_SERIAL0_STATUS__xoff_detect__xoff 1
  1282. #define R_SERIAL0_STATUS__cts___BITNR 6
  1283. #define R_SERIAL0_STATUS__cts___WIDTH 1
  1284. #define R_SERIAL0_STATUS__cts___active 0
  1285. #define R_SERIAL0_STATUS__cts___inactive 1
  1286. #define R_SERIAL0_STATUS__tr_ready__BITNR 5
  1287. #define R_SERIAL0_STATUS__tr_ready__WIDTH 1
  1288. #define R_SERIAL0_STATUS__tr_ready__full 0
  1289. #define R_SERIAL0_STATUS__tr_ready__ready 1
  1290. #define R_SERIAL0_STATUS__rxd__BITNR 4
  1291. #define R_SERIAL0_STATUS__rxd__WIDTH 1
  1292. #define R_SERIAL0_STATUS__overrun__BITNR 3
  1293. #define R_SERIAL0_STATUS__overrun__WIDTH 1
  1294. #define R_SERIAL0_STATUS__overrun__no 0
  1295. #define R_SERIAL0_STATUS__overrun__yes 1
  1296. #define R_SERIAL0_STATUS__par_err__BITNR 2
  1297. #define R_SERIAL0_STATUS__par_err__WIDTH 1
  1298. #define R_SERIAL0_STATUS__par_err__no 0
  1299. #define R_SERIAL0_STATUS__par_err__yes 1
  1300. #define R_SERIAL0_STATUS__framing_err__BITNR 1
  1301. #define R_SERIAL0_STATUS__framing_err__WIDTH 1
  1302. #define R_SERIAL0_STATUS__framing_err__no 0
  1303. #define R_SERIAL0_STATUS__framing_err__yes 1
  1304. #define R_SERIAL0_STATUS__data_avail__BITNR 0
  1305. #define R_SERIAL0_STATUS__data_avail__WIDTH 1
  1306. #define R_SERIAL0_STATUS__data_avail__no 0
  1307. #define R_SERIAL0_STATUS__data_avail__yes 1
  1308. #define R_SERIAL0_REC_DATA (IO_TYPECAST_RO_BYTE 0xb0000060)
  1309. #define R_SERIAL0_REC_DATA__data_in__BITNR 0
  1310. #define R_SERIAL0_REC_DATA__data_in__WIDTH 8
  1311. #define R_SERIAL0_XOFF (IO_TYPECAST_UDWORD 0xb0000064)
  1312. #define R_SERIAL0_XOFF__tx_stop__BITNR 9
  1313. #define R_SERIAL0_XOFF__tx_stop__WIDTH 1
  1314. #define R_SERIAL0_XOFF__tx_stop__enable 0
  1315. #define R_SERIAL0_XOFF__tx_stop__stop 1
  1316. #define R_SERIAL0_XOFF__auto_xoff__BITNR 8
  1317. #define R_SERIAL0_XOFF__auto_xoff__WIDTH 1
  1318. #define R_SERIAL0_XOFF__auto_xoff__disable 0
  1319. #define R_SERIAL0_XOFF__auto_xoff__enable 1
  1320. #define R_SERIAL0_XOFF__xoff_char__BITNR 0
  1321. #define R_SERIAL0_XOFF__xoff_char__WIDTH 8
  1322. #define R_SERIAL1_CTRL (IO_TYPECAST_UDWORD 0xb0000068)
  1323. #define R_SERIAL1_CTRL__tr_baud__BITNR 28
  1324. #define R_SERIAL1_CTRL__tr_baud__WIDTH 4
  1325. #define R_SERIAL1_CTRL__tr_baud__c300Hz 0
  1326. #define R_SERIAL1_CTRL__tr_baud__c600Hz 1
  1327. #define R_SERIAL1_CTRL__tr_baud__c1200Hz 2
  1328. #define R_SERIAL1_CTRL__tr_baud__c2400Hz 3
  1329. #define R_SERIAL1_CTRL__tr_baud__c4800Hz 4
  1330. #define R_SERIAL1_CTRL__tr_baud__c9600Hz 5
  1331. #define R_SERIAL1_CTRL__tr_baud__c19k2Hz 6
  1332. #define R_SERIAL1_CTRL__tr_baud__c38k4Hz 7
  1333. #define R_SERIAL1_CTRL__tr_baud__c57k6Hz 8
  1334. #define R_SERIAL1_CTRL__tr_baud__c115k2Hz 9
  1335. #define R_SERIAL1_CTRL__tr_baud__c230k4Hz 10
  1336. #define R_SERIAL1_CTRL__tr_baud__c460k8Hz 11
  1337. #define R_SERIAL1_CTRL__tr_baud__c921k6Hz 12
  1338. #define R_SERIAL1_CTRL__tr_baud__c1843k2Hz 13
  1339. #define R_SERIAL1_CTRL__tr_baud__c6250kHz 14
  1340. #define R_SERIAL1_CTRL__tr_baud__reserved 15
  1341. #define R_SERIAL1_CTRL__rec_baud__BITNR 24
  1342. #define R_SERIAL1_CTRL__rec_baud__WIDTH 4
  1343. #define R_SERIAL1_CTRL__rec_baud__c300Hz 0
  1344. #define R_SERIAL1_CTRL__rec_baud__c600Hz 1
  1345. #define R_SERIAL1_CTRL__rec_baud__c1200Hz 2
  1346. #define R_SERIAL1_CTRL__rec_baud__c2400Hz 3
  1347. #define R_SERIAL1_CTRL__rec_baud__c4800Hz 4
  1348. #define R_SERIAL1_CTRL__rec_baud__c9600Hz 5
  1349. #define R_SERIAL1_CTRL__rec_baud__c19k2Hz 6
  1350. #define R_SERIAL1_CTRL__rec_baud__c38k4Hz 7
  1351. #define R_SERIAL1_CTRL__rec_baud__c57k6Hz 8
  1352. #define R_SERIAL1_CTRL__rec_baud__c115k2Hz 9
  1353. #define R_SERIAL1_CTRL__rec_baud__c230k4Hz 10
  1354. #define R_SERIAL1_CTRL__rec_baud__c460k8Hz 11
  1355. #define R_SERIAL1_CTRL__rec_baud__c921k6Hz 12
  1356. #define R_SERIAL1_CTRL__rec_baud__c1843k2Hz 13
  1357. #define R_SERIAL1_CTRL__rec_baud__c6250kHz 14
  1358. #define R_SERIAL1_CTRL__rec_baud__reserved 15
  1359. #define R_SERIAL1_CTRL__dma_err__BITNR 23
  1360. #define R_SERIAL1_CTRL__dma_err__WIDTH 1
  1361. #define R_SERIAL1_CTRL__dma_err__stop 0
  1362. #define R_SERIAL1_CTRL__dma_err__ignore 1
  1363. #define R_SERIAL1_CTRL__rec_enable__BITNR 22
  1364. #define R_SERIAL1_CTRL__rec_enable__WIDTH 1
  1365. #define R_SERIAL1_CTRL__rec_enable__disable 0
  1366. #define R_SERIAL1_CTRL__rec_enable__enable 1
  1367. #define R_SERIAL1_CTRL__rts___BITNR 21
  1368. #define R_SERIAL1_CTRL__rts___WIDTH 1
  1369. #define R_SERIAL1_CTRL__rts___active 0
  1370. #define R_SERIAL1_CTRL__rts___inactive 1
  1371. #define R_SERIAL1_CTRL__sampling__BITNR 20
  1372. #define R_SERIAL1_CTRL__sampling__WIDTH 1
  1373. #define R_SERIAL1_CTRL__sampling__middle 0
  1374. #define R_SERIAL1_CTRL__sampling__majority 1
  1375. #define R_SERIAL1_CTRL__rec_stick_par__BITNR 19
  1376. #define R_SERIAL1_CTRL__rec_stick_par__WIDTH 1
  1377. #define R_SERIAL1_CTRL__rec_stick_par__normal 0
  1378. #define R_SERIAL1_CTRL__rec_stick_par__stick 1
  1379. #define R_SERIAL1_CTRL__rec_par__BITNR 18
  1380. #define R_SERIAL1_CTRL__rec_par__WIDTH 1
  1381. #define R_SERIAL1_CTRL__rec_par__even 0
  1382. #define R_SERIAL1_CTRL__rec_par__odd 1
  1383. #define R_SERIAL1_CTRL__rec_par_en__BITNR 17
  1384. #define R_SERIAL1_CTRL__rec_par_en__WIDTH 1
  1385. #define R_SERIAL1_CTRL__rec_par_en__disable 0
  1386. #define R_SERIAL1_CTRL__rec_par_en__enable 1
  1387. #define R_SERIAL1_CTRL__rec_bitnr__BITNR 16
  1388. #define R_SERIAL1_CTRL__rec_bitnr__WIDTH 1
  1389. #define R_SERIAL1_CTRL__rec_bitnr__rec_8bit 0
  1390. #define R_SERIAL1_CTRL__rec_bitnr__rec_7bit 1
  1391. #define R_SERIAL1_CTRL__txd__BITNR 15
  1392. #define R_SERIAL1_CTRL__txd__WIDTH 1
  1393. #define R_SERIAL1_CTRL__tr_enable__BITNR 14
  1394. #define R_SERIAL1_CTRL__tr_enable__WIDTH 1
  1395. #define R_SERIAL1_CTRL__tr_enable__disable 0
  1396. #define R_SERIAL1_CTRL__tr_enable__enable 1
  1397. #define R_SERIAL1_CTRL__auto_cts__BITNR 13
  1398. #define R_SERIAL1_CTRL__auto_cts__WIDTH 1
  1399. #define R_SERIAL1_CTRL__auto_cts__disabled 0
  1400. #define R_SERIAL1_CTRL__auto_cts__active 1
  1401. #define R_SERIAL1_CTRL__stop_bits__BITNR 12
  1402. #define R_SERIAL1_CTRL__stop_bits__WIDTH 1
  1403. #define R_SERIAL1_CTRL__stop_bits__one_bit 0
  1404. #define R_SERIAL1_CTRL__stop_bits__two_bits 1
  1405. #define R_SERIAL1_CTRL__tr_stick_par__BITNR 11
  1406. #define R_SERIAL1_CTRL__tr_stick_par__WIDTH 1
  1407. #define R_SERIAL1_CTRL__tr_stick_par__normal 0
  1408. #define R_SERIAL1_CTRL__tr_stick_par__stick 1
  1409. #define R_SERIAL1_CTRL__tr_par__BITNR 10
  1410. #define R_SERIAL1_CTRL__tr_par__WIDTH 1
  1411. #define R_SERIAL1_CTRL__tr_par__even 0
  1412. #define R_SERIAL1_CTRL__tr_par__odd 1
  1413. #define R_SERIAL1_CTRL__tr_par_en__BITNR 9
  1414. #define R_SERIAL1_CTRL__tr_par_en__WIDTH 1
  1415. #define R_SERIAL1_CTRL__tr_par_en__disable 0
  1416. #define R_SERIAL1_CTRL__tr_par_en__enable 1
  1417. #define R_SERIAL1_CTRL__tr_bitnr__BITNR 8
  1418. #define R_SERIAL1_CTRL__tr_bitnr__WIDTH 1
  1419. #define R_SERIAL1_CTRL__tr_bitnr__tr_8bit 0
  1420. #define R_SERIAL1_CTRL__tr_bitnr__tr_7bit 1
  1421. #define R_SERIAL1_CTRL__data_out__BITNR 0
  1422. #define R_SERIAL1_CTRL__data_out__WIDTH 8
  1423. #define R_SERIAL1_BAUD (IO_TYPECAST_BYTE 0xb000006b)
  1424. #define R_SERIAL1_BAUD__tr_baud__BITNR 4
  1425. #define R_SERIAL1_BAUD__tr_baud__WIDTH 4
  1426. #define R_SERIAL1_BAUD__tr_baud__c300Hz 0
  1427. #define R_SERIAL1_BAUD__tr_baud__c600Hz 1
  1428. #define R_SERIAL1_BAUD__tr_baud__c1200Hz 2
  1429. #define R_SERIAL1_BAUD__tr_baud__c2400Hz 3
  1430. #define R_SERIAL1_BAUD__tr_baud__c4800Hz 4
  1431. #define R_SERIAL1_BAUD__tr_baud__c9600Hz 5
  1432. #define R_SERIAL1_BAUD__tr_baud__c19k2Hz 6
  1433. #define R_SERIAL1_BAUD__tr_baud__c38k4Hz 7
  1434. #define R_SERIAL1_BAUD__tr_baud__c57k6Hz 8
  1435. #define R_SERIAL1_BAUD__tr_baud__c115k2Hz 9
  1436. #define R_SERIAL1_BAUD__tr_baud__c230k4Hz 10
  1437. #define R_SERIAL1_BAUD__tr_baud__c460k8Hz 11
  1438. #define R_SERIAL1_BAUD__tr_baud__c921k6Hz 12
  1439. #define R_SERIAL1_BAUD__tr_baud__c1843k2Hz 13
  1440. #define R_SERIAL1_BAUD__tr_baud__c6250kHz 14
  1441. #define R_SERIAL1_BAUD__tr_baud__reserved 15
  1442. #define R_SERIAL1_BAUD__rec_baud__BITNR 0
  1443. #define R_SERIAL1_BAUD__rec_baud__WIDTH 4
  1444. #define R_SERIAL1_BAUD__rec_baud__c300Hz 0
  1445. #define R_SERIAL1_BAUD__rec_baud__c600Hz 1
  1446. #define R_SERIAL1_BAUD__rec_baud__c1200Hz 2
  1447. #define R_SERIAL1_BAUD__rec_baud__c2400Hz 3
  1448. #define R_SERIAL1_BAUD__rec_baud__c4800Hz 4
  1449. #define R_SERIAL1_BAUD__rec_baud__c9600Hz 5
  1450. #define R_SERIAL1_BAUD__rec_baud__c19k2Hz 6
  1451. #define R_SERIAL1_BAUD__rec_baud__c38k4Hz 7
  1452. #define R_SERIAL1_BAUD__rec_baud__c57k6Hz 8
  1453. #define R_SERIAL1_BAUD__rec_baud__c115k2Hz 9
  1454. #define R_SERIAL1_BAUD__rec_baud__c230k4Hz 10
  1455. #define R_SERIAL1_BAUD__rec_baud__c460k8Hz 11
  1456. #define R_SERIAL1_BAUD__rec_baud__c921k6Hz 12
  1457. #define R_SERIAL1_BAUD__rec_baud__c1843k2Hz 13
  1458. #define R_SERIAL1_BAUD__rec_baud__c6250kHz 14
  1459. #define R_SERIAL1_BAUD__rec_baud__reserved 15
  1460. #define R_SERIAL1_REC_CTRL (IO_TYPECAST_BYTE 0xb000006a)
  1461. #define R_SERIAL1_REC_CTRL__dma_err__BITNR 7
  1462. #define R_SERIAL1_REC_CTRL__dma_err__WIDTH 1
  1463. #define R_SERIAL1_REC_CTRL__dma_err__stop 0
  1464. #define R_SERIAL1_REC_CTRL__dma_err__ignore 1
  1465. #define R_SERIAL1_REC_CTRL__rec_enable__BITNR 6
  1466. #define R_SERIAL1_REC_CTRL__rec_enable__WIDTH 1
  1467. #define R_SERIAL1_REC_CTRL__rec_enable__disable 0
  1468. #define R_SERIAL1_REC_CTRL__rec_enable__enable 1
  1469. #define R_SERIAL1_REC_CTRL__rts___BITNR 5
  1470. #define R_SERIAL1_REC_CTRL__rts___WIDTH 1
  1471. #define R_SERIAL1_REC_CTRL__rts___active 0
  1472. #define R_SERIAL1_REC_CTRL__rts___inactive 1
  1473. #define R_SERIAL1_REC_CTRL__sampling__BITNR 4
  1474. #define R_SERIAL1_REC_CTRL__sampling__WIDTH 1
  1475. #define R_SERIAL1_REC_CTRL__sampling__middle 0
  1476. #define R_SERIAL1_REC_CTRL__sampling__majority 1
  1477. #define R_SERIAL1_REC_CTRL__rec_stick_par__BITNR 3
  1478. #define R_SERIAL1_REC_CTRL__rec_stick_par__WIDTH 1
  1479. #define R_SERIAL1_REC_CTRL__rec_stick_par__normal 0
  1480. #define R_SERIAL1_REC_CTRL__rec_stick_par__stick 1
  1481. #define R_SERIAL1_REC_CTRL__rec_par__BITNR 2
  1482. #define R_SERIAL1_REC_CTRL__rec_par__WIDTH 1
  1483. #define R_SERIAL1_REC_CTRL__rec_par__even 0
  1484. #define R_SERIAL1_REC_CTRL__rec_par__odd 1
  1485. #define R_SERIAL1_REC_CTRL__rec_par_en__BITNR 1
  1486. #define R_SERIAL1_REC_CTRL__rec_par_en__WIDTH 1
  1487. #define R_SERIAL1_REC_CTRL__rec_par_en__disable 0
  1488. #define R_SERIAL1_REC_CTRL__rec_par_en__enable 1
  1489. #define R_SERIAL1_REC_CTRL__rec_bitnr__BITNR 0
  1490. #define R_SERIAL1_REC_CTRL__rec_bitnr__WIDTH 1
  1491. #define R_SERIAL1_REC_CTRL__rec_bitnr__rec_8bit 0
  1492. #define R_SERIAL1_REC_CTRL__rec_bitnr__rec_7bit 1
  1493. #define R_SERIAL1_TR_CTRL (IO_TYPECAST_BYTE 0xb0000069)
  1494. #define R_SERIAL1_TR_CTRL__txd__BITNR 7
  1495. #define R_SERIAL1_TR_CTRL__txd__WIDTH 1
  1496. #define R_SERIAL1_TR_CTRL__tr_enable__BITNR 6
  1497. #define R_SERIAL1_TR_CTRL__tr_enable__WIDTH 1
  1498. #define R_SERIAL1_TR_CTRL__tr_enable__disable 0
  1499. #define R_SERIAL1_TR_CTRL__tr_enable__enable 1
  1500. #define R_SERIAL1_TR_CTRL__auto_cts__BITNR 5
  1501. #define R_SERIAL1_TR_CTRL__auto_cts__WIDTH 1
  1502. #define R_SERIAL1_TR_CTRL__auto_cts__disabled 0
  1503. #define R_SERIAL1_TR_CTRL__auto_cts__active 1
  1504. #define R_SERIAL1_TR_CTRL__stop_bits__BITNR 4
  1505. #define R_SERIAL1_TR_CTRL__stop_bits__WIDTH 1
  1506. #define R_SERIAL1_TR_CTRL__stop_bits__one_bit 0
  1507. #define R_SERIAL1_TR_CTRL__stop_bits__two_bits 1
  1508. #define R_SERIAL1_TR_CTRL__tr_stick_par__BITNR 3
  1509. #define R_SERIAL1_TR_CTRL__tr_stick_par__WIDTH 1
  1510. #define R_SERIAL1_TR_CTRL__tr_stick_par__normal 0
  1511. #define R_SERIAL1_TR_CTRL__tr_stick_par__stick 1
  1512. #define R_SERIAL1_TR_CTRL__tr_par__BITNR 2
  1513. #define R_SERIAL1_TR_CTRL__tr_par__WIDTH 1
  1514. #define R_SERIAL1_TR_CTRL__tr_par__even 0
  1515. #define R_SERIAL1_TR_CTRL__tr_par__odd 1
  1516. #define R_SERIAL1_TR_CTRL__tr_par_en__BITNR 1
  1517. #define R_SERIAL1_TR_CTRL__tr_par_en__WIDTH 1
  1518. #define R_SERIAL1_TR_CTRL__tr_par_en__disable 0
  1519. #define R_SERIAL1_TR_CTRL__tr_par_en__enable 1
  1520. #define R_SERIAL1_TR_CTRL__tr_bitnr__BITNR 0
  1521. #define R_SERIAL1_TR_CTRL__tr_bitnr__WIDTH 1
  1522. #define R_SERIAL1_TR_CTRL__tr_bitnr__tr_8bit 0
  1523. #define R_SERIAL1_TR_CTRL__tr_bitnr__tr_7bit 1
  1524. #define R_SERIAL1_TR_DATA (IO_TYPECAST_BYTE 0xb0000068)
  1525. #define R_SERIAL1_TR_DATA__data_out__BITNR 0
  1526. #define R_SERIAL1_TR_DATA__data_out__WIDTH 8
  1527. #define R_SERIAL1_READ (IO_TYPECAST_RO_UDWORD 0xb0000068)
  1528. #define R_SERIAL1_READ__xoff_detect__BITNR 15
  1529. #define R_SERIAL1_READ__xoff_detect__WIDTH 1
  1530. #define R_SERIAL1_READ__xoff_detect__no_xoff 0
  1531. #define R_SERIAL1_READ__xoff_detect__xoff 1
  1532. #define R_SERIAL1_READ__cts___BITNR 14
  1533. #define R_SERIAL1_READ__cts___WIDTH 1
  1534. #define R_SERIAL1_READ__cts___active 0
  1535. #define R_SERIAL1_READ__cts___inactive 1
  1536. #define R_SERIAL1_READ__tr_ready__BITNR 13
  1537. #define R_SERIAL1_READ__tr_ready__WIDTH 1
  1538. #define R_SERIAL1_READ__tr_ready__full 0
  1539. #define R_SERIAL1_READ__tr_ready__ready 1
  1540. #define R_SERIAL1_READ__rxd__BITNR 12
  1541. #define R_SERIAL1_READ__rxd__WIDTH 1
  1542. #define R_SERIAL1_READ__overrun__BITNR 11
  1543. #define R_SERIAL1_READ__overrun__WIDTH 1
  1544. #define R_SERIAL1_READ__overrun__no 0
  1545. #define R_SERIAL1_READ__overrun__yes 1
  1546. #define R_SERIAL1_READ__par_err__BITNR 10
  1547. #define R_SERIAL1_READ__par_err__WIDTH 1
  1548. #define R_SERIAL1_READ__par_err__no 0
  1549. #define R_SERIAL1_READ__par_err__yes 1
  1550. #define R_SERIAL1_READ__framing_err__BITNR 9
  1551. #define R_SERIAL1_READ__framing_err__WIDTH 1
  1552. #define R_SERIAL1_READ__framing_err__no 0
  1553. #define R_SERIAL1_READ__framing_err__yes 1
  1554. #define R_SERIAL1_READ__data_avail__BITNR 8
  1555. #define R_SERIAL1_READ__data_avail__WIDTH 1
  1556. #define R_SERIAL1_READ__data_avail__no 0
  1557. #define R_SERIAL1_READ__data_avail__yes 1
  1558. #define R_SERIAL1_READ__data_in__BITNR 0
  1559. #define R_SERIAL1_READ__data_in__WIDTH 8
  1560. #define R_SERIAL1_STATUS (IO_TYPECAST_RO_BYTE 0xb0000069)
  1561. #define R_SERIAL1_STATUS__xoff_detect__BITNR 7
  1562. #define R_SERIAL1_STATUS__xoff_detect__WIDTH 1
  1563. #define R_SERIAL1_STATUS__xoff_detect__no_xoff 0
  1564. #define R_SERIAL1_STATUS__xoff_detect__xoff 1
  1565. #define R_SERIAL1_STATUS__cts___BITNR 6
  1566. #define R_SERIAL1_STATUS__cts___WIDTH 1
  1567. #define R_SERIAL1_STATUS__cts___active 0
  1568. #define R_SERIAL1_STATUS__cts___inactive 1
  1569. #define R_SERIAL1_STATUS__tr_ready__BITNR 5
  1570. #define R_SERIAL1_STATUS__tr_ready__WIDTH 1
  1571. #define R_SERIAL1_STATUS__tr_ready__full 0
  1572. #define R_SERIAL1_STATUS__tr_ready__ready 1
  1573. #define R_SERIAL1_STATUS__rxd__BITNR 4
  1574. #define R_SERIAL1_STATUS__rxd__WIDTH 1
  1575. #define R_SERIAL1_STATUS__overrun__BITNR 3
  1576. #define R_SERIAL1_STATUS__overrun__WIDTH 1
  1577. #define R_SERIAL1_STATUS__overrun__no 0
  1578. #define R_SERIAL1_STATUS__overrun__yes 1
  1579. #define R_SERIAL1_STATUS__par_err__BITNR 2
  1580. #define R_SERIAL1_STATUS__par_err__WIDTH 1
  1581. #define R_SERIAL1_STATUS__par_err__no 0
  1582. #define R_SERIAL1_STATUS__par_err__yes 1
  1583. #define R_SERIAL1_STATUS__framing_err__BITNR 1
  1584. #define R_SERIAL1_STATUS__framing_err__WIDTH 1
  1585. #define R_SERIAL1_STATUS__framing_err__no 0
  1586. #define R_SERIAL1_STATUS__framing_err__yes 1
  1587. #define R_SERIAL1_STATUS__data_avail__BITNR 0
  1588. #define R_SERIAL1_STATUS__data_avail__WIDTH 1
  1589. #define R_SERIAL1_STATUS__data_avail__no 0
  1590. #define R_SERIAL1_STATUS__data_avail__yes 1
  1591. #define R_SERIAL1_REC_DATA (IO_TYPECAST_RO_BYTE 0xb0000068)
  1592. #define R_SERIAL1_REC_DATA__data_in__BITNR 0
  1593. #define R_SERIAL1_REC_DATA__data_in__WIDTH 8
  1594. #define R_SERIAL1_XOFF (IO_TYPECAST_UDWORD 0xb000006c)
  1595. #define R_SERIAL1_XOFF__tx_stop__BITNR 9
  1596. #define R_SERIAL1_XOFF__tx_stop__WIDTH 1
  1597. #define R_SERIAL1_XOFF__tx_stop__enable 0
  1598. #define R_SERIAL1_XOFF__tx_stop__stop 1
  1599. #define R_SERIAL1_XOFF__auto_xoff__BITNR 8
  1600. #define R_SERIAL1_XOFF__auto_xoff__WIDTH 1
  1601. #define R_SERIAL1_XOFF__auto_xoff__disable 0
  1602. #define R_SERIAL1_XOFF__auto_xoff__enable 1
  1603. #define R_SERIAL1_XOFF__xoff_char__BITNR 0
  1604. #define R_SERIAL1_XOFF__xoff_char__WIDTH 8
  1605. #define R_SERIAL2_CTRL (IO_TYPECAST_UDWORD 0xb0000070)
  1606. #define R_SERIAL2_CTRL__tr_baud__BITNR 28
  1607. #define R_SERIAL2_CTRL__tr_baud__WIDTH 4
  1608. #define R_SERIAL2_CTRL__tr_baud__c300Hz 0
  1609. #define R_SERIAL2_CTRL__tr_baud__c600Hz 1
  1610. #define R_SERIAL2_CTRL__tr_baud__c1200Hz 2
  1611. #define R_SERIAL2_CTRL__tr_baud__c2400Hz 3
  1612. #define R_SERIAL2_CTRL__tr_baud__c4800Hz 4
  1613. #define R_SERIAL2_CTRL__tr_baud__c9600Hz 5
  1614. #define R_SERIAL2_CTRL__tr_baud__c19k2Hz 6
  1615. #define R_SERIAL2_CTRL__tr_baud__c38k4Hz 7
  1616. #define R_SERIAL2_CTRL__tr_baud__c57k6Hz 8
  1617. #define R_SERIAL2_CTRL__tr_baud__c115k2Hz 9
  1618. #define R_SERIAL2_CTRL__tr_baud__c230k4Hz 10
  1619. #define R_SERIAL2_CTRL__tr_baud__c460k8Hz 11
  1620. #define R_SERIAL2_CTRL__tr_baud__c921k6Hz 12
  1621. #define R_SERIAL2_CTRL__tr_baud__c1843k2Hz 13
  1622. #define R_SERIAL2_CTRL__tr_baud__c6250kHz 14
  1623. #define R_SERIAL2_CTRL__tr_baud__reserved 15
  1624. #define R_SERIAL2_CTRL__rec_baud__BITNR 24
  1625. #define R_SERIAL2_CTRL__rec_baud__WIDTH 4
  1626. #define R_SERIAL2_CTRL__rec_baud__c300Hz 0
  1627. #define R_SERIAL2_CTRL__rec_baud__c600Hz 1
  1628. #define R_SERIAL2_CTRL__rec_baud__c1200Hz 2
  1629. #define R_SERIAL2_CTRL__rec_baud__c2400Hz 3
  1630. #define R_SERIAL2_CTRL__rec_baud__c4800Hz 4
  1631. #define R_SERIAL2_CTRL__rec_baud__c9600Hz 5
  1632. #define R_SERIAL2_CTRL__rec_baud__c19k2Hz 6
  1633. #define R_SERIAL2_CTRL__rec_baud__c38k4Hz 7
  1634. #define R_SERIAL2_CTRL__rec_baud__c57k6Hz 8
  1635. #define R_SERIAL2_CTRL__rec_baud__c115k2Hz 9
  1636. #define R_SERIAL2_CTRL__rec_baud__c230k4Hz 10
  1637. #define R_SERIAL2_CTRL__rec_baud__c460k8Hz 11
  1638. #define R_SERIAL2_CTRL__rec_baud__c921k6Hz 12
  1639. #define R_SERIAL2_CTRL__rec_baud__c1843k2Hz 13
  1640. #define R_SERIAL2_CTRL__rec_baud__c6250kHz 14
  1641. #define R_SERIAL2_CTRL__rec_baud__reserved 15
  1642. #define R_SERIAL2_CTRL__dma_err__BITNR 23
  1643. #define R_SERIAL2_CTRL__dma_err__WIDTH 1
  1644. #define R_SERIAL2_CTRL__dma_err__stop 0
  1645. #define R_SERIAL2_CTRL__dma_err__ignore 1
  1646. #define R_SERIAL2_CTRL__rec_enable__BITNR 22
  1647. #define R_SERIAL2_CTRL__rec_enable__WIDTH 1
  1648. #define R_SERIAL2_CTRL__rec_enable__disable 0
  1649. #define R_SERIAL2_CTRL__rec_enable__enable 1
  1650. #define R_SERIAL2_CTRL__rts___BITNR 21
  1651. #define R_SERIAL2_CTRL__rts___WIDTH 1
  1652. #define R_SERIAL2_CTRL__rts___active 0
  1653. #define R_SERIAL2_CTRL__rts___inactive 1
  1654. #define R_SERIAL2_CTRL__sampling__BITNR 20
  1655. #define R_SERIAL2_CTRL__sampling__WIDTH 1
  1656. #define R_SERIAL2_CTRL__sampling__middle 0
  1657. #define R_SERIAL2_CTRL__sampling__majority 1
  1658. #define R_SERIAL2_CTRL__rec_stick_par__BITNR 19
  1659. #define R_SERIAL2_CTRL__rec_stick_par__WIDTH 1
  1660. #define R_SERIAL2_CTRL__rec_stick_par__normal 0
  1661. #define R_SERIAL2_CTRL__rec_stick_par__stick 1
  1662. #define R_SERIAL2_CTRL__rec_par__BITNR 18
  1663. #define R_SERIAL2_CTRL__rec_par__WIDTH 1
  1664. #define R_SERIAL2_CTRL__rec_par__even 0
  1665. #define R_SERIAL2_CTRL__rec_par__odd 1
  1666. #define R_SERIAL2_CTRL__rec_par_en__BITNR 17
  1667. #define R_SERIAL2_CTRL__rec_par_en__WIDTH 1
  1668. #define R_SERIAL2_CTRL__rec_par_en__disable 0
  1669. #define R_SERIAL2_CTRL__rec_par_en__enable 1
  1670. #define R_SERIAL2_CTRL__rec_bitnr__BITNR 16
  1671. #define R_SERIAL2_CTRL__rec_bitnr__WIDTH 1
  1672. #define R_SERIAL2_CTRL__rec_bitnr__rec_8bit 0
  1673. #define R_SERIAL2_CTRL__rec_bitnr__rec_7bit 1
  1674. #define R_SERIAL2_CTRL__txd__BITNR 15
  1675. #define R_SERIAL2_CTRL__txd__WIDTH 1
  1676. #define R_SERIAL2_CTRL__tr_enable__BITNR 14
  1677. #define R_SERIAL2_CTRL__tr_enable__WIDTH 1
  1678. #define R_SERIAL2_CTRL__tr_enable__disable 0
  1679. #define R_SERIAL2_CTRL__tr_enable__enable 1
  1680. #define R_SERIAL2_CTRL__auto_cts__BITNR 13
  1681. #define R_SERIAL2_CTRL__auto_cts__WIDTH 1
  1682. #define R_SERIAL2_CTRL__auto_cts__disabled 0
  1683. #define R_SERIAL2_CTRL__auto_cts__active 1
  1684. #define R_SERIAL2_CTRL__stop_bits__BITNR 12
  1685. #define R_SERIAL2_CTRL__stop_bits__WIDTH 1
  1686. #define R_SERIAL2_CTRL__stop_bits__one_bit 0
  1687. #define R_SERIAL2_CTRL__stop_bits__two_bits 1
  1688. #define R_SERIAL2_CTRL__tr_stick_par__BITNR 11
  1689. #define R_SERIAL2_CTRL__tr_stick_par__WIDTH 1
  1690. #define R_SERIAL2_CTRL__tr_stick_par__normal 0
  1691. #define R_SERIAL2_CTRL__tr_stick_par__stick 1
  1692. #define R_SERIAL2_CTRL__tr_par__BITNR 10
  1693. #define R_SERIAL2_CTRL__tr_par__WIDTH 1
  1694. #define R_SERIAL2_CTRL__tr_par__even 0
  1695. #define R_SERIAL2_CTRL__tr_par__odd 1
  1696. #define R_SERIAL2_CTRL__tr_par_en__BITNR 9
  1697. #define R_SERIAL2_CTRL__tr_par_en__WIDTH 1
  1698. #define R_SERIAL2_CTRL__tr_par_en__disable 0
  1699. #define R_SERIAL2_CTRL__tr_par_en__enable 1
  1700. #define R_SERIAL2_CTRL__tr_bitnr__BITNR 8
  1701. #define R_SERIAL2_CTRL__tr_bitnr__WIDTH 1
  1702. #define R_SERIAL2_CTRL__tr_bitnr__tr_8bit 0
  1703. #define R_SERIAL2_CTRL__tr_bitnr__tr_7bit 1
  1704. #define R_SERIAL2_CTRL__data_out__BITNR 0
  1705. #define R_SERIAL2_CTRL__data_out__WIDTH 8
  1706. #define R_SERIAL2_BAUD (IO_TYPECAST_BYTE 0xb0000073)
  1707. #define R_SERIAL2_BAUD__tr_baud__BITNR 4
  1708. #define R_SERIAL2_BAUD__tr_baud__WIDTH 4
  1709. #define R_SERIAL2_BAUD__tr_baud__c300Hz 0
  1710. #define R_SERIAL2_BAUD__tr_baud__c600Hz 1
  1711. #define R_SERIAL2_BAUD__tr_baud__c1200Hz 2
  1712. #define R_SERIAL2_BAUD__tr_baud__c2400Hz 3
  1713. #define R_SERIAL2_BAUD__tr_baud__c4800Hz 4
  1714. #define R_SERIAL2_BAUD__tr_baud__c9600Hz 5
  1715. #define R_SERIAL2_BAUD__tr_baud__c19k2Hz 6
  1716. #define R_SERIAL2_BAUD__tr_baud__c38k4Hz 7
  1717. #define R_SERIAL2_BAUD__tr_baud__c57k6Hz 8
  1718. #define R_SERIAL2_BAUD__tr_baud__c115k2Hz 9
  1719. #define R_SERIAL2_BAUD__tr_baud__c230k4Hz 10
  1720. #define R_SERIAL2_BAUD__tr_baud__c460k8Hz 11
  1721. #define R_SERIAL2_BAUD__tr_baud__c921k6Hz 12
  1722. #define R_SERIAL2_BAUD__tr_baud__c1843k2Hz 13
  1723. #define R_SERIAL2_BAUD__tr_baud__c6250kHz 14
  1724. #define R_SERIAL2_BAUD__tr_baud__reserved 15
  1725. #define R_SERIAL2_BAUD__rec_baud__BITNR 0
  1726. #define R_SERIAL2_BAUD__rec_baud__WIDTH 4
  1727. #define R_SERIAL2_BAUD__rec_baud__c300Hz 0
  1728. #define R_SERIAL2_BAUD__rec_baud__c600Hz 1
  1729. #define R_SERIAL2_BAUD__rec_baud__c1200Hz 2
  1730. #define R_SERIAL2_BAUD__rec_baud__c2400Hz 3
  1731. #define R_SERIAL2_BAUD__rec_baud__c4800Hz 4
  1732. #define R_SERIAL2_BAUD__rec_baud__c9600Hz 5
  1733. #define R_SERIAL2_BAUD__rec_baud__c19k2Hz 6
  1734. #define R_SERIAL2_BAUD__rec_baud__c38k4Hz 7
  1735. #define R_SERIAL2_BAUD__rec_baud__c57k6Hz 8
  1736. #define R_SERIAL2_BAUD__rec_baud__c115k2Hz 9
  1737. #define R_SERIAL2_BAUD__rec_baud__c230k4Hz 10
  1738. #define R_SERIAL2_BAUD__rec_baud__c460k8Hz 11
  1739. #define R_SERIAL2_BAUD__rec_baud__c921k6Hz 12
  1740. #define R_SERIAL2_BAUD__rec_baud__c1843k2Hz 13
  1741. #define R_SERIAL2_BAUD__rec_baud__c6250kHz 14
  1742. #define R_SERIAL2_BAUD__rec_baud__reserved 15
  1743. #define R_SERIAL2_REC_CTRL (IO_TYPECAST_BYTE 0xb0000072)
  1744. #define R_SERIAL2_REC_CTRL__dma_err__BITNR 7
  1745. #define R_SERIAL2_REC_CTRL__dma_err__WIDTH 1
  1746. #define R_SERIAL2_REC_CTRL__dma_err__stop 0
  1747. #define R_SERIAL2_REC_CTRL__dma_err__ignore 1
  1748. #define R_SERIAL2_REC_CTRL__rec_enable__BITNR 6
  1749. #define R_SERIAL2_REC_CTRL__rec_enable__WIDTH 1
  1750. #define R_SERIAL2_REC_CTRL__rec_enable__disable 0
  1751. #define R_SERIAL2_REC_CTRL__rec_enable__enable 1
  1752. #define R_SERIAL2_REC_CTRL__rts___BITNR 5
  1753. #define R_SERIAL2_REC_CTRL__rts___WIDTH 1
  1754. #define R_SERIAL2_REC_CTRL__rts___active 0
  1755. #define R_SERIAL2_REC_CTRL__rts___inactive 1
  1756. #define R_SERIAL2_REC_CTRL__sampling__BITNR 4
  1757. #define R_SERIAL2_REC_CTRL__sampling__WIDTH 1
  1758. #define R_SERIAL2_REC_CTRL__sampling__middle 0
  1759. #define R_SERIAL2_REC_CTRL__sampling__majority 1
  1760. #define R_SERIAL2_REC_CTRL__rec_stick_par__BITNR 3
  1761. #define R_SERIAL2_REC_CTRL__rec_stick_par__WIDTH 1
  1762. #define R_SERIAL2_REC_CTRL__rec_stick_par__normal 0
  1763. #define R_SERIAL2_REC_CTRL__rec_stick_par__stick 1
  1764. #define R_SERIAL2_REC_CTRL__rec_par__BITNR 2
  1765. #define R_SERIAL2_REC_CTRL__rec_par__WIDTH 1
  1766. #define R_SERIAL2_REC_CTRL__rec_par__even 0
  1767. #define R_SERIAL2_REC_CTRL__rec_par__odd 1
  1768. #define R_SERIAL2_REC_CTRL__rec_par_en__BITNR 1
  1769. #define R_SERIAL2_REC_CTRL__rec_par_en__WIDTH 1
  1770. #define R_SERIAL2_REC_CTRL__rec_par_en__disable 0
  1771. #define R_SERIAL2_REC_CTRL__rec_par_en__enable 1
  1772. #define R_SERIAL2_REC_CTRL__rec_bitnr__BITNR 0
  1773. #define R_SERIAL2_REC_CTRL__rec_bitnr__WIDTH 1
  1774. #define R_SERIAL2_REC_CTRL__rec_bitnr__rec_8bit 0
  1775. #define R_SERIAL2_REC_CTRL__rec_bitnr__rec_7bit 1
  1776. #define R_SERIAL2_TR_CTRL (IO_TYPECAST_BYTE 0xb0000071)
  1777. #define R_SERIAL2_TR_CTRL__txd__BITNR 7
  1778. #define R_SERIAL2_TR_CTRL__txd__WIDTH 1
  1779. #define R_SERIAL2_TR_CTRL__tr_enable__BITNR 6
  1780. #define R_SERIAL2_TR_CTRL__tr_enable__WIDTH 1
  1781. #define R_SERIAL2_TR_CTRL__tr_enable__disable 0
  1782. #define R_SERIAL2_TR_CTRL__tr_enable__enable 1
  1783. #define R_SERIAL2_TR_CTRL__auto_cts__BITNR 5
  1784. #define R_SERIAL2_TR_CTRL__auto_cts__WIDTH 1
  1785. #define R_SERIAL2_TR_CTRL__auto_cts__disabled 0
  1786. #define R_SERIAL2_TR_CTRL__auto_cts__active 1
  1787. #define R_SERIAL2_TR_CTRL__stop_bits__BITNR 4
  1788. #define R_SERIAL2_TR_CTRL__stop_bits__WIDTH 1
  1789. #define R_SERIAL2_TR_CTRL__stop_bits__one_bit 0
  1790. #define R_SERIAL2_TR_CTRL__stop_bits__two_bits 1
  1791. #define R_SERIAL2_TR_CTRL__tr_stick_par__BITNR 3
  1792. #define R_SERIAL2_TR_CTRL__tr_stick_par__WIDTH 1
  1793. #define R_SERIAL2_TR_CTRL__tr_stick_par__normal 0
  1794. #define R_SERIAL2_TR_CTRL__tr_stick_par__stick 1
  1795. #define R_SERIAL2_TR_CTRL__tr_par__BITNR 2
  1796. #define R_SERIAL2_TR_CTRL__tr_par__WIDTH 1
  1797. #define R_SERIAL2_TR_CTRL__tr_par__even 0
  1798. #define R_SERIAL2_TR_CTRL__tr_par__odd 1
  1799. #define R_SERIAL2_TR_CTRL__tr_par_en__BITNR 1
  1800. #define R_SERIAL2_TR_CTRL__tr_par_en__WIDTH 1
  1801. #define R_SERIAL2_TR_CTRL__tr_par_en__disable 0
  1802. #define R_SERIAL2_TR_CTRL__tr_par_en__enable 1
  1803. #define R_SERIAL2_TR_CTRL__tr_bitnr__BITNR 0
  1804. #define R_SERIAL2_TR_CTRL__tr_bitnr__WIDTH 1
  1805. #define R_SERIAL2_TR_CTRL__tr_bitnr__tr_8bit 0
  1806. #define R_SERIAL2_TR_CTRL__tr_bitnr__tr_7bit 1
  1807. #define R_SERIAL2_TR_DATA (IO_TYPECAST_BYTE 0xb0000070)
  1808. #define R_SERIAL2_TR_DATA__data_out__BITNR 0
  1809. #define R_SERIAL2_TR_DATA__data_out__WIDTH 8
  1810. #define R_SERIAL2_READ (IO_TYPECAST_RO_UDWORD 0xb0000070)
  1811. #define R_SERIAL2_READ__xoff_detect__BITNR 15
  1812. #define R_SERIAL2_READ__xoff_detect__WIDTH 1
  1813. #define R_SERIAL2_READ__xoff_detect__no_xoff 0
  1814. #define R_SERIAL2_READ__xoff_detect__xoff 1
  1815. #define R_SERIAL2_READ__cts___BITNR 14
  1816. #define R_SERIAL2_READ__cts___WIDTH 1
  1817. #define R_SERIAL2_READ__cts___active 0
  1818. #define R_SERIAL2_READ__cts___inactive 1
  1819. #define R_SERIAL2_READ__tr_ready__BITNR 13
  1820. #define R_SERIAL2_READ__tr_ready__WIDTH 1
  1821. #define R_SERIAL2_READ__tr_ready__full 0
  1822. #define R_SERIAL2_READ__tr_ready__ready 1
  1823. #define R_SERIAL2_READ__rxd__BITNR 12
  1824. #define R_SERIAL2_READ__rxd__WIDTH 1
  1825. #define R_SERIAL2_READ__overrun__BITNR 11
  1826. #define R_SERIAL2_READ__overrun__WIDTH 1
  1827. #define R_SERIAL2_READ__overrun__no 0
  1828. #define R_SERIAL2_READ__overrun__yes 1
  1829. #define R_SERIAL2_READ__par_err__BITNR 10
  1830. #define R_SERIAL2_READ__par_err__WIDTH 1
  1831. #define R_SERIAL2_READ__par_err__no 0
  1832. #define R_SERIAL2_READ__par_err__yes 1
  1833. #define R_SERIAL2_READ__framing_err__BITNR 9
  1834. #define R_SERIAL2_READ__framing_err__WIDTH 1
  1835. #define R_SERIAL2_READ__framing_err__no 0
  1836. #define R_SERIAL2_READ__framing_err__yes 1
  1837. #define R_SERIAL2_READ__data_avail__BITNR 8
  1838. #define R_SERIAL2_READ__data_avail__WIDTH 1
  1839. #define R_SERIAL2_READ__data_avail__no 0
  1840. #define R_SERIAL2_READ__data_avail__yes 1
  1841. #define R_SERIAL2_READ__data_in__BITNR 0
  1842. #define R_SERIAL2_READ__data_in__WIDTH 8
  1843. #define R_SERIAL2_STATUS (IO_TYPECAST_RO_BYTE 0xb0000071)
  1844. #define R_SERIAL2_STATUS__xoff_detect__BITNR 7
  1845. #define R_SERIAL2_STATUS__xoff_detect__WIDTH 1
  1846. #define R_SERIAL2_STATUS__xoff_detect__no_xoff 0
  1847. #define R_SERIAL2_STATUS__xoff_detect__xoff 1
  1848. #define R_SERIAL2_STATUS__cts___BITNR 6
  1849. #define R_SERIAL2_STATUS__cts___WIDTH 1
  1850. #define R_SERIAL2_STATUS__cts___active 0
  1851. #define R_SERIAL2_STATUS__cts___inactive 1
  1852. #define R_SERIAL2_STATUS__tr_ready__BITNR 5
  1853. #define R_SERIAL2_STATUS__tr_ready__WIDTH 1
  1854. #define R_SERIAL2_STATUS__tr_ready__full 0
  1855. #define R_SERIAL2_STATUS__tr_ready__ready 1
  1856. #define R_SERIAL2_STATUS__rxd__BITNR 4
  1857. #define R_SERIAL2_STATUS__rxd__WIDTH 1
  1858. #define R_SERIAL2_STATUS__overrun__BITNR 3
  1859. #define R_SERIAL2_STATUS__overrun__WIDTH 1
  1860. #define R_SERIAL2_STATUS__overrun__no 0
  1861. #define R_SERIAL2_STATUS__overrun__yes 1
  1862. #define R_SERIAL2_STATUS__par_err__BITNR 2
  1863. #define R_SERIAL2_STATUS__par_err__WIDTH 1
  1864. #define R_SERIAL2_STATUS__par_err__no 0
  1865. #define R_SERIAL2_STATUS__par_err__yes 1
  1866. #define R_SERIAL2_STATUS__framing_err__BITNR 1
  1867. #define R_SERIAL2_STATUS__framing_err__WIDTH 1
  1868. #define R_SERIAL2_STATUS__framing_err__no 0
  1869. #define R_SERIAL2_STATUS__framing_err__yes 1
  1870. #define R_SERIAL2_STATUS__data_avail__BITNR 0
  1871. #define R_SERIAL2_STATUS__data_avail__WIDTH 1
  1872. #define R_SERIAL2_STATUS__data_avail__no 0
  1873. #define R_SERIAL2_STATUS__data_avail__yes 1
  1874. #define R_SERIAL2_REC_DATA (IO_TYPECAST_RO_BYTE 0xb0000070)
  1875. #define R_SERIAL2_REC_DATA__data_in__BITNR 0
  1876. #define R_SERIAL2_REC_DATA__data_in__WIDTH 8
  1877. #define R_SERIAL2_XOFF (IO_TYPECAST_UDWORD 0xb0000074)
  1878. #define R_SERIAL2_XOFF__tx_stop__BITNR 9
  1879. #define R_SERIAL2_XOFF__tx_stop__WIDTH 1
  1880. #define R_SERIAL2_XOFF__tx_stop__enable 0
  1881. #define R_SERIAL2_XOFF__tx_stop__stop 1
  1882. #define R_SERIAL2_XOFF__auto_xoff__BITNR 8
  1883. #define R_SERIAL2_XOFF__auto_xoff__WIDTH 1
  1884. #define R_SERIAL2_XOFF__auto_xoff__disable 0
  1885. #define R_SERIAL2_XOFF__auto_xoff__enable 1
  1886. #define R_SERIAL2_XOFF__xoff_char__BITNR 0
  1887. #define R_SERIAL2_XOFF__xoff_char__WIDTH 8
  1888. #define R_SERIAL3_CTRL (IO_TYPECAST_UDWORD 0xb0000078)
  1889. #define R_SERIAL3_CTRL__tr_baud__BITNR 28
  1890. #define R_SERIAL3_CTRL__tr_baud__WIDTH 4
  1891. #define R_SERIAL3_CTRL__tr_baud__c300Hz 0
  1892. #define R_SERIAL3_CTRL__tr_baud__c600Hz 1
  1893. #define R_SERIAL3_CTRL__tr_baud__c1200Hz 2
  1894. #define R_SERIAL3_CTRL__tr_baud__c2400Hz 3
  1895. #define R_SERIAL3_CTRL__tr_baud__c4800Hz 4
  1896. #define R_SERIAL3_CTRL__tr_baud__c9600Hz 5
  1897. #define R_SERIAL3_CTRL__tr_baud__c19k2Hz 6
  1898. #define R_SERIAL3_CTRL__tr_baud__c38k4Hz 7
  1899. #define R_SERIAL3_CTRL__tr_baud__c57k6Hz 8
  1900. #define R_SERIAL3_CTRL__tr_baud__c115k2Hz 9
  1901. #define R_SERIAL3_CTRL__tr_baud__c230k4Hz 10
  1902. #define R_SERIAL3_CTRL__tr_baud__c460k8Hz 11
  1903. #define R_SERIAL3_CTRL__tr_baud__c921k6Hz 12
  1904. #define R_SERIAL3_CTRL__tr_baud__c1843k2Hz 13
  1905. #define R_SERIAL3_CTRL__tr_baud__c6250kHz 14
  1906. #define R_SERIAL3_CTRL__tr_baud__reserved 15
  1907. #define R_SERIAL3_CTRL__rec_baud__BITNR 24
  1908. #define R_SERIAL3_CTRL__rec_baud__WIDTH 4
  1909. #define R_SERIAL3_CTRL__rec_baud__c300Hz 0
  1910. #define R_SERIAL3_CTRL__rec_baud__c600Hz 1
  1911. #define R_SERIAL3_CTRL__rec_baud__c1200Hz 2
  1912. #define R_SERIAL3_CTRL__rec_baud__c2400Hz 3
  1913. #define R_SERIAL3_CTRL__rec_baud__c4800Hz 4
  1914. #define R_SERIAL3_CTRL__rec_baud__c9600Hz 5
  1915. #define R_SERIAL3_CTRL__rec_baud__c19k2Hz 6
  1916. #define R_SERIAL3_CTRL__rec_baud__c38k4Hz 7
  1917. #define R_SERIAL3_CTRL__rec_baud__c57k6Hz 8
  1918. #define R_SERIAL3_CTRL__rec_baud__c115k2Hz 9
  1919. #define R_SERIAL3_CTRL__rec_baud__c230k4Hz 10
  1920. #define R_SERIAL3_CTRL__rec_baud__c460k8Hz 11
  1921. #define R_SERIAL3_CTRL__rec_baud__c921k6Hz 12
  1922. #define R_SERIAL3_CTRL__rec_baud__c1843k2Hz 13
  1923. #define R_SERIAL3_CTRL__rec_baud__c6250kHz 14
  1924. #define R_SERIAL3_CTRL__rec_baud__reserved 15
  1925. #define R_SERIAL3_CTRL__dma_err__BITNR 23
  1926. #define R_SERIAL3_CTRL__dma_err__WIDTH 1
  1927. #define R_SERIAL3_CTRL__dma_err__stop 0
  1928. #define R_SERIAL3_CTRL__dma_err__ignore 1
  1929. #define R_SERIAL3_CTRL__rec_enable__BITNR 22
  1930. #define R_SERIAL3_CTRL__rec_enable__WIDTH 1
  1931. #define R_SERIAL3_CTRL__rec_enable__disable 0
  1932. #define R_SERIAL3_CTRL__rec_enable__enable 1
  1933. #define R_SERIAL3_CTRL__rts___BITNR 21
  1934. #define R_SERIAL3_CTRL__rts___WIDTH 1
  1935. #define R_SERIAL3_CTRL__rts___active 0
  1936. #define R_SERIAL3_CTRL__rts___inactive 1
  1937. #define R_SERIAL3_CTRL__sampling__BITNR 20
  1938. #define R_SERIAL3_CTRL__sampling__WIDTH 1
  1939. #define R_SERIAL3_CTRL__sampling__middle 0
  1940. #define R_SERIAL3_CTRL__sampling__majority 1
  1941. #define R_SERIAL3_CTRL__rec_stick_par__BITNR 19
  1942. #define R_SERIAL3_CTRL__rec_stick_par__WIDTH 1
  1943. #define R_SERIAL3_CTRL__rec_stick_par__normal 0
  1944. #define R_SERIAL3_CTRL__rec_stick_par__stick 1
  1945. #define R_SERIAL3_CTRL__rec_par__BITNR 18
  1946. #define R_SERIAL3_CTRL__rec_par__WIDTH 1
  1947. #define R_SERIAL3_CTRL__rec_par__even 0
  1948. #define R_SERIAL3_CTRL__rec_par__odd 1
  1949. #define R_SERIAL3_CTRL__rec_par_en__BITNR 17
  1950. #define R_SERIAL3_CTRL__rec_par_en__WIDTH 1
  1951. #define R_SERIAL3_CTRL__rec_par_en__disable 0
  1952. #define R_SERIAL3_CTRL__rec_par_en__enable 1
  1953. #define R_SERIAL3_CTRL__rec_bitnr__BITNR 16
  1954. #define R_SERIAL3_CTRL__rec_bitnr__WIDTH 1
  1955. #define R_SERIAL3_CTRL__rec_bitnr__rec_8bit 0
  1956. #define R_SERIAL3_CTRL__rec_bitnr__rec_7bit 1
  1957. #define R_SERIAL3_CTRL__txd__BITNR 15
  1958. #define R_SERIAL3_CTRL__txd__WIDTH 1
  1959. #define R_SERIAL3_CTRL__tr_enable__BITNR 14
  1960. #define R_SERIAL3_CTRL__tr_enable__WIDTH 1
  1961. #define R_SERIAL3_CTRL__tr_enable__disable 0
  1962. #define R_SERIAL3_CTRL__tr_enable__enable 1
  1963. #define R_SERIAL3_CTRL__auto_cts__BITNR 13
  1964. #define R_SERIAL3_CTRL__auto_cts__WIDTH 1
  1965. #define R_SERIAL3_CTRL__auto_cts__disabled 0
  1966. #define R_SERIAL3_CTRL__auto_cts__active 1
  1967. #define R_SERIAL3_CTRL__stop_bits__BITNR 12
  1968. #define R_SERIAL3_CTRL__stop_bits__WIDTH 1
  1969. #define R_SERIAL3_CTRL__stop_bits__one_bit 0
  1970. #define R_SERIAL3_CTRL__stop_bits__two_bits 1
  1971. #define R_SERIAL3_CTRL__tr_stick_par__BITNR 11
  1972. #define R_SERIAL3_CTRL__tr_stick_par__WIDTH 1
  1973. #define R_SERIAL3_CTRL__tr_stick_par__normal 0
  1974. #define R_SERIAL3_CTRL__tr_stick_par__stick 1
  1975. #define R_SERIAL3_CTRL__tr_par__BITNR 10
  1976. #define R_SERIAL3_CTRL__tr_par__WIDTH 1
  1977. #define R_SERIAL3_CTRL__tr_par__even 0
  1978. #define R_SERIAL3_CTRL__tr_par__odd 1
  1979. #define R_SERIAL3_CTRL__tr_par_en__BITNR 9
  1980. #define R_SERIAL3_CTRL__tr_par_en__WIDTH 1
  1981. #define R_SERIAL3_CTRL__tr_par_en__disable 0
  1982. #define R_SERIAL3_CTRL__tr_par_en__enable 1
  1983. #define R_SERIAL3_CTRL__tr_bitnr__BITNR 8
  1984. #define R_SERIAL3_CTRL__tr_bitnr__WIDTH 1
  1985. #define R_SERIAL3_CTRL__tr_bitnr__tr_8bit 0
  1986. #define R_SERIAL3_CTRL__tr_bitnr__tr_7bit 1
  1987. #define R_SERIAL3_CTRL__data_out__BITNR 0
  1988. #define R_SERIAL3_CTRL__data_out__WIDTH 8
  1989. #define R_SERIAL3_BAUD (IO_TYPECAST_BYTE 0xb000007b)
  1990. #define R_SERIAL3_BAUD__tr_baud__BITNR 4
  1991. #define R_SERIAL3_BAUD__tr_baud__WIDTH 4
  1992. #define R_SERIAL3_BAUD__tr_baud__c300Hz 0
  1993. #define R_SERIAL3_BAUD__tr_baud__c600Hz 1
  1994. #define R_SERIAL3_BAUD__tr_baud__c1200Hz 2
  1995. #define R_SERIAL3_BAUD__tr_baud__c2400Hz 3
  1996. #define R_SERIAL3_BAUD__tr_baud__c4800Hz 4
  1997. #define R_SERIAL3_BAUD__tr_baud__c9600Hz 5
  1998. #define R_SERIAL3_BAUD__tr_baud__c19k2Hz 6
  1999. #define R_SERIAL3_BAUD__tr_baud__c38k4Hz 7
  2000. #define R_SERIAL3_BAUD__tr_baud__c57k6Hz 8
  2001. #define R_SERIAL3_BAUD__tr_baud__c115k2Hz 9
  2002. #define R_SERIAL3_BAUD__tr_baud__c230k4Hz 10
  2003. #define R_SERIAL3_BAUD__tr_baud__c460k8Hz 11
  2004. #define R_SERIAL3_BAUD__tr_baud__c921k6Hz 12
  2005. #define R_SERIAL3_BAUD__tr_baud__c1843k2Hz 13
  2006. #define R_SERIAL3_BAUD__tr_baud__c6250kHz 14
  2007. #define R_SERIAL3_BAUD__tr_baud__reserved 15
  2008. #define R_SERIAL3_BAUD__rec_baud__BITNR 0
  2009. #define R_SERIAL3_BAUD__rec_baud__WIDTH 4
  2010. #define R_SERIAL3_BAUD__rec_baud__c300Hz 0
  2011. #define R_SERIAL3_BAUD__rec_baud__c600Hz 1
  2012. #define R_SERIAL3_BAUD__rec_baud__c1200Hz 2
  2013. #define R_SERIAL3_BAUD__rec_baud__c2400Hz 3
  2014. #define R_SERIAL3_BAUD__rec_baud__c4800Hz 4
  2015. #define R_SERIAL3_BAUD__rec_baud__c9600Hz 5
  2016. #define R_SERIAL3_BAUD__rec_baud__c19k2Hz 6
  2017. #define R_SERIAL3_BAUD__rec_baud__c38k4Hz 7
  2018. #define R_SERIAL3_BAUD__rec_baud__c57k6Hz 8
  2019. #define R_SERIAL3_BAUD__rec_baud__c115k2Hz 9
  2020. #define R_SERIAL3_BAUD__rec_baud__c230k4Hz 10
  2021. #define R_SERIAL3_BAUD__rec_baud__c460k8Hz 11
  2022. #define R_SERIAL3_BAUD__rec_baud__c921k6Hz 12
  2023. #define R_SERIAL3_BAUD__rec_baud__c1843k2Hz 13
  2024. #define R_SERIAL3_BAUD__rec_baud__c6250kHz 14
  2025. #define R_SERIAL3_BAUD__rec_baud__reserved 15
  2026. #define R_SERIAL3_REC_CTRL (IO_TYPECAST_BYTE 0xb000007a)
  2027. #define R_SERIAL3_REC_CTRL__dma_err__BITNR 7
  2028. #define R_SERIAL3_REC_CTRL__dma_err__WIDTH 1
  2029. #define R_SERIAL3_REC_CTRL__dma_err__stop 0
  2030. #define R_SERIAL3_REC_CTRL__dma_err__ignore 1
  2031. #define R_SERIAL3_REC_CTRL__rec_enable__BITNR 6
  2032. #define R_SERIAL3_REC_CTRL__rec_enable__WIDTH 1
  2033. #define R_SERIAL3_REC_CTRL__rec_enable__disable 0
  2034. #define R_SERIAL3_REC_CTRL__rec_enable__enable 1
  2035. #define R_SERIAL3_REC_CTRL__rts___BITNR 5
  2036. #define R_SERIAL3_REC_CTRL__rts___WIDTH 1
  2037. #define R_SERIAL3_REC_CTRL__rts___active 0
  2038. #define R_SERIAL3_REC_CTRL__rts___inactive 1
  2039. #define R_SERIAL3_REC_CTRL__sampling__BITNR 4
  2040. #define R_SERIAL3_REC_CTRL__sampling__WIDTH 1
  2041. #define R_SERIAL3_REC_CTRL__sampling__middle 0
  2042. #define R_SERIAL3_REC_CTRL__sampling__majority 1
  2043. #define R_SERIAL3_REC_CTRL__rec_stick_par__BITNR 3
  2044. #define R_SERIAL3_REC_CTRL__rec_stick_par__WIDTH 1
  2045. #define R_SERIAL3_REC_CTRL__rec_stick_par__normal 0
  2046. #define R_SERIAL3_REC_CTRL__rec_stick_par__stick 1
  2047. #define R_SERIAL3_REC_CTRL__rec_par__BITNR 2
  2048. #define R_SERIAL3_REC_CTRL__rec_par__WIDTH 1
  2049. #define R_SERIAL3_REC_CTRL__rec_par__even 0
  2050. #define R_SERIAL3_REC_CTRL__rec_par__odd 1
  2051. #define R_SERIAL3_REC_CTRL__rec_par_en__BITNR 1
  2052. #define R_SERIAL3_REC_CTRL__rec_par_en__WIDTH 1
  2053. #define R_SERIAL3_REC_CTRL__rec_par_en__disable 0
  2054. #define R_SERIAL3_REC_CTRL__rec_par_en__enable 1
  2055. #define R_SERIAL3_REC_CTRL__rec_bitnr__BITNR 0
  2056. #define R_SERIAL3_REC_CTRL__rec_bitnr__WIDTH 1
  2057. #define R_SERIAL3_REC_CTRL__rec_bitnr__rec_8bit 0
  2058. #define R_SERIAL3_REC_CTRL__rec_bitnr__rec_7bit 1
  2059. #define R_SERIAL3_TR_CTRL (IO_TYPECAST_BYTE 0xb0000079)
  2060. #define R_SERIAL3_TR_CTRL__txd__BITNR 7
  2061. #define R_SERIAL3_TR_CTRL__txd__WIDTH 1
  2062. #define R_SERIAL3_TR_CTRL__tr_enable__BITNR 6
  2063. #define R_SERIAL3_TR_CTRL__tr_enable__WIDTH 1
  2064. #define R_SERIAL3_TR_CTRL__tr_enable__disable 0
  2065. #define R_SERIAL3_TR_CTRL__tr_enable__enable 1
  2066. #define R_SERIAL3_TR_CTRL__auto_cts__BITNR 5
  2067. #define R_SERIAL3_TR_CTRL__auto_cts__WIDTH 1
  2068. #define R_SERIAL3_TR_CTRL__auto_cts__disabled 0
  2069. #define R_SERIAL3_TR_CTRL__auto_cts__active 1
  2070. #define R_SERIAL3_TR_CTRL__stop_bits__BITNR 4
  2071. #define R_SERIAL3_TR_CTRL__stop_bits__WIDTH 1
  2072. #define R_SERIAL3_TR_CTRL__stop_bits__one_bit 0
  2073. #define R_SERIAL3_TR_CTRL__stop_bits__two_bits 1
  2074. #define R_SERIAL3_TR_CTRL__tr_stick_par__BITNR 3
  2075. #define R_SERIAL3_TR_CTRL__tr_stick_par__WIDTH 1
  2076. #define R_SERIAL3_TR_CTRL__tr_stick_par__normal 0
  2077. #define R_SERIAL3_TR_CTRL__tr_stick_par__stick 1
  2078. #define R_SERIAL3_TR_CTRL__tr_par__BITNR 2
  2079. #define R_SERIAL3_TR_CTRL__tr_par__WIDTH 1
  2080. #define R_SERIAL3_TR_CTRL__tr_par__even 0
  2081. #define R_SERIAL3_TR_CTRL__tr_par__odd 1
  2082. #define R_SERIAL3_TR_CTRL__tr_par_en__BITNR 1
  2083. #define R_SERIAL3_TR_CTRL__tr_par_en__WIDTH 1
  2084. #define R_SERIAL3_TR_CTRL__tr_par_en__disable 0
  2085. #define R_SERIAL3_TR_CTRL__tr_par_en__enable 1
  2086. #define R_SERIAL3_TR_CTRL__tr_bitnr__BITNR 0
  2087. #define R_SERIAL3_TR_CTRL__tr_bitnr__WIDTH 1
  2088. #define R_SERIAL3_TR_CTRL__tr_bitnr__tr_8bit 0
  2089. #define R_SERIAL3_TR_CTRL__tr_bitnr__tr_7bit 1
  2090. #define R_SERIAL3_TR_DATA (IO_TYPECAST_BYTE 0xb0000078)
  2091. #define R_SERIAL3_TR_DATA__data_out__BITNR 0
  2092. #define R_SERIAL3_TR_DATA__data_out__WIDTH 8
  2093. #define R_SERIAL3_READ (IO_TYPECAST_RO_UDWORD 0xb0000078)
  2094. #define R_SERIAL3_READ__xoff_detect__BITNR 15
  2095. #define R_SERIAL3_READ__xoff_detect__WIDTH 1
  2096. #define R_SERIAL3_READ__xoff_detect__no_xoff 0
  2097. #define R_SERIAL3_READ__xoff_detect__xoff 1
  2098. #define R_SERIAL3_READ__cts___BITNR 14
  2099. #define R_SERIAL3_READ__cts___WIDTH 1
  2100. #define R_SERIAL3_READ__cts___active 0
  2101. #define R_SERIAL3_READ__cts___inactive 1
  2102. #define R_SERIAL3_READ__tr_ready__BITNR 13
  2103. #define R_SERIAL3_READ__tr_ready__WIDTH 1
  2104. #define R_SERIAL3_READ__tr_ready__full 0
  2105. #define R_SERIAL3_READ__tr_ready__ready 1
  2106. #define R_SERIAL3_READ__rxd__BITNR 12
  2107. #define R_SERIAL3_READ__rxd__WIDTH 1
  2108. #define R_SERIAL3_READ__overrun__BITNR 11
  2109. #define R_SERIAL3_READ__overrun__WIDTH 1
  2110. #define R_SERIAL3_READ__overrun__no 0
  2111. #define R_SERIAL3_READ__overrun__yes 1
  2112. #define R_SERIAL3_READ__par_err__BITNR 10
  2113. #define R_SERIAL3_READ__par_err__WIDTH 1
  2114. #define R_SERIAL3_READ__par_err__no 0
  2115. #define R_SERIAL3_READ__par_err__yes 1
  2116. #define R_SERIAL3_READ__framing_err__BITNR 9
  2117. #define R_SERIAL3_READ__framing_err__WIDTH 1
  2118. #define R_SERIAL3_READ__framing_err__no 0
  2119. #define R_SERIAL3_READ__framing_err__yes 1
  2120. #define R_SERIAL3_READ__data_avail__BITNR 8
  2121. #define R_SERIAL3_READ__data_avail__WIDTH 1
  2122. #define R_SERIAL3_READ__data_avail__no 0
  2123. #define R_SERIAL3_READ__data_avail__yes 1
  2124. #define R_SERIAL3_READ__data_in__BITNR 0
  2125. #define R_SERIAL3_READ__data_in__WIDTH 8
  2126. #define R_SERIAL3_STATUS (IO_TYPECAST_RO_BYTE 0xb0000079)
  2127. #define R_SERIAL3_STATUS__xoff_detect__BITNR 7
  2128. #define R_SERIAL3_STATUS__xoff_detect__WIDTH 1
  2129. #define R_SERIAL3_STATUS__xoff_detect__no_xoff 0
  2130. #define R_SERIAL3_STATUS__xoff_detect__xoff 1
  2131. #define R_SERIAL3_STATUS__cts___BITNR 6
  2132. #define R_SERIAL3_STATUS__cts___WIDTH 1
  2133. #define R_SERIAL3_STATUS__cts___active 0
  2134. #define R_SERIAL3_STATUS__cts___inactive 1
  2135. #define R_SERIAL3_STATUS__tr_ready__BITNR 5
  2136. #define R_SERIAL3_STATUS__tr_ready__WIDTH 1
  2137. #define R_SERIAL3_STATUS__tr_ready__full 0
  2138. #define R_SERIAL3_STATUS__tr_ready__ready 1
  2139. #define R_SERIAL3_STATUS__rxd__BITNR 4
  2140. #define R_SERIAL3_STATUS__rxd__WIDTH 1
  2141. #define R_SERIAL3_STATUS__overrun__BITNR 3
  2142. #define R_SERIAL3_STATUS__overrun__WIDTH 1
  2143. #define R_SERIAL3_STATUS__overrun__no 0
  2144. #define R_SERIAL3_STATUS__overrun__yes 1
  2145. #define R_SERIAL3_STATUS__par_err__BITNR 2
  2146. #define R_SERIAL3_STATUS__par_err__WIDTH 1
  2147. #define R_SERIAL3_STATUS__par_err__no 0
  2148. #define R_SERIAL3_STATUS__par_err__yes 1
  2149. #define R_SERIAL3_STATUS__framing_err__BITNR 1
  2150. #define R_SERIAL3_STATUS__framing_err__WIDTH 1
  2151. #define R_SERIAL3_STATUS__framing_err__no 0
  2152. #define R_SERIAL3_STATUS__framing_err__yes 1
  2153. #define R_SERIAL3_STATUS__data_avail__BITNR 0
  2154. #define R_SERIAL3_STATUS__data_avail__WIDTH 1
  2155. #define R_SERIAL3_STATUS__data_avail__no 0
  2156. #define R_SERIAL3_STATUS__data_avail__yes 1
  2157. #define R_SERIAL3_REC_DATA (IO_TYPECAST_RO_BYTE 0xb0000078)
  2158. #define R_SERIAL3_REC_DATA__data_in__BITNR 0
  2159. #define R_SERIAL3_REC_DATA__data_in__WIDTH 8
  2160. #define R_SERIAL3_XOFF (IO_TYPECAST_UDWORD 0xb000007c)
  2161. #define R_SERIAL3_XOFF__tx_stop__BITNR 9
  2162. #define R_SERIAL3_XOFF__tx_stop__WIDTH 1
  2163. #define R_SERIAL3_XOFF__tx_stop__enable 0
  2164. #define R_SERIAL3_XOFF__tx_stop__stop 1
  2165. #define R_SERIAL3_XOFF__auto_xoff__BITNR 8
  2166. #define R_SERIAL3_XOFF__auto_xoff__WIDTH 1
  2167. #define R_SERIAL3_XOFF__auto_xoff__disable 0
  2168. #define R_SERIAL3_XOFF__auto_xoff__enable 1
  2169. #define R_SERIAL3_XOFF__xoff_char__BITNR 0
  2170. #define R_SERIAL3_XOFF__xoff_char__WIDTH 8
  2171. #define R_ALT_SER_BAUDRATE (IO_TYPECAST_UDWORD 0xb000005c)
  2172. #define R_ALT_SER_BAUDRATE__ser3_tr__BITNR 28
  2173. #define R_ALT_SER_BAUDRATE__ser3_tr__WIDTH 2
  2174. #define R_ALT_SER_BAUDRATE__ser3_tr__normal 0
  2175. #define R_ALT_SER_BAUDRATE__ser3_tr__prescale 1
  2176. #define R_ALT_SER_BAUDRATE__ser3_tr__extern 2
  2177. #define R_ALT_SER_BAUDRATE__ser3_tr__timer 3
  2178. #define R_ALT_SER_BAUDRATE__ser3_rec__BITNR 24
  2179. #define R_ALT_SER_BAUDRATE__ser3_rec__WIDTH 2
  2180. #define R_ALT_SER_BAUDRATE__ser3_rec__normal 0
  2181. #define R_ALT_SER_BAUDRATE__ser3_rec__prescale 1
  2182. #define R_ALT_SER_BAUDRATE__ser3_rec__extern 2
  2183. #define R_ALT_SER_BAUDRATE__ser3_rec__timer 3
  2184. #define R_ALT_SER_BAUDRATE__ser2_tr__BITNR 20
  2185. #define R_ALT_SER_BAUDRATE__ser2_tr__WIDTH 2
  2186. #define R_ALT_SER_BAUDRATE__ser2_tr__normal 0
  2187. #define R_ALT_SER_BAUDRATE__ser2_tr__prescale 1
  2188. #define R_ALT_SER_BAUDRATE__ser2_tr__extern 2
  2189. #define R_ALT_SER_BAUDRATE__ser2_tr__timer 3
  2190. #define R_ALT_SER_BAUDRATE__ser2_rec__BITNR 16
  2191. #define R_ALT_SER_BAUDRATE__ser2_rec__WIDTH 2
  2192. #define R_ALT_SER_BAUDRATE__ser2_rec__normal 0
  2193. #define R_ALT_SER_BAUDRATE__ser2_rec__prescale 1
  2194. #define R_ALT_SER_BAUDRATE__ser2_rec__extern 2
  2195. #define R_ALT_SER_BAUDRATE__ser2_rec__timer 3
  2196. #define R_ALT_SER_BAUDRATE__ser1_tr__BITNR 12
  2197. #define R_ALT_SER_BAUDRATE__ser1_tr__WIDTH 2
  2198. #define R_ALT_SER_BAUDRATE__ser1_tr__normal 0
  2199. #define R_ALT_SER_BAUDRATE__ser1_tr__prescale 1
  2200. #define R_ALT_SER_BAUDRATE__ser1_tr__extern 2
  2201. #define R_ALT_SER_BAUDRATE__ser1_tr__timer 3
  2202. #define R_ALT_SER_BAUDRATE__ser1_rec__BITNR 8
  2203. #define R_ALT_SER_BAUDRATE__ser1_rec__WIDTH 2
  2204. #define R_ALT_SER_BAUDRATE__ser1_rec__normal 0
  2205. #define R_ALT_SER_BAUDRATE__ser1_rec__prescale 1
  2206. #define R_ALT_SER_BAUDRATE__ser1_rec__extern 2
  2207. #define R_ALT_SER_BAUDRATE__ser1_rec__timer 3
  2208. #define R_ALT_SER_BAUDRATE__ser0_tr__BITNR 4
  2209. #define R_ALT_SER_BAUDRATE__ser0_tr__WIDTH 2
  2210. #define R_ALT_SER_BAUDRATE__ser0_tr__normal 0
  2211. #define R_ALT_SER_BAUDRATE__ser0_tr__prescale 1
  2212. #define R_ALT_SER_BAUDRATE__ser0_tr__extern 2
  2213. #define R_ALT_SER_BAUDRATE__ser0_tr__timer 3
  2214. #define R_ALT_SER_BAUDRATE__ser0_rec__BITNR 0
  2215. #define R_ALT_SER_BAUDRATE__ser0_rec__WIDTH 2
  2216. #define R_ALT_SER_BAUDRATE__ser0_rec__normal 0
  2217. #define R_ALT_SER_BAUDRATE__ser0_rec__prescale 1
  2218. #define R_ALT_SER_BAUDRATE__ser0_rec__extern 2
  2219. #define R_ALT_SER_BAUDRATE__ser0_rec__timer 3
  2220. /*
  2221. !* Network interface registers
  2222. !*/
  2223. #define R_NETWORK_SA_0 (IO_TYPECAST_UDWORD 0xb0000080)
  2224. #define R_NETWORK_SA_0__ma0_low__BITNR 0
  2225. #define R_NETWORK_SA_0__ma0_low__WIDTH 32
  2226. #define R_NETWORK_SA_1 (IO_TYPECAST_UDWORD 0xb0000084)
  2227. #define R_NETWORK_SA_1__ma1_low__BITNR 16
  2228. #define R_NETWORK_SA_1__ma1_low__WIDTH 16
  2229. #define R_NETWORK_SA_1__ma0_high__BITNR 0
  2230. #define R_NETWORK_SA_1__ma0_high__WIDTH 16
  2231. #define R_NETWORK_SA_2 (IO_TYPECAST_UDWORD 0xb0000088)
  2232. #define R_NETWORK_SA_2__ma1_high__BITNR 0
  2233. #define R_NETWORK_SA_2__ma1_high__WIDTH 32
  2234. #define R_NETWORK_GA_0 (IO_TYPECAST_UDWORD 0xb000008c)
  2235. #define R_NETWORK_GA_0__ga_low__BITNR 0
  2236. #define R_NETWORK_GA_0__ga_low__WIDTH 32
  2237. #define R_NETWORK_GA_1 (IO_TYPECAST_UDWORD 0xb0000090)
  2238. #define R_NETWORK_GA_1__ga_high__BITNR 0
  2239. #define R_NETWORK_GA_1__ga_high__WIDTH 32
  2240. #define R_NETWORK_REC_CONFIG (IO_TYPECAST_UDWORD 0xb0000094)
  2241. #define R_NETWORK_REC_CONFIG__max_size__BITNR 10
  2242. #define R_NETWORK_REC_CONFIG__max_size__WIDTH 1
  2243. #define R_NETWORK_REC_CONFIG__max_size__size1518 0
  2244. #define R_NETWORK_REC_CONFIG__max_size__size1522 1
  2245. #define R_NETWORK_REC_CONFIG__duplex__BITNR 9
  2246. #define R_NETWORK_REC_CONFIG__duplex__WIDTH 1
  2247. #define R_NETWORK_REC_CONFIG__duplex__full 1
  2248. #define R_NETWORK_REC_CONFIG__duplex__half 0
  2249. #define R_NETWORK_REC_CONFIG__bad_crc__BITNR 8
  2250. #define R_NETWORK_REC_CONFIG__bad_crc__WIDTH 1
  2251. #define R_NETWORK_REC_CONFIG__bad_crc__receive 1
  2252. #define R_NETWORK_REC_CONFIG__bad_crc__discard 0
  2253. #define R_NETWORK_REC_CONFIG__oversize__BITNR 7
  2254. #define R_NETWORK_REC_CONFIG__oversize__WIDTH 1
  2255. #define R_NETWORK_REC_CONFIG__oversize__receive 1
  2256. #define R_NETWORK_REC_CONFIG__oversize__discard 0
  2257. #define R_NETWORK_REC_CONFIG__undersize__BITNR 6
  2258. #define R_NETWORK_REC_CONFIG__undersize__WIDTH 1
  2259. #define R_NETWORK_REC_CONFIG__undersize__receive 1
  2260. #define R_NETWORK_REC_CONFIG__undersize__discard 0
  2261. #define R_NETWORK_REC_CONFIG__all_roots__BITNR 5
  2262. #define R_NETWORK_REC_CONFIG__all_roots__WIDTH 1
  2263. #define R_NETWORK_REC_CONFIG__all_roots__receive 1
  2264. #define R_NETWORK_REC_CONFIG__all_roots__discard 0
  2265. #define R_NETWORK_REC_CONFIG__tr_broadcast__BITNR 4
  2266. #define R_NETWORK_REC_CONFIG__tr_broadcast__WIDTH 1
  2267. #define R_NETWORK_REC_CONFIG__tr_broadcast__receive 1
  2268. #define R_NETWORK_REC_CONFIG__tr_broadcast__discard 0
  2269. #define R_NETWORK_REC_CONFIG__broadcast__BITNR 3
  2270. #define R_NETWORK_REC_CONFIG__broadcast__WIDTH 1
  2271. #define R_NETWORK_REC_CONFIG__broadcast__receive 1
  2272. #define R_NETWORK_REC_CONFIG__broadcast__discard 0
  2273. #define R_NETWORK_REC_CONFIG__individual__BITNR 2
  2274. #define R_NETWORK_REC_CONFIG__individual__WIDTH 1
  2275. #define R_NETWORK_REC_CONFIG__individual__receive 1
  2276. #define R_NETWORK_REC_CONFIG__individual__discard 0
  2277. #define R_NETWORK_REC_CONFIG__ma1__BITNR 1
  2278. #define R_NETWORK_REC_CONFIG__ma1__WIDTH 1
  2279. #define R_NETWORK_REC_CONFIG__ma1__enable 1
  2280. #define R_NETWORK_REC_CONFIG__ma1__disable 0
  2281. #define R_NETWORK_REC_CONFIG__ma0__BITNR 0
  2282. #define R_NETWORK_REC_CONFIG__ma0__WIDTH 1
  2283. #define R_NETWORK_REC_CONFIG__ma0__enable 1
  2284. #define R_NETWORK_REC_CONFIG__ma0__disable 0
  2285. #define R_NETWORK_GEN_CONFIG (IO_TYPECAST_UDWORD 0xb0000098)
  2286. #define R_NETWORK_GEN_CONFIG__loopback__BITNR 5
  2287. #define R_NETWORK_GEN_CONFIG__loopback__WIDTH 1
  2288. #define R_NETWORK_GEN_CONFIG__loopback__on 1
  2289. #define R_NETWORK_GEN_CONFIG__loopback__off 0
  2290. #define R_NETWORK_GEN_CONFIG__frame__BITNR 4
  2291. #define R_NETWORK_GEN_CONFIG__frame__WIDTH 1
  2292. #define R_NETWORK_GEN_CONFIG__frame__tokenr 1
  2293. #define R_NETWORK_GEN_CONFIG__frame__ether 0
  2294. #define R_NETWORK_GEN_CONFIG__vg__BITNR 3
  2295. #define R_NETWORK_GEN_CONFIG__vg__WIDTH 1
  2296. #define R_NETWORK_GEN_CONFIG__vg__on 1
  2297. #define R_NETWORK_GEN_CONFIG__vg__off 0
  2298. #define R_NETWORK_GEN_CONFIG__phy__BITNR 1
  2299. #define R_NETWORK_GEN_CONFIG__phy__WIDTH 2
  2300. #define R_NETWORK_GEN_CONFIG__phy__sni 0
  2301. #define R_NETWORK_GEN_CONFIG__phy__mii_clk 1
  2302. #define R_NETWORK_GEN_CONFIG__phy__mii_err 2
  2303. #define R_NETWORK_GEN_CONFIG__phy__mii_req 3
  2304. #define R_NETWORK_GEN_CONFIG__enable__BITNR 0
  2305. #define R_NETWORK_GEN_CONFIG__enable__WIDTH 1
  2306. #define R_NETWORK_GEN_CONFIG__enable__on 1
  2307. #define R_NETWORK_GEN_CONFIG__enable__off 0
  2308. #define R_NETWORK_TR_CTRL (IO_TYPECAST_UDWORD 0xb000009c)
  2309. #define R_NETWORK_TR_CTRL__clr_error__BITNR 8
  2310. #define R_NETWORK_TR_CTRL__clr_error__WIDTH 1
  2311. #define R_NETWORK_TR_CTRL__clr_error__clr 1
  2312. #define R_NETWORK_TR_CTRL__clr_error__nop 0
  2313. #define R_NETWORK_TR_CTRL__delay__BITNR 5
  2314. #define R_NETWORK_TR_CTRL__delay__WIDTH 1
  2315. #define R_NETWORK_TR_CTRL__delay__d2us 1
  2316. #define R_NETWORK_TR_CTRL__delay__none 0
  2317. #define R_NETWORK_TR_CTRL__cancel__BITNR 4
  2318. #define R_NETWORK_TR_CTRL__cancel__WIDTH 1
  2319. #define R_NETWORK_TR_CTRL__cancel__do 1
  2320. #define R_NETWORK_TR_CTRL__cancel__dont 0
  2321. #define R_NETWORK_TR_CTRL__cd__BITNR 3
  2322. #define R_NETWORK_TR_CTRL__cd__WIDTH 1
  2323. #define R_NETWORK_TR_CTRL__cd__enable 0
  2324. #define R_NETWORK_TR_CTRL__cd__disable 1
  2325. #define R_NETWORK_TR_CTRL__cd__ack_col 0
  2326. #define R_NETWORK_TR_CTRL__cd__ack_crs 1
  2327. #define R_NETWORK_TR_CTRL__retry__BITNR 2
  2328. #define R_NETWORK_TR_CTRL__retry__WIDTH 1
  2329. #define R_NETWORK_TR_CTRL__retry__enable 0
  2330. #define R_NETWORK_TR_CTRL__retry__disable 1
  2331. #define R_NETWORK_TR_CTRL__pad__BITNR 1
  2332. #define R_NETWORK_TR_CTRL__pad__WIDTH 1
  2333. #define R_NETWORK_TR_CTRL__pad__enable 1
  2334. #define R_NETWORK_TR_CTRL__pad__disable 0
  2335. #define R_NETWORK_TR_CTRL__crc__BITNR 0
  2336. #define R_NETWORK_TR_CTRL__crc__WIDTH 1
  2337. #define R_NETWORK_TR_CTRL__crc__enable 0
  2338. #define R_NETWORK_TR_CTRL__crc__disable 1
  2339. #define R_NETWORK_MGM_CTRL (IO_TYPECAST_UDWORD 0xb00000a0)
  2340. #define R_NETWORK_MGM_CTRL__txd_pins__BITNR 4