summaryrefslogtreecommitdiff
path: root/drivers/media/platform/omap3isp/ispqueue.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-03-08 09:38:38 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-25 11:15:47 -0300
commit7f5036d059fbd263b5322a4298a9935698e7625d (patch)
tree5e877a7e2c4fb8baf4f065f70b931c1df6b8f6c6 /drivers/media/platform/omap3isp/ispqueue.h
parentd13f19f2ca7fb6b545915e96ffe19bb405b72037 (diff)
[media] omap3isp: queue: Allocate kernel buffers with dma_alloc_coherent
And retrieve the related sg table using dma_get_sgtable(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/ispqueue.h')
-rw-r--r--drivers/media/platform/omap3isp/ispqueue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/omap3isp/ispqueue.h b/drivers/media/platform/omap3isp/ispqueue.h
index f78325dbcf49..e03af74ded28 100644
--- a/drivers/media/platform/omap3isp/ispqueue.h
+++ b/drivers/media/platform/omap3isp/ispqueue.h
@@ -68,6 +68,7 @@ enum isp_video_buffer_state {
* @prepared: Whether the buffer has been prepared
* @skip_cache: Whether to skip cache management operations for this buffer
* @vaddr: Memory virtual address (for kernel buffers)
+ * @paddr: Memory physicall address (for kernel buffers)
* @vm_flags: Buffer VMA flags (for userspace buffers)
* @npages: Number of pages (for userspace buffers)
* @pages: Pages table (for userspace non-VM_PFNMAP buffers)
@@ -86,6 +87,7 @@ struct isp_video_buffer {
/* For kernel buffers. */
void *vaddr;
+ dma_addr_t paddr;
/* For userspace buffers. */
vm_flags_t vm_flags;