1*7a7d246dSNobuhiro Iwamatsu #ifndef __ASM_MACH_IRQS_H 2*7a7d246dSNobuhiro Iwamatsu #define __ASM_MACH_IRQS_H 3*7a7d246dSNobuhiro Iwamatsu 4*7a7d246dSNobuhiro Iwamatsu #define NR_IRQS 1024 5*7a7d246dSNobuhiro Iwamatsu 6*7a7d246dSNobuhiro Iwamatsu /* GIC */ 7*7a7d246dSNobuhiro Iwamatsu #define gic_spi(nr) ((nr) + 32) 8*7a7d246dSNobuhiro Iwamatsu 9*7a7d246dSNobuhiro Iwamatsu /* INTCA */ 10*7a7d246dSNobuhiro Iwamatsu #define evt2irq(evt) (((evt) >> 5) - 16) 11*7a7d246dSNobuhiro Iwamatsu #define irq2evt(irq) (((irq) + 16) << 5) 12*7a7d246dSNobuhiro Iwamatsu 13*7a7d246dSNobuhiro Iwamatsu /* INTCS */ 14*7a7d246dSNobuhiro Iwamatsu #define INTCS_VECT_BASE 0x2200 15*7a7d246dSNobuhiro Iwamatsu #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) 16*7a7d246dSNobuhiro Iwamatsu #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) 17*7a7d246dSNobuhiro Iwamatsu 18*7a7d246dSNobuhiro Iwamatsu #endif /* __ASM_MACH_IRQS_H */ 19