Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
aer.h
Go to the documentation of this file.
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 
11  unsigned int dw0;
12  unsigned int dw1;
13  unsigned int dw2;
14  unsigned int dw3;
15 };
16 
30 };
31 
32 #if defined(CONFIG_PCIEAER)
33 /* pci-e port driver needs this function to enable aer */
34 extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
35 extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
37 #else
38 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
39 {
40  return -EINVAL;
41 }
42 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
43 {
44  return -EINVAL;
45 }
46 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
47 {
48  return -EINVAL;
49 }
50 #endif
51 
52 extern void cper_print_aer(const char *prefix, int cper_severity,
53  struct aer_capability_regs *aer);
54 extern int cper_severity_to_aer(int cper_severity);
55 extern void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,
56  int severity);
57 #endif //_AER_H_
58