sparc: use asm-generic/scatterlist.h
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 26 Feb 2010 12:33:27 +0000 (04:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 12:33:27 +0000 (04:33 -0800)
sparc's scatterlist structure is identical to the generic one.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/scatterlist.h

index e580f5581c8863ce60ad9d6638f15c039f31ce30..d1120257b0330cd25f6d6db0cac22ef700917c29 100644 (file)
@@ -1,27 +1,8 @@
 #ifndef _SPARC_SCATTERLIST_H
 #define _SPARC_SCATTERLIST_H
 
-#include <asm/page.h>
-#include <asm/types.h>
-
-struct scatterlist {
-#ifdef CONFIG_DEBUG_SG
-       unsigned long   sg_magic;
-#endif
-       unsigned long   page_link;
-       unsigned int    offset;
-
-       unsigned int    length;
-
-       dma_addr_t      dma_address;
-       __u32           dma_length;
-};
-
-#define sg_dma_address(sg)     ((sg)->dma_address)
 #define sg_dma_len(sg)         ((sg)->dma_length)
 
-#define ISA_DMA_THRESHOLD      (~0UL)
-
-#define ARCH_HAS_SG_CHAIN
+#include <asm-generic/scatterlist.h>
 
 #endif /* !(_SPARC_SCATTERLIST_H) */