Staging: comedi: Remove pcmuio_subdev_private typedef
[linux-2.6] / drivers / staging / comedi / interrupt.h
1 /*
2     linux/interrupt.h compatibility header
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17  */
18
19 #ifndef __COMPAT_LINUX_INTERRUPT_H_
20 #define __COMPAT_LINUX_INTERRUPT_H_
21
22 #include <linux/interrupt.h>
23
24 #ifndef IRQ_NONE
25 typedef void irqreturn_t;
26 #define IRQ_NONE
27 #define IRQ_HANDLED
28 #define IRQ_RETVAL(x) (void)(x)
29 #endif
30
31 #ifndef IRQF_DISABLED
32 #define IRQF_DISABLED           SA_INTERRUPT
33 #define IRQF_SAMPLE_RANDOM      SA_SAMPLE_RANDOM
34 #define IRQF_SHARED             SA_SHIRQ
35 #define IRQF_PROBE_SHARED       SA_PROBEIRQ
36 #define IRQF_PERCPU             SA_PERCPU
37 #ifdef SA_TRIGGER_MASK
38 #define IRQF_TRIGGER_NONE       0
39 #define IRQF_TRIGGER_LOW        SA_TRIGGER_LOW
40 #define IRQF_TRIGGER_HIGH       SA_TRIGGER_HIGH
41 #define IRQF_TRIGGER_FALLING    SA_TRIGGER_FALLING
42 #define IRQF_TRIGGER_RISING     SA_TRIGGER_RISING
43 #define IRQF_TRIGGER_MASK       SA_TRIGGER_MASK
44 #else
45 #define IRQF_TRIGGER_NONE       0
46 #define IRQF_TRIGGER_LOW        0
47 #define IRQF_TRIGGER_HIGH       0
48 #define IRQF_TRIGGER_FALLING    0
49 #define IRQF_TRIGGER_RISING     0
50 #define IRQF_TRIGGER_MASK       0
51 #endif
52 #endif
53
54 #define PT_REGS_ARG
55 #define PT_REGS_CALL
56 #define PT_REGS_NULL
57
58 #endif