diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-01-23 20:38:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:55 -0500 |
commit | 52ebc763d8e0c9f2ab48af89a75e90e2318bac86 (patch) | |
tree | 5699ff9425fb1da30a18b00661fcea659ace6a72 /include/media/v4l2-dev.h | |
parent | dbbff48f39263f7e5c96a55624da87879de2bf71 (diff) |
V4L/DVB (5146): Make VIDIOC_INT_[SG]_REGISTER ioctls no longer internal only
The direct register access ioctls were defined as kernel internal only,
but they are very useful for debugging hardware from userspace and are
used as such. Officially export them.
VIDIOC_INT_[SG]_REGISTER is renamed to VIDIOC_DBG_[SG]_REGISTER
Definition of ioctl and struct v4l2_register is moved from v4l2-common.h
to videodev2.h.
Types used in struct v4l2_register are changed to the userspace
exportable versions (u32 -> __u32, etc).
Use of VIDIOC_DBG_S_REGISTER requires CAP_SYS_ADMIN permission, so move
the check into the video_ioctl2() dispatcher so it doesn't need to be
duplicated in each driver's call-back function. CAP_SYS_ADMIN check is
added to pvrusb2 (which doesn't use video_ioctl2).
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/v4l2-dev.h')
-rw-r--r-- | include/media/v4l2-dev.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h index 46eb71f5653c..aeec56992ef5 100644 --- a/include/media/v4l2-dev.h +++ b/include/media/v4l2-dev.h | |||
@@ -77,9 +77,6 @@ int v4l_compat_translate_ioctl(struct inode *inode, struct file *file, | |||
77 | extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, | 77 | extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, |
78 | unsigned long arg); | 78 | unsigned long arg); |
79 | 79 | ||
80 | /* Forward definition of v4l2-common.h defined structure */ | ||
81 | struct v4l2_register; | ||
82 | |||
83 | /* | 80 | /* |
84 | * Newer version of video_device, handled by videodev2.c | 81 | * Newer version of video_device, handled by videodev2.c |
85 | * This version moves redundant code from video device code to | 82 | * This version moves redundant code from video device code to |