Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
extint.c File Reference
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  eic
 

Macros

#define EIC_IER   0x0000
 
#define EIC_IDR   0x0004
 
#define EIC_IMR   0x0008
 
#define EIC_ISR   0x000c
 
#define EIC_ICR   0x0010
 
#define EIC_MODE   0x0014
 
#define EIC_EDGE   0x0018
 
#define EIC_LEVEL   0x001c
 
#define EIC_NMIC   0x0024
 
#define EIC_NMIC_ENABLE   (1 << 0)
 
#define EIC_BIT(name)   (1 << EIC_##name##_OFFSET)
 
#define EIC_BF(name, value)
 
#define EIC_BFEXT(name, value)
 
#define EIC_BFINS(name, value, old)
 
#define eic_readl(port, reg)   __raw_readl((port)->regs + EIC_##reg)
 
#define eic_writel(port, reg, value)   __raw_writel((value), (port)->regs + EIC_##reg)
 

Functions

int nmi_enable (void)
 
void nmi_disable (void)
 
 arch_initcall (eic_init)
 

Macro Definition Documentation

#define EIC_BF (   name,
  value 
)
Value:
(((value) & ((1 << EIC_##name##_SIZE) - 1)) \
<< EIC_##name##_OFFSET)

Definition at line 38 of file extint.c.

#define EIC_BFEXT (   name,
  value 
)
Value:
(((value) >> EIC_##name##_OFFSET) \
& ((1 << EIC_##name##_SIZE) - 1))

Definition at line 41 of file extint.c.

#define EIC_BFINS (   name,
  value,
  old 
)
Value:
(((old) & ~(((1 << EIC_##name##_SIZE) - 1) \
<< EIC_##name##_OFFSET)) \

Definition at line 44 of file extint.c.

#define EIC_BIT (   name)    (1 << EIC_##name##_OFFSET)

Definition at line 36 of file extint.c.

#define EIC_EDGE   0x0018

Definition at line 28 of file extint.c.

#define EIC_ICR   0x0010

Definition at line 26 of file extint.c.

#define EIC_IDR   0x0004

Definition at line 23 of file extint.c.

#define EIC_IER   0x0000

Definition at line 22 of file extint.c.

#define EIC_IMR   0x0008

Definition at line 24 of file extint.c.

#define EIC_ISR   0x000c

Definition at line 25 of file extint.c.

#define EIC_LEVEL   0x001c

Definition at line 29 of file extint.c.

#define EIC_MODE   0x0014

Definition at line 27 of file extint.c.

#define EIC_NMIC   0x0024

Definition at line 30 of file extint.c.

#define EIC_NMIC_ENABLE   (1 << 0)

Definition at line 33 of file extint.c.

#define eic_readl (   port,
  reg 
)    __raw_readl((port)->regs + EIC_##reg)

Definition at line 50 of file extint.c.

#define eic_writel (   port,
  reg,
  value 
)    __raw_writel((value), (port)->regs + EIC_##reg)

Definition at line 52 of file extint.c.

Function Documentation

arch_initcall ( eic_init  )
void nmi_disable ( void  )

Definition at line 174 of file extint.c.

int nmi_enable ( void  )

Definition at line 164 of file extint.c.