aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/videodev.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/include/linux/videodev.h b/include/linux/videodev.h
index b19eab140977..8a7aead76a38 100644
--- a/include/linux/videodev.h
+++ b/include/linux/videodev.h
@@ -16,24 +16,7 @@
16#include <linux/ioctl.h> 16#include <linux/ioctl.h>
17#include <linux/videodev2.h> 17#include <linux/videodev2.h>
18 18
19#if defined(__MIN_V4L1) && defined (__KERNEL__) 19#if defined(CONFIG_VIDEO_V4L1) || defined(CONFIG_VIDEO_V4L1_MODULE) || !defined(__KERNEL__)
20
21/*
22 * Used by those V4L2 core functions that need a minimum V4L1 support,
23 * in order to allow V4L1 Compatibilty code compilation.
24 */
25
26struct video_mbuf
27{
28 int size; /* Total memory to map */
29 int frames; /* Frames */
30 int offsets[VIDEO_MAX_FRAME];
31};
32
33#define VIDIOCGMBUF _IOR('v',20, struct video_mbuf) /* Memory map buffer info */
34
35#else
36#if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
37 20
38#define VID_TYPE_CAPTURE 1 /* Can capture */ 21#define VID_TYPE_CAPTURE 1 /* Can capture */
39#define VID_TYPE_TUNER 2 /* Can tune */ 22#define VID_TYPE_TUNER 2 /* Can tune */
@@ -328,8 +311,7 @@ struct video_code
328#define VID_PLAY_RESET 13 311#define VID_PLAY_RESET 13
329#define VID_PLAY_END_MARK 14 312#define VID_PLAY_END_MARK 14
330 313
331#endif /* CONFIG_VIDEO_V4L1_COMPAT */ 314#endif /* CONFIG_VIDEO_V4L1 */
332#endif /* __MIN_V4L1 */
333 315
334#endif /* __LINUX_VIDEODEV_H */ 316#endif /* __LINUX_VIDEODEV_H */
335 317