summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/scatterlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/scatterlist.h')
-rw-r--r--include/asm-sparc64/scatterlist.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-sparc64/scatterlist.h b/include/asm-sparc64/scatterlist.h
index d64162a5a..27ebd548b 100644
--- a/include/asm-sparc64/scatterlist.h
+++ b/include/asm-sparc64/scatterlist.h
@@ -1,4 +1,4 @@
-/* $Id: scatterlist.h,v 1.7 1999/08/30 10:15:01 davem Exp $ */
+/* $Id: scatterlist.h,v 1.9 1999/12/17 12:32:15 jj Exp $ */
#ifndef _SPARC64_SCATTERLIST_H
#define _SPARC64_SCATTERLIST_H
@@ -14,7 +14,9 @@ struct scatterlist {
__u32 dvma_length;
};
-extern unsigned long phys_base;
-#define ISA_DMA_THRESHOLD (phys_base + (0xfe000000UL) + PAGE_OFFSET)
+#define sg_dma_address(sg) ((sg)->dvma_address)
+#define sg_dma_len(sg) ((sg)->dvma_length)
+
+#define ISA_DMA_THRESHOLD (~0UL)
#endif /* !(_SPARC64_SCATTERLIST_H) */