aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-08-14 16:06:05 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-08-15 13:38:45 -0400
commit9a3d2b9beefd5b07c1d8f70ded01b88f203ee304 (patch)
tree51aba33f4963d835195368743e31d116e3493199 /include/linux/pci.h
parent1b95ce8fc9c12fdb60047f2f9950f29e76e7c66d (diff)
PCI: Add pci_probe_reset_slot() and pci_probe_reset_bus()
Users of pci_reset_bus() and pci_reset_slot() need a way to probe whether the bus or slot supports reset. Add trivial helper functions and export them as vfio-pci will make use of these. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 1a8fd3464daf..daf40cd851df 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -924,7 +924,9 @@ int pcie_set_mps(struct pci_dev *dev, int mps);
924int __pci_reset_function(struct pci_dev *dev); 924int __pci_reset_function(struct pci_dev *dev);
925int __pci_reset_function_locked(struct pci_dev *dev); 925int __pci_reset_function_locked(struct pci_dev *dev);
926int pci_reset_function(struct pci_dev *dev); 926int pci_reset_function(struct pci_dev *dev);
927int pci_probe_reset_slot(struct pci_slot *slot);
927int pci_reset_slot(struct pci_slot *slot); 928int pci_reset_slot(struct pci_slot *slot);
929int pci_probe_reset_bus(struct pci_bus *bus);
928int pci_reset_bus(struct pci_bus *bus); 930int pci_reset_bus(struct pci_bus *bus);
929void pci_reset_bridge_secondary_bus(struct pci_dev *dev); 931void pci_reset_bridge_secondary_bus(struct pci_dev *dev);
930void pci_update_resource(struct pci_dev *dev, int resno); 932void pci_update_resource(struct pci_dev *dev, int resno);