Rename dp/ to display/ to account for additional display-related helpers, such as HDMI. Update all related include statements. No functional changes. Various drivers, such as i915 and amdgpu, use similar naming scheme by putting code for video-output standards into a local display/ directory. The new directory's name is aligned with this convention. v2: * update commit message (Javier) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Lyude Paul <lyude@redhat.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220421073108.19226-3-tzimmermann@suse.de
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __INTEL_DP_LINK_TRAINING_H__
|
|
#define __INTEL_DP_LINK_TRAINING_H__
|
|
|
|
#include <drm/display/drm_dp_helper.h>
|
|
|
|
struct intel_crtc_state;
|
|
struct intel_dp;
|
|
|
|
int intel_dp_init_lttpr_and_dprx_caps(struct intel_dp *intel_dp);
|
|
|
|
void intel_dp_get_adjust_train(struct intel_dp *intel_dp,
|
|
const struct intel_crtc_state *crtc_state,
|
|
enum drm_dp_phy dp_phy,
|
|
const u8 link_status[DP_LINK_STATUS_SIZE]);
|
|
void intel_dp_program_link_training_pattern(struct intel_dp *intel_dp,
|
|
const struct intel_crtc_state *crtc_state,
|
|
enum drm_dp_phy dp_phy,
|
|
u8 dp_train_pat);
|
|
void intel_dp_set_signal_levels(struct intel_dp *intel_dp,
|
|
const struct intel_crtc_state *crtc_state,
|
|
enum drm_dp_phy dp_phy);
|
|
void intel_dp_start_link_train(struct intel_dp *intel_dp,
|
|
const struct intel_crtc_state *crtc_state);
|
|
void intel_dp_stop_link_train(struct intel_dp *intel_dp,
|
|
const struct intel_crtc_state *crtc_state);
|
|
|
|
void
|
|
intel_dp_dump_link_status(struct intel_dp *intel_dp, enum drm_dp_phy dp_phy,
|
|
const u8 link_status[DP_LINK_STATUS_SIZE]);
|
|
|
|
/* Get the TPSx symbol type of the value programmed to DP_TRAINING_PATTERN_SET */
|
|
static inline u8 intel_dp_training_pattern_symbol(u8 pattern)
|
|
{
|
|
return pattern & ~DP_LINK_SCRAMBLING_DISABLE;
|
|
}
|
|
|
|
#endif /* __INTEL_DP_LINK_TRAINING_H__ */
|