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 __IA_CSS_XNR_PARAM_H 8 #define __IA_CSS_XNR_PARAM_H 9 10 #include "type_support.h" 11 #include <system_global.h> 12 13 #ifndef PIPE_GENERATION 14 #define SH_CSS_ISP_XNR_TABLE_SIZE_LOG2 IA_CSS_VAMEM_2_XNR_TABLE_SIZE_LOG2 15 #define SH_CSS_ISP_XNR_TABLE_SIZE IA_CSS_VAMEM_2_XNR_TABLE_SIZE 16 17 #else 18 /* For pipe generation, the size is not relevant */ 19 #define SH_CSS_ISP_XNR_TABLE_SIZE 0 20 #endif 21 22 /* This should be vamem_data_t, but that breaks the pipe generator */ 23 struct sh_css_isp_xnr_vamem_params { 24 u16 xnr[SH_CSS_ISP_XNR_TABLE_SIZE]; 25 }; 26 27 struct sh_css_isp_xnr_params { 28 /* XNR threshold. 29 * type:u0.16 but actual valid range is:[0,255] 30 * valid range is dependent on SH_CSS_ISP_YUV_BITS (currently 8bits) 31 * default: 25 */ 32 u16 threshold; 33 }; 34 35 #endif /* __IA_CSS_XNR_PARAM_H */ 36