1
0

hw_udma.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. //*****************************************************************************
  2. //
  3. // hw_udma.h - Macros for use in accessing the UDMA registers.
  4. //
  5. // Copyright (c) 2007-2014 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 2.1.0.12573 of the Tiva Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_UDMA_H__
  40. #define __HW_UDMA_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the Micro Direct Memory Access register
  44. // addresses.
  45. //
  46. //*****************************************************************************
  47. #define UDMA_STAT 0x400FF000 // DMA Status
  48. #define UDMA_CFG 0x400FF004 // DMA Configuration
  49. #define UDMA_CTLBASE 0x400FF008 // DMA Channel Control Base Pointer
  50. #define UDMA_ALTBASE 0x400FF00C // DMA Alternate Channel Control
  51. // Base Pointer
  52. #define UDMA_WAITSTAT 0x400FF010 // DMA Channel Wait-on-Request
  53. // Status
  54. #define UDMA_SWREQ 0x400FF014 // DMA Channel Software Request
  55. #define UDMA_USEBURSTSET 0x400FF018 // DMA Channel Useburst Set
  56. #define UDMA_USEBURSTCLR 0x400FF01C // DMA Channel Useburst Clear
  57. #define UDMA_REQMASKSET 0x400FF020 // DMA Channel Request Mask Set
  58. #define UDMA_REQMASKCLR 0x400FF024 // DMA Channel Request Mask Clear
  59. #define UDMA_ENASET 0x400FF028 // DMA Channel Enable Set
  60. #define UDMA_ENACLR 0x400FF02C // DMA Channel Enable Clear
  61. #define UDMA_ALTSET 0x400FF030 // DMA Channel Primary Alternate
  62. // Set
  63. #define UDMA_ALTCLR 0x400FF034 // DMA Channel Primary Alternate
  64. // Clear
  65. #define UDMA_PRIOSET 0x400FF038 // DMA Channel Priority Set
  66. #define UDMA_PRIOCLR 0x400FF03C // DMA Channel Priority Clear
  67. #define UDMA_ERRCLR 0x400FF04C // DMA Bus Error Clear
  68. #define UDMA_CHASGN 0x400FF500 // DMA Channel Assignment
  69. #define UDMA_CHIS 0x400FF504 // DMA Channel Interrupt Status
  70. #define UDMA_CHMAP0 0x400FF510 // DMA Channel Map Select 0
  71. #define UDMA_CHMAP1 0x400FF514 // DMA Channel Map Select 1
  72. #define UDMA_CHMAP2 0x400FF518 // DMA Channel Map Select 2
  73. #define UDMA_CHMAP3 0x400FF51C // DMA Channel Map Select 3
  74. //*****************************************************************************
  75. //
  76. // The following are defines for the bit fields in the UDMA_STAT register.
  77. //
  78. //*****************************************************************************
  79. #define UDMA_STAT_DMACHANS_M 0x001F0000 // Available uDMA Channels Minus 1
  80. #define UDMA_STAT_STATE_M 0x000000F0 // Control State Machine Status
  81. #define UDMA_STAT_STATE_IDLE 0x00000000 // Idle
  82. #define UDMA_STAT_STATE_RD_CTRL 0x00000010 // Reading channel controller data
  83. #define UDMA_STAT_STATE_RD_SRCENDP \
  84. 0x00000020 // Reading source end pointer
  85. #define UDMA_STAT_STATE_RD_DSTENDP \
  86. 0x00000030 // Reading destination end pointer
  87. #define UDMA_STAT_STATE_RD_SRCDAT \
  88. 0x00000040 // Reading source data
  89. #define UDMA_STAT_STATE_WR_DSTDAT \
  90. 0x00000050 // Writing destination data
  91. #define UDMA_STAT_STATE_WAIT 0x00000060 // Waiting for uDMA request to
  92. // clear
  93. #define UDMA_STAT_STATE_WR_CTRL 0x00000070 // Writing channel controller data
  94. #define UDMA_STAT_STATE_STALL 0x00000080 // Stalled
  95. #define UDMA_STAT_STATE_DONE 0x00000090 // Done
  96. #define UDMA_STAT_STATE_UNDEF 0x000000A0 // Undefined
  97. #define UDMA_STAT_MASTEN 0x00000001 // Master Enable Status
  98. #define UDMA_STAT_DMACHANS_S 16
  99. //*****************************************************************************
  100. //
  101. // The following are defines for the bit fields in the UDMA_CFG register.
  102. //
  103. //*****************************************************************************
  104. #define UDMA_CFG_MASTEN 0x00000001 // Controller Master Enable
  105. //*****************************************************************************
  106. //
  107. // The following are defines for the bit fields in the UDMA_CTLBASE register.
  108. //
  109. //*****************************************************************************
  110. #define UDMA_CTLBASE_ADDR_M 0xFFFFFC00 // Channel Control Base Address
  111. #define UDMA_CTLBASE_ADDR_S 10
  112. //*****************************************************************************
  113. //
  114. // The following are defines for the bit fields in the UDMA_ALTBASE register.
  115. //
  116. //*****************************************************************************
  117. #define UDMA_ALTBASE_ADDR_M 0xFFFFFFFF // Alternate Channel Address
  118. // Pointer
  119. #define UDMA_ALTBASE_ADDR_S 0
  120. //*****************************************************************************
  121. //
  122. // The following are defines for the bit fields in the UDMA_WAITSTAT register.
  123. //
  124. //*****************************************************************************
  125. #define UDMA_WAITSTAT_WAITREQ_M 0xFFFFFFFF // Channel [n] Wait Status
  126. //*****************************************************************************
  127. //
  128. // The following are defines for the bit fields in the UDMA_SWREQ register.
  129. //
  130. //*****************************************************************************
  131. #define UDMA_SWREQ_M 0xFFFFFFFF // Channel [n] Software Request
  132. //*****************************************************************************
  133. //
  134. // The following are defines for the bit fields in the UDMA_USEBURSTSET
  135. // register.
  136. //
  137. //*****************************************************************************
  138. #define UDMA_USEBURSTSET_SET_M 0xFFFFFFFF // Channel [n] Useburst Set
  139. //*****************************************************************************
  140. //
  141. // The following are defines for the bit fields in the UDMA_USEBURSTCLR
  142. // register.
  143. //
  144. //*****************************************************************************
  145. #define UDMA_USEBURSTCLR_CLR_M 0xFFFFFFFF // Channel [n] Useburst Clear
  146. //*****************************************************************************
  147. //
  148. // The following are defines for the bit fields in the UDMA_REQMASKSET
  149. // register.
  150. //
  151. //*****************************************************************************
  152. #define UDMA_REQMASKSET_SET_M 0xFFFFFFFF // Channel [n] Request Mask Set
  153. //*****************************************************************************
  154. //
  155. // The following are defines for the bit fields in the UDMA_REQMASKCLR
  156. // register.
  157. //
  158. //*****************************************************************************
  159. #define UDMA_REQMASKCLR_CLR_M 0xFFFFFFFF // Channel [n] Request Mask Clear
  160. //*****************************************************************************
  161. //
  162. // The following are defines for the bit fields in the UDMA_ENASET register.
  163. //
  164. //*****************************************************************************
  165. #define UDMA_ENASET_SET_M 0xFFFFFFFF // Channel [n] Enable Set
  166. //*****************************************************************************
  167. //
  168. // The following are defines for the bit fields in the UDMA_ENACLR register.
  169. //
  170. //*****************************************************************************
  171. #define UDMA_ENACLR_CLR_M 0xFFFFFFFF // Clear Channel [n] Enable Clear
  172. //*****************************************************************************
  173. //
  174. // The following are defines for the bit fields in the UDMA_ALTSET register.
  175. //
  176. //*****************************************************************************
  177. #define UDMA_ALTSET_SET_M 0xFFFFFFFF // Channel [n] Alternate Set
  178. //*****************************************************************************
  179. //
  180. // The following are defines for the bit fields in the UDMA_ALTCLR register.
  181. //
  182. //*****************************************************************************
  183. #define UDMA_ALTCLR_CLR_M 0xFFFFFFFF // Channel [n] Alternate Clear
  184. //*****************************************************************************
  185. //
  186. // The following are defines for the bit fields in the UDMA_PRIOSET register.
  187. //
  188. //*****************************************************************************
  189. #define UDMA_PRIOSET_SET_M 0xFFFFFFFF // Channel [n] Priority Set
  190. //*****************************************************************************
  191. //
  192. // The following are defines for the bit fields in the UDMA_PRIOCLR register.
  193. //
  194. //*****************************************************************************
  195. #define UDMA_PRIOCLR_CLR_M 0xFFFFFFFF // Channel [n] Priority Clear
  196. //*****************************************************************************
  197. //
  198. // The following are defines for the bit fields in the UDMA_ERRCLR register.
  199. //
  200. //*****************************************************************************
  201. #define UDMA_ERRCLR_ERRCLR 0x00000001 // uDMA Bus Error Status
  202. //*****************************************************************************
  203. //
  204. // The following are defines for the bit fields in the UDMA_CHASGN register.
  205. //
  206. //*****************************************************************************
  207. #define UDMA_CHASGN_M 0xFFFFFFFF // Channel [n] Assignment Select
  208. #define UDMA_CHASGN_PRIMARY 0x00000000 // Use the primary channel
  209. // assignment
  210. #define UDMA_CHASGN_SECONDARY 0x00000001 // Use the secondary channel
  211. // assignment
  212. //*****************************************************************************
  213. //
  214. // The following are defines for the bit fields in the UDMA_CHIS register.
  215. //
  216. //*****************************************************************************
  217. #define UDMA_CHIS_M 0xFFFFFFFF // Channel [n] Interrupt Status
  218. //*****************************************************************************
  219. //
  220. // The following are defines for the bit fields in the UDMA_CHMAP0 register.
  221. //
  222. //*****************************************************************************
  223. #define UDMA_CHMAP0_CH7SEL_M 0xF0000000 // uDMA Channel 7 Source Select
  224. #define UDMA_CHMAP0_CH6SEL_M 0x0F000000 // uDMA Channel 6 Source Select
  225. #define UDMA_CHMAP0_CH5SEL_M 0x00F00000 // uDMA Channel 5 Source Select
  226. #define UDMA_CHMAP0_CH4SEL_M 0x000F0000 // uDMA Channel 4 Source Select
  227. #define UDMA_CHMAP0_CH3SEL_M 0x0000F000 // uDMA Channel 3 Source Select
  228. #define UDMA_CHMAP0_CH2SEL_M 0x00000F00 // uDMA Channel 2 Source Select
  229. #define UDMA_CHMAP0_CH1SEL_M 0x000000F0 // uDMA Channel 1 Source Select
  230. #define UDMA_CHMAP0_CH0SEL_M 0x0000000F // uDMA Channel 0 Source Select
  231. #define UDMA_CHMAP0_CH7SEL_S 28
  232. #define UDMA_CHMAP0_CH6SEL_S 24
  233. #define UDMA_CHMAP0_CH5SEL_S 20
  234. #define UDMA_CHMAP0_CH4SEL_S 16
  235. #define UDMA_CHMAP0_CH3SEL_S 12
  236. #define UDMA_CHMAP0_CH2SEL_S 8
  237. #define UDMA_CHMAP0_CH1SEL_S 4
  238. #define UDMA_CHMAP0_CH0SEL_S 0
  239. //*****************************************************************************
  240. //
  241. // The following are defines for the bit fields in the UDMA_CHMAP1 register.
  242. //
  243. //*****************************************************************************
  244. #define UDMA_CHMAP1_CH15SEL_M 0xF0000000 // uDMA Channel 15 Source Select
  245. #define UDMA_CHMAP1_CH14SEL_M 0x0F000000 // uDMA Channel 14 Source Select
  246. #define UDMA_CHMAP1_CH13SEL_M 0x00F00000 // uDMA Channel 13 Source Select
  247. #define UDMA_CHMAP1_CH12SEL_M 0x000F0000 // uDMA Channel 12 Source Select
  248. #define UDMA_CHMAP1_CH11SEL_M 0x0000F000 // uDMA Channel 11 Source Select
  249. #define UDMA_CHMAP1_CH10SEL_M 0x00000F00 // uDMA Channel 10 Source Select
  250. #define UDMA_CHMAP1_CH9SEL_M 0x000000F0 // uDMA Channel 9 Source Select
  251. #define UDMA_CHMAP1_CH8SEL_M 0x0000000F // uDMA Channel 8 Source Select
  252. #define UDMA_CHMAP1_CH15SEL_S 28
  253. #define UDMA_CHMAP1_CH14SEL_S 24
  254. #define UDMA_CHMAP1_CH13SEL_S 20
  255. #define UDMA_CHMAP1_CH12SEL_S 16
  256. #define UDMA_CHMAP1_CH11SEL_S 12
  257. #define UDMA_CHMAP1_CH10SEL_S 8
  258. #define UDMA_CHMAP1_CH9SEL_S 4
  259. #define UDMA_CHMAP1_CH8SEL_S 0
  260. //*****************************************************************************
  261. //
  262. // The following are defines for the bit fields in the UDMA_CHMAP2 register.
  263. //
  264. //*****************************************************************************
  265. #define UDMA_CHMAP2_CH23SEL_M 0xF0000000 // uDMA Channel 23 Source Select
  266. #define UDMA_CHMAP2_CH22SEL_M 0x0F000000 // uDMA Channel 22 Source Select
  267. #define UDMA_CHMAP2_CH21SEL_M 0x00F00000 // uDMA Channel 21 Source Select
  268. #define UDMA_CHMAP2_CH20SEL_M 0x000F0000 // uDMA Channel 20 Source Select
  269. #define UDMA_CHMAP2_CH19SEL_M 0x0000F000 // uDMA Channel 19 Source Select
  270. #define UDMA_CHMAP2_CH18SEL_M 0x00000F00 // uDMA Channel 18 Source Select
  271. #define UDMA_CHMAP2_CH17SEL_M 0x000000F0 // uDMA Channel 17 Source Select
  272. #define UDMA_CHMAP2_CH16SEL_M 0x0000000F // uDMA Channel 16 Source Select
  273. #define UDMA_CHMAP2_CH23SEL_S 28
  274. #define UDMA_CHMAP2_CH22SEL_S 24
  275. #define UDMA_CHMAP2_CH21SEL_S 20
  276. #define UDMA_CHMAP2_CH20SEL_S 16
  277. #define UDMA_CHMAP2_CH19SEL_S 12
  278. #define UDMA_CHMAP2_CH18SEL_S 8
  279. #define UDMA_CHMAP2_CH17SEL_S 4
  280. #define UDMA_CHMAP2_CH16SEL_S 0
  281. //*****************************************************************************
  282. //
  283. // The following are defines for the bit fields in the UDMA_CHMAP3 register.
  284. //
  285. //*****************************************************************************
  286. #define UDMA_CHMAP3_CH31SEL_M 0xF0000000 // uDMA Channel 31 Source Select
  287. #define UDMA_CHMAP3_CH30SEL_M 0x0F000000 // uDMA Channel 30 Source Select
  288. #define UDMA_CHMAP3_CH29SEL_M 0x00F00000 // uDMA Channel 29 Source Select
  289. #define UDMA_CHMAP3_CH28SEL_M 0x000F0000 // uDMA Channel 28 Source Select
  290. #define UDMA_CHMAP3_CH27SEL_M 0x0000F000 // uDMA Channel 27 Source Select
  291. #define UDMA_CHMAP3_CH26SEL_M 0x00000F00 // uDMA Channel 26 Source Select
  292. #define UDMA_CHMAP3_CH25SEL_M 0x000000F0 // uDMA Channel 25 Source Select
  293. #define UDMA_CHMAP3_CH24SEL_M 0x0000000F // uDMA Channel 24 Source Select
  294. #define UDMA_CHMAP3_CH31SEL_S 28
  295. #define UDMA_CHMAP3_CH30SEL_S 24
  296. #define UDMA_CHMAP3_CH29SEL_S 20
  297. #define UDMA_CHMAP3_CH28SEL_S 16
  298. #define UDMA_CHMAP3_CH27SEL_S 12
  299. #define UDMA_CHMAP3_CH26SEL_S 8
  300. #define UDMA_CHMAP3_CH25SEL_S 4
  301. #define UDMA_CHMAP3_CH24SEL_S 0
  302. //*****************************************************************************
  303. //
  304. // The following are defines for the Micro Direct Memory Access (uDMA) offsets.
  305. //
  306. //*****************************************************************************
  307. #define UDMA_O_SRCENDP 0x00000000 // DMA Channel Source Address End
  308. // Pointer
  309. #define UDMA_O_DSTENDP 0x00000004 // DMA Channel Destination Address
  310. // End Pointer
  311. #define UDMA_O_CHCTL 0x00000008 // DMA Channel Control Word
  312. //*****************************************************************************
  313. //
  314. // The following are defines for the bit fields in the UDMA_O_SRCENDP register.
  315. //
  316. //*****************************************************************************
  317. #define UDMA_SRCENDP_ADDR_M 0xFFFFFFFF // Source Address End Pointer
  318. #define UDMA_SRCENDP_ADDR_S 0
  319. //*****************************************************************************
  320. //
  321. // The following are defines for the bit fields in the UDMA_O_DSTENDP register.
  322. //
  323. //*****************************************************************************
  324. #define UDMA_DSTENDP_ADDR_M 0xFFFFFFFF // Destination Address End Pointer
  325. #define UDMA_DSTENDP_ADDR_S 0
  326. //*****************************************************************************
  327. //
  328. // The following are defines for the bit fields in the UDMA_O_CHCTL register.
  329. //
  330. //*****************************************************************************
  331. #define UDMA_CHCTL_DSTINC_M 0xC0000000 // Destination Address Increment
  332. #define UDMA_CHCTL_DSTINC_8 0x00000000 // Byte
  333. #define UDMA_CHCTL_DSTINC_16 0x40000000 // Half-word
  334. #define UDMA_CHCTL_DSTINC_32 0x80000000 // Word
  335. #define UDMA_CHCTL_DSTINC_NONE 0xC0000000 // No increment
  336. #define UDMA_CHCTL_DSTSIZE_M 0x30000000 // Destination Data Size
  337. #define UDMA_CHCTL_DSTSIZE_8 0x00000000 // Byte
  338. #define UDMA_CHCTL_DSTSIZE_16 0x10000000 // Half-word
  339. #define UDMA_CHCTL_DSTSIZE_32 0x20000000 // Word
  340. #define UDMA_CHCTL_SRCINC_M 0x0C000000 // Source Address Increment
  341. #define UDMA_CHCTL_SRCINC_8 0x00000000 // Byte
  342. #define UDMA_CHCTL_SRCINC_16 0x04000000 // Half-word
  343. #define UDMA_CHCTL_SRCINC_32 0x08000000 // Word
  344. #define UDMA_CHCTL_SRCINC_NONE 0x0C000000 // No increment
  345. #define UDMA_CHCTL_SRCSIZE_M 0x03000000 // Source Data Size
  346. #define UDMA_CHCTL_SRCSIZE_8 0x00000000 // Byte
  347. #define UDMA_CHCTL_SRCSIZE_16 0x01000000 // Half-word
  348. #define UDMA_CHCTL_SRCSIZE_32 0x02000000 // Word
  349. #define UDMA_CHCTL_DSTPROT0 0x00200000 // Destination Privilege Access
  350. #define UDMA_CHCTL_SRCPROT0 0x00040000 // Source Privilege Access
  351. #define UDMA_CHCTL_ARBSIZE_M 0x0003C000 // Arbitration Size
  352. #define UDMA_CHCTL_ARBSIZE_1 0x00000000 // 1 Transfer
  353. #define UDMA_CHCTL_ARBSIZE_2 0x00004000 // 2 Transfers
  354. #define UDMA_CHCTL_ARBSIZE_4 0x00008000 // 4 Transfers
  355. #define UDMA_CHCTL_ARBSIZE_8 0x0000C000 // 8 Transfers
  356. #define UDMA_CHCTL_ARBSIZE_16 0x00010000 // 16 Transfers
  357. #define UDMA_CHCTL_ARBSIZE_32 0x00014000 // 32 Transfers
  358. #define UDMA_CHCTL_ARBSIZE_64 0x00018000 // 64 Transfers
  359. #define UDMA_CHCTL_ARBSIZE_128 0x0001C000 // 128 Transfers
  360. #define UDMA_CHCTL_ARBSIZE_256 0x00020000 // 256 Transfers
  361. #define UDMA_CHCTL_ARBSIZE_512 0x00024000 // 512 Transfers
  362. #define UDMA_CHCTL_ARBSIZE_1024 0x00028000 // 1024 Transfers
  363. #define UDMA_CHCTL_XFERSIZE_M 0x00003FF0 // Transfer Size (minus 1)
  364. #define UDMA_CHCTL_NXTUSEBURST 0x00000008 // Next Useburst
  365. #define UDMA_CHCTL_XFERMODE_M 0x00000007 // uDMA Transfer Mode
  366. #define UDMA_CHCTL_XFERMODE_STOP \
  367. 0x00000000 // Stop
  368. #define UDMA_CHCTL_XFERMODE_BASIC \
  369. 0x00000001 // Basic
  370. #define UDMA_CHCTL_XFERMODE_AUTO \
  371. 0x00000002 // Auto-Request
  372. #define UDMA_CHCTL_XFERMODE_PINGPONG \
  373. 0x00000003 // Ping-Pong
  374. #define UDMA_CHCTL_XFERMODE_MEM_SG \
  375. 0x00000004 // Memory Scatter-Gather
  376. #define UDMA_CHCTL_XFERMODE_MEM_SGA \
  377. 0x00000005 // Alternate Memory Scatter-Gather
  378. #define UDMA_CHCTL_XFERMODE_PER_SG \
  379. 0x00000006 // Peripheral Scatter-Gather
  380. #define UDMA_CHCTL_XFERMODE_PER_SGA \
  381. 0x00000007 // Alternate Peripheral
  382. // Scatter-Gather
  383. #define UDMA_CHCTL_XFERSIZE_S 4
  384. #endif // __HW_UDMA_H__