1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26#ifndef __DC_LINK_HWSS_H__
27#define __DC_LINK_HWSS_H__
28
29struct gpio *get_hpd_gpio(struct dc_bios *dcb,
30 struct graphics_object_id link_id,
31 struct gpio_service *gpio_service);
32
33void dp_enable_link_phy(
34 struct dc_link *link,
35 enum signal_type signal,
36 enum clock_source_id clock_source,
37 const struct dc_link_settings *link_settings);
38
39void dp_receiver_power_ctrl(struct dc_link *link, bool on);
40void edp_add_delay_for_T9(struct dc_link *link);
41bool edp_receiver_ready_T9(struct dc_link *link);
42bool edp_receiver_ready_T7(struct dc_link *link);
43
44void dp_disable_link_phy(struct dc_link *link, enum signal_type signal);
45
46void dp_disable_link_phy_mst(struct dc_link *link, enum signal_type signal);
47
48bool dp_set_hw_training_pattern(
49 struct dc_link *link,
50 enum dc_dp_training_pattern pattern,
51 uint32_t offset);
52
53void dp_set_hw_lane_settings(
54 struct dc_link *link,
55 const struct link_training_settings *link_settings,
56 uint32_t offset);
57
58void dp_set_hw_test_pattern(
59 struct dc_link *link,
60 enum dp_test_pattern test_pattern,
61 uint8_t *custom_pattern,
62 uint32_t custom_pattern_size);
63
64void dp_retrain_link_dp_test(struct dc_link *link,
65 struct dc_link_settings *link_setting,
66 bool skip_video_pattern);
67
68#endif
69