diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2020-03-23 17:26:01 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-03-28 12:10:24 -0500 |
commit | be06c1b42eea749547d2f0248dc0a7c1153f67b9 (patch) | |
tree | b5bbc7a1357309cf0a587afcc89908d9ced1dc96 /include/linux/pci.h | |
parent | 6d2c89441571ea534d6240f7724f518936c44f8d (diff) | |
download | lwn-be06c1b42eea749547d2f0248dc0a7c1153f67b9.tar.gz lwn-be06c1b42eea749547d2f0248dc0a7c1153f67b9.zip |
PCI/DPC: Move DPC data into struct pci_dev
We only need 25 bits of data for DPC, so I don't think it's worth the
complexity of allocating and keeping track of the struct dpc_dev separately
from the pci_dev. Move that data into the struct pci_dev.
Link: https://lore.kernel.org/r/98323eaa18080adbe5bb30846862f09f8722d4b3.1585000084.git.sathyanarayanan.kuppuswamy@linux.intel.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 3840a541a9de..a0b7e7a53741 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -444,6 +444,11 @@ struct pci_dev { const struct attribute_group **msi_irq_groups; #endif struct pci_vpd *vpd; +#ifdef CONFIG_PCIE_DPC + u16 dpc_cap; + unsigned int dpc_rp_extensions:1; + u8 dpc_rp_log_size; +#endif #ifdef CONFIG_PCI_ATS union { struct pci_sriov *sriov; /* PF: SR-IOV info */ |