diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:23:29 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:23:29 +0100 |
commit | 7446550602a61a55db3255d09ec207059db6ddb6 (patch) | |
tree | b80f44121594ed3a235213a39f593562fec1f8e5 /arch/arm | |
parent | 7dff3eb2c92cc83407d911c3a69739362d926ead (diff) | |
parent | 22ff33afa29bd89c1867c633652e518f7b48f812 (diff) |
Merge topic branch 'dma' into integration-linux-ux500-3.3
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-nomadik/include/plat/ste_dma40.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/include/plat/ste_dma40.h b/arch/arm/plat-nomadik/include/plat/ste_dma40.h index d61faffd13d..43f4d3a1126 100644 --- a/arch/arm/plat-nomadik/include/plat/ste_dma40.h +++ b/arch/arm/plat-nomadik/include/plat/ste_dma40.h @@ -163,6 +163,24 @@ struct stedma40_platform_data { #ifdef CONFIG_STE_DMA40 +/* + * stedma40_get_src_addr - get current source address + * @chan: the DMA channel + * + * Returns the physical address of the current source element to be read by the + * DMA. + */ +dma_addr_t stedma40_get_src_addr(struct dma_chan *chan); + +/* + * stedma40_get_dst_addr - get current destination address + * @chan: the DMA channel + * + * Returns the physical address of the current destination element to be + * written by the DMA. + */ +dma_addr_t stedma40_get_dst_addr(struct dma_chan *chan); + /** * stedma40_filter() - Provides stedma40_chan_cfg to the * ste_dma40 dma driver via the dmaengine framework. @@ -206,6 +224,16 @@ dma_async_tx_descriptor *stedma40_slave_mem(struct dma_chan *chan, } #else +dma_addr_t stedma40_get_src_addr(struct dma_chan *chan) +{ + return NULL; +} + +dma_addr_t stedma40_get_dst_addr(struct dma_chan *chan) +{ + return NULL; +} + static inline bool stedma40_filter(struct dma_chan *chan, void *data) { return false; |