31dacfd77dd9091a3083ab17668129f07f17b761
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>
8 #include <linux/init.h>
9 #include <linux/kernel.h>
10 #include <linux/sched.h>
11 #include <linux/irq.h>
14 hpsim_irq_startup(struct irq_data
*data
)
20 hpsim_irq_noop(struct irq_data
*data
)
25 hpsim_set_affinity_noop(struct irq_data
*d
, const struct cpumask
*b
, bool f
)
30 static struct irq_chip irq_type_hp_sim
= {
32 .irq_startup
= hpsim_irq_startup
,
33 .irq_shutdown
= hpsim_irq_noop
,
34 .irq_enable
= hpsim_irq_noop
,
35 .irq_disable
= hpsim_irq_noop
,
36 .irq_ack
= hpsim_irq_noop
,
37 .irq_set_affinity
= hpsim_set_affinity_noop
,
43 struct irq_desc
*idesc
;
46 for (i
= 0; i
< NR_IRQS
; ++i
) {
48 if (idesc
->chip
== &no_irq_chip
)
49 idesc
->chip
= &irq_type_hp_sim
;
This page took 0.033141 seconds and 4 git commands to generate.