Commit 576c7218 authored by Alex Deucher's avatar Alex Deucher

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: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8eaf2b1f
...@@ -5222,6 +5222,7 @@ enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev) ...@@ -5222,6 +5222,7 @@ enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev)
return PCI_SPEED_UNKNOWN; return PCI_SPEED_UNKNOWN;
} }
EXPORT_SYMBOL(pcie_get_speed_cap);
/** /**
* pcie_get_width_cap - query for the PCI device's link width capability * pcie_get_width_cap - query for the PCI device's link width capability
...@@ -5240,6 +5241,7 @@ enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev) ...@@ -5240,6 +5241,7 @@ enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev)
return PCIE_LNK_WIDTH_UNKNOWN; return PCIE_LNK_WIDTH_UNKNOWN;
} }
EXPORT_SYMBOL(pcie_get_width_cap);
/** /**
* pcie_bandwidth_capable - calculate a PCI device's link bandwidth capability * pcie_bandwidth_capable - calculate a PCI device's link bandwidth capability
......
...@@ -261,6 +261,9 @@ enum pci_bus_speed { ...@@ -261,6 +261,9 @@ enum pci_bus_speed {
PCI_SPEED_UNKNOWN = 0xff, 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 { struct pci_cap_saved_data {
u16 cap_nr; u16 cap_nr;
bool cap_extended; bool cap_extended;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment