diff options
Diffstat (limited to 'include/asm-arm/dma.h')
-rw-r--r-- | include/asm-arm/dma.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-arm/dma.h b/include/asm-arm/dma.h index ef41df43a584..49c01e2bf7c8 100644 --- a/include/asm-arm/dma.h +++ b/include/asm-arm/dma.h | |||
@@ -10,6 +10,13 @@ typedef unsigned int dmach_t; | |||
10 | #include <asm/arch/dma.h> | 10 | #include <asm/arch/dma.h> |
11 | 11 | ||
12 | /* | 12 | /* |
13 | * This is the maximum virtual address which can be DMA'd from. | ||
14 | */ | ||
15 | #ifndef MAX_DMA_ADDRESS | ||
16 | #define MAX_DMA_ADDRESS 0xffffffff | ||
17 | #endif | ||
18 | |||
19 | /* | ||
13 | * DMA modes | 20 | * DMA modes |
14 | */ | 21 | */ |
15 | typedef unsigned int dmamode_t; | 22 | typedef unsigned int dmamode_t; |
@@ -91,7 +98,9 @@ extern void set_dma_sg(dmach_t channel, struct scatterlist *sg, int nr_sg); | |||
91 | * especially since some DMA architectures don't update the | 98 | * especially since some DMA architectures don't update the |
92 | * DMA address immediately, but defer it to the enable_dma(). | 99 | * DMA address immediately, but defer it to the enable_dma(). |
93 | */ | 100 | */ |
94 | extern void set_dma_addr(dmach_t channel, unsigned long physaddr); | 101 | extern void __set_dma_addr(dmach_t channel, void *addr); |
102 | #define set_dma_addr(channel, addr) \ | ||
103 | __set_dma_addr(channel, bus_to_virt(addr)) | ||
95 | 104 | ||
96 | /* Set the DMA byte count for this channel | 105 | /* Set the DMA byte count for this channel |
97 | * | 106 | * |