projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARM] Move ISA DMA bus_to_virt() out of set_dma_addr()
[cascardo/linux.git]
/
include
/
asm-arm
/
dma.h
diff --git
a/include/asm-arm/dma.h
b/include/asm-arm/dma.h
index
ef41df4
..
1c7087f
100644
(file)
--- a/
include/asm-arm/dma.h
+++ b/
include/asm-arm/dma.h
@@
-91,7
+91,9
@@
extern void set_dma_sg(dmach_t channel, struct scatterlist *sg, int nr_sg);
* especially since some DMA architectures don't update the
* DMA address immediately, but defer it to the enable_dma().
*/
* especially since some DMA architectures don't update the
* DMA address immediately, but defer it to the enable_dma().
*/
-extern void set_dma_addr(dmach_t channel, unsigned long physaddr);
+extern void __set_dma_addr(dmach_t channel, void *addr);
+#define set_dma_addr(channel, addr) \
+ __set_dma_addr(channel, bus_to_virt(addr))
/* Set the DMA byte count for this channel
*
/* Set the DMA byte count for this channel
*