[funini.com] -> [kei@sodan] -> Kernel Reading

root/include/linux/aer.h

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. pci_enable_pcie_error_reporting
  2. pci_find_aer_capability
  3. pci_disable_pcie_error_reporting
  4. pci_cleanup_aer_uncorrect_error_status

/*
 * 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);
#else
static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
{
        return -EINVAL;
}
static inline int pci_find_aer_capability(struct pci_dev *dev)
{
        return 0;
}
static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
{
        return -EINVAL;
}
static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
{
        return -EINVAL;
}
#endif

#endif //_AER_H_


/* [<][>][^][v][top][bottom][index][help] */

[funini.com] -> [kei@sodan] -> Kernel Reading