https://github.com/torvalds/linux
Raw File
Tip revision: 39d3520c92cf7a28c07229ca00cc35a1e8026c77 authored by Linus Torvalds on 13 August 2007, 04:25:24 UTC
Linux 2.6.23-rc3
Tip revision: 39d3520
aer.h
/*
 * 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);
extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
#else
#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)
#define pci_cleanup_aer_correct_error_status(dev)	(-EINVAL)
#endif

#endif //_AER_H_

back to top