History

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.

Rajat Jain committed 6 years ago

Commit 52fbf5b1 parent cbe42036 files · +24 −11Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/pci.h+1−0
@@ -486,6 +486,7 @@ struct pci_dev { · 485 unmodified lines
486#ifdef CONFIG_PCI_P2PDMA486#ifdef CONFIG_PCI_P2PDMA
487 struct pci_p2pdma *p2pdma;487 struct pci_p2pdma *p2pdma;
488#endif488#endif
489 u16 acs_cap; /* ACS Capability offset */
489 phys_addr_t rom; /* Physical address if not from BAR */490 phys_addr_t rom; /* Physical address if not from BAR */
490 size_t romlen; /* Length if not from BAR */491 size_t romlen; /* Length if not from BAR */
491 char *driver_override; /* Driver name to force a match */492 char *driver_override; /* Driver name to force a match */