#include "link.h"
#include "dce/dce_i2c.h"
struct dc_link *dc_get_link_at_index(struct dc *dc, uint32_t link_index)
{ … }
void dc_get_edp_links(const struct dc *dc,
struct dc_link **edp_links,
int *edp_num)
{ … }
bool dc_get_edp_link_panel_inst(const struct dc *dc,
const struct dc_link *link,
unsigned int *inst_out)
{ … }
bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
{ … }
bool dc_link_detect_connection_type(struct dc_link *link,
enum dc_connection_type *type)
{ … }
const struct dc_link_status *dc_link_get_status(const struct dc_link *link)
{ … }
bool dc_link_is_hdcp14(struct dc_link *link, enum signal_type signal)
{ … }
bool dc_link_is_hdcp22(struct dc_link *link, enum signal_type signal)
{ … }
void dc_link_clear_dprx_states(struct dc_link *link)
{ … }
bool dc_link_reset_cur_dp_mst_topology(struct dc_link *link)
{ … }
uint32_t dc_link_bandwidth_kbps(
const struct dc_link *link,
const struct dc_link_settings *link_settings)
{ … }
void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map)
{ … }
void dc_restore_link_res_map(const struct dc *dc, uint32_t *map)
{ … }
bool dc_link_update_dsc_config(struct pipe_ctx *pipe_ctx)
{ … }
bool dc_is_oem_i2c_device_present(
struct dc *dc,
size_t slave_address)
{ … }
bool dc_submit_i2c(
struct dc *dc,
uint32_t link_index,
struct i2c_command *cmd)
{ … }
bool dc_submit_i2c_oem(
struct dc *dc,
struct i2c_command *cmd)
{ … }
void dc_link_dp_handle_automated_test(struct dc_link *link)
{ … }
bool 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)
{ … }
void dc_link_set_drive_settings(struct dc *dc,
struct link_training_settings *lt_settings,
struct dc_link *link)
{ … }
void dc_link_set_preferred_link_settings(struct dc *dc,
struct dc_link_settings *link_setting,
struct dc_link *link)
{ … }
void 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)
{ … }
bool dc_dp_trace_is_initialized(struct dc_link *link)
{ … }
void dc_dp_trace_set_is_logged_flag(struct dc_link *link,
bool in_detection,
bool is_logged)
{ … }
bool dc_dp_trace_is_logged(struct dc_link *link, bool in_detection)
{ … }
unsigned long long dc_dp_trace_get_lt_end_timestamp(struct dc_link *link,
bool in_detection)
{ … }
const struct dp_trace_lt_counts *dc_dp_trace_get_lt_counts(struct dc_link *link,
bool in_detection)
{ … }
unsigned int dc_dp_trace_get_link_loss_count(struct dc_link *link)
{ … }
struct dc_sink *dc_link_add_remote_sink(
struct dc_link *link,
const uint8_t *edid,
int len,
struct dc_sink_init_data *init_data)
{ … }
void dc_link_remove_remote_sink(struct dc_link *link, struct dc_sink *sink)
{ … }
int dc_link_aux_transfer_raw(struct ddc_service *ddc,
struct aux_payload *payload,
enum aux_return_code_type *operation_result)
{ … }
uint32_t dc_link_bw_kbps_from_raw_frl_link_rate_data(const struct dc *dc, uint8_t bw)
{ … }
bool dc_link_decide_edp_link_settings(struct dc_link *link,
struct dc_link_settings *link_setting, uint32_t req_bw)
{ … }
bool dc_link_dp_get_max_link_enc_cap(const struct dc_link *link,
struct dc_link_settings *max_link_enc_cap)
{ … }
enum dp_link_encoding dc_link_dp_mst_decide_link_encoding_format(
const struct dc_link *link)
{ … }
const struct dc_link_settings *dc_link_get_link_cap(const struct dc_link *link)
{ … }
enum dc_link_encoding_format dc_link_get_highest_encoding_format(const struct dc_link *link)
{ … }
bool dc_link_is_dp_sink_present(struct dc_link *link)
{ … }
bool dc_link_is_fec_supported(const struct dc_link *link)
{ … }
void dc_link_overwrite_extended_receiver_cap(
struct dc_link *link)
{ … }
bool dc_link_should_enable_fec(const struct dc_link *link)
{ … }
int dc_link_dp_dpia_handle_usb4_bandwidth_allocation_for_link(
struct dc_link *link, int peak_bw)
{ … }
void dc_link_handle_usb4_bw_alloc_response(struct dc_link *link, uint8_t bw, uint8_t result)
{ … }
bool dc_link_check_link_loss_status(
struct dc_link *link,
union hpd_irq_data *hpd_irq_dpcd_data)
{ … }
bool dc_link_dp_allow_hpd_rx_irq(const struct dc_link *link)
{ … }
void dc_link_dp_handle_link_loss(struct dc_link *link)
{ … }
enum dc_status dc_link_dp_read_hpd_rx_irq_data(
struct dc_link *link,
union hpd_irq_data *irq_data)
{ … }
bool 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)
{ … }
void dc_link_dp_receiver_power_ctrl(struct dc_link *link, bool on)
{ … }
enum lttpr_mode dc_link_decide_lttpr_mode(struct dc_link *link,
struct dc_link_settings *link_setting)
{ … }
void dc_link_edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd)
{ … }
int dc_link_get_backlight_level(const struct dc_link *link)
{ … }
bool dc_link_get_backlight_level_nits(struct dc_link *link,
uint32_t *backlight_millinits_avg,
uint32_t *backlight_millinits_peak)
{ … }
bool dc_link_set_backlight_level(const struct dc_link *link,
uint32_t backlight_pwm_u16_16,
uint32_t frame_ramp)
{ … }
bool dc_link_set_backlight_level_nits(struct dc_link *link,
bool isHDR,
uint32_t backlight_millinits,
uint32_t transition_time_in_ms)
{ … }
int dc_link_get_target_backlight_pwm(const struct dc_link *link)
{ … }
bool dc_link_get_psr_state(const struct dc_link *link, enum dc_psr_state *state)
{ … }
bool dc_link_set_psr_allow_active(struct dc_link *link, const bool *allow_active,
bool wait, bool force_static, const unsigned int *power_opts)
{ … }
bool dc_link_setup_psr(struct dc_link *link,
const struct dc_stream_state *stream, struct psr_config *psr_config,
struct psr_context *psr_context)
{ … }
bool dc_link_set_replay_allow_active(struct dc_link *link, const bool *allow_active,
bool wait, bool force_static, const unsigned int *power_opts)
{ … }
bool dc_link_get_replay_state(const struct dc_link *link, uint64_t *state)
{ … }
bool dc_link_wait_for_t12(struct dc_link *link)
{ … }
bool dc_link_get_hpd_state(struct dc_link *link)
{ … }
void dc_link_enable_hpd(const struct dc_link *link)
{ … }
void dc_link_disable_hpd(const struct dc_link *link)
{ … }
void dc_link_enable_hpd_filter(struct dc_link *link, bool enable)
{ … }
bool dc_link_dp_dpia_validate(struct dc *dc, const struct dc_stream_state *streams, const unsigned int count)
{ … }