PCI: Add #defines for accessing PCIe DVSEC fields
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 8 Dec 2021 01:50:10 +0000 (17:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 12:56:19 +0000 (13:56 +0100)
commit80b3485f7d7bdb2468f2a9d6a346a1132d248309
treed401bbeb48de5513df9ef786d721414587c93d4a
parent79f1c7304295bbbc611bc53cfd5425b777b3e840
PCI: Add #defines for accessing PCIe DVSEC fields

Add #defines for accessing Vendor ID, Revision, Length, and ID offsets
in the Designated Vendor Specific Extended Capability (DVSEC). Defined
in PCIe r5.0, sec 7.9.6.

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20211208015015.891275-2-david.e.box@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/pci_regs.h