diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 19:10:23 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 19:10:23 +0200 |
commit | a4e0d9af403d099e751797f6cc69e4a8e2d78ef1 (patch) | |
tree | 6f4afdffe5dbaad7529be987b8c3259a07395031 /include/asm-sparc/scatterlist_64.h | |
parent | V4L/DVB (8425): v4l: fix checkpatch errors introduced by recent commits (diff) | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
download | linux-a4e0d9af403d099e751797f6cc69e4a8e2d78ef1.tar.xz linux-a4e0d9af403d099e751797f6cc69e4a8e2d78ef1.zip |
Merge ../linux-2.6
Diffstat (limited to 'include/asm-sparc/scatterlist_64.h')
-rw-r--r-- | include/asm-sparc/scatterlist_64.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/asm-sparc/scatterlist_64.h b/include/asm-sparc/scatterlist_64.h new file mode 100644 index 000000000000..81bd058f9382 --- /dev/null +++ b/include/asm-sparc/scatterlist_64.h @@ -0,0 +1,27 @@ +#ifndef _SPARC64_SCATTERLIST_H +#define _SPARC64_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 + +#endif /* !(_SPARC64_SCATTERLIST_H) */ |