2 * include/asm-arm/arch-tbox/irq.h
4 * Copyright (C) 1998, 1999, 2000 Philip Blundell
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version
11 * 2 of the License, or (at your option) any later version.
16 #define fixup_irq(x) (x)
18 extern unsigned long soft_irq_mask;
20 static void tbox_mask_irq(unsigned int irq)
22 __raw_writel(0, INTCONT + (irq << 2));
23 soft_irq_mask &= ~(1<<irq);
26 static void tbox_unmask_irq(unsigned int irq)
28 soft_irq_mask |= (1<<irq);
29 __raw_writel(1, INTCONT + (irq << 2));
32 static __inline__ void irq_init_irq(void)
36 /* Disable all interrupts initially. */
37 for (i = 0; i < NR_IRQS; i++) {
38 if (i <= 10 || (i >= 12 && i <= 13)) {
39 irq_desc[i].valid = 1;
40 irq_desc[i].probe_ok = 0;
41 irq_desc[i].mask_ack = tbox_mask_irq;
42 irq_desc[i].mask = tbox_mask_irq;
43 irq_desc[i].unmask = tbox_unmask_irq;
46 irq_desc[i].valid = 0;
47 irq_desc[i].probe_ok = 0;