aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop13xx/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop13xx/irq.c')
-rw-r--r--arch/arm/mach-iop13xx/irq.c64
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 */
125static void 125static void
126iop13xx_irq_mask0 (unsigned int irq) 126iop13xx_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
131static void 131static void
132iop13xx_irq_mask1 (unsigned int irq) 132iop13xx_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
137static void 137static void
138iop13xx_irq_mask2 (unsigned int irq) 138iop13xx_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
143static void 143static void
144iop13xx_irq_mask3 (unsigned int irq) 144iop13xx_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
149static void 149static void
150iop13xx_irq_unmask0(unsigned int irq) 150iop13xx_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
155static void 155static void
156iop13xx_irq_unmask1(unsigned int irq) 156iop13xx_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
161static void 161static void
162iop13xx_irq_unmask2(unsigned int irq) 162iop13xx_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
167static void 167static void
168iop13xx_irq_unmask3(unsigned int irq) 168iop13xx_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
173static struct irq_chip iop13xx_irqchip1 = { 173static 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
180static struct irq_chip iop13xx_irqchip2 = { 180static 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
187static struct irq_chip iop13xx_irqchip3 = { 187static 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
194static struct irq_chip iop13xx_irqchip4 = { 194static 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
201extern void iop_init_cp6_handler(void); 201extern void iop_init_cp6_handler(void);