diff options
author | Keith Busch <keith.busch@intel.com> | 2014-05-02 20:40:42 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 21:11:00 +0400 |
commit | 3ebe7f9f7e4a4fd1f6461ecd01ff2961317a483a (patch) | |
tree | 01547552912774f2008af5b020fbeed20078719f /include/linux | |
parent | 761ce53330a4f02c58768631027d1c1dd0d538f7 (diff) | |
download | linux-3ebe7f9f7e4a4fd1f6461ecd01ff2961317a483a.tar.xz |
PCI: Notify driver before and after device reset
Notify a PCI device driver when its device's access is about to be disabled
for an impending reset attempt, then after the attempt completes and device
access is restored. The notification is via the pci_error_handlers
interface.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index aab57b4abe7f..31c43093e538 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -603,6 +603,9 @@ struct pci_error_handlers { /* PCI slot has been reset */ pci_ers_result_t (*slot_reset)(struct pci_dev *dev); + /* PCI function reset prepare or completed */ + void (*reset_notify)(struct pci_dev *dev, bool prepare); + /* Device driver may resume normal operations */ void (*resume)(struct pci_dev *dev); }; |