diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-09-27 17:25:44 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 23:02:55 -0400 |
commit | 851c0c96b2212f48fe51afc1589541b5eae3a544 (patch) | |
tree | 0ec4d6019033242fb75e717ca05c1f04d2eca934 /include/media/videobuf-core.h | |
parent | cd4765efdd816ac14075fc7d5adf489502e75e1e (diff) |
V4L/DVB (6266): videobuf cleanup: mmap check is common to all videobuf. Make it at core
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981
Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'include/media/videobuf-core.h')
-rw-r--r-- | include/media/videobuf-core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/videobuf-core.h b/include/media/videobuf-core.h index 0ac21ae44f69..96949e31eaf8 100644 --- a/include/media/videobuf-core.h +++ b/include/media/videobuf-core.h | |||
@@ -97,6 +97,9 @@ struct videobuf_buffer { | |||
97 | /* buffer addr (userland ptr!) */ | 97 | /* buffer addr (userland ptr!) */ |
98 | unsigned long baddr; | 98 | unsigned long baddr; |
99 | 99 | ||
100 | /* for mmap'ed buffers */ | ||
101 | struct videobuf_mapping *map; | ||
102 | |||
100 | /* Private pointer to allow specific methods to store their data */ | 103 | /* Private pointer to allow specific methods to store their data */ |
101 | int privsize; | 104 | int privsize; |
102 | void *priv; | 105 | void *priv; |
@@ -143,7 +146,6 @@ struct videobuf_qtype_ops { | |||
143 | int (*mmap_free) (struct videobuf_queue *q); | 146 | int (*mmap_free) (struct videobuf_queue *q); |
144 | int (*mmap_mapper) (struct videobuf_queue *q, | 147 | int (*mmap_mapper) (struct videobuf_queue *q, |
145 | struct vm_area_struct *vma); | 148 | struct vm_area_struct *vma); |
146 | int (*is_mmapped) (struct videobuf_buffer *buf); | ||
147 | }; | 149 | }; |
148 | 150 | ||
149 | struct videobuf_queue { | 151 | struct videobuf_queue { |