diff options
author | Michal Simek <monstr@monstr.eu> | 2009-03-27 14:25:35 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-03-27 14:25:35 +0100 |
commit | 69b1b7817e68379aa55d4677657135a05a287785 (patch) | |
tree | 75a684960c5ad357ecda66d4e33c71cd97fa7274 /arch/microblaze/include/asm/scatterlist.h | |
parent | c6087fdc7720e7c5cf3d52fccecb3f73e3d52ac7 (diff) | |
download | op-kernel-dev-69b1b7817e68379aa55d4677657135a05a287785.zip op-kernel-dev-69b1b7817e68379aa55d4677657135a05a287785.tar.gz |
microblaze_v8: dma support
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/scatterlist.h')
-rw-r--r-- | arch/microblaze/include/asm/scatterlist.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/scatterlist.h b/arch/microblaze/include/asm/scatterlist.h new file mode 100644 index 0000000..08ff1d0 --- /dev/null +++ b/arch/microblaze/include/asm/scatterlist.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2008 Michal Simek <monstr@monstr.eu> + * Copyright (C) 2006 Atmark Techno, Inc. + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + */ + +#ifndef _ASM_MICROBLAZE_SCATTERLIST_H +#define _ASM_MICROBLAZE_SCATTERLIST_H + +struct scatterlist { +#ifdef CONFIG_DEBUG_SG + unsigned long sg_magic; +#endif + unsigned long page_link; + dma_addr_t dma_address; + unsigned int offset; + unsigned int length; +}; + +#define sg_dma_address(sg) ((sg)->dma_address) +#define sg_dma_len(sg) ((sg)->length) + +#define ISA_DMA_THRESHOLD (~0UL) + +#endif /* _ASM_MICROBLAZE_SCATTERLIST_H */ |