Lines Matching full:irq
17 #include <linux/irq.h>
38 static inline unsigned int irq2ebit(unsigned int irq) in irq2ebit() argument
40 return irqebitmap[irq - EINT0]; in irq2ebit()
54 static inline unsigned int irq2ebit(unsigned int irq) in irq2ebit() argument
56 return irq - EINT0; in irq2ebit()
69 unsigned int irq = d->irq - MCFINT_VECBASE; in intc_irq_mask() local
71 if (MCFINTC2_SIMR && (irq > 127)) in intc_irq_mask()
72 __raw_writeb(irq - 128, MCFINTC2_SIMR); in intc_irq_mask()
73 else if (MCFINTC1_SIMR && (irq > 63)) in intc_irq_mask()
74 __raw_writeb(irq - 64, MCFINTC1_SIMR); in intc_irq_mask()
76 __raw_writeb(irq, MCFINTC0_SIMR); in intc_irq_mask()
81 unsigned int irq = d->irq - MCFINT_VECBASE; in intc_irq_unmask() local
83 if (MCFINTC2_CIMR && (irq > 127)) in intc_irq_unmask()
84 __raw_writeb(irq - 128, MCFINTC2_CIMR); in intc_irq_unmask()
85 else if (MCFINTC1_CIMR && (irq > 63)) in intc_irq_unmask()
86 __raw_writeb(irq - 64, MCFINTC1_CIMR); in intc_irq_unmask()
88 __raw_writeb(irq, MCFINTC0_CIMR); in intc_irq_unmask()
93 unsigned int ebit = irq2ebit(d->irq); in intc_irq_ack()
100 unsigned int irq = d->irq; in intc_irq_startup() local
102 if ((irq >= EINT1) && (irq <= EINT7)) { in intc_irq_startup()
103 unsigned int ebit = irq2ebit(irq); in intc_irq_startup()
117 irq -= MCFINT_VECBASE; in intc_irq_startup()
118 if (MCFINTC2_ICR0 && (irq > 127)) in intc_irq_startup()
119 __raw_writeb(5, MCFINTC2_ICR0 + irq - 128); in intc_irq_startup()
120 else if (MCFINTC1_ICR0 && (irq > 63)) in intc_irq_startup()
121 __raw_writeb(5, MCFINTC1_ICR0 + irq - 64); in intc_irq_startup()
123 __raw_writeb(5, MCFINTC0_ICR0 + irq); in intc_irq_startup()
131 unsigned int ebit, irq = d->irq; in intc_irq_set_type() local
151 irq_set_handler(irq, handle_edge_irq); in intc_irq_set_type()
153 ebit = irq2ebit(irq) * 2; in intc_irq_set_type()
179 int irq, eirq; in init_IRQ() local
190 for (irq = MCFINT_VECBASE; (irq < eirq); irq++) { in init_IRQ()
191 if ((irq >= EINT1) && (irq <= EINT7)) in init_IRQ()
192 irq_set_chip(irq, &intc_irq_chip_edge_port); in init_IRQ()
194 irq_set_chip(irq, &intc_irq_chip); in init_IRQ()
195 irq_set_irq_type(irq, IRQ_TYPE_LEVEL_HIGH); in init_IRQ()
196 irq_set_handler(irq, handle_level_irq); in init_IRQ()