media: videobuf2: add V4L2_MEMORY_FLAG_NON_COHERENT flag
By setting or clearing the V4L2_MEMORY_FLAG_NON_COHERENT flag user-space should be able to hint vb2 that either non-coherent (if supported) or coherent memory should be used for the buffer allocation. Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
cde513fd9b
commit
965c1e0bfe
3 changed files with 43 additions and 4 deletions
|
|
@ -962,6 +962,8 @@ struct v4l2_requestbuffers {
|
|||
__u32 reserved[1];
|
||||
};
|
||||
|
||||
#define V4L2_MEMORY_FLAG_NON_COHERENT (1 << 0)
|
||||
|
||||
/* capabilities for struct v4l2_requestbuffers and v4l2_create_buffers */
|
||||
#define V4L2_BUF_CAP_SUPPORTS_MMAP (1 << 0)
|
||||
#define V4L2_BUF_CAP_SUPPORTS_USERPTR (1 << 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue