diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-11-18 07:50:59 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-25 05:51:44 -0500 |
commit | d935c57e8fb6902a9ede603bb55d9e158f75f09a (patch) | |
tree | f2640e64127e2a8cc1fedc55830fc37aab3ae540 /include/media | |
parent | cd474037c4a9a9c15cab46ff26ceeed1bbda6abb (diff) |
[media] vb2: add dma_dir to the alloc memop
This is needed for the next patch where the dma-sg alloc memop needs
to know the dma_dir.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/videobuf2-core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index d607871749c7..bd2cec2d6c3d 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h | |||
@@ -82,7 +82,9 @@ struct vb2_threadio_data; | |||
82 | * unmap_dmabuf. | 82 | * unmap_dmabuf. |
83 | */ | 83 | */ |
84 | struct vb2_mem_ops { | 84 | struct vb2_mem_ops { |
85 | void *(*alloc)(void *alloc_ctx, unsigned long size, gfp_t gfp_flags); | 85 | void *(*alloc)(void *alloc_ctx, unsigned long size, |
86 | enum dma_data_direction dma_dir, | ||
87 | gfp_t gfp_flags); | ||
86 | void (*put)(void *buf_priv); | 88 | void (*put)(void *buf_priv); |
87 | struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags); | 89 | struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags); |
88 | 90 | ||