diff options
Diffstat (limited to 'include/linux/videodev.h')
| -rw-r--r-- | include/linux/videodev.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/videodev.h b/include/linux/videodev.h index 837f392fbe97..b19eab140977 100644 --- a/include/linux/videodev.h +++ b/include/linux/videodev.h | |||
| @@ -16,6 +16,23 @@ | |||
| 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__) | ||
| 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 | |||
| 26 | struct 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 | ||
| 19 | #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__) | 36 | #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__) |
| 20 | 37 | ||
| 21 | #define VID_TYPE_CAPTURE 1 /* Can capture */ | 38 | #define VID_TYPE_CAPTURE 1 /* Can capture */ |
| @@ -312,6 +329,7 @@ struct video_code | |||
| 312 | #define VID_PLAY_END_MARK 14 | 329 | #define VID_PLAY_END_MARK 14 |
| 313 | 330 | ||
| 314 | #endif /* CONFIG_VIDEO_V4L1_COMPAT */ | 331 | #endif /* CONFIG_VIDEO_V4L1_COMPAT */ |
| 332 | #endif /* __MIN_V4L1 */ | ||
| 315 | 333 | ||
| 316 | #endif /* __LINUX_VIDEODEV_H */ | 334 | #endif /* __LINUX_VIDEODEV_H */ |
| 317 | 335 | ||
