virtio: Rename set_features to finalize_features
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / aer.h
blobf2518141de88fbc8f89ababec557f37cd32a86fc
1 /*
2 * Copyright (C) 2006 Intel Corp.
3 * Tom Long Nguyen (tom.l.nguyen@intel.com)
4 * Zhang Yanmin (yanmin.zhang@intel.com)
5 */
7 #ifndef _AER_H_
8 #define _AER_H_
10 #if defined(CONFIG_PCIEAER)
11 /* pci-e port driver needs this function to enable aer */
12 extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
13 extern int pci_find_aer_capability(struct pci_dev *dev);
14 extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
15 extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
16 #else
17 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
19 return -EINVAL;
21 static inline int pci_find_aer_capability(struct pci_dev *dev)
23 return 0;
25 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
27 return -EINVAL;
29 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
31 return -EINVAL;
33 #endif
35 #endif //_AER_H_