aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/Kconfig
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-07-16 20:33:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:25:37 -0400
commit2cc45cf25a2c14da6d18b7570a23ec09fb8f439a (patch)
tree2e49e60a6d13964681ce8b754ec0f9bf6a608805 /drivers/media/video/Kconfig
parent5d6aaf50e2986d3289d16fc2859c490c66a1be63 (diff)
V4L/DVB (8341): videobuf: Add physically contiguous queue code V3
This is V3 of the physically contiguous videobuf queues patch. Useful for hardware such as the SuperH Mobile CEU which doesn't support scatter gatter bus mastering. Since it may be difficult to allocate large chunks of physically contiguous memory after some uptime due to fragmentation, this code allocates memory using dma_alloc_coherent(). Architectures supporting dma_declare_coherent_memory() can easily avoid fragmentation issues by using dma_declare_coherent_memory() to force dma_alloc_coherent() to allocate from a certain pre-allocated memory area. Changes since V2 - use dma_handle for physical address - use "scatter gather" instead of "scatter gatter" Changes since V1: - use dev_err() instead of pr_err() - remember size in struct videobuf_dma_contig_memory - keep struct videobuf_dma_contig_memory in .c file - let videobuf_to_dma_contig() return dma_addr_t - implement __videobuf_sync() - return statements, white space and other minor fixes Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/Kconfig')
-rw-r--r--drivers/media/video/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
index 2103f7bfd48c..9a4265e5cd84 100644
--- a/drivers/media/video/Kconfig
+++ b/drivers/media/video/Kconfig
@@ -24,6 +24,11 @@ config VIDEOBUF_VMALLOC
24 select VIDEOBUF_GEN 24 select VIDEOBUF_GEN
25 tristate 25 tristate
26 26
27config VIDEOBUF_DMA_CONTIG
28 depends on HAS_DMA
29 select VIDEOBUF_GEN
30 tristate
31
27config VIDEOBUF_DVB 32config VIDEOBUF_DVB
28 tristate 33 tristate
29 select VIDEOBUF_GEN 34 select VIDEOBUF_GEN