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

Go to the source code of this file.

Data Structures

struct  intc_vect
 
struct  intc_group
 
struct  intc_subgroup
 
struct  intc_mask_reg
 
struct  intc_prio_reg
 
struct  intc_sense_reg
 
struct  intc_hw_desc
 
struct  intc_desc
 

Macros

#define INTC_NR_IRQS   1024
 
#define evt2irq(evt)   (evt)
 
#define irq2evt(irq)   (irq)
 
#define INTC_VECT(enum_id, vect)   { enum_id, vect }
 
#define INTC_IRQ(enum_id, irq)   INTC_VECT(enum_id, irq2evt(irq))
 
#define INTC_GROUP(enum_id, ids...)   { enum_id, { ids } }
 
#define INTC_SMP_BALANCING(reg)
 
#define INTC_SMP(stride, nr)
 
#define _INTC_ARRAY(a)   a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a)
 
#define INTC_HW_DESC(vectors, groups, mask_regs, prio_regs, sense_regs, ack_regs)
 
#define DECLARE_INTC_DESC(symbol, chipname, vectors, groups,mask_regs, prio_regs, sense_regs)
 
#define DECLARE_INTC_DESC_ACK(symbol, chipname, vectors, groups, mask_regs, prio_regs, sense_regs, ack_regs)
 

Typedefs

typedef unsigned char intc_enum
 

Functions

int register_intc_controller (struct intc_desc *desc)
 
int intc_set_priority (unsigned int irq, unsigned int prio)
 
int intc_irq_lookup (const char *chipname, intc_enum enum_id)
 
void intc_finalize (void)
 

Macro Definition Documentation

#define _INTC_ARRAY (   a)    a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a)

Definition at line 99 of file sh_intc.h.

#define DECLARE_INTC_DESC (   symbol,
  chipname,
  vectors,
  groups,
  mask_regs,
  prio_regs,
  sense_regs 
)
Value:
.name = chipname, \
.hw = INTC_HW_DESC(vectors, groups, mask_regs, \
prio_regs, sense_regs, NULL), \
}

Definition at line 119 of file sh_intc.h.

#define DECLARE_INTC_DESC_ACK (   symbol,
  chipname,
  vectors,
  groups,
  mask_regs,
  prio_regs,
  sense_regs,
  ack_regs 
)
Value:
.name = chipname, \
.hw = INTC_HW_DESC(vectors, groups, mask_regs, \
prio_regs, sense_regs, ack_regs), \
}

Definition at line 127 of file sh_intc.h.

#define evt2irq (   evt)    (evt)

Definition at line 19 of file sh_intc.h.

#define INTC_GROUP (   enum_id,
  ids... 
)    { enum_id, { ids } }

Definition at line 38 of file sh_intc.h.

#define INTC_HW_DESC (   vectors,
  groups,
  mask_regs,
  prio_regs,
  sense_regs,
  ack_regs 
)
Value:
{ \
_INTC_ARRAY(vectors), _INTC_ARRAY(groups), \
_INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), \
_INTC_ARRAY(sense_regs), _INTC_ARRAY(ack_regs), \
}

Definition at line 101 of file sh_intc.h.

#define INTC_IRQ (   enum_id,
  irq 
)    INTC_VECT(enum_id, irq2evt(irq))

Definition at line 31 of file sh_intc.h.

#define INTC_NR_IRQS   1024

Definition at line 9 of file sh_intc.h.

#define INTC_SMP (   stride,
  nr 
)

Definition at line 79 of file sh_intc.h.

#define INTC_SMP_BALANCING (   reg)

Definition at line 73 of file sh_intc.h.

#define INTC_VECT (   enum_id,
  vect 
)    { enum_id, vect }

Definition at line 30 of file sh_intc.h.

#define irq2evt (   irq)    (irq)

Definition at line 20 of file sh_intc.h.

Typedef Documentation

typedef unsigned char intc_enum

Definition at line 23 of file sh_intc.h.

Function Documentation

void intc_finalize ( void  )

Definition at line 258 of file virq.c.

int intc_irq_lookup ( const char chipname,
intc_enum  enum_id 
)

Definition at line 50 of file virq.c.

int intc_set_priority ( unsigned int  irq,
unsigned int  prio 
)

Definition at line 129 of file chip.c.

int register_intc_controller ( struct intc_desc desc)

Definition at line 188 of file core.c.