2 * Copyright (C) 2006 Intel Corp.
3 * Tom Long Nguyen (tom.l.nguyen@intel.com)
4 * Zhang Yanmin (yanmin.zhang@intel.com)
10 struct aer_header_log_regs {
17 struct aer_capability_regs {
25 struct aer_header_log_regs header_log;
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);
36 extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
38 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
42 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
46 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
52 extern void cper_print_aer(const char *prefix, int cper_severity,
53 struct aer_capability_regs *aer);