summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2021-01-25 18:36:35 +0100
committerJani Nikula <jani.nikula@intel.com>2021-02-02 16:31:37 +0100
commit83404d581471775f37f85e5261ec0d09407d8bed (patch)
tree333eb5009dc1ac39d708d765285a463fe60b7e1d /include
parentdrm/i915/gem: Drop lru bumping on display unpinning (diff)
downloadlinux-83404d581471775f37f85e5261ec0d09407d8bed.tar.xz
linux-83404d581471775f37f85e5261ec0d09407d8bed.zip
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 (cherry picked from commit a321fc2b4e60fc1b39517d26c8104351636a6062) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include')
-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);