1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef _SH_CSS_LEGACY_H_
17 #define _SH_CSS_LEGACY_H_
18 
19 #include <type_support.h>
20 #include <ia_css_err.h>
21 #include <ia_css_types.h>
22 #include <ia_css_frame_public.h>
23 #include <ia_css_pipe_public.h>
24 #include <ia_css_stream_public.h>
25 
26 /* The pipe id type, distinguishes the kind of pipes that
27  *  can be run in parallel.
28  */
29 enum ia_css_pipe_id {
30 	IA_CSS_PIPE_ID_PREVIEW,
31 	IA_CSS_PIPE_ID_COPY,
32 	IA_CSS_PIPE_ID_VIDEO,
33 	IA_CSS_PIPE_ID_CAPTURE,
34 	IA_CSS_PIPE_ID_YUVPP,
35 	IA_CSS_PIPE_ID_ACC,
36 	IA_CSS_PIPE_ID_NUM
37 };
38 
39 struct ia_css_pipe_extra_config {
40 	bool enable_raw_binning;
41 	bool enable_yuv_ds;
42 	bool enable_high_speed;
43 	bool enable_dvs_6axis;
44 	bool enable_reduced_pipe;
45 	bool enable_fractional_ds;
46 	bool disable_vf_pp;
47 };
48 
49 int
50 ia_css_pipe_create_extra(const struct ia_css_pipe_config *config,
51 			 const struct ia_css_pipe_extra_config *extra_config,
52 			 struct ia_css_pipe **pipe);
53 
54 void
55 ia_css_pipe_extra_config_defaults(struct ia_css_pipe_extra_config
56 				  *extra_config);
57 
58 int
59 ia_css_temp_pipe_to_pipe_id(const struct ia_css_pipe *pipe,
60 			    enum ia_css_pipe_id *pipe_id);
61 
62 /* DEPRECATED. FPN is not supported. */
63 int
64 sh_css_set_black_frame(struct ia_css_stream *stream,
65 		       const struct ia_css_frame *raw_black_frame);
66 
67 /* ISP2400 */
68 void
69 sh_css_enable_cont_capt(bool enable, bool stop_copy_preview);
70 
71 #endif /* _SH_CSS_LEGACY_H_ */
72