diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pmu.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/include/linux/pmu.h b/include/linux/pmu.h index b7824c215354..177ae4812b88 100644 --- a/include/linux/pmu.h +++ b/include/linux/pmu.h | |||
| @@ -159,42 +159,6 @@ extern void pmu_unlock(void); | |||
| 159 | extern int pmu_present(void); | 159 | extern int pmu_present(void); |
| 160 | extern int pmu_get_model(void); | 160 | extern int pmu_get_model(void); |
| 161 | 161 | ||
| 162 | #ifdef CONFIG_PM | ||
| 163 | /* | ||
| 164 | * Stuff for putting the powerbook to sleep and waking it again. | ||
| 165 | * | ||
| 166 | */ | ||
| 167 | #include <linux/list.h> | ||
| 168 | |||
| 169 | struct pmu_sleep_notifier | ||
| 170 | { | ||
| 171 | void (*notifier_call)(struct pmu_sleep_notifier *self, int when); | ||
| 172 | int priority; | ||
| 173 | struct list_head list; | ||
| 174 | }; | ||
| 175 | |||
| 176 | /* Code values for calling sleep/wakeup handlers | ||
| 177 | */ | ||
| 178 | #define PBOOK_SLEEP_REQUEST 1 | ||
| 179 | #define PBOOK_SLEEP_NOW 2 | ||
| 180 | #define PBOOK_WAKE 3 | ||
| 181 | |||
| 182 | /* priority levels in notifiers */ | ||
| 183 | #define SLEEP_LEVEL_VIDEO 100 /* Video driver (first wake) */ | ||
| 184 | #define SLEEP_LEVEL_MEDIABAY 90 /* Media bay driver */ | ||
| 185 | #define SLEEP_LEVEL_BLOCK 80 /* IDE, SCSI */ | ||
| 186 | #define SLEEP_LEVEL_NET 70 /* bmac, gmac */ | ||
| 187 | #define SLEEP_LEVEL_MISC 60 /* Anything else */ | ||
| 188 | #define SLEEP_LEVEL_USERLAND 55 /* Reserved for apm_emu */ | ||
| 189 | #define SLEEP_LEVEL_ADB 50 /* ADB (async) */ | ||
| 190 | #define SLEEP_LEVEL_SOUND 40 /* Sound driver (blocking) */ | ||
| 191 | |||
| 192 | /* special register notifier functions */ | ||
| 193 | int pmu_register_sleep_notifier(struct pmu_sleep_notifier* notifier); | ||
| 194 | int pmu_unregister_sleep_notifier(struct pmu_sleep_notifier* notifier); | ||
| 195 | |||
| 196 | #endif /* CONFIG_PM */ | ||
| 197 | |||
| 198 | #define PMU_MAX_BATTERIES 2 | 162 | #define PMU_MAX_BATTERIES 2 |
| 199 | 163 | ||
| 200 | /* values for pmu_power_flags */ | 164 | /* values for pmu_power_flags */ |
