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 /* Generated code: do not edit or commmit. */
17 #include "ia_css_pipeline.h"
18 #include "ia_css_isp_states.h"
19 #include "ia_css_debug.h"
20 #include "assert_support.h"
22 /* Code generated by genparam/genstate.c:gen_init_function() */
25 ia_css_initialize_aa_state(
26 const struct ia_css_binary *binary)
28 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_aa_state() enter:\n");
31 unsigned size = binary->info->mem_offsets.offsets.state->vmem.aa.size;
33 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.aa.offset;
37 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
42 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_aa_state() leave:\n");
45 /* Code generated by genparam/genstate.c:gen_init_function() */
48 ia_css_initialize_cnr_state(
49 const struct ia_css_binary *binary)
51 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr_state() enter:\n");
54 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size;
56 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset;
59 ia_css_init_cnr_state(
60 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
65 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr_state() leave:\n");
68 /* Code generated by genparam/genstate.c:gen_init_function() */
71 ia_css_initialize_cnr2_state(
72 const struct ia_css_binary *binary)
74 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr2_state() enter:\n");
77 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size;
79 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr2.offset;
82 ia_css_init_cnr2_state(
83 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
88 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr2_state() leave:\n");
91 /* Code generated by genparam/genstate.c:gen_init_function() */
94 ia_css_initialize_dp_state(
95 const struct ia_css_binary *binary)
97 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_dp_state() enter:\n");
100 unsigned size = binary->info->mem_offsets.offsets.state->vmem.dp.size;
102 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.dp.offset;
105 ia_css_init_dp_state(
106 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
111 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_dp_state() leave:\n");
114 /* Code generated by genparam/genstate.c:gen_init_function() */
117 ia_css_initialize_de_state(
118 const struct ia_css_binary *binary)
120 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_de_state() enter:\n");
123 unsigned size = binary->info->mem_offsets.offsets.state->vmem.de.size;
125 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.de.offset;
128 ia_css_init_de_state(
129 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
134 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_de_state() leave:\n");
137 /* Code generated by genparam/genstate.c:gen_init_function() */
140 ia_css_initialize_tnr_state(
141 const struct ia_css_binary *binary)
143 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_tnr_state() enter:\n");
146 unsigned size = binary->info->mem_offsets.offsets.state->dmem.tnr.size;
148 unsigned offset = binary->info->mem_offsets.offsets.state->dmem.tnr.offset;
151 ia_css_init_tnr_state((struct sh_css_isp_tnr_dmem_state *)
152 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_DMEM].address[offset],
157 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_tnr_state() leave:\n");
160 /* Code generated by genparam/genstate.c:gen_init_function() */
163 ia_css_initialize_ref_state(
164 const struct ia_css_binary *binary)
166 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ref_state() enter:\n");
169 unsigned size = binary->info->mem_offsets.offsets.state->dmem.ref.size;
171 unsigned offset = binary->info->mem_offsets.offsets.state->dmem.ref.offset;
174 ia_css_init_ref_state((struct sh_css_isp_ref_dmem_state *)
175 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_DMEM].address[offset],
180 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ref_state() leave:\n");
183 /* Code generated by genparam/genstate.c:gen_init_function() */
186 ia_css_initialize_ynr_state(
187 const struct ia_css_binary *binary)
189 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ynr_state() enter:\n");
192 unsigned size = binary->info->mem_offsets.offsets.state->vmem.ynr.size;
194 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.ynr.offset;
197 ia_css_init_ynr_state(
198 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
203 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ynr_state() leave:\n");
206 /* Code generated by genparam/genstate.c:gen_state_init_table() */
208 void (* ia_css_kernel_init_state[IA_CSS_NUM_STATE_IDS])(const struct ia_css_binary *binary) = {
209 ia_css_initialize_aa_state,
210 ia_css_initialize_cnr_state,
211 ia_css_initialize_cnr2_state,
212 ia_css_initialize_dp_state,
213 ia_css_initialize_de_state,
214 ia_css_initialize_tnr_state,
215 ia_css_initialize_ref_state,
216 ia_css_initialize_ynr_state,