Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60015 )
Change subject: device: Make pciexp_get_ltr_max_latencies a public function ......................................................................
device: Make pciexp_get_ltr_max_latencies a public function
Some device drivers may need to get access to the LTR values for their respective devices, therefore export this function instead of marking it static.
BUG=b:204343849
Change-Id: Id372600e8adec0d55d3483726bb9353139685774 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/device/pciexp_device.c M src/include/device/pciexp.h 2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/60015/1
diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index d8ed5d9..5e2709e 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -181,7 +181,7 @@ (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 fbc769e..756733e 100644 --- a/src/include/device/pciexp.h +++ b/src/include/device/pciexp.h @@ -39,4 +39,6 @@ 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 */