summaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2015-11-11 23:14:39 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 16:42:31 -0500
commit60d8edd415e9da63599c7601707ca78ad74a927e (patch)
treeba49fa9df13bde6909bda2a16ba1157bd2e6b995 /include/drm/drmP.h
parent16881da6c0b9db5fca95b96b0f02720e94c92629 (diff)
downloadlinux-60d8edd415e9da63599c7601707ca78ad74a927e.tar.gz
linux-60d8edd415e9da63599c7601707ca78ad74a927e.tar.bz2
linux-60d8edd415e9da63599c7601707ca78ad74a927e.zip
drm: add drm_pcie_get_max_link_width helper (v2)
Add a helper to get the max link width of the port. Similar to the helper to get the max link speed. v2: fix typo in commit message Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 30d4a5a495e2..bd5d2c536ddc 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1098,6 +1098,7 @@ static inline int drm_pci_set_busid(struct drm_device *dev,
#define DRM_PCIE_SPEED_80 4
extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
+extern int drm_pcie_get_max_link_width(struct drm_device *dev, u32 *mlw);
/* platform section */
extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device);