2 * include/asm-arm/arch-nexuspci/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 const unsigned char irq_cmd[] =
31 static void ftvpci_mask_irq(unsigned int irq)
33 __raw_writel(irq_cmd[irq], INTCONT_BASE);
34 soft_irq_mask &= ~(1<<irq);
37 static void ftvpci_unmask_irq(unsigned int irq)
39 soft_irq_mask |= (1<<irq);
40 __raw_writel(irq_cmd[irq] | 1, INTCONT_BASE);
43 static __inline__ void irq_init_irq(void)
48 __raw_writel(INTCONT_FIQ_PLX, INTCONT_BASE);
49 __raw_writel(INTCONT_FIQ_D, INTCONT_BASE);
50 __raw_writel(INTCONT_FIQ_C, INTCONT_BASE);
51 __raw_writel(INTCONT_FIQ_B, INTCONT_BASE);
52 __raw_writel(INTCONT_FIQ_A, INTCONT_BASE);
53 __raw_writel(INTCONT_FIQ_SYSERR, INTCONT_BASE);
55 /* Disable all interrupts initially. */
56 for (i = 0; i < NR_IRQS; i++) {
57 if (i >= FIRST_IRQ && i <= LAST_IRQ) {
58 irq_desc[i].valid = 1;
59 irq_desc[i].probe_ok = 1;
60 irq_desc[i].mask_ack = ftvpci_mask_irq;
61 irq_desc[i].mask = ftvpci_mask_irq;
62 irq_desc[i].unmask = ftvpci_unmask_irq;
65 irq_desc[i].valid = 0;
66 irq_desc[i].probe_ok = 0;