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/types.h>
12 #define AER_NONFATAL 0
14 #define AER_CORRECTABLE 2
18 struct aer_header_log_regs {
25 struct aer_capability_regs {
33 struct aer_header_log_regs header_log;
40 #if defined(CONFIG_PCIEAER)
41 /* pci-e port driver needs this function to enable aer */
42 int pci_enable_pcie_error_reporting(struct pci_dev *dev);
43 int pci_disable_pcie_error_reporting(struct pci_dev *dev);
44 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
45 int pci_cleanup_aer_error_status_regs(struct pci_dev *dev);
47 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
51 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
55 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
59 static inline int pci_cleanup_aer_error_status_regs(struct pci_dev *dev)
65 void cper_print_aer(struct pci_dev *dev, int cper_severity,
66 struct aer_capability_regs *aer);
67 int cper_severity_to_aer(int cper_severity);
68 void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn,
70 struct aer_capability_regs *aer_regs);