summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-01-22 18:31:53 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2007-01-22 18:31:53 -0800
commitaafc760ef56b4f913b2d26e8774e1b030d83f2f4 (patch)
tree755f97510cc5b2a5fd50f71ed3db38078823f6fd /linux/include
parentf01b6a9483f1dc1f6cb992ff34f75b2727805a8d (diff)
downloadmediapointer-dvb-s2-aafc760ef56b4f913b2d26e8774e1b030d83f2f4.tar.gz
mediapointer-dvb-s2-aafc760ef56b4f913b2d26e8774e1b030d83f2f4.tar.bz2
Restore VIDIOC_INT_[SG]_REGISTER calls
From: Trent Piepho <xyzzy@speakeasy.org> Add support for these ioctls to the video_ioctl2 system and the cx88 driver. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/v4l2-dev.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index e67ef632c..f42ac241b 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -81,6 +81,9 @@ int v4l_compat_translate_ioctl(struct inode *inode, struct file *file,
extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd,
unsigned long arg);
+/* Forward definition of v4l2-common.h defined structure */
+struct v4l2_register;
+
/*
* Newer version of video_device, handled by videodev2.c
* This version moves redundant code from video device code to
@@ -305,6 +308,15 @@ struct video_device
/* Log status ioctl */
int (*vidioc_log_status) (struct file *file, void *fh);
+
+ /* Debugging ioctls */
+#ifdef CONFIG_VIDEO_ADV_DEBUG
+ int (*vidioc_g_register) (struct file *file, void *fh,
+ struct v4l2_register *reg);
+ int (*vidioc_s_register) (struct file *file, void *fh,
+ struct v4l2_register *reg);
+#endif
+
#if 0 /* old, obsolete interface */
int (*open)(struct video_device *, int mode);
void (*close)(struct video_device *);