Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gsc.h File Reference
#include <linux/interrupt.h>
#include <asm/hardware.h>
#include <asm/parisc-device.h>

Go to the source code of this file.

Data Structures

struct  gsc_irq
 
struct  gsc_asic
 

Macros

#define OFFSET_IRR   0x0000 /* Interrupt request register */
 
#define OFFSET_IMR   0x0004 /* Interrupt mask register */
 
#define OFFSET_IPR   0x0008 /* Interrupt pending register */
 
#define OFFSET_ICR   0x000C /* Interrupt control register */
 
#define OFFSET_IAR   0x0010 /* Interrupt address register */
 
#define GSC_EIM_WIDTH   5
 

Functions

int gsc_common_setup (struct parisc_device *parent, struct gsc_asic *gsc_asic)
 
int gsc_alloc_irq (struct gsc_irq *dev)
 
int gsc_claim_irq (struct gsc_irq *dev, int irq)
 
int gsc_assign_irq (struct irq_chip *type, void *data)
 
int gsc_find_local_irq (unsigned int irq, int *global_irq, int limit)
 
void gsc_fixup_irqs (struct parisc_device *parent, void *ctrl, void(*choose)(struct parisc_device *child, void *ctrl))
 
void gsc_asic_assign_irq (struct gsc_asic *asic, int local_irq, int *irqp)
 
irqreturn_t gsc_asic_intr (int irq, void *dev)
 

Macro Definition Documentation

#define GSC_EIM_WIDTH   5

Definition at line 20 of file gsc.h.

#define OFFSET_IAR   0x0010 /* Interrupt address register */

Definition at line 17 of file gsc.h.

#define OFFSET_ICR   0x000C /* Interrupt control register */

Definition at line 16 of file gsc.h.

#define OFFSET_IMR   0x0004 /* Interrupt mask register */

Definition at line 14 of file gsc.h.

#define OFFSET_IPR   0x0008 /* Interrupt pending register */

Definition at line 15 of file gsc.h.

#define OFFSET_IRR   0x0000 /* Interrupt request register */

Definition at line 13 of file gsc.h.

Function Documentation

int gsc_alloc_irq ( struct gsc_irq dev)

Definition at line 37 of file gsc.c.

void gsc_asic_assign_irq ( struct gsc_asic asic,
int  local_irq,
int irqp 
)

Definition at line 161 of file gsc.c.

irqreturn_t gsc_asic_intr ( int  irq,
void dev 
)

Definition at line 75 of file gsc.c.

int gsc_assign_irq ( struct irq_chip type,
void data 
)

Definition at line 148 of file gsc.c.

int gsc_claim_irq ( struct gsc_irq dev,
int  irq 
)

Definition at line 52 of file gsc.c.

int gsc_common_setup ( struct parisc_device parent,
struct gsc_asic gsc_asic 
)

Definition at line 205 of file gsc.c.

int gsc_find_local_irq ( unsigned int  irq,
int global_irq,
int  limit 
)

Definition at line 96 of file gsc.c.

void gsc_fixup_irqs ( struct parisc_device parent,
void ctrl,
void(*)(struct parisc_device *child, void *ctrl choose 
)