xref: /linux/drivers/staging/media/atomisp/pci/isp/kernels/gc/gc_2/ia_css_gc2_param.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
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_GC2_PARAM_H
17 #define __IA_CSS_GC2_PARAM_H
18 
19 #include "type_support.h"
20 /* Extend GC1 */
21 #include "ia_css_gc2_types.h"
22 #include "gc/gc_1.0/ia_css_gc_param.h"
23 #include "csc/csc_1.0/ia_css_csc_param.h"
24 
25 #ifndef PIPE_GENERATION
26 #if defined(IS_VAMEM_VERSION_1)
27 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_1_RGB_GAMMA_TABLE_SIZE
28 #elif defined(IS_VAMEM_VERSION_2)
29 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE IA_CSS_VAMEM_2_RGB_GAMMA_TABLE_SIZE
30 #else
31 #error "Undefined vamem version"
32 #endif
33 
34 #else
35 /* For pipe generation, the size is not relevant */
36 #define SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE 0
37 #endif
38 
39 /* This should be vamem_data_t, but that breaks the pipe generator */
40 struct sh_css_isp_rgb_gamma_vamem_params {
41 	u16 gc[SH_CSS_ISP_RGB_GAMMA_TABLE_SIZE];
42 };
43 
44 #endif /* __IA_CSS_GC2_PARAM_H */
45