diff options
author | Keith Busch <keith.busch@intel.com> | 2014-05-02 12:40:42 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 13:11:00 -0400 |
commit | 3ebe7f9f7e4a4fd1f6461ecd01ff2961317a483a (patch) | |
tree | 01547552912774f2008af5b020fbeed20078719f /include | |
parent | 761ce53330a4f02c58768631027d1c1dd0d538f7 (diff) |
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')
-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 { | |||
603 | /* PCI slot has been reset */ | 603 | /* PCI slot has been reset */ |
604 | pci_ers_result_t (*slot_reset)(struct pci_dev *dev); | 604 | pci_ers_result_t (*slot_reset)(struct pci_dev *dev); |
605 | 605 | ||
606 | /* PCI function reset prepare or completed */ | ||
607 | void (*reset_notify)(struct pci_dev *dev, bool prepare); | ||
608 | |||
606 | /* Device driver may resume normal operations */ | 609 | /* Device driver may resume normal operations */ |
607 | void (*resume)(struct pci_dev *dev); | 610 | void (*resume)(struct pci_dev *dev); |
608 | }; | 611 | }; |