public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc: use asm-generic/scatterlist.h
@ 2010-02-26  0:43 FUJITA Tomonori
  2010-02-26 12:35 ` David Miller
  0 siblings, 1 reply; 13+ messages in thread
From: FUJITA Tomonori @ 2010-02-26  0:43 UTC (permalink / raw)
  To: davem; +Cc: sparclinux, linux-kernel

sparc's scatterlist structure is identical to the generic one.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
 arch/sparc/include/asm/scatterlist.h |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diff --git a/arch/sparc/include/asm/scatterlist.h b/arch/sparc/include/asm/scatterlist.h
index e580f55..d112025 100644
--- a/arch/sparc/include/asm/scatterlist.h
+++ b/arch/sparc/include/asm/scatterlist.h
@@ -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) */
-- 
1.6.5


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-03-02 14:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26  0:43 [PATCH] sparc: use asm-generic/scatterlist.h FUJITA Tomonori
2010-02-26 12:35 ` David Miller
2010-03-01  6:05   ` FUJITA Tomonori
2010-03-01  7:03     ` David Miller
2010-03-01 11:29     ` Arnd Bergmann
2010-03-02  3:33       ` FUJITA Tomonori
2010-03-02 12:03         ` Arnd Bergmann
2010-03-02 12:25           ` FUJITA Tomonori
2010-03-02 13:38             ` Arnd Bergmann
2010-03-02 13:49               ` FUJITA Tomonori
2010-03-02 13:54                 ` Arnd Bergmann
2010-03-02 13:55                   ` David Miller
2010-03-02 14:06                     ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox