]> Git Repo - linux.git/blob - include/linux/aer.h
Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/dccp_exp
[linux.git] / include / linux / aer.h
1 /*
2  * Copyright (C) 2006 Intel Corp.
3  *     Tom Long Nguyen ([email protected])
4  *     Zhang Yanmin ([email protected])
5  */
6
7 #ifndef _AER_H_
8 #define _AER_H_
9
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)
18 {
19         return -EINVAL;
20 }
21 static inline int pci_find_aer_capability(struct pci_dev *dev)
22 {
23         return 0;
24 }
25 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
26 {
27         return -EINVAL;
28 }
29 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
30 {
31         return -EINVAL;
32 }
33 #endif
34
35 #endif //_AER_H_
36
This page took 0.034259 seconds and 4 git commands to generate.