2006-07-31 09:21:33 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2006 Intel Corp.
|
|
|
|
* Tom Long Nguyen (tom.l.nguyen@intel.com)
|
|
|
|
* Zhang Yanmin (yanmin.zhang@intel.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _AER_H_
|
|
|
|
#define _AER_H_
|
|
|
|
|
|
|
|
#if defined(CONFIG_PCIEAER)
|
|
|
|
/* pci-e port driver needs this function to enable aer */
|
|
|
|
extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
|
|
|
|
extern int pci_find_aer_capability(struct pci_dev *dev);
|
|
|
|
extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
|
|
|
|
extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
|
2007-06-06 05:50:34 +02:00
|
|
|
extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
|
2006-07-31 09:21:33 +02:00
|
|
|
#else
|
2007-06-06 05:46:49 +02:00
|
|
|
#define pci_enable_pcie_error_reporting(dev) (-EINVAL)
|
|
|
|
#define pci_find_aer_capability(dev) (0)
|
|
|
|
#define pci_disable_pcie_error_reporting(dev) (-EINVAL)
|
|
|
|
#define pci_cleanup_aer_uncorrect_error_status(dev) (-EINVAL)
|
2007-06-06 05:50:34 +02:00
|
|
|
#define pci_cleanup_aer_correct_error_status(dev) (-EINVAL)
|
2006-07-31 09:21:33 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //_AER_H_
|
|
|
|
|