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
14 /* Generated code: do not edit or commmit. */
16 #include "ia_css_pipeline.h"
17 #include "ia_css_isp_states.h"
18 #include "ia_css_debug.h"
19 #include "assert_support.h"
21 /* Code generated by genparam/genstate.c:gen_init_function() */
24 ia_css_initialize_aa_state(
25 const struct ia_css_binary *binary)
27 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_aa_state() enter:\n");
30 unsigned size = binary->info->mem_offsets.offsets.state->vmem.aa.size;
32 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.aa.offset;
36 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
41 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_aa_state() leave:\n");
44 /* Code generated by genparam/genstate.c:gen_init_function() */
47 ia_css_initialize_cnr_state(
48 const struct ia_css_binary *binary)
50 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr_state() enter:\n");
53 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size;
55 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset;
58 ia_css_init_cnr_state(
59 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
64 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr_state() leave:\n");
67 /* Code generated by genparam/genstate.c:gen_init_function() */
70 ia_css_initialize_cnr2_state(
71 const struct ia_css_binary *binary)
73 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr2_state() enter:\n");
76 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr2.size;
78 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr2.offset;
81 ia_css_init_cnr2_state(
82 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
87 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_cnr2_state() leave:\n");
90 /* Code generated by genparam/genstate.c:gen_init_function() */
93 ia_css_initialize_dp_state(
94 const struct ia_css_binary *binary)
96 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_dp_state() enter:\n");
99 unsigned size = binary->info->mem_offsets.offsets.state->vmem.dp.size;
101 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.dp.offset;
104 ia_css_init_dp_state(
105 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
110 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_dp_state() leave:\n");
113 /* Code generated by genparam/genstate.c:gen_init_function() */
116 ia_css_initialize_de_state(
117 const struct ia_css_binary *binary)
119 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_de_state() enter:\n");
122 unsigned size = binary->info->mem_offsets.offsets.state->vmem.de.size;
124 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.de.offset;
127 ia_css_init_de_state(
128 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
133 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_de_state() leave:\n");
136 /* Code generated by genparam/genstate.c:gen_init_function() */
139 ia_css_initialize_tnr_state(
140 const struct ia_css_binary *binary)
142 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_tnr_state() enter:\n");
145 unsigned size = binary->info->mem_offsets.offsets.state->dmem.tnr.size;
147 unsigned offset = binary->info->mem_offsets.offsets.state->dmem.tnr.offset;
150 ia_css_init_tnr_state((struct sh_css_isp_tnr_dmem_state *)
151 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_DMEM].address[offset],
156 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_tnr_state() leave:\n");
159 /* Code generated by genparam/genstate.c:gen_init_function() */
162 ia_css_initialize_ref_state(
163 const struct ia_css_binary *binary)
165 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ref_state() enter:\n");
168 unsigned size = binary->info->mem_offsets.offsets.state->dmem.ref.size;
170 unsigned offset = binary->info->mem_offsets.offsets.state->dmem.ref.offset;
173 ia_css_init_ref_state((struct sh_css_isp_ref_dmem_state *)
174 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_DMEM].address[offset],
179 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ref_state() leave:\n");
182 /* Code generated by genparam/genstate.c:gen_init_function() */
185 ia_css_initialize_ynr_state(
186 const struct ia_css_binary *binary)
188 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ynr_state() enter:\n");
191 unsigned size = binary->info->mem_offsets.offsets.state->vmem.ynr.size;
193 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.ynr.offset;
196 ia_css_init_ynr_state(
197 &binary->mem_params.params[IA_CSS_PARAM_CLASS_STATE][IA_CSS_ISP_VMEM].address[offset],
202 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_initialize_ynr_state() leave:\n");
205 /* Code generated by genparam/genstate.c:gen_state_init_table() */
207 void (* ia_css_kernel_init_state[IA_CSS_NUM_STATE_IDS])(const struct ia_css_binary *binary) = {
208 ia_css_initialize_aa_state,
209 ia_css_initialize_cnr_state,
210 ia_css_initialize_cnr2_state,
211 ia_css_initialize_dp_state,
212 ia_css_initialize_de_state,
213 ia_css_initialize_tnr_state,
214 ia_css_initialize_ref_state,
215 ia_css_initialize_ynr_state,