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 v3 2/5] lib/igt_pci: Add PCIe slot cap
Date: Wed, 23 Nov 2022 14:24:38 +0530 [thread overview]
Message-ID: <20221123085441.2821638-3-anshuman.gupta@intel.com> (raw)
In-Reply-To: <20221123085441.2821638-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>
---
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
next prev parent reply other threads:[~2022-11-23 8:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 8:54 [igt-dev] [PATCH i-g-t v3 0/5] Cold Reset IGT Test Anshuman Gupta
2022-11-23 8:54 ` [igt-dev] [PATCH i-g-t v3 1/5] lib/igt_pci: helpers to get PCI capabilities offset Anshuman Gupta
2022-11-29 12:00 ` Nilawar, Badal
2022-11-30 12:43 ` Kamil Konieczny
2022-11-30 12:56 ` Nilawar, Badal
2022-12-07 17:27 ` Bernatowicz, Marcin
2022-12-07 16:58 ` Bernatowicz, Marcin
2022-11-23 8:54 ` Anshuman Gupta [this message]
2022-11-29 14:43 ` [igt-dev] [PATCH i-g-t v3 2/5] lib/igt_pci: Add PCIe slot cap Nilawar, Badal
2022-11-23 8:54 ` [igt-dev] [PATCH i-g-t v3 3/5] lib/igt_pm: Refactor get firmware_node fd Anshuman Gupta
2022-11-30 8:43 ` Kamil Konieczny
2022-11-30 8:46 ` Gupta, Anshuman
2022-11-23 8:54 ` [igt-dev] [PATCH i-g-t v3 4/5] test/device_reset: Refactor initiate_device_reset Anshuman Gupta
2022-11-23 8:54 ` [igt-dev] [PATCH i-g-t v3 5/5] tests/device_reset: Add cold reset IGT test Anshuman Gupta
2022-11-25 4:27 ` Iddamsetty, Aravind
2022-11-25 4:53 ` Gupta, Anshuman
2022-11-25 5:13 ` Iddamsetty, Aravind
2022-11-25 7:43 ` [igt-dev] [PATCH i-g-t v4 4/5] test/device_reset: Refactor initiate_device_reset Anshuman Gupta
2022-11-29 16:50 ` Nilawar, Badal
2022-11-30 13:29 ` Kamil Konieczny
2022-11-28 10:20 ` [igt-dev] [PATCH i-g-t v4 5/5] tests/device_reset: Add cold reset IGT test Anshuman Gupta
2022-11-30 13:09 ` Kamil Konieczny
2022-11-30 13:25 ` Nilawar, Badal
2022-12-07 8:38 ` Gupta, Anshuman
2022-11-23 9:45 ` [igt-dev] ✓ Fi.CI.BAT: success for Cold Reset IGT Test Patchwork
2022-11-25 8:25 ` [igt-dev] ✓ Fi.CI.BAT: success for Cold Reset IGT Test (rev2) Patchwork
2022-11-28 10:57 ` [igt-dev] ✓ Fi.CI.BAT: success for Cold Reset IGT Test (rev3) 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=20221123085441.2821638-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.