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 __IA_CSS_VF_PARAM_H
17 #define __IA_CSS_VF_PARAM_H
18 
19 #include "type_support.h"
20 #include "dma.h"
21 #include "gc/gc_1.0/ia_css_gc_param.h" /* GAMMA_OUTPUT_BITS */
22 #include "ia_css_frame_comm.h" /* ia_css_frame_sp_info */
23 #include "ia_css_vf_types.h"
24 
25 #define VFDEC_BITS_PER_PIXEL	GAMMA_OUTPUT_BITS
26 
27 /* Viewfinder decimation */
28 struct sh_css_isp_vf_isp_config {
29 	u32 vf_downscale_bits; /** Log VF downscale value */
30 	u32 enable;
31 	struct ia_css_frame_sp_info info;
32 	struct {
33 		u32 width_a_over_b;
34 		struct dma_port_config port_b;
35 	} dma;
36 };
37 
38 #endif /* __IA_CSS_VF_PARAM_H */
39