[igt-dev] [PATCH i-g-t v3 2/5] lib/igt_pci: Add PCIe slot cap

Anshuman Gupta anshuman.gupta at intel.com
Wed Nov 23 08:54:38 UTC 2022


Adding PCIe slot cap register offset and Power Controller Present
bit mask macros.

Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 lib/igt_pci.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_pci.h b/lib/igt_pci.h
index 68afd2dacb..5c2863d657 100644
--- a/lib/igt_pci.h
+++ b/lib/igt_pci.h
@@ -21,6 +21,9 @@ enum pci_cap_id {
 	PCI_EXPRESS_CAP_ID = 0x10
 };
 
+#define PCI_SLOT_CAP_OFFSET 0x14  /* PCIe specs chapter 7.8.9 */
+#define  PCI_SLOT_PWR_CTRL_PRESENT (1 << 1)
+
 int find_pci_cap_offset_at(struct pci_device *dev, enum pci_cap_id cap_id,
 			   int start_offset);
 
-- 
2.25.1



More information about the igt-dev mailing list