aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-02-23 18:24:02 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-03-19 12:26:50 -0400
commit2be123d7c6d2356cfe6655ccc3c210cf23da80ce (patch)
treefa7810655e2b12488c426006d5676da255e3f72f
parentbf071900c347c43f9d982df5209191fc45cbc3a4 (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.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_mode.h2
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
313static int radeon_dp_get_max_link_rate(struct drm_connector *connector, 313int 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);
719extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector); 719extern bool radeon_dp_getdpcd(struct radeon_connector *radeon_connector);
720extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder, 720extern int radeon_dp_get_panel_mode(struct drm_encoder *encoder,
721 struct drm_connector *connector); 721 struct drm_connector *connector);
722int radeon_dp_get_max_link_rate(struct drm_connector *connector,
723 u8 *dpcd);
722extern void radeon_dp_set_rx_power_state(struct drm_connector *connector, 724extern void radeon_dp_set_rx_power_state(struct drm_connector *connector,
723 u8 power_state); 725 u8 power_state);
724extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector); 726extern void radeon_dp_aux_init(struct radeon_connector *radeon_connector);