summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-27 11:35:53 +0400
committerDave Airlie <airlied@redhat.com>2012-07-20 06:29:25 +0400
commitf42977841f4a28b82820384fdb9b9581b410dbb1 (patch)
tree6ff53762d300714f76237c5e8ba34b2b57056f01 /include
parentcdcac9cd7741af2c2b9255cbf060f772596907bb (diff)
downloadlinux-f42977841f4a28b82820384fdb9b9581b410dbb1.tar.xz
drm/pci: add support for getting the supported link bw.
This should work for PCIE3.0 as well. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 31ad880ca2ef..e4e3be3b9464 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1761,6 +1761,11 @@ extern int drm_get_pci_dev(struct pci_dev *pdev,
const struct pci_device_id *ent,
struct drm_driver *driver);
+#define DRM_PCIE_SPEED_25 1
+#define DRM_PCIE_SPEED_50 2
+#define DRM_PCIE_SPEED_80 4
+
+extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask);
/* platform section */
extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device);