path: root/arch/cris/include/asm/dma-mapping.h
AgeCommit message (Collapse)AuthorFilesLines
2016-01-20dma-mapping: always provide the dma_map_ops based implementationChristoph Hellwig1-2/+0
Move the generic implementation to <linux/dma-mapping.h> now that all architectures support it and remove the HAVE_DMA_ATTR Kconfig symbol now that everyone supports them. [ remove leftovers in Kconfig] Signed-off-by: Christoph Hellwig <> Cc: "David S. Miller" <> Cc: Aurelien Jacquiot <> Cc: Chris Metcalf <> Cc: David Howells <> Cc: Geert Uytterhoeven <> Cc: Haavard Skinnemoen <> Cc: Hans-Christian Egtvedt <> Cc: Helge Deller <> Cc: James Hogan <> Cc: Jesper Nilsson <> Cc: Koichi Yasutake <> Cc: Ley Foon Tan <> Cc: Mark Salter <> Cc: Mikael Starvik <> Cc: Steven Miao <> Cc: Vineet Gupta <> Cc: Christian Borntraeger <> Cc: Joerg Roedel <> Cc: Sebastian Ott <> Signed-off-by: Valentin Rothberg <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2016-01-20cris: convert to dma_map_opsChristoph Hellwig1-153/+8
Signed-off-by: Christoph Hellwig <> Cc: Mikael Starvik <> Cc: Jesper Nilsson <> Cc: Christian Borntraeger <> Cc: Joerg Roedel <> Cc: Sebastian Ott <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2015-05-05remove <asm/scatterlist.h>Christoph Hellwig1-1/+1
We don't have any arch specific scatterlist now that parisc switched over to the generic one. Signed-off-by: Christoph Hellwig <> Signed-off-by: Jens Axboe <>
2013-01-29cris: Provide dma_mmap_coherent() and dma_get_sgtable()Geert Uytterhoeven1-0/+10
cris/allmodconfig: drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’: drivers/media/v4l2-core/videobuf2-dma-contig.c:204: error: implicit declaration of function ‘dma_mmap_coherent’ drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_get_base_sgt’: drivers/media/v4l2-core/videobuf2-dma-contig.c:387: error: implicit declaration of function ‘dma_get_sgtable’ For architectures using dma_map_ops, dma_mmap_coherent() and dma_get_sgtable() are provided in <asm-generic/dma-mapping-common.h>. Cris does not use dma_map_ops, hence it should implement them as inline stubs using dma_common_mmap() and dma_common_get_sgtable(). Signed-off-by: Geert Uytterhoeven <> Cc: Marek Szyprowski <> Cc: Acked-by: Jesper Nilsson <> Signed-off-by: Marek Szyprowski <>
2010-08-11dma-mapping: remove dma_is_consistent APIFUJITA Tomonori1-2/+0
Architectures implement dma_is_consistent() in different ways (some misinterpret the definition of API in DMA-API.txt). So it hasn't been so useful for drivers. We have only one user of the API in tree. Unlikely out-of-tree drivers use the API. Even if we fix dma_is_consistent() in some architectures, it doesn't look useful at all. It was invented long ago for some old systems that can't allocate coherent memory at all. It's better to export only APIs that are definitely necessary for drivers. Let's remove this API. Signed-off-by: FUJITA Tomonori <> Cc: James Bottomley <> Reviewed-by: Konrad Rzeszutek Wilk <> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2010-08-11dma-mapping: unify dma_get_cache_alignment implementationsFUJITA Tomonori1-6/+0
dma_get_cache_alignment returns the minimum DMA alignment. Architectures defines it as ARCH_DMA_MINALIGN (formally ARCH_KMALLOC_MINALIGN). So we can unify dma_get_cache_alignment implementations. Note that some architectures implement dma_get_cache_alignment wrongly. dma_get_cache_alignment() should return the minimum DMA alignment. So fully-coherent architectures should return 1. This patch also fixes this issue. Signed-off-by: FUJITA Tomonori <> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2008-10-29[CRIS] Move header files from include to arch/cris/include.Jesper Nilsson1-0/+170
Change all users of header files to correct path. Remove some unneeded headers for arch-v32. Signed-off-by: Jesper Nilsson <>