diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-02-18 11:30:02 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-01 21:12:03 -0500 |
commit | c014906a870ce70e009def0c9d170ccabeb0be63 (patch) | |
tree | b1cfb6520ed0bcdfb0f1b32282b94658a989b04f /drivers/dma/shdma.h | |
parent | c8e3149ba7de24dfd4c37bb0df23c878cdecd8d4 (diff) |
dmaengine: shdma: extend .device_terminate_all() to record partial transfer
This patch extends the .device_terminate_all() method of the shdma driver
to return number of bytes transfered in the current descriptor.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.h')
-rw-r--r-- | drivers/dma/shdma.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/dma/shdma.h b/drivers/dma/shdma.h index 9f0897f7fe34..153609a1e96c 100644 --- a/drivers/dma/shdma.h +++ b/drivers/dma/shdma.h | |||
@@ -21,22 +21,6 @@ | |||
21 | 21 | ||
22 | #define SH_DMA_TCR_MAX 0x00FFFFFF /* 16MB */ | 22 | #define SH_DMA_TCR_MAX 0x00FFFFFF /* 16MB */ |
23 | 23 | ||
24 | struct sh_dmae_regs { | ||
25 | u32 sar; /* SAR / source address */ | ||
26 | u32 dar; /* DAR / destination address */ | ||
27 | u32 tcr; /* TCR / transfer count */ | ||
28 | }; | ||
29 | |||
30 | struct sh_desc { | ||
31 | struct sh_dmae_regs hw; | ||
32 | struct list_head node; | ||
33 | struct dma_async_tx_descriptor async_tx; | ||
34 | enum dma_data_direction direction; | ||
35 | dma_cookie_t cookie; | ||
36 | int chunks; | ||
37 | int mark; | ||
38 | }; | ||
39 | |||
40 | struct device; | 24 | struct device; |
41 | 25 | ||
42 | struct sh_dmae_chan { | 26 | struct sh_dmae_chan { |