diff options
author | Alan Cox <alan@redhat.com> | 2006-02-26 22:09:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-26 22:09:05 -0500 |
commit | ab33d5071de7a33616842882c11b5eb52a6c26a1 (patch) | |
tree | 5484a1a0d671e7191a47a1b51d5e1ae67fc8916f /drivers/media/video/cpia2/cpia2dev.h | |
parent | f05cce863fa399dd79c5aa3896d608b8b86d8030 (diff) |
V4L/DVB (3376): Add cpia2 camera support
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 'drivers/media/video/cpia2/cpia2dev.h')
-rw-r--r-- | drivers/media/video/cpia2/cpia2dev.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/drivers/media/video/cpia2/cpia2dev.h b/drivers/media/video/cpia2/cpia2dev.h new file mode 100644 index 000000000000..d58097ce0d5e --- /dev/null +++ b/drivers/media/video/cpia2/cpia2dev.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /**************************************************************************** | ||
2 | * | ||
3 | * Filename: cpia2dev.h | ||
4 | * | ||
5 | * Copyright 2001, STMicrolectronics, Inc. | ||
6 | * | ||
7 | * Contact: steve.miller@st.com | ||
8 | * | ||
9 | * Description: | ||
10 | * This file provides definitions for applications wanting to use the | ||
11 | * cpia2 driver beyond the generic v4l capabilities. | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | ||
14 | * it under the terms of the GNU General Public License as published by | ||
15 | * the Free Software Foundation; either version 2 of the License, or | ||
16 | * (at your option) any later version. | ||
17 | * | ||
18 | * This program is distributed in the hope that it will be useful, | ||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | * GNU General Public License for more details. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License | ||
24 | * along with this program; if not, write to the Free Software | ||
25 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
26 | * | ||
27 | ****************************************************************************/ | ||
28 | |||
29 | #ifndef CPIA2_DEV_HEADER | ||
30 | #define CPIA2_DEV_HEADER | ||
31 | |||
32 | #include <linux/videodev.h> | ||
33 | |||
34 | /*** | ||
35 | * The following defines are ioctl numbers based on video4linux private ioctls, | ||
36 | * which can range from 192 (BASE_VIDIOCPRIVATE) to 255. All of these take int | ||
37 | * args | ||
38 | */ | ||
39 | #define CPIA2_IOC_SET_GPIO _IOW('v', BASE_VIDIOCPRIVATE + 17, __u32) | ||
40 | |||
41 | /* V4L2 driver specific controls */ | ||
42 | #define CPIA2_CID_TARGET_KB (V4L2_CID_PRIVATE_BASE+0) | ||
43 | #define CPIA2_CID_GPIO (V4L2_CID_PRIVATE_BASE+1) | ||
44 | #define CPIA2_CID_FLICKER_MODE (V4L2_CID_PRIVATE_BASE+2) | ||
45 | #define CPIA2_CID_FRAMERATE (V4L2_CID_PRIVATE_BASE+3) | ||
46 | #define CPIA2_CID_USB_ALT (V4L2_CID_PRIVATE_BASE+4) | ||
47 | #define CPIA2_CID_LIGHTS (V4L2_CID_PRIVATE_BASE+5) | ||
48 | #define CPIA2_CID_RESET_CAMERA (V4L2_CID_PRIVATE_BASE+6) | ||
49 | |||
50 | #endif | ||