Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
msi.h File Reference
#include <linux/kobject.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  msi_msg
 
struct  msi_desc
 

Functions

void mask_msi_irq (struct irq_data *data)
 
void unmask_msi_irq (struct irq_data *data)
 
void __read_msi_msg (struct msi_desc *entry, struct msi_msg *msg)
 
void __get_cached_msi_msg (struct msi_desc *entry, struct msi_msg *msg)
 
void __write_msi_msg (struct msi_desc *entry, struct msi_msg *msg)
 
void read_msi_msg (unsigned int irq, struct msi_msg *msg)
 
void get_cached_msi_msg (unsigned int irq, struct msi_msg *msg)
 
void write_msi_msg (unsigned int irq, struct msi_msg *msg)
 
int arch_setup_msi_irq (struct pci_dev *dev, struct msi_desc *desc)
 
void arch_teardown_msi_irq (unsigned int irq)
 
int arch_setup_msi_irqs (struct pci_dev *dev, int nvec, int type)
 
void arch_teardown_msi_irqs (struct pci_dev *dev)
 
int arch_msi_check_device (struct pci_dev *dev, int nvec, int type)
 

Function Documentation

void __get_cached_msi_msg ( struct msi_desc entry,
struct msi_msg msg 
)

Definition at line 270 of file msi.c.

void __read_msi_msg ( struct msi_desc entry,
struct msi_msg msg 
)

Definition at line 233 of file msi.c.

void __write_msi_msg ( struct msi_desc entry,
struct msi_msg msg 
)

Definition at line 287 of file msi.c.

int arch_msi_check_device ( struct pci_dev dev,
int  nvec,
int  type 
)

Definition at line 16 of file msi.c.

int arch_setup_msi_irq ( struct pci_dev dev,
struct msi_desc desc 
)

Called when a driver request MSI interrupts instead of the legacy INT A-D. This routine will allocate multiple interrupts for MSI devices that support them. A device can override this by programming the MSI control bits [6:4] before calling pci_enable_msi().

: Device requesting MSI interrupts : MSI descriptor

Returns 0 on success.

Definition at line 173 of file msi.c.

int arch_setup_msi_irqs ( struct pci_dev dev,
int  nvec,
int  type 
)

Definition at line 180 of file msi-octeon.c.

void arch_teardown_msi_irq ( unsigned int  irq)

Called when a device no longer needs its MSI interrupts. All MSI interrupts for the device are freed.

: The devices first irq number. There may be multple in sequence.

Definition at line 154 of file msi.c.

void arch_teardown_msi_irqs ( struct pci_dev dev)

Definition at line 40 of file msi.c.

void get_cached_msi_msg ( unsigned int  irq,
struct msi_msg msg 
)

Definition at line 280 of file msi.c.

void mask_msi_irq ( struct irq_data data)

Definition at line 223 of file msi.c.

void read_msi_msg ( unsigned int  irq,
struct msi_msg msg 
)

Definition at line 263 of file msi.c.

void unmask_msi_irq ( struct irq_data data)

Definition at line 228 of file msi.c.

void write_msi_msg ( unsigned int  irq,
struct msi_msg msg 
)

Definition at line 324 of file msi.c.