summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2011-04-29 07:11:35 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 12:16:45 -0300
commit7296944759c41001122fc95110468a1a572352cd (patch)
tree94fe97dd4f5d00d332e77fec0974ebee8e59f377 /drivers/media/video/uvc/uvcvideo.h
parentecc6517d947e91f02eb5a3a055f524122846f84e (diff)
downloadlinux-stable-7296944759c41001122fc95110468a1a572352cd.tar.gz
linux-stable-7296944759c41001122fc95110468a1a572352cd.tar.bz2
linux-stable-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.h4
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)
{