mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[media] vb2: add vb2_get_unmapped_area in vb2 core
no mmu system needs get_unmapped_area file operations to do mmap Signed-off-by: Scott Jiang <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
bfa8dd3a05
commit
6f524ec156
2 changed files with 38 additions and 0 deletions
|
|
@ -322,6 +322,13 @@ int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type);
|
|||
int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type);
|
||||
|
||||
int vb2_mmap(struct vb2_queue *q, struct vm_area_struct *vma);
|
||||
#ifndef CONFIG_MMU
|
||||
unsigned long vb2_get_unmapped_area(struct vb2_queue *q,
|
||||
unsigned long addr,
|
||||
unsigned long len,
|
||||
unsigned long pgoff,
|
||||
unsigned long flags);
|
||||
#endif
|
||||
unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
|
||||
size_t vb2_read(struct vb2_queue *q, char __user *data, size_t count,
|
||||
loff_t *ppos, int nonblock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue