]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/uapi/linux/mxc_v4l2.h
ENGR00273974-1 media: port mxc vout driver from 3.5.7 to 3.10
[karo-tx-linux.git] / include / uapi / linux / mxc_v4l2.h
1 /*
2  * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved
3  */
4
5 /*
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20
21 /*!
22  * @file uapi/linux/mxc_v4l2.h
23  *
24  * @brief MXC V4L2 private header file
25  *
26  * @ingroup MXC V4L2
27  */
28
29 #ifndef __ASM_ARCH_MXC_V4L2_H__
30 #define __ASM_ARCH_MXC_V4L2_H__
31
32 /*
33  * For IPUv1 and IPUv3, V4L2_CID_MXC_ROT means encoder ioctl ID.
34  * And V4L2_CID_MXC_VF_ROT is viewfinder ioctl ID only for IPUv1 and IPUv3.
35  */
36 #define V4L2_CID_MXC_ROT                (V4L2_CID_PRIVATE_BASE + 0)
37 #define V4L2_CID_MXC_FLASH              (V4L2_CID_PRIVATE_BASE + 1)
38 #define V4L2_CID_MXC_VF_ROT             (V4L2_CID_PRIVATE_BASE + 2)
39 #define V4L2_CID_MXC_MOTION             (V4L2_CID_PRIVATE_BASE + 3)
40 #define V4L2_CID_MXC_SWITCH_CAM         (V4L2_CID_PRIVATE_BASE + 6)
41
42 #define V4L2_MXC_ROTATE_NONE                    0
43 #define V4L2_MXC_ROTATE_VERT_FLIP               1
44 #define V4L2_MXC_ROTATE_HORIZ_FLIP              2
45 #define V4L2_MXC_ROTATE_180                     3
46 #define V4L2_MXC_ROTATE_90_RIGHT                4
47 #define V4L2_MXC_ROTATE_90_RIGHT_VFLIP          5
48 #define V4L2_MXC_ROTATE_90_RIGHT_HFLIP          6
49 #define V4L2_MXC_ROTATE_90_LEFT                 7
50
51 struct v4l2_mxc_offset {
52         uint32_t u_offset;
53         uint32_t v_offset;
54 };
55
56 #endif