summaryrefslogtreecommitdiffstats
path: root/include/dma.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-13 11:56:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-29 08:16:36 +0200
commit20c9325c6201de9287910756f6794ba03fd03c82 (patch)
treeaf728d54eb3bb5ea9609723994736ae22d17158f /include/dma.h
parent548a574e370f046d09443bc29b210c2c294fa532 (diff)
downloadbarebox-20c9325c6201de9287910756f6794ba03fd03c82.tar.gz
barebox-20c9325c6201de9287910756f6794ba03fd03c82.tar.xz
dma: Use dma_addr_t as type for DMA addresses
DMA addresses are not necessarily the same as unsigned long. Fix the type for the dma_sync_single_* operations. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/dma.h')
-rw-r--r--include/dma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dma.h b/include/dma.h
index 4d31797968..29d94c0a52 100644
--- a/include/dma.h
+++ b/include/dma.h
@@ -31,10 +31,10 @@ static inline void dma_free(void *mem)
#endif
/* streaming DMA - implement the below calls to support HAS_DMA */
-void dma_sync_single_for_cpu(unsigned long address, size_t size,
+void dma_sync_single_for_cpu(dma_addr_t address, size_t size,
enum dma_data_direction dir);
-void dma_sync_single_for_device(unsigned long address, size_t size,
+void dma_sync_single_for_device(dma_addr_t address, size_t size,
enum dma_data_direction dir);
void *dma_alloc_coherent(size_t size, dma_addr_t *dma_handle);