diff options
Diffstat (limited to 'arch/ppc/amiga/amiints.c')
-rw-r--r-- | arch/ppc/amiga/amiints.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/arch/ppc/amiga/amiints.c b/arch/ppc/amiga/amiints.c index 91195e2ce38d..5f35cf3986f7 100644 --- a/arch/ppc/amiga/amiints.c +++ b/arch/ppc/amiga/amiints.c | |||
@@ -96,8 +96,8 @@ void amiga_init_IRQ(void) | |||
96 | gayle.inten = GAYLE_IRQ_IDE; | 96 | gayle.inten = GAYLE_IRQ_IDE; |
97 | 97 | ||
98 | /* turn off all interrupts... */ | 98 | /* turn off all interrupts... */ |
99 | custom.intena = 0x7fff; | 99 | amiga_custom.intena = 0x7fff; |
100 | custom.intreq = 0x7fff; | 100 | amiga_custom.intreq = 0x7fff; |
101 | 101 | ||
102 | #ifdef CONFIG_APUS | 102 | #ifdef CONFIG_APUS |
103 | /* Clear any inter-CPU interrupt requests. Circumvents bug in | 103 | /* Clear any inter-CPU interrupt requests. Circumvents bug in |
@@ -110,7 +110,7 @@ void amiga_init_IRQ(void) | |||
110 | APUS_WRITE(APUS_IPL_EMU, IPLEMU_SETRESET | IPLEMU_IPLMASK); | 110 | APUS_WRITE(APUS_IPL_EMU, IPLEMU_SETRESET | IPLEMU_IPLMASK); |
111 | #endif | 111 | #endif |
112 | /* ... and enable the master interrupt bit */ | 112 | /* ... and enable the master interrupt bit */ |
113 | custom.intena = IF_SETCLR | IF_INTEN; | 113 | amiga_custom.intena = IF_SETCLR | IF_INTEN; |
114 | 114 | ||
115 | cia_init_IRQ(&ciaa_base); | 115 | cia_init_IRQ(&ciaa_base); |
116 | cia_init_IRQ(&ciab_base); | 116 | cia_init_IRQ(&ciab_base); |
@@ -151,7 +151,7 @@ void amiga_enable_irq(unsigned int irq) | |||
151 | } | 151 | } |
152 | 152 | ||
153 | /* enable the interrupt */ | 153 | /* enable the interrupt */ |
154 | custom.intena = IF_SETCLR | ami_intena_vals[irq]; | 154 | amiga_custom.intena = IF_SETCLR | ami_intena_vals[irq]; |
155 | } | 155 | } |
156 | 156 | ||
157 | void amiga_disable_irq(unsigned int irq) | 157 | void amiga_disable_irq(unsigned int irq) |
@@ -177,7 +177,7 @@ void amiga_disable_irq(unsigned int irq) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | /* disable the interrupt */ | 179 | /* disable the interrupt */ |
180 | custom.intena = ami_intena_vals[irq]; | 180 | amiga_custom.intena = ami_intena_vals[irq]; |
181 | } | 181 | } |
182 | 182 | ||
183 | inline void amiga_do_irq(int irq, struct pt_regs *fp) | 183 | inline void amiga_do_irq(int irq, struct pt_regs *fp) |
@@ -196,7 +196,7 @@ void amiga_do_irq_list(int irq, struct pt_regs *fp) | |||
196 | 196 | ||
197 | kstat_cpu(0).irqs[irq]++; | 197 | kstat_cpu(0).irqs[irq]++; |
198 | 198 | ||
199 | custom.intreq = ami_intena_vals[irq]; | 199 | amiga_custom.intreq = ami_intena_vals[irq]; |
200 | 200 | ||
201 | for (action = desc->action; action; action = action->next) | 201 | for (action = desc->action; action; action = action->next) |
202 | action->handler(irq, action->dev_id, fp); | 202 | action->handler(irq, action->dev_id, fp); |
@@ -208,40 +208,40 @@ void amiga_do_irq_list(int irq, struct pt_regs *fp) | |||
208 | 208 | ||
209 | static void ami_int1(int irq, void *dev_id, struct pt_regs *fp) | 209 | static void ami_int1(int irq, void *dev_id, struct pt_regs *fp) |
210 | { | 210 | { |
211 | unsigned short ints = custom.intreqr & custom.intenar; | 211 | unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar; |
212 | 212 | ||
213 | /* if serial transmit buffer empty, interrupt */ | 213 | /* if serial transmit buffer empty, interrupt */ |
214 | if (ints & IF_TBE) { | 214 | if (ints & IF_TBE) { |
215 | custom.intreq = IF_TBE; | 215 | amiga_custom.intreq = IF_TBE; |
216 | amiga_do_irq(IRQ_AMIGA_TBE, fp); | 216 | amiga_do_irq(IRQ_AMIGA_TBE, fp); |
217 | } | 217 | } |
218 | 218 | ||
219 | /* if floppy disk transfer complete, interrupt */ | 219 | /* if floppy disk transfer complete, interrupt */ |
220 | if (ints & IF_DSKBLK) { | 220 | if (ints & IF_DSKBLK) { |
221 | custom.intreq = IF_DSKBLK; | 221 | amiga_custom.intreq = IF_DSKBLK; |
222 | amiga_do_irq(IRQ_AMIGA_DSKBLK, fp); | 222 | amiga_do_irq(IRQ_AMIGA_DSKBLK, fp); |
223 | } | 223 | } |
224 | 224 | ||
225 | /* if software interrupt set, interrupt */ | 225 | /* if software interrupt set, interrupt */ |
226 | if (ints & IF_SOFT) { | 226 | if (ints & IF_SOFT) { |
227 | custom.intreq = IF_SOFT; | 227 | amiga_custom.intreq = IF_SOFT; |
228 | amiga_do_irq(IRQ_AMIGA_SOFT, fp); | 228 | amiga_do_irq(IRQ_AMIGA_SOFT, fp); |
229 | } | 229 | } |
230 | } | 230 | } |
231 | 231 | ||
232 | static void ami_int3(int irq, void *dev_id, struct pt_regs *fp) | 232 | static void ami_int3(int irq, void *dev_id, struct pt_regs *fp) |
233 | { | 233 | { |
234 | unsigned short ints = custom.intreqr & custom.intenar; | 234 | unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar; |
235 | 235 | ||
236 | /* if a blitter interrupt */ | 236 | /* if a blitter interrupt */ |
237 | if (ints & IF_BLIT) { | 237 | if (ints & IF_BLIT) { |
238 | custom.intreq = IF_BLIT; | 238 | amiga_custom.intreq = IF_BLIT; |
239 | amiga_do_irq(IRQ_AMIGA_BLIT, fp); | 239 | amiga_do_irq(IRQ_AMIGA_BLIT, fp); |
240 | } | 240 | } |
241 | 241 | ||
242 | /* if a copper interrupt */ | 242 | /* if a copper interrupt */ |
243 | if (ints & IF_COPER) { | 243 | if (ints & IF_COPER) { |
244 | custom.intreq = IF_COPER; | 244 | amiga_custom.intreq = IF_COPER; |
245 | amiga_do_irq(IRQ_AMIGA_COPPER, fp); | 245 | amiga_do_irq(IRQ_AMIGA_COPPER, fp); |
246 | } | 246 | } |
247 | 247 | ||
@@ -252,36 +252,36 @@ static void ami_int3(int irq, void *dev_id, struct pt_regs *fp) | |||
252 | 252 | ||
253 | static void ami_int4(int irq, void *dev_id, struct pt_regs *fp) | 253 | static void ami_int4(int irq, void *dev_id, struct pt_regs *fp) |
254 | { | 254 | { |
255 | unsigned short ints = custom.intreqr & custom.intenar; | 255 | unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar; |
256 | 256 | ||
257 | /* if audio 0 interrupt */ | 257 | /* if audio 0 interrupt */ |
258 | if (ints & IF_AUD0) { | 258 | if (ints & IF_AUD0) { |
259 | custom.intreq = IF_AUD0; | 259 | amiga_custom.intreq = IF_AUD0; |
260 | amiga_do_irq(IRQ_AMIGA_AUD0, fp); | 260 | amiga_do_irq(IRQ_AMIGA_AUD0, fp); |
261 | } | 261 | } |
262 | 262 | ||
263 | /* if audio 1 interrupt */ | 263 | /* if audio 1 interrupt */ |
264 | if (ints & IF_AUD1) { | 264 | if (ints & IF_AUD1) { |
265 | custom.intreq = IF_AUD1; | 265 | amiga_custom.intreq = IF_AUD1; |
266 | amiga_do_irq(IRQ_AMIGA_AUD1, fp); | 266 | amiga_do_irq(IRQ_AMIGA_AUD1, fp); |
267 | } | 267 | } |
268 | 268 | ||
269 | /* if audio 2 interrupt */ | 269 | /* if audio 2 interrupt */ |
270 | if (ints & IF_AUD2) { | 270 | if (ints & IF_AUD2) { |
271 | custom.intreq = IF_AUD2; | 271 | amiga_custom.intreq = IF_AUD2; |
272 | amiga_do_irq(IRQ_AMIGA_AUD2, fp); | 272 | amiga_do_irq(IRQ_AMIGA_AUD2, fp); |
273 | } | 273 | } |
274 | 274 | ||
275 | /* if audio 3 interrupt */ | 275 | /* if audio 3 interrupt */ |
276 | if (ints & IF_AUD3) { | 276 | if (ints & IF_AUD3) { |
277 | custom.intreq = IF_AUD3; | 277 | amiga_custom.intreq = IF_AUD3; |
278 | amiga_do_irq(IRQ_AMIGA_AUD3, fp); | 278 | amiga_do_irq(IRQ_AMIGA_AUD3, fp); |
279 | } | 279 | } |
280 | } | 280 | } |
281 | 281 | ||
282 | static void ami_int5(int irq, void *dev_id, struct pt_regs *fp) | 282 | static void ami_int5(int irq, void *dev_id, struct pt_regs *fp) |
283 | { | 283 | { |
284 | unsigned short ints = custom.intreqr & custom.intenar; | 284 | unsigned short ints = amiga_custom.intreqr & amiga_custom.intenar; |
285 | 285 | ||
286 | /* if serial receive buffer full interrupt */ | 286 | /* if serial receive buffer full interrupt */ |
287 | if (ints & IF_RBF) { | 287 | if (ints & IF_RBF) { |
@@ -291,7 +291,7 @@ static void ami_int5(int irq, void *dev_id, struct pt_regs *fp) | |||
291 | 291 | ||
292 | /* if a disk sync interrupt */ | 292 | /* if a disk sync interrupt */ |
293 | if (ints & IF_DSKSYN) { | 293 | if (ints & IF_DSKSYN) { |
294 | custom.intreq = IF_DSKSYN; | 294 | amiga_custom.intreq = IF_DSKSYN; |
295 | amiga_do_irq(IRQ_AMIGA_DSKSYN, fp); | 295 | amiga_do_irq(IRQ_AMIGA_DSKSYN, fp); |
296 | } | 296 | } |
297 | } | 297 | } |