diff options
author | Jan Kara <jack@suse.cz> | 2015-07-13 16:55:46 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-16 18:10:42 +0200 |
commit | 21fb0cb7ec65a40b9f5f7cda59eba0eb2ae76473 (patch) | |
tree | e0cccb86717f351e3bc6c38811cb093c65837f07 /include | |
parent | [media] media: omap_vout: Convert omap_vout_uservirt_to_phys() to use get_vad... (diff) | |
download | linux-21fb0cb7ec65a40b9f5f7cda59eba0eb2ae76473.tar.xz linux-21fb0cb7ec65a40b9f5f7cda59eba0eb2ae76473.zip |
[media] vb2: Provide helpers for mapping virtual addresses
Provide simple helper functions to map virtual address range into an
array of pfns / pages.
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/videobuf2-memops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/videobuf2-memops.h b/include/media/videobuf2-memops.h index f05444ca8c0c..2f0564ff5f31 100644 --- a/include/media/videobuf2-memops.h +++ b/include/media/videobuf2-memops.h @@ -15,6 +15,7 @@ #define _MEDIA_VIDEOBUF2_MEMOPS_H #include <media/videobuf2-core.h> +#include <linux/mm.h> /** * vb2_vmarea_handler - common vma refcount tracking handler @@ -36,5 +37,9 @@ int vb2_get_contig_userptr(unsigned long vaddr, unsigned long size, struct vm_area_struct *vb2_get_vma(struct vm_area_struct *vma); void vb2_put_vma(struct vm_area_struct *vma); +struct frame_vector *vb2_create_framevec(unsigned long start, + unsigned long length, + bool write); +void vb2_destroy_framevec(struct frame_vector *vec); #endif |