@@ -147,9 +147,10 @@ struct dwb_caps {
147
147
unsigned int support_ogam :1 ;
148
148
unsigned int support_wbscl :1 ;
149
149
unsigned int support_ocsc :1 ;
150
- unsigned int support_stereo :1 ;
150
+ unsigned int support_stereo :1 ;
151
+ unsigned int support_4k_120p :1 ;
151
152
} caps ;
152
- unsigned int reserved2 [9 ]; /* Reserved for future use, MUST BE 0. */
153
+ unsigned int reserved2 [10 ]; /* Reserved for future use, MUST BE 0. */
153
154
};
154
155
155
156
struct dwbc {
@@ -166,8 +167,9 @@ struct dwbc {
166
167
bool dwb_is_drc ;
167
168
int wb_src_plane_inst ;/*hubp, mpcc, inst*/
168
169
uint32_t mask_id ;
169
- int otg_inst ;
170
- bool mvc_cfg ;
170
+ int otg_inst ;
171
+ bool mvc_cfg ;
172
+ struct dc_dwb_params params ;
171
173
};
172
174
173
175
struct dwbc_funcs {
@@ -192,6 +194,10 @@ struct dwbc_funcs {
192
194
struct dwbc * dwbc ,
193
195
enum dwb_frame_capture_enable enable );
194
196
197
+ void (* dwb_set_scaler )(
198
+ struct dwbc * dwbc ,
199
+ struct dc_dwb_params * params );
200
+
195
201
void (* set_stereo )(
196
202
struct dwbc * dwbc ,
197
203
struct dwb_stereo_params * stereo_params );
@@ -205,9 +211,11 @@ struct dwbc_funcs {
205
211
struct dwbc * dwbc ,
206
212
struct dwb_warmup_params * warmup_params );
207
213
208
-
214
+ bool (* dwb_get_mcifbuf_line )(
215
+ struct dwbc * dwbc , unsigned int * buf_idx ,
216
+ unsigned int * cur_line ,
217
+ unsigned int * over_run );
209
218
#if defined(CONFIG_DRM_AMD_DC_FP )
210
-
211
219
void (* dwb_program_output_csc )(
212
220
struct dwbc * dwbc ,
213
221
enum dc_color_space color_space ,
@@ -216,17 +224,17 @@ struct dwbc_funcs {
216
224
bool (* dwb_ogam_set_output_transfer_func )(
217
225
struct dwbc * dwbc ,
218
226
const struct dc_transfer_func * in_transfer_func_dwb_ogam );
219
-
227
+ #endif
220
228
//TODO: merge with output_transfer_func?
221
229
bool (* dwb_ogam_set_input_transfer_func )(
222
230
struct dwbc * dwbc ,
223
231
const struct dc_transfer_func * in_transfer_func_dwb_ogam );
224
- #endif
232
+
233
+ void (* get_drr_time_stamp )(
234
+ struct dwbc * dwbc , uint32_t * time_stamp );
235
+
225
236
bool (* get_dwb_status )(
226
237
struct dwbc * dwbc );
227
- void (* dwb_set_scaler )(
228
- struct dwbc * dwbc ,
229
- struct dc_dwb_params * params );
230
238
};
231
239
232
240
#endif
0 commit comments