Add initial 2.6.22 support
[~emulex/for-vlad/old/compat.git] / include / linux / compat-2.6.30.h
1 #ifndef LINUX_26_30_COMPAT_H
2 #define LINUX_26_30_COMPAT_H
3
4 #include <linux/autoconf.h>
5 #include <linux/version.h>
6
7 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30))
8
9 #ifndef TP_PROTO
10 #define TP_PROTO(args...)       TPPROTO(args)
11 #endif
12 #ifndef TP_ARGS
13 #define TP_ARGS(args...)        TPARGS(args)
14 #endif
15
16 #define IRQ_WAKE_THREAD (2)
17
18 /* From : include/linux/pm.h */
19 /* How to reorder dpm_list after device_move() */
20 enum dpm_order {
21         DPM_ORDER_NONE,
22         DPM_ORDER_DEV_AFTER_PARENT,
23         DPM_ORDER_PARENT_BEFORE_DEV,
24         DPM_ORDER_DEV_LAST,
25 };
26
27 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)) */
28
29 #endif /* LINUX_26_30_COMPAT_H */