diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-11-09 18:30:51 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-11-09 18:30:51 +0000 |
commit | 51e6aace3963d461deec54508840690ca6d492f3 (patch) | |
tree | 63d155b6a88405994f056f6361fe803c001a3627 /linux/include | |
parent | 0ba16a35a3502d508163f645bead7fc9173e7e08 (diff) | |
download | mediapointer-dvb-s2-51e6aace3963d461deec54508840690ca6d492f3.tar.gz mediapointer-dvb-s2-51e6aace3963d461deec54508840690ca6d492f3.tar.bz2 |
Moves 32 bit ioctl compat handler to V4L sybsystem
From: Arnd Bergmann <arnd@arndb.de>
This moves the 32 bit ioctl compatibility handlers for
Video4Linux into a new file and adds explicit calls to them
to each v4l device driver.
Unfortunately, there does not seem to be any code handling
the v4l2 ioctls, so quite often the code goes through two
separate conversions, first from 32 bit v4l to 64 bit v4l,
and from there to 64 bit v4l2. My patch does not change
that, so there is still much room for improvement.
Also, some drivers have additional ioctl numbers, for
which the conversion should be handled internally to
that driver.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/videodev2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h index 3e84fac7e..8a2bddc0b 100644 --- a/linux/include/linux/videodev2.h +++ b/linux/include/linux/videodev2.h @@ -1146,6 +1146,11 @@ typedef int (*v4l2_kioctl)(struct inode *inode, struct file *file, int v4l_compat_translate_ioctl(struct inode *inode, struct file *file, int cmd, void *arg, v4l2_kioctl driver_ioctl); +/* 32 Bits compatibility layer for 64 bits processors */ +extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd, + unsigned long arg); + + #endif /* __KERNEL__ */ #endif /* __LINUX_VIDEODEV2_H */ |