MLK-11531: uapi: Add v4l2 and dcic head file
authorSandor Yu <R01008@freescale.com>
Fri, 11 Sep 2015 08:33:30 +0000 (16:33 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:31 +0000 (14:48 -0500)
Add v4l2 and dcic head file.

Signed-off-by: Sandor Yu <R01008@freescale.com>
include/uapi/linux/Kbuild
include/uapi/linux/mxc_dcic.h [new file with mode: 0644]
include/uapi/linux/mxc_v4l2.h [new file with mode: 0644]

index cd2be1c..c8dc454 100644 (file)
@@ -245,6 +245,7 @@ header-y += kvm_para.h
 endif
 
 header-y += hw_breakpoint.h
+header-y += ipu.h
 header-y += l2tp.h
 header-y += libc-compat.h
 header-y += lirc.h
@@ -278,6 +279,9 @@ header-y += mroute6.h
 header-y += mroute.h
 header-y += msdos_fs.h
 header-y += msg.h
+header-y += mxcfb.h
+header-y += mxc_dcic.h
+header-y += mxc_v4l2.h
 header-y += mtio.h
 header-y += nbd.h
 header-y += ncp_fs.h
diff --git a/include/uapi/linux/mxc_dcic.h b/include/uapi/linux/mxc_dcic.h
new file mode 100644 (file)
index 0000000..83e3e2c
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. All Rights Reserved
+ */
+
+/*
+ * 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+/*!
+ * @file uapi/linux/mxc_dcic.h
+ *
+ * @brief MXC DCIC private header file
+ *
+ * @ingroup MXC DCIC
+ */
+#ifndef __ASM_ARCH_MXC_DCIC_H__
+#define __ASM_ARCH_MXC_DCIC_H__
+
+#define DCIC_IOC_ALLOC_ROI_NUM _IO('D', 10)
+#define DCIC_IOC_FREE_ROI_NUM  _IO('D', 11)
+#define DCIC_IOC_CONFIG_DCIC   _IO('D', 12)
+#define DCIC_IOC_CONFIG_ROI            _IO('D', 13)
+#define DCIC_IOC_GET_RESULT            _IO('D', 14)
+
+struct roi_params {
+       unsigned int roi_n;
+       unsigned int ref_sig;
+       unsigned int start_y;
+       unsigned int start_x;
+       unsigned int end_y;
+       unsigned int end_x;
+       char freeze;
+};
+
+#endif
diff --git a/include/uapi/linux/mxc_v4l2.h b/include/uapi/linux/mxc_v4l2.h
new file mode 100644 (file)
index 0000000..bf751c6
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2013-2015 Freescale Semiconductor, Inc. All Rights Reserved
+ */
+
+/*
+ * 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+/*!
+ * @file uapi/linux/mxc_v4l2.h
+ *
+ * @brief MXC V4L2 private header file
+ *
+ * @ingroup MXC V4L2
+ */
+
+#ifndef __ASM_ARCH_MXC_V4L2_H__
+#define __ASM_ARCH_MXC_V4L2_H__
+
+/*
+ * For IPUv1 and IPUv3, V4L2_CID_MXC_ROT means encoder ioctl ID.
+ * And V4L2_CID_MXC_VF_ROT is viewfinder ioctl ID only for IPUv1 and IPUv3.
+ */
+#define V4L2_CID_MXC_ROT               (V4L2_CID_PRIVATE_BASE + 0)
+#define V4L2_CID_MXC_FLASH             (V4L2_CID_PRIVATE_BASE + 1)
+#define V4L2_CID_MXC_VF_ROT            (V4L2_CID_PRIVATE_BASE + 2)
+#define V4L2_CID_MXC_MOTION            (V4L2_CID_PRIVATE_BASE + 3)
+#define V4L2_CID_MXC_SWITCH_CAM                (V4L2_CID_PRIVATE_BASE + 6)
+
+#define V4L2_MXC_ROTATE_NONE                   0
+#define V4L2_MXC_ROTATE_VERT_FLIP              1
+#define V4L2_MXC_ROTATE_HORIZ_FLIP             2
+#define V4L2_MXC_ROTATE_180                    3
+#define V4L2_MXC_ROTATE_90_RIGHT               4
+#define V4L2_MXC_ROTATE_90_RIGHT_VFLIP         5
+#define V4L2_MXC_ROTATE_90_RIGHT_HFLIP         6
+#define V4L2_MXC_ROTATE_90_LEFT                        7
+
+struct v4l2_mxc_offset {
+       uint32_t u_offset;
+       uint32_t v_offset;
+};
+
+#endif