Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
irq.c File Reference
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <asm/irq_cpu.h>
#include <asm/mipsregs.h>
#include <asm/mach-ar7/ar7.h>

Go to the source code of this file.

Macros

#define EXCEPT_OFFSET   0x80
 
#define PACE_OFFSET   0xA0
 
#define CHNLS_OFFSET   0x200
 
#define REG_OFFSET(irq, reg)   ((irq) / 32 * 0x4 + reg * 0x10)
 
#define SEC_REG_OFFSET(reg)   (EXCEPT_OFFSET + reg * 0x8)
 
#define SEC_SR_OFFSET   (SEC_REG_OFFSET(0)) /* 0x80 */
 
#define CR_OFFSET(irq)   (REG_OFFSET(irq, 1)) /* 0x10 */
 
#define SEC_CR_OFFSET   (SEC_REG_OFFSET(1)) /* 0x88 */
 
#define ESR_OFFSET(irq)   (REG_OFFSET(irq, 2)) /* 0x20 */
 
#define SEC_ESR_OFFSET   (SEC_REG_OFFSET(2)) /* 0x90 */
 
#define ECR_OFFSET(irq)   (REG_OFFSET(irq, 3)) /* 0x30 */
 
#define SEC_ECR_OFFSET   (SEC_REG_OFFSET(3)) /* 0x98 */
 
#define PIR_OFFSET   (0x40)
 
#define MSR_OFFSET   (0x44)
 
#define PM_OFFSET(irq)   (REG_OFFSET(irq, 5)) /* 0x50 */
 
#define TM_OFFSET(irq)   (REG_OFFSET(irq, 6)) /* 0x60 */
 
#define REG(addr)   ((u32 *)(KSEG1ADDR(AR7_REGS_IRQ) + addr))
 
#define CHNL_OFFSET(chnl)   (CHNLS_OFFSET + (chnl * 4))
 

Functions

void __init arch_init_irq (void)
 
asmlinkage void plat_irq_dispatch (void)
 

Macro Definition Documentation

#define CHNL_OFFSET (   chnl)    (CHNLS_OFFSET + (chnl * 4))

Definition at line 48 of file irq.c.

#define CHNLS_OFFSET   0x200

Definition at line 30 of file irq.c.

#define CR_OFFSET (   irq)    (REG_OFFSET(irq, 1)) /* 0x10 */

Definition at line 35 of file irq.c.

#define ECR_OFFSET (   irq)    (REG_OFFSET(irq, 3)) /* 0x30 */

Definition at line 39 of file irq.c.

#define ESR_OFFSET (   irq)    (REG_OFFSET(irq, 2)) /* 0x20 */

Definition at line 37 of file irq.c.

#define EXCEPT_OFFSET   0x80

Definition at line 28 of file irq.c.

#define MSR_OFFSET   (0x44)

Definition at line 42 of file irq.c.

#define PACE_OFFSET   0xA0

Definition at line 29 of file irq.c.

#define PIR_OFFSET   (0x40)

Definition at line 41 of file irq.c.

#define PM_OFFSET (   irq)    (REG_OFFSET(irq, 5)) /* 0x50 */

Definition at line 43 of file irq.c.

#define REG (   addr)    ((u32 *)(KSEG1ADDR(AR7_REGS_IRQ) + addr))

Definition at line 46 of file irq.c.

#define REG_OFFSET (   irq,
  reg 
)    ((irq) / 32 * 0x4 + reg * 0x10)

Definition at line 32 of file irq.c.

#define SEC_CR_OFFSET   (SEC_REG_OFFSET(1)) /* 0x88 */

Definition at line 36 of file irq.c.

#define SEC_ECR_OFFSET   (SEC_REG_OFFSET(3)) /* 0x98 */

Definition at line 40 of file irq.c.

#define SEC_ESR_OFFSET   (SEC_REG_OFFSET(2)) /* 0x90 */

Definition at line 38 of file irq.c.

#define SEC_REG_OFFSET (   reg)    (EXCEPT_OFFSET + reg * 0x8)

Definition at line 33 of file irq.c.

#define SEC_SR_OFFSET   (SEC_REG_OFFSET(0)) /* 0x80 */

Definition at line 34 of file irq.c.

#define TM_OFFSET (   irq)    (REG_OFFSET(irq, 6)) /* 0x60 */

Definition at line 44 of file irq.c.

Function Documentation

void __init arch_init_irq ( void  )

Definition at line 137 of file irq.c.

asmlinkage void plat_irq_dispatch ( void  )

Definition at line 169 of file irq.c.