summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-06-25 13:17:41 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-07-05 16:39:59 -0500
commit576c7218a1546e0153480b208b125509cec71470 (patch)
tree19ff8f3656415af949679d4c03b6038251d534d0 /include/linux/pci.h
parent8eaf2b1faaf4358c6337785f2192055c6ef41e0d (diff)
downloadlinux-stable-576c7218a1546e0153480b208b125509cec71470.tar.gz
linux-stable-576c7218a1546e0153480b208b125509cec71470.tar.bz2
linux-stable-576c7218a1546e0153480b208b125509cec71470.zip
PCI: Export pcie_get_speed_cap and pcie_get_width_cap
So drivers can use them. This can be used to replace duplicate code in the drm subsystem. Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 340029b2fb38..6e0c0803b241 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -261,6 +261,9 @@ enum pci_bus_speed {
PCI_SPEED_UNKNOWN = 0xff,
};
+enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev);
+enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev);
+
struct pci_cap_saved_data {
u16 cap_nr;
bool cap_extended;