diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-24 00:42:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-24 00:42:02 -0300 |
commit | 08dc9fe76a3b0e971faad21836c53a655c4ec333 (patch) | |
tree | cb8b343932fa38762ebddb1c45962ac6282dd473 /linux/drivers/media/video/cpia2/cpia2dev.h | |
parent | eeaa22858ac00b68bd5fe46af679dd5ffabeb5ce (diff) | |
download | mediapointer-dvb-s2-08dc9fe76a3b0e971faad21836c53a655c4ec333.tar.gz mediapointer-dvb-s2-08dc9fe76a3b0e971faad21836c53a655c4ec333.tar.bz2 |
Add cpia2 camera support
From: Alan Cox <alan@redhat.com>
There has been a CPIA2 driver out of kernel for a long time and it has
been pretty clean for some time too. This is an import of the
sourceforge driver which has been stripped of
- 2.4 back compatibility
- 2.4 old style MJPEG ioctls
A couple of functions have been made static and the docs have been
repackaged into Documentation/video4linux. The rvmalloc/free functions now
match the cpia driver again. Other than that this is the code as is.
Tested on x86-64 with a QX5 microscope.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cpia2/cpia2dev.h')
-rw-r--r-- | linux/drivers/media/video/cpia2/cpia2dev.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cpia2/cpia2dev.h b/linux/drivers/media/video/cpia2/cpia2dev.h new file mode 100644 index 000000000..09822f3a4 --- /dev/null +++ b/linux/drivers/media/video/cpia2/cpia2dev.h @@ -0,0 +1,51 @@ +/**************************************************************************** + * + * Filename: cpia2dev.h + * + * Copyright 2001, STMicrolectronics, Inc. + * + * Contact: steve.miller@st.com + * + * Description: + * This file provides definitions for applications wanting to use the + * cpia2 driver beyond the generic v4l capabilities. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + ****************************************************************************/ +/* $Id: cpia2dev.h,v 1.3 2005/08/29 23:39:57 sbertin Exp $ */ + +#ifndef CPIA2_DEV_HEADER +#define CPIA2_DEV_HEADER + +#include <linux/videodev.h> + +/*** + * The following defines are ioctl numbers based on video4linux private ioctls, + * which can range from 192 (BASE_VIDIOCPRIVATE) to 255. All of these take int + * args + */ +#define CPIA2_IOC_SET_GPIO _IOW('v', BASE_VIDIOCPRIVATE + 17, __u32) + +/* V4L2 driver specific controls */ +#define CPIA2_CID_TARGET_KB (V4L2_CID_PRIVATE_BASE+0) +#define CPIA2_CID_GPIO (V4L2_CID_PRIVATE_BASE+1) +#define CPIA2_CID_FLICKER_MODE (V4L2_CID_PRIVATE_BASE+2) +#define CPIA2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE+3) +#define CPIA2_CID_USB_ALT (V4L2_CID_PRIVATE_BASE+4) +#define CPIA2_CID_LIGHTS (V4L2_CID_PRIVATE_BASE+5) +#define CPIA2_CID_RESET_CAMERA (V4L2_CID_PRIVATE_BASE+6) + +#endif |