summaryrefslogtreecommitdiff
path: root/include/dma.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-06-20 17:29:15 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-23 21:48:33 +0000
commit09db229f212a95bc674625895e68670a7aa57c00 (patch)
tree7b116cdeb5a34efe4ca89bc075b3f868dd32347e /include/dma.h
parenta5e93651fb91d8ae38e4f16a1ca7495ae257f2b9 (diff)
downloadchrome-ec-09db229f212a95bc674625895e68670a7aa57c00.tar.gz
Make DMA interface chip independent
The common DMA interface should not include chip dependent stuff. Otherwise we cannot share DMA interface across chips. BUG=None TEST=make buildall BRANCH=None Change-Id: I9e0d0c0637520c613747110d6c65d3b800e01704 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/205066 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/dma.h')
-rw-r--r--include/dma.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dma.h b/include/dma.h
index 04c1be2bf9..e63d03a232 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -30,7 +30,7 @@ struct dma_option {
* @param channel Channel to read
* @return pointer to DMA channel registers
*/
-stm32_dma_chan_t *dma_get_channel(enum dma_channel channel);
+dma_chan_t *dma_get_channel(enum dma_channel channel);
/**
* Prepare a DMA transfer to transmit data from memory to a peripheral
@@ -76,14 +76,14 @@ void dma_disable(enum dma_channel channel);
* @return number of bytes completed on a channel, or 0 if this channel is
* not enabled
*/
-int dma_bytes_done(stm32_dma_chan_t *chan, int orig_count);
+int dma_bytes_done(dma_chan_t *chan, int orig_count);
/**
* Start a previously-prepared dma channel
*
* @param chan Channel to start, from dma_get_channel()
*/
-void dma_go(stm32_dma_chan_t *chan);
+void dma_go(dma_chan_t *chan);
#ifdef CONFIG_DMA_HELP
/**