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

Anshuman Gupta anshuman.gupta at intel.com
Wed Dec 7 10:25:20 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>
Reviewed-by: Badal Nilawar <badal.nilawar 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 7cb23a26d8..876e4ec24d 100644
--- a/lib/igt_pci.h
+++ b/lib/igt_pci.h
@@ -20,6 +20,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(struct pci_device *dev, enum pci_cap_id cap_id);
 
 #endif
-- 
2.25.1



More information about the igt-dev mailing list