2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #ifndef __IA_CSS_GC2_PARAM_H
16 #define __IA_CSS_GC2_PARAM_H
18 #include "type_support.h"
20 #include "ia_css_gc2_types.h"
21 #include "gc/gc_1.0/ia_css_gc_param.h"
22 #include "csc/csc_1.0/ia_css_csc_param.h"
24 #ifndef PIPE_GENERATION
25 #if defined(IS_VAMEM_VERSION_1)
26 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_1_RGB_GAMMA_TABLE_SIZE
27 #elif defined(IS_VAMEM_VERSION_2)
28 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_2_RGB_GAMMA_TABLE_SIZE
30 #error "Undefined vamem version"
34 /* For pipe generation, the size is not relevant */
35 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE 0
38 /* This should be vamem_data_t, but that breaks the pipe generator */
39 struct sh_css_isp_rgb_gamma_vamem_params {
40 uint16_t gc[SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE];
43 #endif /* __IA_CSS_GC2_PARAM_H */