OLD | NEW |
1 #ifndef LINUX_26_25_COMPAT_H | 1 #ifndef LINUX_26_25_COMPAT_H |
2 #define LINUX_26_25_COMPAT_H | 2 #define LINUX_26_25_COMPAT_H |
3 | 3 |
4 #include <linux/version.h> | 4 #include <linux/version.h> |
5 | 5 |
6 /* Compat work for 2.6.24 */ | 6 /* Compat work for 2.6.24 */ |
7 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)) | 7 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)) |
8 | 8 |
9 #include <linux/types.h> | 9 #include <linux/types.h> |
10 #include <linux/io.h> | 10 #include <linux/io.h> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 * routines as used in newer kernels. The compat_pm_qos_power_init() | 51 * routines as used in newer kernels. The compat_pm_qos_power_init() |
52 * defned below is used by the compat module to initialize pm-qos. | 52 * defned below is used by the compat module to initialize pm-qos. |
53 */ | 53 */ |
54 int compat_pm_qos_power_init(void); | 54 int compat_pm_qos_power_init(void); |
55 int compat_pm_qos_power_deinit(void); | 55 int compat_pm_qos_power_deinit(void); |
56 | 56 |
57 /* | 57 /* |
58 * 2.6.25 adds PM_EVENT_HIBERNATE as well here but | 58 * 2.6.25 adds PM_EVENT_HIBERNATE as well here but |
59 * we don't have this on <= 2.6.23) | 59 * we don't have this on <= 2.6.23) |
60 */ | 60 */ |
| 61 #ifndef PM_EVENT_SLEEP /* some distribution have mucked with their own headers t
o add this.. */ |
61 #define PM_EVENT_SLEEP (PM_EVENT_SUSPEND) | 62 #define PM_EVENT_SLEEP (PM_EVENT_SUSPEND) |
| 63 #endif |
62 | 64 |
63 /* Although we don't care about wimax this is needed for rfkill input stuff */ | 65 /* Although we don't care about wimax this is needed for rfkill input stuff */ |
64 #define KEY_WIMAX 246 | 66 #define KEY_WIMAX 246 |
65 | 67 |
66 /* Although pm_qos stuff is not implemented on <= 2.6.24 lets keep the define */ | 68 /* Although pm_qos stuff is not implemented on <= 2.6.24 lets keep the define */ |
67 #define PM_QOS_DEFAULT_VALUE -1 | 69 #define PM_QOS_DEFAULT_VALUE -1 |
68 | 70 |
69 #define __WARN(foo) dump_stack() | 71 #define __WARN(foo) dump_stack() |
70 | 72 |
71 #define dev_emerg(dev, format, arg...) \ | 73 #define dev_emerg(dev, format, arg...) \ |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 return 0; | 170 return 0; |
169 } | 171 } |
170 | 172 |
171 static inline int compat_pm_qos_power_deinit(void) | 173 static inline int compat_pm_qos_power_deinit(void) |
172 { | 174 { |
173 return 0; | 175 return 0; |
174 } | 176 } |
175 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)) */ | 177 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)) */ |
176 | 178 |
177 #endif /* LINUX_26_25_COMPAT_H */ | 179 #endif /* LINUX_26_25_COMPAT_H */ |
OLD | NEW |