2010-02-05 19:14:49 +08:00
|
|
|
#ifndef __ASM_MACH_IRQS_H
|
|
|
|
#define __ASM_MACH_IRQS_H
|
|
|
|
|
|
|
|
#define NR_IRQS 512
|
|
|
|
|
2010-03-11 13:30:30 +08:00
|
|
|
/* INTCA */
|
2010-02-05 19:14:49 +08:00
|
|
|
#define evt2irq(evt) (((evt) >> 5) - 16)
|
|
|
|
#define irq2evt(irq) (((irq) + 16) << 5)
|
|
|
|
|
2010-03-11 13:30:30 +08:00
|
|
|
/* INTCS */
|
2010-05-19 18:29:47 +08:00
|
|
|
#define INTCS_VECT_BASE 0x2200
|
2010-03-11 13:30:30 +08:00
|
|
|
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
|
|
|
|
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
|
|
|
|
|
2010-02-05 19:14:49 +08:00
|
|
|
#endif /* __ASM_MACH_IRQS_H */
|