diff options
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/dma.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/include/asm/dma.h b/arch/arm/include/asm/dma.h index 42005542932..fcf15de8cad 100644 --- a/arch/arm/include/asm/dma.h +++ b/arch/arm/include/asm/dma.h | |||
@@ -6,10 +6,13 @@ | |||
6 | /* | 6 | /* |
7 | * This is the maximum virtual address which can be DMA'd from. | 7 | * This is the maximum virtual address which can be DMA'd from. |
8 | */ | 8 | */ |
9 | #ifndef ARM_DMA_ZONE_SIZE | 9 | #ifndef CONFIG_ZONE_DMA |
10 | #define MAX_DMA_ADDRESS 0xffffffff | 10 | #define MAX_DMA_ADDRESS 0xffffffffUL |
11 | #else | 11 | #else |
12 | #define MAX_DMA_ADDRESS (PAGE_OFFSET + ARM_DMA_ZONE_SIZE) | 12 | #define MAX_DMA_ADDRESS ({ \ |
13 | extern unsigned long arm_dma_zone_size; \ | ||
14 | arm_dma_zone_size ? \ | ||
15 | (PAGE_OFFSET + arm_dma_zone_size) : 0xffffffffUL; }) | ||
13 | #endif | 16 | #endif |
14 | 17 | ||
15 | #ifdef CONFIG_ISA_DMA_API | 18 | #ifdef CONFIG_ISA_DMA_API |