diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-06 11:11:16 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-04-06 11:11:16 +0200 |
commit | 546c9b21117077f145d59a0168fcb6fd0a3c3b24 (patch) | |
tree | 27d3fd3833c7b85f5d65543ac61d6f4f2dc6bc5a /arch | |
parent | cc0477d1ff54e53b7d2b15bc52e33ef38921a295 (diff) | |
parent | 2ae4b13c4c61541119ac5d1d50e06fe7d2f22051 (diff) |
Merge topic branch 'dma' into integration-linux-ux500-3.3
Diffstat (limited to 'arch')
-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; |