summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@meta.com>2022-10-10 16:27:48 -0700
committerMartin L Roth <gaumless@gmail.com>2022-11-20 17:37:09 +0000
commit1864f12fdaa62a042341180d7438e2b5daaa0904 (patch)
tree2b8fea5a518d0635048a0b846d5836517bed77d3 /src/include/device
parent3dcafa8774f215e75b2d13157c1431339e33146c (diff)
device/pciexp: add pcie_find_dsn()
Add pcie_find_dsn() to detect and match PCIe device serial number. In addition, vendor ID is matched when provided. Change-Id: I54b6dc42c8da47cd7b4447ab23a6a21562c7618 Signed-off-by: Jonathan Zhang <jonzhang@meta.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/54510 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/pciexp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h
index d8162405ad..9f9c28ecb5 100644
--- a/src/include/device/pciexp.h
+++ b/src/include/device/pciexp.h
@@ -44,6 +44,9 @@ static inline bool pciexp_is_downstream_port(int type)
type == PCI_EXP_TYPE_PCIE_BRIDGE;
}
+struct device *pcie_find_dsn(const uint64_t serial, const uint16_t vid,
+ struct device *from);
+
bool pciexp_get_ltr_max_latencies(struct device *dev, u16 *max_snoop, u16 *max_nosnoop);
#endif /* DEVICE_PCIEXP_H */