summaryrefslogtreecommitdiff
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2024-11-25 13:40:55 -0600
committerBjorn Helgaas <bhelgaas@google.com>2024-11-25 13:40:55 -0600
commitab02bafcecedcd936d9e8526bcf1542642ad2947 (patch)
tree9c57b82784dac878302ed43a8293b5b55d2dd75d /drivers/pci/pci.h
parentefcbd9d3975f03c600f42a018f2453f2957042ad (diff)
parent48d0fd2b903e397c2a9621ab35f3d8877f61aee4 (diff)
downloadlinux-ab02bafcecedcd936d9e8526bcf1542642ad2947.tar.gz
linux-ab02bafcecedcd936d9e8526bcf1542642ad2947.tar.bz2
linux-ab02bafcecedcd936d9e8526bcf1542642ad2947.zip
Merge branch 'pci/tph'
- Add and document TLP Processing Hints (TPH) support so drivers can enable and disable TPH and the kernel can save/restore TPH configuration (Wei Huang) - Add TPH Steering Tag support so drivers can retrieve Steering Tag values associated with specific CPUs via an ACPI _DSM to direct DMA writes closer to their consumers (Wei Huang) * pci/tph: PCI/TPH: Add TPH documentation PCI/TPH: Add Steering Tag support PCI: Add TLP Processing Hints (TPH) support
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 7531e4b005c6..2e40fc63ba31 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -638,6 +638,18 @@ static inline int pci_iov_bus_range(struct pci_bus *bus)
#endif /* CONFIG_PCI_IOV */
+#ifdef CONFIG_PCIE_TPH
+void pci_restore_tph_state(struct pci_dev *dev);
+void pci_save_tph_state(struct pci_dev *dev);
+void pci_no_tph(void);
+void pci_tph_init(struct pci_dev *dev);
+#else
+static inline void pci_restore_tph_state(struct pci_dev *dev) { }
+static inline void pci_save_tph_state(struct pci_dev *dev) { }
+static inline void pci_no_tph(void) { }
+static inline void pci_tph_init(struct pci_dev *dev) { }
+#endif
+
#ifdef CONFIG_PCIE_PTM
void pci_ptm_init(struct pci_dev *dev);
void pci_save_ptm_state(struct pci_dev *dev);