aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_dp_helper.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-18 04:15:31 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-22 16:34:47 -0400
commit3b5c662e8f536ca47396116de82f08d771727076 (patch)
tree18c5696ab98584d7331dadd9cb054b21f8e13d2a /include/drm/drm_dp_helper.h
parenta7c9655fdd89fae1749c2e5beadae8b7d32093af (diff)
drm: extract dp link bw helpers
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_dp_helper.h')
-rw-r--r--include/drm/drm_dp_helper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 60bd8d3ae6eb..455f8e05ca3f 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -338,4 +338,12 @@ u8 drm_dp_get_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE],
338void drm_dp_link_train_clock_recovery_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); 338void drm_dp_link_train_clock_recovery_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]);
339void drm_dp_link_train_channel_eq_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); 339void drm_dp_link_train_channel_eq_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]);
340 340
341u8 drm_dp_link_rate_to_bw_code(int link_rate);
342int drm_dp_bw_code_to_link_rate(u8 link_bw);
343
344static inline int
345drm_dp_max_link_rate(u8 dpcd[DP_RECEIVER_CAP_SIZE])
346{
347 return drm_dp_bw_code_to_link_rate(dpcd[DP_MAX_LINK_RATE]);
348}
341#endif /* _DRM_DP_HELPER_H_ */ 349#endif /* _DRM_DP_HELPER_H_ */