hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
 *************************************************************************
 * Rockchip driver for CIF ISP 1.0
 * (Based on Intel driver for sofiaxxx)
 *
 * Copyright (C) 2015 Intel Mobile Communications GmbH
 * Copyright (C) 2016 Fuzhou Rockchip Electronics Co., Ltd.
 *
 *
 * 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.
 *************************************************************************
 */
 
#ifndef _CIF_ISP10_IMG_SRC_V4L2_SUBDEV_H
#define _CIF_ISP10_IMG_SRC_V4L2_SUBDEV_H
 
#define CIF_ISP10_IMG_SRC_V4L2_I2C_SUBDEV  "v4l2-i2c-subdev"
 
void *cif_isp10_img_src_v4l2_i2c_subdev_to_img_src(
   struct device *dev,
   struct pltfrm_soc_cfg *soc_cfg);
 
int cif_isp10_img_src_v4l2_subdev_s_streaming(
   void *img_src,
   bool enable);
 
int cif_isp10_img_src_v4l2_subdev_s_power(
   void *img_src,
   bool on);
 
int cif_isp10_img_src_v4l2_subdev_enum_strm_fmts(
   void *img_src,
   u32 index,
   struct cif_isp10_strm_fmt_desc *strm_fmt_desc);
 
int cif_isp10_img_src_v4l2_subdev_s_strm_fmt(
   void *img_src,
   struct cif_isp10_strm_fmt *strm_fmt);
 
int cif_isp10_img_src_v4l2_subdev_g_ctrl(
   void *img_src,
   int id,
   int *val);
 
int cif_isp10_img_src_v4l2_subdev_s_ctrl(
   void *img_src,
   int id,
   int val);
 
const char *cif_isp10_img_src_v4l2_subdev_g_name(
   void *img_src);
 
int cif_isp10_img_src_v4l2_subdev_s_ext_ctrls(
   void *img_src,
   struct cif_isp10_img_src_ext_ctrl *ctrl);
 
long cif_isp10_img_src_v4l2_subdev_ioctl(
   void *img_src,
   unsigned int cmd,
   void *arg);
 
int cif_isp10_img_src_v4l2_subdev_s_frame_interval(
   void *img_src,
   struct cif_isp10_frm_intrvl *frm_intrvl);
 
int cif_isp10_img_src_v4l2_subdev_g_frame_interval(
   void *img_src,
   struct cif_isp10_frm_intrvl *frm_intrvl);
 
int cif_isp10_img_src_v4l2_subdev_enum_frame_size(
   void *img_src,
   void *fse);
 
#endif