]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 30 Nov 2008 13:26:47 +0000 (13:26 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Nov 2008 13:26:47 +0000 (13:26 +0000)
Both of these symbols should be defined by a platform, or neither
should be defined.  Ensure that all platforms conform.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-davinci/include/mach/memory.h
arch/arm/mach-h720x/include/mach/memory.h
arch/arm/mach-pxa/include/mach/memory.h
arch/arm/mach-sa1100/include/mach/memory.h

index 3a3353357bacc9d959b9830706e5b9a4e04d72e3..86c25c7f3ce30f2014a98d50511ab3dc048c9e6f 100644 (file)
@@ -52,6 +52,7 @@ __arch_adjust_zones(int node, unsigned long *size, unsigned long *holes)
         if ((meminfo.bank[0].size >> 20) > 128) __arch_adjust_zones(node, zone_size, holes)
 
 #define ISA_DMA_THRESHOLD      (PHYS_OFFSET + (128<<20) - 1)
+#define MAX_DMA_ADDRESS                (PAGE_OFFSET + (128<<20))
 
 #endif
 
index c9bdb21a44459d750198d2e7269af4d355026eae..ef4c1e26f18efbdafe15395f4c0573ec3c4e15b6 100644 (file)
  * This is the maximum DMA address that can be DMAd to.
  * There should not be more than (0xd0000000 - 0xc0000000)
  * bytes of RAM.
- *
- * If you set this, you must also set ISA_DMA_THRESHOLD and setup a DMA
- * zone if this does not cover all possible RAM.
  */
+#define ISA_DMA_THRESHOLD      (PHYS_OFFSET + SZ_256M - 1)
 #define MAX_DMA_ADDRESS                (PAGE_OFFSET + SZ_256M)
 
 #endif
index eac491c2d741a33cef5bbc286aec9030aa3c2895..f626730ee42e11a8071149677b43f55fb85666a7 100644 (file)
@@ -37,6 +37,7 @@ void cmx2xx_pci_adjust_zones(int node, unsigned long *size,
        cmx2xx_pci_adjust_zones(node, size, holes)
 
 #define ISA_DMA_THRESHOLD      (PHYS_OFFSET + SZ_64M - 1)
+#define MAX_DMA_ADDRESS                (PAGE_OFFSET + SZ_64M)
 #endif
 
 #endif
index 6984034f6958d18dfc4f2db177711dd02baf5d85..e9f8eed900f5171f0ecdda0d625cf7399159086b 100644 (file)
@@ -23,6 +23,7 @@ void sa1111_adjust_zones(int node, unsigned long *size, unsigned long *holes);
        sa1111_adjust_zones(node, size, holes)
 
 #define ISA_DMA_THRESHOLD      (PHYS_OFFSET + SZ_1M - 1)
+#define MAX_DMA_ADDRESS                (PAGE_OFFSET + SZ_1M)
 
 #endif
 #endif