GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / ia64 / hp / sim / hpsim_irq.c
blobb272261d77cc7b3a2e05ef7c306c6d52ebee38fc
1 /*
2 * Platform dependent support for HP simulator.
4 * Copyright (C) 1998-2001 Hewlett-Packard Co
5 * Copyright (C) 1998-2001 David Mosberger-Tang <davidm@hpl.hp.com>
6 */
8 #include <linux/init.h>
9 #include <linux/kernel.h>
10 #include <linux/sched.h>
11 #include <linux/irq.h>
13 static unsigned int
14 hpsim_irq_startup (unsigned int irq)
16 return 0;
19 static void
20 hpsim_irq_noop (unsigned int irq)
24 static int
25 hpsim_set_affinity_noop(unsigned int a, const struct cpumask *b)
27 return 0;
30 static struct irq_chip irq_type_hp_sim = {
31 .name = "hpsim",
32 .startup = hpsim_irq_startup,
33 .shutdown = hpsim_irq_noop,
34 .enable = hpsim_irq_noop,
35 .disable = hpsim_irq_noop,
36 .ack = hpsim_irq_noop,
37 .end = hpsim_irq_noop,
38 .set_affinity = hpsim_set_affinity_noop,
41 void __init
42 hpsim_irq_init (void)
44 struct irq_desc *idesc;
45 int i;
47 for (i = 0; i < NR_IRQS; ++i) {
48 idesc = irq_desc + i;
49 if (idesc->chip == &no_irq_chip)
50 idesc->chip = &irq_type_hp_sim;