aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/scatterlist.h
diff options
context:
space:
mode:
authorRobert Reif <reif@earthlink.net>2008-12-11 23:24:58 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-11 23:24:58 -0500
commitaa83a26a193bf06ac6c822ccd881c62898a351c6 (patch)
tree5bd83b07c38ccc233261d1c5a907772750ce7e81 /arch/sparc/include/asm/scatterlist.h
parent18cdae68e7bb24f33883e58f366cde38ea89ba17 (diff)
sparc: use sparc64 version of scatterlist.h
Use sparc64 version of scatterlist.h. There are three main differences: dma_addr_t replaces __u32 dma_address replaces dvma_address dma_length replaces dvma_length dma_addr_t is a u32 on sparc32. Boot tested on sparc32. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/scatterlist.h')
-rw-r--r--arch/sparc/include/asm/scatterlist.h33
1 files changed, 26 insertions, 7 deletions
diff --git a/arch/sparc/include/asm/scatterlist.h b/arch/sparc/include/asm/scatterlist.h
index ec21a4517641..e580f5581c88 100644
--- a/arch/sparc/include/asm/scatterlist.h
+++ b/arch/sparc/include/asm/scatterlist.h
@@ -1,8 +1,27 @@
1#ifndef ___ASM_SPARC_SCATTERLIST_H 1#ifndef _SPARC_SCATTERLIST_H
2#define ___ASM_SPARC_SCATTERLIST_H 2#define _SPARC_SCATTERLIST_H
3#if defined(__sparc__) && defined(__arch64__) 3
4#include <asm/scatterlist_64.h> 4#include <asm/page.h>
5#else 5#include <asm/types.h>
6#include <asm/scatterlist_32.h> 6
7#endif 7struct scatterlist {
8#ifdef CONFIG_DEBUG_SG
9 unsigned long sg_magic;
8#endif 10#endif
11 unsigned long page_link;
12 unsigned int offset;
13
14 unsigned int length;
15
16 dma_addr_t dma_address;
17 __u32 dma_length;
18};
19
20#define sg_dma_address(sg) ((sg)->dma_address)
21#define sg_dma_len(sg) ((sg)->dma_length)
22
23#define ISA_DMA_THRESHOLD (~0UL)
24
25#define ARCH_HAS_SG_CHAIN
26
27#endif /* !(_SPARC_SCATTERLIST_H) */