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_CTC_PARAM_H
8 #define __IA_CSS_CTC_PARAM_H
9 
10 #include "type_support.h"
11 #include <system_global.h>
12 
13 #include "ia_css_ctc_types.h"
14 
15 #ifndef PIPE_GENERATION
16 #define SH_CSS_ISP_CTC_TABLE_SIZE_LOG2       IA_CSS_VAMEM_2_CTC_TABLE_SIZE_LOG2
17 #define SH_CSS_ISP_CTC_TABLE_SIZE            IA_CSS_VAMEM_2_CTC_TABLE_SIZE
18 
19 #else
20 /* For pipe generation, the size is not relevant */
21 #define SH_CSS_ISP_CTC_TABLE_SIZE 0
22 #endif
23 
24 /* This should be vamem_data_t, but that breaks the pipe generator */
25 struct sh_css_isp_ctc_vamem_params {
26 	u16 ctc[SH_CSS_ISP_CTC_TABLE_SIZE];
27 };
28 
29 #endif /* __IA_CSS_CTC_PARAM_H */
30