summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/compat_ioctl32.c
AgeCommit message (Collapse)Author
2008-07-20Fix x86_64 compilation and move some macros to v4l2-ioctl.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-07-08v4l-dvb: remove support for kernels < 2.6.13Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Phase 3 of the compat cleanup. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-05-26 Hardware frequency seek ioctl interfaceMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-08-09V4L: Add additional ioctls to compat_ioctl32Mauro Carvalho Chehab
From: Steven Walter <stevenrwalter@gmail.com> With the addition of these ioctls, I'm able to watch TV with a 32-bit version of tvtime on x86_64. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-19compat: Add -include linux/version.h to cflagsTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add -include linux/version.h to the cflags. Now code can have backward compatibility test without including compat.h first. Linux headers included from compat.h are removed, so that code will get the same headers when compiling in v4l-dvb as it does in the kernel. Many drivers have compat.h moved to the end of their include list, as this lets compat.h do things it can't do at the beginning. Such as test of something is defined to include compat code, or to put a wrapper around a function without changing the function's name. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-12-16Several stuff backported from 2.6.19-git seriesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - INIT_WORK replaced by INIT_DELAYED_WORK - struct work_struct replaced by struct delayed_work - callback parameters also changed - SLAB_KERNEL replaced by GFP_KERNEL - linux/suspend.h replaced by linux/freezer.h - on cpia: INIT_WORK replaced by INIT_WORK_NAR - file->f_dentry->d_inode replaced by file->f_path.dentry->d_inode Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-06Fix most Compat32 stuff on V4L2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Tested on x64 with a bttv board. Most Get ioctls are fixed. The only non-completely working one is VIDIOCGAUDIO. All other IOR ioctls give the same results on x86_64 and i386 architectures. Thanks to Alastair Poole <netstar@gatheringofgray.com> for part of this patch and tests on ppc64. Signed-off-by: Alastair Poole <netstar@gatheringofgray.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-31Fix V4L1 dependencies on compat_ioctl32Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Compat32 should be able to handle V4L1 ioctls if the old API support were selected. kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-21VIDIOCSMICROCODE were missing on compat_ioctl32Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> video_code size is 24 on i386 and 32 on x86_64, so a proper handling is needed on compat_ioctl32 to fix it. This code should be tested, since just *a few* boards use this ioctl. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-19Remove obsolete #include <linux/config.h>Mauro Carvalho Chehab
From: Jörn Engel <joern@wohnheim.fh-wedel.de> kernel-sync: Kernel adds "-include include/linux/autoconf.h" for every file to be compiled, so, including config.h is not required. Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-03-09User annotations and fixesMauro Carvalho Chehab
* compat_alloc_user_space() returns __user pointer * copying between two userland areas is copy_in_user(), not copy_from_user() * dereferencing userland pointers is bad * so's get_user() from local variables ... plus usual __user annotations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-12Some fixes to compat_ioctl32Mauro Carvalho Chehab
From: Guy Martin <gmsoft@tuxicoman.be> - Adds suppport or fix support for VIDIOC_ENUMSTD, VIDIOC_ENUMINPUT, VIDIOC_G_TUNER and VIDIOC_S_TUNER. - Fix the warnings at compile time and add checks for the pointer validity using access_ok(). - v4l_print_ioctl() has also be added to identify possible missing ioctls. - Has been tested on sparc64 and amd64. Other arches such as mips and hppa are expected to work as sparc, but not tested yet. Signed-off-by: Guy Martin <gmsoft@tuxicoman.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2006-01-04Fixes a bug at compat_ioctl32 kernel moduleMauro Carvalho Chehab
- There is a bug in the ioctl translations from 32bit userspace to 64bit kernelspace in do_set_window(). - The video window (vw) should be passed to native_ioctl() instead of the video clip. Signed-off-by: Guy Martin <gmsoft@tuxicoman.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-10make tree to compile against kernel 2.5.31Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-08Fixes some troubles at v4l2 compat stuffMauro Carvalho Chehab
From: Philippe De Muyter <phdm@macqel.be> - This patch fixes merge and typo problems in v4l2/compat, and fixes VIDIOC_STREAMON, VIDIOC_STREAMOFF & VIDIOC_S_FBUF. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07kernel-sync patches.Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07Adds 32-bit compatibility for v4l2 framegrabber ioctls.Mauro Carvalho Chehab
From: Philippe De Muyter <phdm@macqel.be> adds 32-bit compatibility for v4l2 framegrabber ioctls. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-1264-bit fixes esp. for broken compat_ioctl32.Hans Verkuil
From: Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-11Another build fix for compat_ioctl32.cNickolay V. Shmyrev
From: MishalÅ Pytasz <pytasz@lodz.home.pl> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-11More build fixes for compat_ioctl32.cNickolay V. Shmyrev
From: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-10Use f_op field of struct file instead of strange f_ops.Nickolay V. Shmyrev
From: Axel Thimm <Axel.Thimm@ATrpms.net> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-09compat_ioctl32 installation fixesRicardo Cerqueira
From: Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
2005-11-09Included missing file at the latest commitMauro Carvalho Chehab
- included compat_ioctl32.c, to handle 64 -> 32 bits compat ioctls Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>