Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / media / video / cpia2 / cpia2dev.h
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/videodev2.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_VIDIOC_PRIVATE + 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