summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2021-01-25 20:36:35 +0300
committerImre Deak <imre.deak@intel.com>2021-01-28 22:34:02 +0300
commita321fc2b4e60fc1b39517d26c8104351636a6062 (patch)
tree4058371c15db0a568c274a61022054ea140b53fb /include/drm
parent03b3a759c60b1d18c6119119be6672fd02d957ae (diff)
downloadlinux-a321fc2b4e60fc1b39517d26c8104351636a6062.tar.xz
drm/dp/mst: Export drm_dp_get_vc_payload_bw()
This function will be needed by the next patch where the driver calculates the BW based on driver specific parameters, so export it. At the same time sanitize the function params, passing the more natural link rate instead of the encoding of the same rate. v2: - Fix function documentation. (Lyude) Cc: Lyude Paul <lyude@redhat.com> Cc: Ville Syrjala <ville.syrjala@intel.com> Cc: <stable@vger.kernel.org> Cc: dri-devel@lists.freedesktop.org Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210125173636.1733812-1-imre.deak@intel.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_dp_mst_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h
index f5e92fe9151c..bd1c39907b92 100644
--- a/include/drm/drm_dp_mst_helper.h
+++ b/include/drm/drm_dp_mst_helper.h
@@ -783,6 +783,7 @@ drm_dp_mst_detect_port(struct drm_connector *connector,
struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port);
+int drm_dp_get_vc_payload_bw(int link_rate, int link_lane_count);
int drm_dp_calc_pbn_mode(int clock, int bpp, bool dsc);