Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
irq.h File Reference
#include <hwregs/intr_vect.h>

Go to the source code of this file.

Data Structures

struct  etrax_interrupt_vector
 

Macros

#define NR_IRQS   NBR_INTR_VECT /* Exceptions + IRQs */
 
#define FIRST_IRQ   0x31 /* Exception number for first IRQ */
 
#define NR_REAL_IRQS   (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */
 
#define MACH_IRQS   32
 
#define SAVE_ALL
 
#define STR2(x)   #x
 
#define STR(x)   STR2(x)
 
#define IRQ_NAME2(nr)   nr##_interrupt(void)
 
#define IRQ_NAME(nr)   IRQ_NAME2(IRQ##nr)
 
#define KGDB_FIXUP   ""
 
#define BUILD_IRQ(nr)
 
#define BUILD_TIMER_IRQ(nr, mask)
 

Typedefs

typedef void(* irqvectptr )(void)
 

Functions

void crisv32_mask_irq (int irq)
 
void crisv32_unmask_irq (int irq)
 
void set_exception_vector (int n, irqvectptr addr)
 

Variables

struct etrax_interrupt_vectoretrax_irv
 

Macro Definition Documentation

#define BUILD_IRQ (   nr)
Value:
void IRQ_NAME(nr); \
__asm__ ( \
".text\n\t" \
"IRQ" #nr "_interrupt:\n\t" \
"move.d "#nr",$r10\n\t" \
"move.d $sp, $r12\n\t" \
"jsr crisv32_do_IRQ\n\t" \
"moveq 1, $r11\n\t" \
"jump ret_from_intr\n\t" \
"nop\n\t");

Definition at line 81 of file irq.h.

#define BUILD_TIMER_IRQ (   nr,
  mask 
)
Value:
void IRQ_NAME(nr); \
__asm__ ( \
".text\n\t" \
"IRQ" #nr "_interrupt:\n\t" \
"move.d "#nr",$r10\n\t" \
"move.d $sp,$r12\n\t" \
"jsr crisv32_do_IRQ\n\t" \
"moveq 0,$r11\n\t" \
"jump ret_from_intr\n\t" \
"nop\n\t");

Definition at line 109 of file irq.h.

#define FIRST_IRQ   0x31 /* Exception number for first IRQ */

Definition at line 8 of file irq.h.

#define IRQ_NAME (   nr)    IRQ_NAME2(IRQ##nr)

Definition at line 56 of file irq.h.

#define IRQ_NAME2 (   nr)    nr##_interrupt(void)

Definition at line 55 of file irq.h.

#define KGDB_FIXUP   ""

Definition at line 70 of file irq.h.

#define MACH_IRQS   32

Definition at line 13 of file irq.h.

#define NR_IRQS   NBR_INTR_VECT /* Exceptions + IRQs */

Definition at line 7 of file irq.h.

#define NR_REAL_IRQS   (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */

Definition at line 9 of file irq.h.

#define SAVE_ALL
Value:
"subq 12,$sp\n\t" \
"move $erp,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move $srp,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move $ccs,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move $spc,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move $mof,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move $srs,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move.d $acr,[$sp]\n\t" \
"subq 14*4,$sp\n\t" \
"movem $r13,[$sp]\n\t" \
"subq 4,$sp\n\t" \
"move.d $r10,[$sp]\n"

Definition at line 32 of file irq.h.

#define STR (   x)    STR2(x)

Definition at line 53 of file irq.h.

#define STR2 (   x)    #x

Definition at line 52 of file irq.h.

Typedef Documentation

typedef void(* irqvectptr)(void)

Definition at line 18 of file irq.h.

Function Documentation

void crisv32_mask_irq ( int  irq)

Definition at line 280 of file irq.c.

void crisv32_unmask_irq ( int  irq)

Definition at line 288 of file irq.c.

void set_exception_vector ( int  n,
irqvectptr  addr 
)

Definition at line 324 of file irq.c.

Variable Documentation