diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-11-07 16:43:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-01 18:04:22 -0500 |
commit | 94688cf2454986309fbcd495233ba2423786a14a (patch) | |
tree | ac170991ef1db1127d59a0d7231a8cbb53b5474c /include/linux | |
parent | 1b7c9fcaa147662628078c83ecaf1ef2c5c9c9d0 (diff) |
PCI: export pci_restore_msi_state()
PCI error recovery usually involves the PCI adapter being reset.
If the device is using MSI, the reset will cause the MSI state
to be lost; the device driver needs to restore the MSI state.
The pci_restore_msi_state() routine is currently protected
by CONFIG_PM; remove this, and also export the symbol, so
that it can be used in a modle.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index c53d6cf723d1..87aab07e239a 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -668,6 +668,7 @@ static inline int pci_enable_msix(struct pci_dev* dev, | |||
668 | struct msix_entry *entries, int nvec) {return -1;} | 668 | struct msix_entry *entries, int nvec) {return -1;} |
669 | static inline void pci_disable_msix(struct pci_dev *dev) {} | 669 | static inline void pci_disable_msix(struct pci_dev *dev) {} |
670 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} | 670 | static inline void msi_remove_pci_irq_vectors(struct pci_dev *dev) {} |
671 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | ||
671 | #else | 672 | #else |
672 | extern int pci_enable_msi(struct pci_dev *dev); | 673 | extern int pci_enable_msi(struct pci_dev *dev); |
673 | extern void pci_disable_msi(struct pci_dev *dev); | 674 | extern void pci_disable_msi(struct pci_dev *dev); |
@@ -675,6 +676,7 @@ extern int pci_enable_msix(struct pci_dev* dev, | |||
675 | struct msix_entry *entries, int nvec); | 676 | struct msix_entry *entries, int nvec); |
676 | extern void pci_disable_msix(struct pci_dev *dev); | 677 | extern void pci_disable_msix(struct pci_dev *dev); |
677 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); | 678 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); |
679 | extern void pci_restore_msi_state(struct pci_dev *dev); | ||
678 | #endif | 680 | #endif |
679 | 681 | ||
680 | #ifdef CONFIG_HT_IRQ | 682 | #ifdef CONFIG_HT_IRQ |