1 /*
2 * Copyright 2023 Advanced Micro Devices, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Authors: AMD
23 *
24 */
25
26 /* FILE POLICY AND INTENDED USAGE:
27 * This file provides single entrance to link functionality declared in dc
28 * public headers. The file is intended to be used as a thin translation layer
29 * that directly calls link internal functions without adding new functional
30 * behavior.
31 *
32 * When exporting a new link related dc function, add function declaration in
33 * dc.h with detail interface documentation, then add function implementation
34 * in this file which calls link functions.
35 */
36 #include "link.h"
37 #include "dce/dce_i2c.h"
dc_get_link_at_index(struct dc * dc,uint32_t link_index)38 struct dc_link *dc_get_link_at_index(struct dc *dc, uint32_t link_index)
39 {
40 if (link_index >= MAX_LINKS)
41 return NULL;
42
43 return dc->links[link_index];
44 }
45
dc_get_edp_links(const struct dc * dc,struct dc_link ** edp_links,int * edp_num)46 void dc_get_edp_links(const struct dc *dc,
47 struct dc_link **edp_links,
48 int *edp_num)
49 {
50 int i;
51
52 *edp_num = 0;
53 for (i = 0; i < dc->link_count; i++) {
54 // report any eDP links, even unconnected DDI's
55 if (!dc->links[i])
56 continue;
57 if (dc->links[i]->connector_signal == SIGNAL_TYPE_EDP) {
58 edp_links[*edp_num] = dc->links[i];
59 if (++(*edp_num) == MAX_NUM_EDP)
60 return;
61 }
62 }
63 }
64
dc_get_edp_link_panel_inst(const struct dc * dc,const struct dc_link * link,unsigned int * inst_out)65 bool dc_get_edp_link_panel_inst(const struct dc *dc,
66 const struct dc_link *link,
67 unsigned int *inst_out)
68 {
69 struct dc_link *edp_links[MAX_NUM_EDP];
70 int edp_num, i;
71
72 *inst_out = 0;
73 if (link->connector_signal != SIGNAL_TYPE_EDP)
74 return false;
75 dc_get_edp_links(dc, edp_links, &edp_num);
76 for (i = 0; i < edp_num; i++) {
77 if (link == edp_links[i])
78 break;
79 (*inst_out)++;
80 }
81 return true;
82 }
83
dc_link_detect(struct dc_link * link,enum dc_detect_reason reason)84 bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
85 {
86 return link->dc->link_srv->detect_link(link, reason);
87 }
88
dc_link_detect_connection_type(struct dc_link * link,enum dc_connection_type * type)89 bool dc_link_detect_connection_type(struct dc_link *link,
90 enum dc_connection_type *type)
91 {
92 return link->dc->link_srv->detect_connection_type(link, type);
93 }
94
dc_link_get_status(const struct dc_link * link)95 const struct dc_link_status *dc_link_get_status(const struct dc_link *link)
96 {
97 return link->dc->link_srv->get_status(link);
98 }
99
100 /* return true if the connected receiver supports the hdcp version */
dc_link_is_hdcp14(struct dc_link * link,enum signal_type signal)101 bool dc_link_is_hdcp14(struct dc_link *link, enum signal_type signal)
102 {
103 return link->dc->link_srv->is_hdcp1x_supported(link, signal);
104 }
105
dc_link_is_hdcp22(struct dc_link * link,enum signal_type signal)106 bool dc_link_is_hdcp22(struct dc_link *link, enum signal_type signal)
107 {
108 return link->dc->link_srv->is_hdcp2x_supported(link, signal);
109 }
110
dc_link_clear_dprx_states(struct dc_link * link)111 void dc_link_clear_dprx_states(struct dc_link *link)
112 {
113 link->dc->link_srv->clear_dprx_states(link);
114 }
115
dc_link_reset_cur_dp_mst_topology(struct dc_link * link)116 bool dc_link_reset_cur_dp_mst_topology(struct dc_link *link)
117 {
118 return link->dc->link_srv->reset_cur_dp_mst_topology(link);
119 }
120
dc_link_bandwidth_kbps(const struct dc_link * link,const struct dc_link_settings * link_settings)121 uint32_t dc_link_bandwidth_kbps(
122 const struct dc_link *link,
123 const struct dc_link_settings *link_settings)
124 {
125 return link->dc->link_srv->dp_link_bandwidth_kbps(link, link_settings);
126 }
127
dc_get_cur_link_res_map(const struct dc * dc,uint32_t * map)128 void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map)
129 {
130 dc->link_srv->get_cur_res_map(dc, map);
131 }
132
dc_restore_link_res_map(const struct dc * dc,uint32_t * map)133 void dc_restore_link_res_map(const struct dc *dc, uint32_t *map)
134 {
135 dc->link_srv->restore_res_map(dc, map);
136 }
137
dc_link_update_dsc_config(struct pipe_ctx * pipe_ctx)138 bool dc_link_update_dsc_config(struct pipe_ctx *pipe_ctx)
139 {
140 struct dc_link *link = pipe_ctx->stream->link;
141
142 return link->dc->link_srv->update_dsc_config(pipe_ctx);
143 }
144
dc_is_oem_i2c_device_present(struct dc * dc,size_t slave_address)145 bool dc_is_oem_i2c_device_present(
146 struct dc *dc,
147 size_t slave_address)
148 {
149 if (dc->res_pool->oem_device)
150 return dce_i2c_oem_device_present(
151 dc->res_pool,
152 dc->res_pool->oem_device,
153 slave_address);
154
155 return false;
156 }
157
dc_submit_i2c(struct dc * dc,uint32_t link_index,struct i2c_command * cmd)158 bool dc_submit_i2c(
159 struct dc *dc,
160 uint32_t link_index,
161 struct i2c_command *cmd)
162 {
163
164 struct dc_link *link = dc->links[link_index];
165 struct ddc_service *ddc = link->ddc;
166
167 return dce_i2c_submit_command(
168 dc->res_pool,
169 ddc->ddc_pin,
170 cmd);
171 }
172
dc_submit_i2c_oem(struct dc * dc,struct i2c_command * cmd)173 bool dc_submit_i2c_oem(
174 struct dc *dc,
175 struct i2c_command *cmd)
176 {
177 struct ddc_service *ddc = dc->res_pool->oem_device;
178
179 if (ddc)
180 return dce_i2c_submit_command(
181 dc->res_pool,
182 ddc->ddc_pin,
183 cmd);
184
185 return false;
186 }
187
dc_link_dp_handle_automated_test(struct dc_link * link)188 void dc_link_dp_handle_automated_test(struct dc_link *link)
189 {
190 link->dc->link_srv->dp_handle_automated_test(link);
191 }
192
dc_link_dp_set_test_pattern(struct dc_link * link,enum dp_test_pattern test_pattern,enum dp_test_pattern_color_space test_pattern_color_space,const struct link_training_settings * p_link_settings,const unsigned char * p_custom_pattern,unsigned int cust_pattern_size)193 bool dc_link_dp_set_test_pattern(
194 struct dc_link *link,
195 enum dp_test_pattern test_pattern,
196 enum dp_test_pattern_color_space test_pattern_color_space,
197 const struct link_training_settings *p_link_settings,
198 const unsigned char *p_custom_pattern,
199 unsigned int cust_pattern_size)
200 {
201 return link->dc->link_srv->dp_set_test_pattern(link, test_pattern,
202 test_pattern_color_space, p_link_settings,
203 p_custom_pattern, cust_pattern_size);
204 }
205
dc_link_set_drive_settings(struct dc * dc,struct link_training_settings * lt_settings,struct dc_link * link)206 void dc_link_set_drive_settings(struct dc *dc,
207 struct link_training_settings *lt_settings,
208 struct dc_link *link)
209 {
210 struct link_resource link_res;
211
212 dc->link_srv->get_cur_link_res(link, &link_res);
213 dc->link_srv->dp_set_drive_settings(link, &link_res, lt_settings);
214 }
215
dc_link_set_preferred_link_settings(struct dc * dc,struct dc_link_settings * link_setting,struct dc_link * link)216 void dc_link_set_preferred_link_settings(struct dc *dc,
217 struct dc_link_settings *link_setting,
218 struct dc_link *link)
219 {
220 dc->link_srv->dp_set_preferred_link_settings(dc, link_setting, link);
221 }
222
dc_link_set_preferred_training_settings(struct dc * dc,struct dc_link_settings * link_setting,struct dc_link_training_overrides * lt_overrides,struct dc_link * link,bool skip_immediate_retrain)223 void dc_link_set_preferred_training_settings(struct dc *dc,
224 struct dc_link_settings *link_setting,
225 struct dc_link_training_overrides *lt_overrides,
226 struct dc_link *link,
227 bool skip_immediate_retrain)
228 {
229 dc->link_srv->dp_set_preferred_training_settings(dc, link_setting,
230 lt_overrides, link, skip_immediate_retrain);
231 }
232
dc_dp_trace_is_initialized(struct dc_link * link)233 bool dc_dp_trace_is_initialized(struct dc_link *link)
234 {
235 return link->dc->link_srv->dp_trace_is_initialized(link);
236 }
237
dc_dp_trace_set_is_logged_flag(struct dc_link * link,bool in_detection,bool is_logged)238 void dc_dp_trace_set_is_logged_flag(struct dc_link *link,
239 bool in_detection,
240 bool is_logged)
241 {
242 link->dc->link_srv->dp_trace_set_is_logged_flag(link, in_detection, is_logged);
243 }
244
dc_dp_trace_is_logged(struct dc_link * link,bool in_detection)245 bool dc_dp_trace_is_logged(struct dc_link *link, bool in_detection)
246 {
247 return link->dc->link_srv->dp_trace_is_logged(link, in_detection);
248 }
249
dc_dp_trace_get_lt_end_timestamp(struct dc_link * link,bool in_detection)250 unsigned long long dc_dp_trace_get_lt_end_timestamp(struct dc_link *link,
251 bool in_detection)
252 {
253 return link->dc->link_srv->dp_trace_get_lt_end_timestamp(link, in_detection);
254 }
255
dc_dp_trace_get_lt_counts(struct dc_link * link,bool in_detection)256 const struct dp_trace_lt_counts *dc_dp_trace_get_lt_counts(struct dc_link *link,
257 bool in_detection)
258 {
259 return link->dc->link_srv->dp_trace_get_lt_counts(link, in_detection);
260 }
261
dc_dp_trace_get_link_loss_count(struct dc_link * link)262 unsigned int dc_dp_trace_get_link_loss_count(struct dc_link *link)
263 {
264 return link->dc->link_srv->dp_trace_get_link_loss_count(link);
265 }
266
dc_link_add_remote_sink(struct dc_link * link,const uint8_t * edid,int len,struct dc_sink_init_data * init_data)267 struct dc_sink *dc_link_add_remote_sink(
268 struct dc_link *link,
269 const uint8_t *edid,
270 int len,
271 struct dc_sink_init_data *init_data)
272 {
273 return link->dc->link_srv->add_remote_sink(link, edid, len, init_data);
274 }
275
dc_link_remove_remote_sink(struct dc_link * link,struct dc_sink * sink)276 void dc_link_remove_remote_sink(struct dc_link *link, struct dc_sink *sink)
277 {
278 link->dc->link_srv->remove_remote_sink(link, sink);
279 }
280
dc_link_aux_transfer_raw(struct ddc_service * ddc,struct aux_payload * payload,enum aux_return_code_type * operation_result)281 int dc_link_aux_transfer_raw(struct ddc_service *ddc,
282 struct aux_payload *payload,
283 enum aux_return_code_type *operation_result)
284 {
285 const struct dc *dc = ddc->link->dc;
286
287 return dc->link_srv->aux_transfer_raw(
288 ddc, payload, operation_result);
289 }
290
dc_link_bw_kbps_from_raw_frl_link_rate_data(const struct dc * dc,uint8_t bw)291 uint32_t dc_link_bw_kbps_from_raw_frl_link_rate_data(const struct dc *dc, uint8_t bw)
292 {
293 return dc->link_srv->bw_kbps_from_raw_frl_link_rate_data(bw);
294 }
295
dc_link_decide_edp_link_settings(struct dc_link * link,struct dc_link_settings * link_setting,uint32_t req_bw)296 bool dc_link_decide_edp_link_settings(struct dc_link *link,
297 struct dc_link_settings *link_setting, uint32_t req_bw)
298 {
299 return link->dc->link_srv->edp_decide_link_settings(link, link_setting, req_bw);
300 }
301
302
dc_link_dp_get_max_link_enc_cap(const struct dc_link * link,struct dc_link_settings * max_link_enc_cap)303 bool dc_link_dp_get_max_link_enc_cap(const struct dc_link *link,
304 struct dc_link_settings *max_link_enc_cap)
305 {
306 return link->dc->link_srv->dp_get_max_link_enc_cap(link, max_link_enc_cap);
307 }
308
dc_link_dp_mst_decide_link_encoding_format(const struct dc_link * link)309 enum dp_link_encoding dc_link_dp_mst_decide_link_encoding_format(
310 const struct dc_link *link)
311 {
312 return link->dc->link_srv->mst_decide_link_encoding_format(link);
313 }
314
dc_link_get_link_cap(const struct dc_link * link)315 const struct dc_link_settings *dc_link_get_link_cap(const struct dc_link *link)
316 {
317 return link->dc->link_srv->dp_get_verified_link_cap(link);
318 }
319
dc_link_get_highest_encoding_format(const struct dc_link * link)320 enum dc_link_encoding_format dc_link_get_highest_encoding_format(const struct dc_link *link)
321 {
322 if (dc_is_dp_signal(link->connector_signal)) {
323 if (link->dpcd_caps.dongle_type >= DISPLAY_DONGLE_DP_DVI_DONGLE &&
324 link->dpcd_caps.dongle_type <= DISPLAY_DONGLE_DP_HDMI_MISMATCHED_DONGLE)
325 return DC_LINK_ENCODING_HDMI_TMDS;
326 else if (link->dc->link_srv->dp_get_encoding_format(&link->verified_link_cap) ==
327 DP_8b_10b_ENCODING)
328 return DC_LINK_ENCODING_DP_8b_10b;
329 else if (link->dc->link_srv->dp_get_encoding_format(&link->verified_link_cap) ==
330 DP_128b_132b_ENCODING)
331 return DC_LINK_ENCODING_DP_128b_132b;
332 } else if (dc_is_hdmi_signal(link->connector_signal)) {
333 }
334
335 return DC_LINK_ENCODING_UNSPECIFIED;
336 }
337
dc_link_is_dp_sink_present(struct dc_link * link)338 bool dc_link_is_dp_sink_present(struct dc_link *link)
339 {
340 return link->dc->link_srv->dp_is_sink_present(link);
341 }
342
dc_link_is_fec_supported(const struct dc_link * link)343 bool dc_link_is_fec_supported(const struct dc_link *link)
344 {
345 return link->dc->link_srv->dp_is_fec_supported(link);
346 }
347
dc_link_overwrite_extended_receiver_cap(struct dc_link * link)348 void dc_link_overwrite_extended_receiver_cap(
349 struct dc_link *link)
350 {
351 link->dc->link_srv->dp_overwrite_extended_receiver_cap(link);
352 }
353
dc_link_should_enable_fec(const struct dc_link * link)354 bool dc_link_should_enable_fec(const struct dc_link *link)
355 {
356 return link->dc->link_srv->dp_should_enable_fec(link);
357 }
358
dc_link_dp_dpia_handle_usb4_bandwidth_allocation_for_link(struct dc_link * link,int peak_bw)359 int dc_link_dp_dpia_handle_usb4_bandwidth_allocation_for_link(
360 struct dc_link *link, int peak_bw)
361 {
362 return link->dc->link_srv->dpia_handle_usb4_bandwidth_allocation_for_link(link, peak_bw);
363 }
364
dc_link_handle_usb4_bw_alloc_response(struct dc_link * link,uint8_t bw,uint8_t result)365 void dc_link_handle_usb4_bw_alloc_response(struct dc_link *link, uint8_t bw, uint8_t result)
366 {
367 link->dc->link_srv->dpia_handle_bw_alloc_response(link, bw, result);
368 }
369
dc_link_check_link_loss_status(struct dc_link * link,union hpd_irq_data * hpd_irq_dpcd_data)370 bool dc_link_check_link_loss_status(
371 struct dc_link *link,
372 union hpd_irq_data *hpd_irq_dpcd_data)
373 {
374 return link->dc->link_srv->dp_parse_link_loss_status(link, hpd_irq_dpcd_data);
375 }
376
dc_link_dp_allow_hpd_rx_irq(const struct dc_link * link)377 bool dc_link_dp_allow_hpd_rx_irq(const struct dc_link *link)
378 {
379 return link->dc->link_srv->dp_should_allow_hpd_rx_irq(link);
380 }
381
dc_link_dp_handle_link_loss(struct dc_link * link)382 void dc_link_dp_handle_link_loss(struct dc_link *link)
383 {
384 link->dc->link_srv->dp_handle_link_loss(link);
385 }
386
dc_link_dp_read_hpd_rx_irq_data(struct dc_link * link,union hpd_irq_data * irq_data)387 enum dc_status dc_link_dp_read_hpd_rx_irq_data(
388 struct dc_link *link,
389 union hpd_irq_data *irq_data)
390 {
391 return link->dc->link_srv->dp_read_hpd_rx_irq_data(link, irq_data);
392 }
393
dc_link_handle_hpd_rx_irq(struct dc_link * link,union hpd_irq_data * out_hpd_irq_dpcd_data,bool * out_link_loss,bool defer_handling,bool * has_left_work)394 bool dc_link_handle_hpd_rx_irq(struct dc_link *link,
395 union hpd_irq_data *out_hpd_irq_dpcd_data, bool *out_link_loss,
396 bool defer_handling, bool *has_left_work)
397 {
398 return link->dc->link_srv->dp_handle_hpd_rx_irq(link, out_hpd_irq_dpcd_data,
399 out_link_loss, defer_handling, has_left_work);
400 }
401
dc_link_dp_receiver_power_ctrl(struct dc_link * link,bool on)402 void dc_link_dp_receiver_power_ctrl(struct dc_link *link, bool on)
403 {
404 link->dc->link_srv->dpcd_write_rx_power_ctrl(link, on);
405 }
406
dc_link_decide_lttpr_mode(struct dc_link * link,struct dc_link_settings * link_setting)407 enum lttpr_mode dc_link_decide_lttpr_mode(struct dc_link *link,
408 struct dc_link_settings *link_setting)
409 {
410 return link->dc->link_srv->dp_decide_lttpr_mode(link, link_setting);
411 }
412
dc_link_edp_panel_backlight_power_on(struct dc_link * link,bool wait_for_hpd)413 void dc_link_edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd)
414 {
415 link->dc->link_srv->edp_panel_backlight_power_on(link, wait_for_hpd);
416 }
417
dc_link_get_backlight_level(const struct dc_link * link)418 int dc_link_get_backlight_level(const struct dc_link *link)
419 {
420 return link->dc->link_srv->edp_get_backlight_level(link);
421 }
422
dc_link_get_backlight_level_nits(struct dc_link * link,uint32_t * backlight_millinits_avg,uint32_t * backlight_millinits_peak)423 bool dc_link_get_backlight_level_nits(struct dc_link *link,
424 uint32_t *backlight_millinits_avg,
425 uint32_t *backlight_millinits_peak)
426 {
427 return link->dc->link_srv->edp_get_backlight_level_nits(link,
428 backlight_millinits_avg,
429 backlight_millinits_peak);
430 }
431
dc_link_set_backlight_level(const struct dc_link * link,uint32_t backlight_pwm_u16_16,uint32_t frame_ramp)432 bool dc_link_set_backlight_level(const struct dc_link *link,
433 uint32_t backlight_pwm_u16_16,
434 uint32_t frame_ramp)
435 {
436 return link->dc->link_srv->edp_set_backlight_level(link,
437 backlight_pwm_u16_16, frame_ramp);
438 }
439
dc_link_set_backlight_level_nits(struct dc_link * link,bool isHDR,uint32_t backlight_millinits,uint32_t transition_time_in_ms)440 bool dc_link_set_backlight_level_nits(struct dc_link *link,
441 bool isHDR,
442 uint32_t backlight_millinits,
443 uint32_t transition_time_in_ms)
444 {
445 return link->dc->link_srv->edp_set_backlight_level_nits(link, isHDR,
446 backlight_millinits, transition_time_in_ms);
447 }
448
dc_link_get_target_backlight_pwm(const struct dc_link * link)449 int dc_link_get_target_backlight_pwm(const struct dc_link *link)
450 {
451 return link->dc->link_srv->edp_get_target_backlight_pwm(link);
452 }
453
dc_link_get_psr_state(const struct dc_link * link,enum dc_psr_state * state)454 bool dc_link_get_psr_state(const struct dc_link *link, enum dc_psr_state *state)
455 {
456 return link->dc->link_srv->edp_get_psr_state(link, state);
457 }
458
dc_link_set_psr_allow_active(struct dc_link * link,const bool * allow_active,bool wait,bool force_static,const unsigned int * power_opts)459 bool dc_link_set_psr_allow_active(struct dc_link *link, const bool *allow_active,
460 bool wait, bool force_static, const unsigned int *power_opts)
461 {
462 return link->dc->link_srv->edp_set_psr_allow_active(link, allow_active, wait,
463 force_static, power_opts);
464 }
465
dc_link_setup_psr(struct dc_link * link,const struct dc_stream_state * stream,struct psr_config * psr_config,struct psr_context * psr_context)466 bool dc_link_setup_psr(struct dc_link *link,
467 const struct dc_stream_state *stream, struct psr_config *psr_config,
468 struct psr_context *psr_context)
469 {
470 return link->dc->link_srv->edp_setup_psr(link, stream, psr_config, psr_context);
471 }
472
dc_link_set_replay_allow_active(struct dc_link * link,const bool * allow_active,bool wait,bool force_static,const unsigned int * power_opts)473 bool dc_link_set_replay_allow_active(struct dc_link *link, const bool *allow_active,
474 bool wait, bool force_static, const unsigned int *power_opts)
475 {
476 return link->dc->link_srv->edp_set_replay_allow_active(link, allow_active, wait,
477 force_static, power_opts);
478 }
479
dc_link_get_replay_state(const struct dc_link * link,uint64_t * state)480 bool dc_link_get_replay_state(const struct dc_link *link, uint64_t *state)
481 {
482 return link->dc->link_srv->edp_get_replay_state(link, state);
483 }
484
dc_link_wait_for_t12(struct dc_link * link)485 bool dc_link_wait_for_t12(struct dc_link *link)
486 {
487 return link->dc->link_srv->edp_wait_for_t12(link);
488 }
489
dc_link_get_hpd_state(struct dc_link * link)490 bool dc_link_get_hpd_state(struct dc_link *link)
491 {
492 return link->dc->link_srv->get_hpd_state(link);
493 }
494
dc_link_enable_hpd(const struct dc_link * link)495 void dc_link_enable_hpd(const struct dc_link *link)
496 {
497 link->dc->link_srv->enable_hpd(link);
498 }
499
dc_link_disable_hpd(const struct dc_link * link)500 void dc_link_disable_hpd(const struct dc_link *link)
501 {
502 link->dc->link_srv->disable_hpd(link);
503 }
504
dc_link_enable_hpd_filter(struct dc_link * link,bool enable)505 void dc_link_enable_hpd_filter(struct dc_link *link, bool enable)
506 {
507 link->dc->link_srv->enable_hpd_filter(link, enable);
508 }
509
dc_link_dp_dpia_validate(struct dc * dc,const struct dc_stream_state * streams,const unsigned int count)510 bool dc_link_dp_dpia_validate(struct dc *dc, const struct dc_stream_state *streams, const unsigned int count)
511 {
512 return dc->link_srv->validate_dpia_bandwidth(streams, count);
513 }
514