diff options
author | Dave Airlie <airlied@redhat.com> | 2015-02-23 18:24:02 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-03-19 12:26:50 -0400 |
commit | 2be123d7c6d2356cfe6655ccc3c210cf23da80ce (patch) | |
tree | fa7810655e2b12488c426006d5676da255e3f72f | |
parent | bf071900c347c43f9d982df5209191fc45cbc3a4 (diff) |
drm/radeon: export max link rate calculation
We need this in the MST code later.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_dp.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mode.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index a014c7bfa764..3e3290c203c6 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c | |||
@@ -310,8 +310,8 @@ static int dp_get_max_dp_pix_clock(int link_rate, | |||
310 | 310 | ||
311 | /***** radeon specific DP functions *****/ | 311 | /***** radeon specific DP functions *****/ |
312 | 312 | ||
313 | static int radeon_dp_get_max_link_rate(struct drm_connector *connector, | 313 | int radeon_dp_get_max_link_rate(struct drm_connector *connector, |
314 | u8 dpcd[DP_DPCD_SIZE]) | 314 | u8 dpcd[DP_DPCD_SIZE]) |
315 | { | 315 | { |
316 | int max_link_rate; | 316 | int max_link_rate; |
317 | 317 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index f6a43461b76c..e66a4b4caab2 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h | |||
@@ -719,6 +719,8 @@ extern u8 radeon_dp_getsinktype(struct radeon_connector *radeon_connector); | |||
719 | extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector); | 719 | extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector); |
720 | extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, | 720 | extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, |
721 | struct drm_connector *connector); | 721 | struct drm_connector *connector); |
722 | int radeon_dp_get_max_link_rate(struct drm_connector *connector, | ||
723 | u8 *dpcd); | ||
722 | extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, | 724 | extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, |
723 | u8 power_state); | 725 | u8 power_state); |
724 | extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector); | 726 | extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector); |