From 5d6355efcfc4ae1840574a5545fdbd74a16b6c6e Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Wed, 16 Oct 2024 12:14:06 +0200 Subject: device/pciexp: Add hot-plug capable helper function Add and use a new helper function to determine if a device is 1) a PCIe device 2) it's mark hot-plug capable Change-Id: I61cc013844024b43808cd2f054310cb6676ba69e Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/84792 Tested-by: build bot (Jenkins) Reviewed-by: Shuo Liu --- src/include/device/pciexp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/device/pciexp.h') diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h index 05d3873238..2618c02f32 100644 --- a/src/include/device/pciexp.h +++ b/src/include/device/pciexp.h @@ -45,6 +45,8 @@ static inline bool pciexp_is_downstream_port(int type) type == PCI_EXP_TYPE_PCIE_BRIDGE; } +bool pciexp_dev_is_slot_hot_plug_cap(struct device *dev); + struct device *pcie_find_dsn(const uint64_t serial, const uint16_t vid, struct device *from); -- cgit v1.2.3