diff options
Diffstat (limited to 'include/linux/aer.h')
-rw-r--r-- | include/linux/aer.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h index 737f90ab4b62..4dbaa7081530 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h | |||
@@ -7,6 +7,10 @@ | |||
7 | #ifndef _AER_H_ | 7 | #ifndef _AER_H_ |
8 | #define _AER_H_ | 8 | #define _AER_H_ |
9 | 9 | ||
10 | #define AER_NONFATAL 0 | ||
11 | #define AER_FATAL 1 | ||
12 | #define AER_CORRECTABLE 2 | ||
13 | |||
10 | struct aer_header_log_regs { | 14 | struct aer_header_log_regs { |
11 | unsigned int dw0; | 15 | unsigned int dw0; |
12 | unsigned int dw1; | 16 | unsigned int dw1; |
@@ -31,9 +35,9 @@ struct aer_capability_regs { | |||
31 | 35 | ||
32 | #if defined(CONFIG_PCIEAER) | 36 | #if defined(CONFIG_PCIEAER) |
33 | /* pci-e port driver needs this function to enable aer */ | 37 | /* pci-e port driver needs this function to enable aer */ |
34 | extern int pci_enable_pcie_error_reporting(struct pci_dev *dev); | 38 | int pci_enable_pcie_error_reporting(struct pci_dev *dev); |
35 | extern int pci_disable_pcie_error_reporting(struct pci_dev *dev); | 39 | int pci_disable_pcie_error_reporting(struct pci_dev *dev); |
36 | extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); | 40 | int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); |
37 | #else | 41 | #else |
38 | static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev) | 42 | static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev) |
39 | { | 43 | { |
@@ -49,11 +53,11 @@ static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) | |||
49 | } | 53 | } |
50 | #endif | 54 | #endif |
51 | 55 | ||
52 | extern void cper_print_aer(struct pci_dev *dev, | 56 | void cper_print_aer(struct pci_dev *dev, int cper_severity, |
53 | int cper_severity, struct aer_capability_regs *aer); | 57 | struct aer_capability_regs *aer); |
54 | extern int cper_severity_to_aer(int cper_severity); | 58 | int cper_severity_to_aer(int cper_severity); |
55 | extern void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, | 59 | void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, |
56 | int severity, | 60 | int severity, |
57 | struct aer_capability_regs *aer_regs); | 61 | struct aer_capability_regs *aer_regs); |
58 | #endif //_AER_H_ | 62 | #endif //_AER_H_ |
59 | 63 | ||