summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2018-06-30 15:07:17 -0500
committerBjorn Helgaas <bhelgaas@google.com>2018-07-19 16:17:03 -0500
commitdb89ccbe52c7885644ba578c7771e57620f879b1 (patch)
treeb64d2f860d9c3b47eb9abf529c6c5424a074ff1a /include/linux/pci.h
parent60ed982a4e78ff938824a750dbac8a10e5b472ef (diff)
downloadlinux-db89ccbe52c7885644ba578c7771e57620f879b1.tar.gz
linux-db89ccbe52c7885644ba578c7771e57620f879b1.tar.bz2
linux-db89ccbe52c7885644ba578c7771e57620f879b1.zip
PCI/AER: Define aer_stats structure for AER capable devices
Define a structure to hold the AER statistics. There are 2 groups of statistics: dev_* counters that are to be collected for all AER capable devices and rootport_* counters that are collected for all (AER capable) rootports only. Allocate and free this structure when device is added or released (thus counters survive the lifetime of the device). Signed-off-by: Rajat Jain <rajatja@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-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 b4ffea05c999..6bc0aa0fc33f 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -299,6 +299,7 @@ struct pci_dev {
u8 hdr_type; /* PCI header type (`multi' flag masked out) */
#ifdef CONFIG_PCIEAER
u16 aer_cap; /* AER capability offset */
+ struct aer_stats *aer_stats; /* AER stats for this device */
#endif
u8 pcie_cap; /* PCIe capability offset */
u8 msi_cap; /* MSI capability offset */