Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
twl4030-irq.c File Reference
#include <linux/init.h>
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/irqdomain.h>
#include <linux/i2c/twl.h>
#include "twl-core.h"

Go to the source code of this file.

Data Structures

struct  sih
 
struct  sih::sih_irq_data
 
struct  sih_agent
 

Macros

#define TWL4030_CORE_NR_IRQS   8
 
#define TWL4030_PWR_NR_IRQS   8
 
#define REG_PIH_ISR_P1   0x01
 
#define REG_PIH_ISR_P2   0x02
 
#define REG_PIH_SIR   0x03 /* for testing */
 
#define SIH_INITIALIZER(modname, nbits)
 
#define TWL4030_INT_PWR_EDR   TWL4030_INT_PWR_EDR1
 
#define TWL4030_MODULE_KEYPAD_KEYP   TWL4030_MODULE_KEYPAD
 
#define TWL4030_MODULE_INT_PWR   TWL4030_MODULE_INT
 
#define twl_irq_line   0
 

Functions

int twl4030_sih_setup (struct device *dev, int module, int irq_base)
 
int twl4030_init_irq (struct device *dev, int irq_num)
 
int twl4030_exit_irq (void)
 
int twl4030_init_chip_irq (const char *chip)
 

Macro Definition Documentation

#define REG_PIH_ISR_P1   0x01

Definition at line 62 of file twl4030-irq.c.

#define REG_PIH_ISR_P2   0x02

Definition at line 63 of file twl4030-irq.c.

#define REG_PIH_SIR   0x03 /* for testing */

Definition at line 64 of file twl4030-irq.c.

#define SIH_INITIALIZER (   modname,
  nbits 
)
Value:
.module = TWL4030_MODULE_ ## modname, \
.control_offset = TWL4030_ ## modname ## _SIH_CTRL, \
.bits = nbits, \
.bytes_ixr = DIV_ROUND_UP(nbits, 8), \
.edr_offset = TWL4030_ ## modname ## _EDR, \
.bytes_edr = DIV_ROUND_UP((2*(nbits)), 8), \
.irq_lines = 2, \
.mask = { { \
.isr_offset = TWL4030_ ## modname ## _ISR1, \
.imr_offset = TWL4030_ ## modname ## _IMR1, \
}, \
{ \
.isr_offset = TWL4030_ ## modname ## _ISR2, \
.imr_offset = TWL4030_ ## modname ## _IMR2, \
}, },

Definition at line 94 of file twl4030-irq.c.

#define TWL4030_CORE_NR_IRQS   8

Definition at line 58 of file twl4030-irq.c.

#define TWL4030_INT_PWR_EDR   TWL4030_INT_PWR_EDR1

Definition at line 112 of file twl4030-irq.c.

#define TWL4030_MODULE_INT_PWR   TWL4030_MODULE_INT

Definition at line 114 of file twl4030-irq.c.

#define TWL4030_MODULE_KEYPAD_KEYP   TWL4030_MODULE_KEYPAD

Definition at line 113 of file twl4030-irq.c.

#define TWL4030_PWR_NR_IRQS   8

Definition at line 59 of file twl4030-irq.c.

#define twl_irq_line   0

Definition at line 690 of file twl4030-irq.c.

Function Documentation

int twl4030_exit_irq ( void  )

Definition at line 775 of file twl4030-irq.c.

int twl4030_init_chip_irq ( const char chip)

Definition at line 785 of file twl4030-irq.c.

int twl4030_init_irq ( struct device dev,
int  irq_num 
)

Definition at line 692 of file twl4030-irq.c.

int twl4030_sih_setup ( struct device dev,
int  module,
int  irq_base 
)

Definition at line 632 of file twl4030-irq.c.