diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-27 03:35:53 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-19 22:29:25 -0400 |
commit | f42977841f4a28b82820384fdb9b9581b410dbb1 (patch) | |
tree | 6ff53762d300714f76237c5e8ba34b2b57056f01 /include/drm | |
parent | cdcac9cd7741af2c2b9255cbf060f772596907bb (diff) |
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/drm')
-rw-r--r-- | include/drm/drmP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 31ad880ca2e..e4e3be3b946 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, | |||
1761 | const struct pci_device_id *ent, | 1761 | const struct pci_device_id *ent, |
1762 | struct drm_driver *driver); | 1762 | struct drm_driver *driver); |
1763 | 1763 | ||
1764 | #define DRM_PCIE_SPEED_25 1 | ||
1765 | #define DRM_PCIE_SPEED_50 2 | ||
1766 | #define DRM_PCIE_SPEED_80 4 | ||
1767 | |||
1768 | extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask); | ||
1764 | 1769 | ||
1765 | /* platform section */ | 1770 | /* platform section */ |
1766 | extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device); | 1771 | extern int drm_platform_init(struct drm_driver *driver, struct platform_device *platform_device); |