summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2020-07-07 15:46:02 -0700
committerBjorn Helgaas <bhelgaas@google.com>2020-07-10 13:49:35 -0500
commit52fbf5bdeeef415b28b8e6cdade1e48927927f60 (patch)
tree006acc3c262d5b64c7bffbb790ed40805e6bc1f4 /include/linux
parentcbe420361f92a31694fb3773a6247fda9aba1db3 (diff)
PCI: Cache ACS capability offset in device
Currently the ACS capability is being looked up at a number of places. Read and store it once at enumeration so that it can be used by all later. No functional change intended. Link: https://lore.kernel.org/r/20200707224604.3737893-2-rajatja@google.com Signed-off-by: Rajat Jain <rajatja@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index c79d83304e52..a26be5332bba 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -486,6 +486,7 @@ struct pci_dev {
#ifdef CONFIG_PCI_P2PDMA
struct pci_p2pdma *p2pdma;
#endif
+ u16 acs_cap; /* ACS Capability offset */
phys_addr_t rom; /* Physical address if not from BAR */
size_t romlen; /* Length if not from BAR */
char *driver_override; /* Driver name to force a match */