Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
htirq.c File Reference
#include <linux/irq.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/htirq.h>

Go to the source code of this file.

Data Structures

struct  ht_irq_cfg
 

Functions

void write_ht_irq_msg (unsigned int irq, struct ht_irq_msg *msg)
 
void fetch_ht_irq_msg (unsigned int irq, struct ht_irq_msg *msg)
 
void mask_ht_irq (struct irq_data *data)
 
void unmask_ht_irq (struct irq_data *data)
 
int __ht_create_irq (struct pci_dev *dev, int idx, ht_irq_update_t *update)
 
int ht_create_irq (struct pci_dev *dev, int idx)
 
void ht_destroy_irq (unsigned int irq)
 
 EXPORT_SYMBOL (__ht_create_irq)
 
 EXPORT_SYMBOL (ht_create_irq)
 
 EXPORT_SYMBOL (ht_destroy_irq)
 

Function Documentation

int __ht_create_irq ( struct pci_dev dev,
int  idx,
ht_irq_update_t update 
)

__ht_create_irq - create an irq and attach it to a device. : The hypertransport device to find the irq capability on. : Which of the possible irqs to attach to. : Function to be called when changing the htirq message

The irq number of the new irq or a negative error value is returned.

Definition at line 87 of file htirq.c.

EXPORT_SYMBOL ( __ht_create_irq  )
EXPORT_SYMBOL ( ht_create_irq  )
EXPORT_SYMBOL ( ht_destroy_irq  )
void fetch_ht_irq_msg ( unsigned int  irq,
struct ht_irq_msg msg 
)

Definition at line 55 of file htirq.c.

int ht_create_irq ( struct pci_dev dev,
int  idx 
)

ht_create_irq - create an irq and attach it to a device. : The hypertransport device to find the irq capability on. : Which of the possible irqs to attach to.

ht_create_irq needs to be called for all hypertransport devices that generate irqs.

The irq number of the new irq or a negative error value is returned.

Definition at line 150 of file htirq.c.

void ht_destroy_irq ( unsigned int  irq)

ht_destroy_irq - destroy an irq created with ht_create_irq : irq to be destroyed

This reverses ht_create_irq removing the specified irq from existence. The irq should be free before this happens.

Definition at line 162 of file htirq.c.

void mask_ht_irq ( struct irq_data data)

Definition at line 61 of file htirq.c.

void unmask_ht_irq ( struct irq_data data)

Definition at line 70 of file htirq.c.

void write_ht_irq_msg ( unsigned int  irq,
struct ht_irq_msg msg 
)

Definition at line 36 of file htirq.c.