diff options
author | Bob Liu <lliubbo@gmail.com> | 2011-04-29 12:11:35 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 17:16:45 +0200 |
commit | 7296944759c41001122fc95110468a1a572352cd (patch) | |
tree | 94fe97dd4f5d00d332e77fec0974ebee8e59f377 /drivers/media/video/uvc/uvcvideo.h | |
parent | [media] Revert "V4L/DVB: v4l2-dev: remove get_unmapped_area" (diff) | |
download | linux-7296944759c41001122fc95110468a1a572352cd.tar.xz linux-7296944759c41001122fc95110468a1a572352cd.zip |
[media] uvcvideo: Add support for NOMMU arch
Add support to uvc driver for NOMMU arch including add function
uvc_queue_get_unmapped_area() and make some changes in uvc_queue_mmap().
So that uvc camera can be used on nommu arch like blackfin.
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvcvideo.h')
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 38dd4e18a2ca..0275613c5f33 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h @@ -600,6 +600,10 @@ extern int uvc_queue_mmap(struct uvc_video_queue *queue, struct vm_area_struct *vma); extern unsigned int uvc_queue_poll(struct uvc_video_queue *queue, struct file *file, poll_table *wait); +#ifndef CONFIG_MMU +extern unsigned long uvc_queue_get_unmapped_area(struct uvc_video_queue *queue, + unsigned long pgoff); +#endif extern int uvc_queue_allocated(struct uvc_video_queue *queue); static inline int uvc_queue_streaming(struct uvc_video_queue *queue) { |