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_GC2_PARAM_H 8 #define __IA_CSS_GC2_PARAM_H 9 10 #include "type_support.h" 11 /* Extend GC1 */ 12 #include "ia_css_gc2_types.h" 13 #include "gc/gc_1.0/ia_css_gc_param.h" 14 #include "csc/csc_1.0/ia_css_csc_param.h" 15 16 #ifndef PIPE_GENERATION 17 #if defined(IS_VAMEM_VERSION_1) 18 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_1_RGB_GAMMA_TABLE_SIZE 19 #elif defined(IS_VAMEM_VERSION_2) 20 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_2_RGB_GAMMA_TABLE_SIZE 21 #else 22 #error "Undefined vamem version" 23 #endif 24 25 #else 26 /* For pipe generation, the size is not relevant */ 27 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE 0 28 #endif 29 30 /* This should be vamem_data_t, but that breaks the pipe generator */ 31 struct sh_css_isp_rgb_gamma_vamem_params { 32 u16 gc[SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE]; 33 }; 34 35 #endif /* __IA_CSS_GC2_PARAM_H */ 36