1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2015, Intel Corporation. 5 */ 6 7 #ifndef _SH_CSS_LEGACY_H_ 8 #define _SH_CSS_LEGACY_H_ 9 10 #include <type_support.h> 11 #include <ia_css_err.h> 12 #include <ia_css_types.h> 13 #include <ia_css_frame_public.h> 14 #include <ia_css_pipe_public.h> 15 #include <ia_css_stream_public.h> 16 17 /* The pipe id type, distinguishes the kind of pipes that 18 * can be run in parallel. 19 */ 20 enum ia_css_pipe_id { 21 IA_CSS_PIPE_ID_PREVIEW, 22 IA_CSS_PIPE_ID_COPY, 23 IA_CSS_PIPE_ID_VIDEO, 24 IA_CSS_PIPE_ID_CAPTURE, 25 IA_CSS_PIPE_ID_YUVPP, 26 IA_CSS_PIPE_ID_NUM 27 }; 28 29 struct ia_css_pipe_extra_config { 30 bool enable_raw_binning; 31 bool enable_yuv_ds; 32 bool enable_high_speed; 33 bool enable_dvs_6axis; 34 bool enable_reduced_pipe; 35 bool enable_fractional_ds; 36 bool disable_vf_pp; 37 }; 38 39 int 40 ia_css_pipe_create_extra(const struct ia_css_pipe_config *config, 41 const struct ia_css_pipe_extra_config *extra_config, 42 struct ia_css_pipe **pipe); 43 44 void 45 ia_css_pipe_extra_config_defaults(struct ia_css_pipe_extra_config 46 *extra_config); 47 48 int 49 ia_css_temp_pipe_to_pipe_id(const struct ia_css_pipe *pipe, 50 enum ia_css_pipe_id *pipe_id); 51 52 /* DEPRECATED. FPN is not supported. */ 53 int 54 sh_css_set_black_frame(struct ia_css_stream *stream, 55 const struct ia_css_frame *raw_black_frame); 56 57 /* ISP2400 */ 58 void 59 sh_css_enable_cont_capt(bool enable, bool stop_copy_preview); 60 61 #endif /* _SH_CSS_LEGACY_H_ */ 62