diff options
Diffstat (limited to 'arch/arm/mach-iop13xx/irq.c')
-rw-r--r-- | arch/arm/mach-iop13xx/irq.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/arch/arm/mach-iop13xx/irq.c b/arch/arm/mach-iop13xx/irq.c index 0d099ca87bdf..a233470dd10c 100644 --- a/arch/arm/mach-iop13xx/irq.c +++ b/arch/arm/mach-iop13xx/irq.c | |||
@@ -123,79 +123,79 @@ static void write_intsize(u32 val) | |||
123 | 123 | ||
124 | /* 0 = Interrupt Masked and 1 = Interrupt not masked */ | 124 | /* 0 = Interrupt Masked and 1 = Interrupt not masked */ |
125 | static void | 125 | static void |
126 | iop13xx_irq_mask0 (unsigned int irq) | 126 | iop13xx_irq_mask0 (struct irq_data *d) |
127 | { | 127 | { |
128 | write_intctl_0(read_intctl_0() & ~(1 << (irq - 0))); | 128 | write_intctl_0(read_intctl_0() & ~(1 << (d->irq - 0))); |
129 | } | 129 | } |
130 | 130 | ||
131 | static void | 131 | static void |
132 | iop13xx_irq_mask1 (unsigned int irq) | 132 | iop13xx_irq_mask1 (struct irq_data *d) |
133 | { | 133 | { |
134 | write_intctl_1(read_intctl_1() & ~(1 << (irq - 32))); | 134 | write_intctl_1(read_intctl_1() & ~(1 << (d->irq - 32))); |
135 | } | 135 | } |
136 | 136 | ||
137 | static void | 137 | static void |
138 | iop13xx_irq_mask2 (unsigned int irq) | 138 | iop13xx_irq_mask2 (struct irq_data *d) |
139 | { | 139 | { |
140 | write_intctl_2(read_intctl_2() & ~(1 << (irq - 64))); | 140 | write_intctl_2(read_intctl_2() & ~(1 << (d->irq - 64))); |
141 | } | 141 | } |
142 | 142 | ||
143 | static void | 143 | static void |
144 | iop13xx_irq_mask3 (unsigned int irq) | 144 | iop13xx_irq_mask3 (struct irq_data *d) |
145 | { | 145 | { |
146 | write_intctl_3(read_intctl_3() & ~(1 << (irq - 96))); | 146 | write_intctl_3(read_intctl_3() & ~(1 << (d->irq - 96))); |
147 | } | 147 | } |
148 | 148 | ||
149 | static void | 149 | static void |
150 | iop13xx_irq_unmask0(unsigned int irq) | 150 | iop13xx_irq_unmask0(struct irq_data *d) |
151 | { | 151 | { |
152 | write_intctl_0(read_intctl_0() | (1 << (irq - 0))); | 152 | write_intctl_0(read_intctl_0() | (1 << (d->irq - 0))); |
153 | } | 153 | } |
154 | 154 | ||
155 | static void | 155 | static void |
156 | iop13xx_irq_unmask1(unsigned int irq) | 156 | iop13xx_irq_unmask1(struct irq_data *d) |
157 | { | 157 | { |
158 | write_intctl_1(read_intctl_1() | (1 << (irq - 32))); | 158 | write_intctl_1(read_intctl_1() | (1 << (d->irq - 32))); |
159 | } | 159 | } |
160 | 160 | ||
161 | static void | 161 | static void |
162 | iop13xx_irq_unmask2(unsigned int irq) | 162 | iop13xx_irq_unmask2(struct irq_data *d) |
163 | { | 163 | { |
164 | write_intctl_2(read_intctl_2() | (1 << (irq - 64))); | 164 | write_intctl_2(read_intctl_2() | (1 << (d->irq - 64))); |
165 | } | 165 | } |
166 | 166 | ||
167 | static void | 167 | static void |
168 | iop13xx_irq_unmask3(unsigned int irq) | 168 | iop13xx_irq_unmask3(struct irq_data *d) |
169 | { | 169 | { |
170 | write_intctl_3(read_intctl_3() | (1 << (irq - 96))); | 170 | write_intctl_3(read_intctl_3() | (1 << (d->irq - 96))); |
171 | } | 171 | } |
172 | 172 | ||
173 | static struct irq_chip iop13xx_irqchip1 = { | 173 | static struct irq_chip iop13xx_irqchip1 = { |
174 | .name = "IOP13xx-1", | 174 | .name = "IOP13xx-1", |
175 | .ack = iop13xx_irq_mask0, | 175 | .irq_ack = iop13xx_irq_mask0, |
176 | .mask = iop13xx_irq_mask0, | 176 | .irq_mask = iop13xx_irq_mask0, |
177 | .unmask = iop13xx_irq_unmask0, | 177 | .irq_unmask = iop13xx_irq_unmask0, |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct irq_chip iop13xx_irqchip2 = { | 180 | static struct irq_chip iop13xx_irqchip2 = { |
181 | .name = "IOP13xx-2", | 181 | .name = "IOP13xx-2", |
182 | .ack = iop13xx_irq_mask1, | 182 | .irq_ack = iop13xx_irq_mask1, |
183 | .mask = iop13xx_irq_mask1, | 183 | .irq_mask = iop13xx_irq_mask1, |
184 | .unmask = iop13xx_irq_unmask1, | 184 | .irq_unmask = iop13xx_irq_unmask1, |
185 | }; | 185 | }; |
186 | 186 | ||
187 | static struct irq_chip iop13xx_irqchip3 = { | 187 | static struct irq_chip iop13xx_irqchip3 = { |
188 | .name = "IOP13xx-3", | 188 | .name = "IOP13xx-3", |
189 | .ack = iop13xx_irq_mask2, | 189 | .irq_ack = iop13xx_irq_mask2, |
190 | .mask = iop13xx_irq_mask2, | 190 | .irq_mask = iop13xx_irq_mask2, |
191 | .unmask = iop13xx_irq_unmask2, | 191 | .irq_unmask = iop13xx_irq_unmask2, |
192 | }; | 192 | }; |
193 | 193 | ||
194 | static struct irq_chip iop13xx_irqchip4 = { | 194 | static struct irq_chip iop13xx_irqchip4 = { |
195 | .name = "IOP13xx-4", | 195 | .name = "IOP13xx-4", |
196 | .ack = iop13xx_irq_mask3, | 196 | .irq_ack = iop13xx_irq_mask3, |
197 | .mask = iop13xx_irq_mask3, | 197 | .irq_mask = iop13xx_irq_mask3, |
198 | .unmask = iop13xx_irq_unmask3, | 198 | .irq_unmask = iop13xx_irq_unmask3, |
199 | }; | 199 | }; |
200 | 200 | ||
201 | extern void iop_init_cp6_handler(void); | 201 | extern void iop_init_cp6_handler(void); |