iwlwifi: Packing all 4965 parameters
[linux/fpc-iii.git] / arch / ia64 / hp / sim / hpsim_irq.c
blobc2f58ff364e7144c43de3e49958bfac7b3b3b0ad
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 void
25 hpsim_set_affinity_noop (unsigned int a, cpumask_t b)
29 static struct hw_interrupt_type irq_type_hp_sim = {
30 .name = "hpsim",
31 .startup = hpsim_irq_startup,
32 .shutdown = hpsim_irq_noop,
33 .enable = hpsim_irq_noop,
34 .disable = hpsim_irq_noop,
35 .ack = hpsim_irq_noop,
36 .end = hpsim_irq_noop,
37 .set_affinity = hpsim_set_affinity_noop,
40 void __init
41 hpsim_irq_init (void)
43 irq_desc_t *idesc;
44 int i;
46 for (i = 0; i < NR_IRQS; ++i) {
47 idesc = irq_desc + i;
48 if (idesc->chip == &no_irq_type)
49 idesc->chip = &irq_type_hp_sim;