From a62cb5693b93a4bec3d4c0ae072d9622d6a5ea0f Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Wed, 8 Dec 2021 21:16:43 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60015 Tested-by: build bot (Jenkins) Reviewed-by: Nick Vaccaro Reviewed-by: Karthik Ramasubramanian Reviewed-by: Subrata Banik --- src/include/device/pciexp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h index fbc769e7c6..756733e0d8 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 */ -- cgit v1.2.3