Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
icu.c File Reference
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/types.h>
#include <asm/cpu.h>
#include <asm/io.h>
#include <asm/vr41xx/irq.h>
#include <asm/vr41xx/vr41xx.h>

Go to the source code of this file.

Macros

#define ICU1_TYPE1_BASE   0x0b000080UL
 
#define ICU2_TYPE1_BASE   0x0b000200UL
 
#define ICU1_TYPE2_BASE   0x0f000080UL
 
#define ICU2_TYPE2_BASE   0x0f0000a0UL
 
#define ICU1_SIZE   0x20
 
#define ICU2_SIZE   0x1c
 
#define SYSINT1REG   0x00
 
#define PIUINTREG   0x02
 
#define INTASSIGN0   0x04
 
#define INTASSIGN1   0x06
 
#define GIUINTLREG   0x08
 
#define DSIUINTREG   0x0a
 
#define MSYSINT1REG   0x0c
 
#define MPIUINTREG   0x0e
 
#define MAIUINTREG   0x10
 
#define MKIUINTREG   0x12
 
#define MMACINTREG   0x12
 
#define MGIUINTLREG   0x14
 
#define MDSIUINTREG   0x16
 
#define NMIREG   0x18
 
#define SOFTREG   0x1a
 
#define INTASSIGN2   0x1c
 
#define INTASSIGN3   0x1e
 
#define SYSINT2REG   0x00
 
#define GIUINTHREG   0x02
 
#define FIRINTREG   0x04
 
#define MSYSINT2REG   0x06
 
#define MGIUINTHREG   0x08
 
#define MFIRINTREG   0x0a
 
#define PCIINTREG   0x0c
 
#define PCIINT0   0x0001
 
#define SCUINTREG   0x0e
 
#define SCUINT0   0x0001
 
#define CSIINTREG   0x10
 
#define MPCIINTREG   0x12
 
#define MSCUINTREG   0x14
 
#define MCSIINTREG   0x16
 
#define BCUINTREG   0x18
 
#define BCUINTR   0x0001
 
#define MBCUINTREG   0x1a
 
#define SYSINT1_IRQ_TO_PIN(x)   ((x) - SYSINT1_IRQ_BASE) /* Pin 0-15 */
 
#define SYSINT2_IRQ_TO_PIN(x)   ((x) - SYSINT2_IRQ_BASE) /* Pin 0-15 */
 
#define INT_TO_IRQ(x)   ((x) + 2) /* Int0-4 -> IRQ2-6 */
 
#define icu1_read(offset)   readw(icu1_base + (offset))
 
#define icu1_write(offset, value)   writew((value), icu1_base + (offset))
 
#define icu2_read(offset)   readw(icu2_base + (offset))
 
#define icu2_write(offset, value)   writew((value), icu2_base + (offset))
 
#define INTASSIGN_MAX   4
 
#define INTASSIGN_MASK   0x0007
 

Functions

void vr41xx_enable_piuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_piuint)
 
void vr41xx_disable_piuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_piuint)
 
void vr41xx_enable_aiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_aiuint)
 
void vr41xx_disable_aiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_aiuint)
 
void vr41xx_enable_kiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_kiuint)
 
void vr41xx_disable_kiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_kiuint)
 
void vr41xx_enable_macint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_macint)
 
void vr41xx_disable_macint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_macint)
 
void vr41xx_enable_dsiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_dsiuint)
 
void vr41xx_disable_dsiuint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_dsiuint)
 
void vr41xx_enable_firint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_firint)
 
void vr41xx_disable_firint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_firint)
 
void vr41xx_enable_pciint (void)
 
 EXPORT_SYMBOL (vr41xx_enable_pciint)
 
void vr41xx_disable_pciint (void)
 
 EXPORT_SYMBOL (vr41xx_disable_pciint)
 
void vr41xx_enable_scuint (void)
 
 EXPORT_SYMBOL (vr41xx_enable_scuint)
 
void vr41xx_disable_scuint (void)
 
 EXPORT_SYMBOL (vr41xx_disable_scuint)
 
void vr41xx_enable_csiint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_enable_csiint)
 
void vr41xx_disable_csiint (uint16_t mask)
 
 EXPORT_SYMBOL (vr41xx_disable_csiint)
 
void vr41xx_enable_bcuint (void)
 
 EXPORT_SYMBOL (vr41xx_enable_bcuint)
 
void vr41xx_disable_bcuint (void)
 
 EXPORT_SYMBOL (vr41xx_disable_bcuint)
 
int vr41xx_set_intassign (unsigned int irq, unsigned char intassign)
 
 EXPORT_SYMBOL (vr41xx_set_intassign)
 
 core_initcall (vr41xx_icu_init)
 

Macro Definition Documentation

#define BCUINTR   0x0001

Definition at line 94 of file icu.c.

#define BCUINTREG   0x18

Definition at line 93 of file icu.c.

#define CSIINTREG   0x10

Definition at line 89 of file icu.c.

#define DSIUINTREG   0x0a

Definition at line 66 of file icu.c.

#define FIRINTREG   0x04

Definition at line 81 of file icu.c.

#define GIUINTHREG   0x02

Definition at line 80 of file icu.c.

#define GIUINTLREG   0x08

Definition at line 65 of file icu.c.

#define icu1_read (   offset)    readw(icu1_base + (offset))

Definition at line 102 of file icu.c.

#define ICU1_SIZE   0x20

Definition at line 58 of file icu.c.

#define ICU1_TYPE1_BASE   0x0b000080UL

Definition at line 52 of file icu.c.

#define ICU1_TYPE2_BASE   0x0f000080UL

Definition at line 55 of file icu.c.

#define icu1_write (   offset,
  value 
)    writew((value), icu1_base + (offset))

Definition at line 103 of file icu.c.

#define icu2_read (   offset)    readw(icu2_base + (offset))

Definition at line 105 of file icu.c.

#define ICU2_SIZE   0x1c

Definition at line 59 of file icu.c.

#define ICU2_TYPE1_BASE   0x0b000200UL

Definition at line 53 of file icu.c.

#define ICU2_TYPE2_BASE   0x0f0000a0UL

Definition at line 56 of file icu.c.

#define icu2_write (   offset,
  value 
)    writew((value), icu2_base + (offset))

Definition at line 106 of file icu.c.

#define INT_TO_IRQ (   x)    ((x) + 2) /* Int0-4 -> IRQ2-6 */

Definition at line 100 of file icu.c.

#define INTASSIGN0   0x04

Definition at line 63 of file icu.c.

#define INTASSIGN1   0x06

Definition at line 64 of file icu.c.

#define INTASSIGN2   0x1c

Definition at line 76 of file icu.c.

#define INTASSIGN3   0x1e

Definition at line 77 of file icu.c.

#define INTASSIGN_MASK   0x0007

Definition at line 109 of file icu.c.

#define INTASSIGN_MAX   4

Definition at line 108 of file icu.c.

#define MAIUINTREG   0x10

Definition at line 69 of file icu.c.

#define MBCUINTREG   0x1a

Definition at line 95 of file icu.c.

#define MCSIINTREG   0x16

Definition at line 92 of file icu.c.

#define MDSIUINTREG   0x16

Definition at line 73 of file icu.c.

#define MFIRINTREG   0x0a

Definition at line 84 of file icu.c.

#define MGIUINTHREG   0x08

Definition at line 83 of file icu.c.

#define MGIUINTLREG   0x14

Definition at line 72 of file icu.c.

#define MKIUINTREG   0x12

Definition at line 70 of file icu.c.

#define MMACINTREG   0x12

Definition at line 71 of file icu.c.

#define MPCIINTREG   0x12

Definition at line 90 of file icu.c.

#define MPIUINTREG   0x0e

Definition at line 68 of file icu.c.

#define MSCUINTREG   0x14

Definition at line 91 of file icu.c.

#define MSYSINT1REG   0x0c

Definition at line 67 of file icu.c.

#define MSYSINT2REG   0x06

Definition at line 82 of file icu.c.

#define NMIREG   0x18

Definition at line 74 of file icu.c.

#define PCIINT0   0x0001

Definition at line 86 of file icu.c.

#define PCIINTREG   0x0c

Definition at line 85 of file icu.c.

#define PIUINTREG   0x02

Definition at line 62 of file icu.c.

#define SCUINT0   0x0001

Definition at line 88 of file icu.c.

#define SCUINTREG   0x0e

Definition at line 87 of file icu.c.

#define SOFTREG   0x1a

Definition at line 75 of file icu.c.

#define SYSINT1_IRQ_TO_PIN (   x)    ((x) - SYSINT1_IRQ_BASE) /* Pin 0-15 */

Definition at line 97 of file icu.c.

#define SYSINT1REG   0x00

Definition at line 61 of file icu.c.

#define SYSINT2_IRQ_TO_PIN (   x)    ((x) - SYSINT2_IRQ_BASE) /* Pin 0-15 */

Definition at line 98 of file icu.c.

#define SYSINT2REG   0x00

Definition at line 79 of file icu.c.

Function Documentation

core_initcall ( vr41xx_icu_init  )
EXPORT_SYMBOL ( vr41xx_enable_piuint  )
EXPORT_SYMBOL ( vr41xx_disable_piuint  )
EXPORT_SYMBOL ( vr41xx_enable_aiuint  )
EXPORT_SYMBOL ( vr41xx_disable_aiuint  )
EXPORT_SYMBOL ( vr41xx_enable_kiuint  )
EXPORT_SYMBOL ( vr41xx_disable_kiuint  )
EXPORT_SYMBOL ( vr41xx_enable_macint  )
EXPORT_SYMBOL ( vr41xx_disable_macint  )
EXPORT_SYMBOL ( vr41xx_enable_dsiuint  )
EXPORT_SYMBOL ( vr41xx_disable_dsiuint  )
EXPORT_SYMBOL ( vr41xx_enable_firint  )
EXPORT_SYMBOL ( vr41xx_disable_firint  )
EXPORT_SYMBOL ( vr41xx_enable_pciint  )
EXPORT_SYMBOL ( vr41xx_disable_pciint  )
EXPORT_SYMBOL ( vr41xx_enable_scuint  )
EXPORT_SYMBOL ( vr41xx_disable_scuint  )
EXPORT_SYMBOL ( vr41xx_enable_csiint  )
EXPORT_SYMBOL ( vr41xx_disable_csiint  )
EXPORT_SYMBOL ( vr41xx_enable_bcuint  )
EXPORT_SYMBOL ( vr41xx_disable_bcuint  )
EXPORT_SYMBOL ( vr41xx_set_intassign  )
void vr41xx_disable_aiuint ( uint16_t  mask)

Definition at line 200 of file icu.c.

void vr41xx_disable_bcuint ( void  )

Definition at line 429 of file icu.c.

void vr41xx_disable_csiint ( uint16_t  mask)

Definition at line 397 of file icu.c.

void vr41xx_disable_dsiuint ( uint16_t  mask)

Definition at line 281 of file icu.c.

void vr41xx_disable_firint ( uint16_t  mask)

Definition at line 305 of file icu.c.

void vr41xx_disable_kiuint ( uint16_t  mask)

Definition at line 230 of file icu.c.

void vr41xx_disable_macint ( uint16_t  mask)

Definition at line 257 of file icu.c.

void vr41xx_disable_pciint ( void  )

Definition at line 333 of file icu.c.

void vr41xx_disable_piuint ( uint16_t  mask)

Definition at line 170 of file icu.c.

void vr41xx_disable_scuint ( void  )

Definition at line 365 of file icu.c.

void vr41xx_enable_aiuint ( uint16_t  mask)

Definition at line 185 of file icu.c.

void vr41xx_enable_bcuint ( void  )

Definition at line 413 of file icu.c.

void vr41xx_enable_csiint ( uint16_t  mask)

Definition at line 381 of file icu.c.

void vr41xx_enable_dsiuint ( uint16_t  mask)

Definition at line 269 of file icu.c.

void vr41xx_enable_firint ( uint16_t  mask)

Definition at line 293 of file icu.c.

void vr41xx_enable_kiuint ( uint16_t  mask)

Definition at line 215 of file icu.c.

void vr41xx_enable_macint ( uint16_t  mask)

Definition at line 245 of file icu.c.

void vr41xx_enable_pciint ( void  )

Definition at line 317 of file icu.c.

void vr41xx_enable_piuint ( uint16_t  mask)

Definition at line 155 of file icu.c.

void vr41xx_enable_scuint ( void  )

Definition at line 349 of file icu.c.

int vr41xx_set_intassign ( unsigned int  irq,
unsigned char  intassign 
)

Definition at line 605 of file icu.c.