Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
aerdrv.h File Reference
#include <linux/workqueue.h>
#include <linux/pcieport_if.h>
#include <linux/aer.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Data Structures

struct  aer_err_info
 
struct  aer_err_source
 
struct  aer_rpc
 
struct  aer_broadcast_data
 

Macros

#define AER_NONFATAL   0
 
#define AER_FATAL   1
 
#define AER_CORRECTABLE   2
 
#define SYSTEM_ERROR_INTR_ON_MESG_MASK
 
#define ROOT_PORT_INTR_ON_MESG_MASK
 
#define ERR_COR_ID(d)   (d & 0xffff)
 
#define ERR_UNCOR_ID(d)   (d >> 16)
 
#define AER_ERROR_SOURCES_MAX   100
 
#define AER_LOG_TLP_MASKS
 
#define AER_MAX_MULTI_ERR_DEVICES   5 /* Not likely to have more */
 

Functions

void aer_do_secondary_bus_reset (struct pci_dev *dev)
 
int aer_init (struct pcie_device *dev)
 
void aer_isr (struct work_struct *work)
 
void aer_print_error (struct pci_dev *dev, struct aer_err_info *info)
 
void aer_print_port_info (struct pci_dev *dev, struct aer_err_info *info)
 
irqreturn_t aer_irq (int irq, void *context)
 

Variables

struct bus_type pcie_port_bus_type
 

Macro Definition Documentation

#define AER_CORRECTABLE   2

Definition at line 18 of file aerdrv.h.

#define AER_ERROR_SOURCES_MAX   100

Definition at line 29 of file aerdrv.h.

#define AER_FATAL   1

Definition at line 17 of file aerdrv.h.

#define AER_LOG_TLP_MASKS
Value:
PCI_ERR_UNC_ECRC| \
PCI_ERR_UNC_UNSUP| \
PCI_ERR_UNC_COMP_ABORT| \
PCI_ERR_UNC_UNX_COMP| \
PCI_ERR_UNC_MALF_TLP)

Definition at line 31 of file aerdrv.h.

#define AER_MAX_MULTI_ERR_DEVICES   5 /* Not likely to have more */

Definition at line 38 of file aerdrv.h.

#define AER_NONFATAL   0

Definition at line 16 of file aerdrv.h.

#define ERR_COR_ID (   d)    (d & 0xffff)

Definition at line 26 of file aerdrv.h.

#define ERR_UNCOR_ID (   d)    (d >> 16)

Definition at line 27 of file aerdrv.h.

#define ROOT_PORT_INTR_ON_MESG_MASK
Value:
PCI_ERR_ROOT_CMD_NONFATAL_EN| \
PCI_ERR_ROOT_CMD_FATAL_EN)

Definition at line 23 of file aerdrv.h.

#define SYSTEM_ERROR_INTR_ON_MESG_MASK
Value:
PCI_EXP_RTCTL_SENFEE| \
PCI_EXP_RTCTL_SEFEE)

Definition at line 20 of file aerdrv.h.

Function Documentation

void aer_do_secondary_bus_reset ( struct pci_dev dev)

aer_do_secondary_bus_reset - perform secondary bus reset : pointer to bridge's pci_dev data structure

Invoked when performing link reset at Root Port or Downstream Port.

Definition at line 363 of file aerdrv_core.c.

int aer_init ( struct pcie_device dev)

aer_init - provide AER initialization : pointer to AER pcie device

Invoked when AER service driver is loaded.

Definition at line 814 of file aerdrv_core.c.

irqreturn_t aer_irq ( int  irq,
void context 
)

aer_irq - Root Port's ISR : IRQ assigned to Root Port : pointer to Root Port data structure

Invoked when Root Port detects AER messages.

Definition at line 194 of file aerdrv.c.

void aer_isr ( struct work_struct work)

aer_isr - consume errors detected by root port : definition of this work item

Invoked, as DPC, when root port records new detected error

Definition at line 794 of file aerdrv_core.c.

void aer_print_error ( struct pci_dev dev,
struct aer_err_info info 
)

Definition at line 152 of file aerdrv_errprint.c.

void aer_print_port_info ( struct pci_dev dev,
struct aer_err_info info 
)

Definition at line 199 of file aerdrv_errprint.c.

Variable Documentation

struct bus_type pcie_port_bus_type

Definition at line 20 of file portdrv_bus.c.