2 * Copyright (C) 2006 Intel Corp.
3 * Tom Long Nguyen (tom.l.nguyen@intel.com)
4 * Zhang Yanmin (yanmin.zhang@intel.com)
10 #define AER_NONFATAL 0
12 #define AER_CORRECTABLE 2
14 struct aer_header_log_regs {
21 struct aer_capability_regs {
29 struct aer_header_log_regs header_log;
36 #if defined(CONFIG_PCIEAER)
37 /* pci-e port driver needs this function to enable aer */
38 int pci_enable_pcie_error_reporting(struct pci_dev *dev);
39 int pci_disable_pcie_error_reporting(struct pci_dev *dev);
40 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
42 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
46 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
50 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
56 void cper_print_aer(struct pci_dev *dev, int cper_severity,
57 struct aer_capability_regs *aer);
58 int cper_severity_to_aer(int cper_severity);
59 void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,
61 struct aer_capability_regs *aer_regs);