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_CTC_PARAM_H
17 #define __IA_CSS_CTC_PARAM_H
18 
19 #include "type_support.h"
20 #include <system_global.h>
21 
22 #include "ia_css_ctc_types.h"
23 
24 #ifndef PIPE_GENERATION
25 #define SH_CSS_ISP_CTC_TABLE_SIZE_LOG2       IA_CSS_VAMEM_2_CTC_TABLE_SIZE_LOG2
26 #define SH_CSS_ISP_CTC_TABLE_SIZE            IA_CSS_VAMEM_2_CTC_TABLE_SIZE
27 
28 #else
29 /* For pipe generation, the size is not relevant */
30 #define SH_CSS_ISP_CTC_TABLE_SIZE 0
31 #endif
32 
33 /* This should be vamem_data_t, but that breaks the pipe generator */
34 struct sh_css_isp_ctc_vamem_params {
35 	u16 ctc[SH_CSS_ISP_CTC_TABLE_SIZE];
36 };
37 
38 #endif /* __IA_CSS_CTC_PARAM_H */
39