aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-11-22 16:37:57 +0100
committerThierry Reding <treding@nvidia.com>2014-02-26 17:21:33 +0100
commit8d4adc6a5807ca51999421b4d6d4f193c95775ba (patch)
treeca44fc42336d1a5d786f89fada9f9a9cb6d25a2e /include/drm
parentdrm/dp: Add AUX channel infrastructure (diff)
downloadlinux-dev-8d4adc6a5807ca51999421b4d6d4f193c95775ba.tar.xz
linux-dev-8d4adc6a5807ca51999421b4d6d4f193c95775ba.zip
drm/dp: Add drm_dp_dpcd_read_link_status()
The function reads the link status (6 bytes starting at offset 0x202) from the DPCD so that it can be conveniently passed to other DPCD helpers. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_dp_helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 70f18eb3ca1a..a78711feb0d1 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -477,4 +477,7 @@ static inline ssize_t drm_dp_dpcd_writeb(struct drm_dp_aux *aux,
return drm_dp_dpcd_write(aux, offset, &value, 1);
}
+int drm_dp_dpcd_read_link_status(struct drm_dp_aux *aux,
+ u8 status[DP_LINK_STATUS_SIZE]);
+
#endif /* _DRM_DP_HELPER_H_ */