From: Anshuman Gupta <anshuman.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: badal.nilawar@intel.com, rodrigo.vivi@intel.com
Subject: [igt-dev] [PATCH i-g-t v4 2/5] lib/igt_pci: Add PCIe slot cap
Date: Wed, 7 Dec 2022 15:55:20 +0530 [thread overview]
Message-ID: <20221207102523.1028941-3-anshuman.gupta@intel.com> (raw)
In-Reply-To: <20221207102523.1028941-1-anshuman.gupta@intel.com>
Adding PCIe slot cap register offset and Power Controller Present
bit mask macros.
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@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
next prev parent reply other threads:[~2022-12-07 10:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 10:25 [igt-dev] [PATCH i-g-t v4 0/5] Cold Reset IGT Test Anshuman Gupta
2022-12-07 10:25 ` [igt-dev] [PATCH i-g-t v4 1/5] lib/igt_pci: helpers to get PCI capabilities offset Anshuman Gupta
2022-12-07 13:09 ` Nilawar, Badal
2022-12-08 8:00 ` Bernatowicz, Marcin
2022-12-09 12:40 ` Anshuman Gupta
2022-12-07 10:25 ` Anshuman Gupta [this message]
2022-12-07 10:25 ` [igt-dev] [PATCH i-g-t v4 3/5] lib/igt_pm: Refactor get firmware_node fd Anshuman Gupta
2022-12-07 10:25 ` [igt-dev] [PATCH i-g-t v4 4/5] test/device_reset: Refactor initiate_device_reset Anshuman Gupta
2022-12-07 10:25 ` [igt-dev] [PATCH i-g-t v4 5/5] tests/device_reset: Add cold reset IGT test Anshuman Gupta
2022-12-07 13:15 ` Nilawar, Badal
2022-12-07 10:59 ` [igt-dev] ✓ Fi.CI.BAT: success for Cold Reset IGT Test Patchwork
2022-12-07 12:25 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-12-09 13:28 ` [igt-dev] ✓ Fi.CI.BAT: success for Cold Reset IGT Test (rev2) Patchwork
2022-12-09 21:11 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221207102523.1028941-3-anshuman.gupta@intel.com \
--to=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox