diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-08-21 03:50:52 +0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-08-25 00:43:08 +0400 |
commit | f1a7bfaf6bb9cb195577e674c0ab2fd0a55d9014 (patch) | |
tree | 8150335e1d70d026704f39c28921615d5af9701e /drivers/pci/pci.h | |
parent | 23b90cfd7bcf8ae1c0711df1cae7dfec3c01aec8 (diff) | |
download | linux-f1a7bfaf6bb9cb195577e674c0ab2fd0a55d9014.tar.xz |
PCI: PCIe AER: Introduce pci_aer_available()
Introduce a function allowing the caller to check whether to try to
enable PCIe AER.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 679c39de6a89..7754a678ab15 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -140,8 +140,10 @@ static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } #ifdef CONFIG_PCIEAER void pci_no_aer(void); +bool pci_aer_available(void); #else static inline void pci_no_aer(void) { } +static inline bool pci_aer_available(void) { return false; } #endif static inline int pci_no_d1d2(struct pci_dev *dev) |