2 * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved
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.
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.
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.
22 * @file uapi/linux/mxc_v4l2.h
24 * @brief MXC V4L2 private header file
29 #ifndef __ASM_ARCH_MXC_V4L2_H__
30 #define __ASM_ARCH_MXC_V4L2_H__
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.
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)
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
51 struct v4l2_mxc_offset {