diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-01-25 04:48:01 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-01-28 07:04:36 -0500 |
commit | 30d38a3286b140ae8cea84a93cde1f112e352aaf (patch) | |
tree | b8b08a5ffacdfad43531ef38227db39cdbb69fcb /drivers/dma/dw_dmac_regs.h | |
parent | fdf475fa40f1468cf43a72b270f74dc6a4a5c905 (diff) |
dw_dmac: introduce total_len field in struct dw_desc
By this new field we distinguish a total length of the chain and the individual
length of each descriptor in the chain.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw_dmac_regs.h')
-rw-r--r-- | drivers/dma/dw_dmac_regs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw_dmac_regs.h index 13000d2b3352..833b4cf9843d 100644 --- a/drivers/dma/dw_dmac_regs.h +++ b/drivers/dma/dw_dmac_regs.h | |||
@@ -296,6 +296,7 @@ struct dw_desc { | |||
296 | struct list_head tx_list; | 296 | struct list_head tx_list; |
297 | struct dma_async_tx_descriptor txd; | 297 | struct dma_async_tx_descriptor txd; |
298 | size_t len; | 298 | size_t len; |
299 | size_t total_len; | ||
299 | }; | 300 | }; |
300 | 301 | ||
301 | #define to_dw_desc(h) list_entry(h, struct dw_desc, desc_node) | 302 | #define to_dw_desc(h) list_entry(h, struct dw_desc, desc_node) |