12 #include <linux/ptrace.h>
13 #include <linux/errno.h>
14 #include <linux/signal.h>
15 #include <linux/sched.h>
20 #include <linux/bitops.h>
23 #include <asm/delay.h>
29 #define IRQ_ROUTE_ONE(X) (X##_ROUTE << (X - IRQ_BASE_MB93493))
32 (IRQ_ROUTE_ONE(IRQ_MB93493_VDC) | \
33 IRQ_ROUTE_ONE(IRQ_MB93493_VCC) | \
34 IRQ_ROUTE_ONE(IRQ_MB93493_AUDIO_OUT) | \
35 IRQ_ROUTE_ONE(IRQ_MB93493_I2C_0) | \
36 IRQ_ROUTE_ONE(IRQ_MB93493_I2C_1) | \
37 IRQ_ROUTE_ONE(IRQ_MB93493_USB) | \
38 IRQ_ROUTE_ONE(IRQ_MB93493_LOCAL_BUS) | \
39 IRQ_ROUTE_ONE(IRQ_MB93493_PCMCIA) | \
40 IRQ_ROUTE_ONE(IRQ_MB93493_GPIO) | \
41 IRQ_ROUTE_ONE(IRQ_MB93493_AUDIO_IN))
47 static void frv_mb93493_mask(
struct irq_data *
d)
62 static void frv_mb93493_ack(
struct irq_data *
d)
66 static void frv_mb93493_unmask(
struct irq_data *
d)
81 static struct irq_chip frv_mb93493_pic = {
83 .irq_ack = frv_mb93493_ack,
84 .irq_mask = frv_mb93493_mask,
85 .irq_mask_ack = frv_mb93493_mask,
86 .irq_unmask = frv_mb93493_unmask,
92 static irqreturn_t mb93493_interrupt(
int irq,
void *_piqsr)
94 volatile void *piqsr = _piqsr;
98 iqsr = iqsr & (iqsr >> 16) & 0xffff;
104 asm(
"scan %1,gr0,%0" :
"=r"(irq) :
"r"(iqsr));
118 static struct irqaction mb93493_irq[2] = {
120 .handler = mb93493_interrupt,
126 .handler = mb93493_interrupt,
141 irq_set_chip_and_handler(irq, &frv_mb93493_pic,