summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/device/pciexp_device.c2
-rw-r--r--src/include/device/pciexp.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c
index d8ed5d9e3d6e..5e2709e38a10 100644
--- a/src/device/pciexp_device.c
+++ b/src/device/pciexp_device.c
@@ -181,7 +181,7 @@ static void pciexp_enable_ltr(struct device *dev)
(void)_pciexp_enable_ltr(parent, parent_cap, dev, cap);
}
-static bool pciexp_get_ltr_max_latencies(struct device *dev, u16 *max_snoop, u16 *max_nosnoop)
+bool pciexp_get_ltr_max_latencies(struct device *dev, u16 *max_snoop, u16 *max_nosnoop)
{
/* Walk the hierarchy up to find get_ltr_max_latencies(). */
do {
diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h
index fbc769e7c68a..756733e0d8a7 100644
--- a/src/include/device/pciexp.h
+++ b/src/include/device/pciexp.h
@@ -39,4 +39,6 @@ static inline bool pciexp_is_downstream_port(int type)
type == PCI_EXP_TYPE_PCIE_BRIDGE;
}
+bool pciexp_get_ltr_max_latencies(struct device *dev, u16 *max_snoop, u16 *max_nosnoop);
+
#endif /* DEVICE_PCIEXP_H */