Change Details
target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/irq.c |
55 | 55 | } |
56 | 56 | EXPORT_SYMBOL(ifxmips_mask_and_ack_irq); |
57 | 57 | |
| 58 | static void |
| 59 | ifxmips_ack_irq(unsigned int irq_nr) |
| 60 | { |
| 61 | int i; |
| 62 | u32 *isr = IFXMIPS_ICU_IM0_ISR; |
| 63 | |
| 64 | irq_nr -= INT_NUM_IRQ0; |
| 65 | for (i = 0; i <= 4; i++) |
| 66 | { |
| 67 | if (irq_nr < INT_NUM_IM_OFFSET) |
| 68 | { |
| 69 | ifxmips_w32((1 << irq_nr), isr); |
| 70 | return; |
| 71 | } |
| 72 | isr += IFXMIPS_ICU_OFFSET; |
| 73 | irq_nr -= INT_NUM_IM_OFFSET; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | |
58 | 78 | void |
59 | 79 | ifxmips_enable_irq(unsigned int irq_nr) |
60 | 80 | { |
... | ... | |
96 | 116 | .enable = ifxmips_enable_irq, |
97 | 117 | .disable = ifxmips_disable_irq, |
98 | 118 | .unmask = ifxmips_enable_irq, |
99 | | .ack = ifxmips_end_irq, |
| 119 | .ack = ifxmips_ack_irq, |
100 | 120 | .mask = ifxmips_disable_irq, |
101 | 121 | .mask_ack = ifxmips_mask_and_ack_irq, |
102 | 122 | .end = ifxmips_end_irq, |
Download the corresponding diff file