2010-02-05 19:14:49 +08:00
|
|
|
#ifndef __ASM_MACH_IRQS_H
|
|
|
|
#define __ASM_MACH_IRQS_H
|
|
|
|
|
2012-01-18 01:20:23 +08:00
|
|
|
#include <linux/sh_intc.h>
|
|
|
|
|
2010-11-17 18:59:31 +08:00
|
|
|
/* GIC */
|
|
|
|
#define gic_spi(nr) ((nr) + 32)
|
2013-02-25 17:39:44 +08:00
|
|
|
#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
|
2010-11-17 18:59:31 +08:00
|
|
|
|
2010-03-11 13:30:30 +08:00
|
|
|
/* INTCS */
|
2012-03-28 18:22:54 +08:00
|
|
|
#define INTCS_VECT_BASE 0x3400
|
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 */
|