2 * Copyright (C) 2006 Intel Corp.
3 * Tom Long Nguyen (tom.l.nguyen@intel.com)
4 * Zhang Yanmin (yanmin.zhang@intel.com)
10 #include <linux/errno.h>
11 #include <linux/types.h>
13 #define AER_NONFATAL 0
15 #define AER_CORRECTABLE 2
19 struct aer_header_log_regs {
26 struct aer_capability_regs {
34 struct aer_header_log_regs header_log;
41 #if defined(CONFIG_PCIEAER)
42 /* pci-e port driver needs this function to enable aer */
43 int pci_enable_pcie_error_reporting(struct pci_dev *dev);
44 int pci_disable_pcie_error_reporting(struct pci_dev *dev);
45 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
46 int pci_cleanup_aer_error_status_regs(struct pci_dev *dev);
48 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
52 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
56 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
60 static inline int pci_cleanup_aer_error_status_regs(struct pci_dev *dev)
66 void cper_print_aer(struct pci_dev *dev, int aer_severity,
67 struct aer_capability_regs *aer);
68 int cper_severity_to_aer(int cper_severity);
69 void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,
71 struct aer_capability_regs *aer_regs);