]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-sh/scatterlist.h
sh: Clean up places that make 29-bit physical assumptions.
[linux-2.6-omap-h63xx.git] / include / asm-sh / scatterlist.h
index a7d0d1856a993bae7cde541f6c4df72a6a464bf3..35ef9c30f0dec8338da7398edc3a716510fdbee0 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __ASM_SH_SCATTERLIST_H
 #define __ASM_SH_SCATTERLIST_H
 
+#include <asm/pgtable.h>
 #include <asm/types.h>
 
 struct scatterlist {
@@ -13,7 +14,7 @@ struct scatterlist {
     unsigned int length;
 };
 
-#define ISA_DMA_THRESHOLD (0x1fffffff)
+#define ISA_DMA_THRESHOLD      PHYS_ADDR_MASK
 
 /* These macros should be used after a pci_map_sg call has been done
  * to get bus addresses of each of the SG entries and their lengths.