hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/soc/rockchip/rockchip_rockit.h
....@@ -14,6 +14,13 @@
1414
1515 #define ROCKIT_VICAP_NUM_MAX 6
1616
17
+enum {
18
+ RKISP_NORMAL_ONLINE,
19
+ RKISP_NORMAL_OFFLINE,
20
+ RKISP_FAST_ONLINE,
21
+ RKISP_FAST_OFFLINE,
22
+};
23
+
1724 enum function_cmd {
1825 ROCKIT_BUF_QUE,
1926 ROCKIT_MPIBUF_DONE
....@@ -28,6 +35,7 @@
2835 int cur_fps;
2936 u64 old_time;
3037 bool is_discard;
38
+ struct mutex freebuf_lock;
3139 };
3240
3341 struct ISP_VIDEO_FRAMES {
....@@ -116,6 +124,7 @@
116124
117125 void *rkisp_rockit_function_register(void *function, int cmd);
118126 int rkisp_rockit_get_ispdev(char **name);
127
+int rkisp_rockit_get_isp_mode(const char *name);
119128 int rkisp_rockit_buf_queue(struct rockit_cfg *input_rockit_cfg);
120129 int rkisp_rockit_pause_stream(struct rockit_cfg *input_rockit_cfg);
121130 int rkisp_rockit_resume_stream(struct rockit_cfg *input_rockit_cfg);
....@@ -124,6 +133,7 @@
124133 int rkisp_rockit_get_tb_stream_info(struct rockit_cfg *input_rockit_cfg,
125134 struct rkisp_tb_stream_info *info);
126135 int rkisp_rockit_free_tb_stream_buf(struct rockit_cfg *input_rockit_cfg);
136
+int rkisp_rockit_free_stream_buf(struct rockit_cfg *input_rockit_cfg);
127137
128138 void *rkcif_rockit_function_register(void *function, int cmd);
129139 int rkcif_rockit_get_cifdev(char **name);
....@@ -137,6 +147,7 @@
137147
138148 static inline void *rkisp_rockit_function_register(void *function, int cmd) { return NULL; }
139149 static inline int rkisp_rockit_get_ispdev(char **name) { return -EINVAL; }
150
+static inline int rkisp_rockit_get_isp_mode(const char *name) { return -EINVAL; }
140151 static inline int rkisp_rockit_buf_queue(struct rockit_cfg *input_rockit_cfg)
141152 {
142153 return -EINVAL;
....@@ -166,6 +177,11 @@
166177 return -EINVAL;
167178 }
168179
180
+static inline int rkisp_rockit_free_stream_buf(struct rockit_cfg *input_rockit_cfg)
181
+{
182
+ return -EINVAL;
183
+}
184
+
169185 #endif
170186
171187 #endif