diff options
author | Elen Song <elen.song@atmel.com> | 2013-05-09 23:00:50 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-07-05 02:10:30 -0400 |
commit | d088c33b646e9f3564eea7a057a2cb697c18bcd0 (patch) | |
tree | 297d676a700dad9089b642d80c5823f0a97cd7c1 /drivers/dma/at_hdmac_regs.h | |
parent | 6c22770f644bf23aecc11fedd7b305488a861bfc (diff) |
DMA: AT91: Get transfer width
In one dma transfer, the data transfer width can be configured and it is limited by source or destination peripheral width,
tx_width will save the transfer width, but for memcpy, either source or destination transfer width is taken as tx_width.
Signed-off-by: Elen Song <elen.song@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/at_hdmac_regs.h')
-rw-r--r-- | drivers/dma/at_hdmac_regs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/at_hdmac_regs.h b/drivers/dma/at_hdmac_regs.h index c604d26fd4d3..3679933fb646 100644 --- a/drivers/dma/at_hdmac_regs.h +++ b/drivers/dma/at_hdmac_regs.h | |||
@@ -182,6 +182,7 @@ struct at_lli { | |||
182 | * @txd: support for the async_tx api | 182 | * @txd: support for the async_tx api |
183 | * @desc_node: node on the channed descriptors list | 183 | * @desc_node: node on the channed descriptors list |
184 | * @len: total transaction bytecount | 184 | * @len: total transaction bytecount |
185 | * @tx_width: transfer width | ||
185 | */ | 186 | */ |
186 | struct at_desc { | 187 | struct at_desc { |
187 | /* FIRST values the hardware uses */ | 188 | /* FIRST values the hardware uses */ |
@@ -192,6 +193,7 @@ struct at_desc { | |||
192 | struct dma_async_tx_descriptor txd; | 193 | struct dma_async_tx_descriptor txd; |
193 | struct list_head desc_node; | 194 | struct list_head desc_node; |
194 | size_t len; | 195 | size_t len; |
196 | u32 tx_width; | ||
195 | }; | 197 | }; |
196 | 198 | ||
197 | static inline struct at_desc * | 199 | static inline struct at_desc * |