isp10: rockchip: v0.1.6
[firefly-linux-kernel-4.4.55.git] / drivers / media / platform / rk-isp10 / cif_isp10_img_src_v4l2-subdev.h
1 /*
2  *************************************************************************
3  * Rockchip driver for CIF ISP 1.0
4  * (Based on Intel driver for sofiaxxx)
5  *
6  * Copyright (C) 2015 Intel Mobile Communications GmbH
7  * Copyright (C) 2016 Fuzhou Rockchip Electronics Co., Ltd.
8  *
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *************************************************************************
15  */
16
17 #ifndef _CIF_ISP10_IMG_SRC_V4L2_SUBDEV_H
18 #define _CIF_ISP10_IMG_SRC_V4L2_SUBDEV_H
19
20 #define CIF_ISP10_IMG_SRC_V4L2_I2C_SUBDEV  "v4l2-i2c-subdev"
21
22 void *cif_isp10_img_src_v4l2_i2c_subdev_to_img_src(
23         struct device *dev,
24         struct pltfrm_soc_cfg *soc_cfg);
25
26 int cif_isp10_img_src_v4l2_subdev_s_streaming(
27         void *img_src,
28         bool enable);
29
30 int cif_isp10_img_src_v4l2_subdev_s_power(
31         void *img_src,
32         bool on);
33
34 int cif_isp10_img_src_v4l2_subdev_enum_strm_fmts(
35         void *img_src,
36         u32 index,
37         struct cif_isp10_strm_fmt_desc *strm_fmt_desc);
38
39 int cif_isp10_img_src_v4l2_subdev_s_strm_fmt(
40         void *img_src,
41         struct cif_isp10_strm_fmt *strm_fmt);
42
43 int cif_isp10_img_src_v4l2_subdev_g_ctrl(
44         void *img_src,
45         int id,
46         int *val);
47
48 int cif_isp10_img_src_v4l2_subdev_s_ctrl(
49         void *img_src,
50         int id,
51         int val);
52
53 const char *cif_isp10_img_src_v4l2_subdev_g_name(
54         void *img_src);
55
56 int cif_isp10_img_src_v4l2_subdev_s_ext_ctrls(
57         void *img_src,
58         struct cif_isp10_img_src_ext_ctrl *ctrl);
59
60 long cif_isp10_img_src_v4l2_subdev_ioctl(
61         void *img_src,
62         unsigned int cmd,
63         void *arg);
64
65 #endif