diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/powermgmt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 3095d2c97b..6ae5ccfd13 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h | |||
@@ -70,6 +70,12 @@ extern unsigned int power_thread_inputs; | |||
70 | 70 | ||
71 | #endif /* CONFIG_CHARGING */ | 71 | #endif /* CONFIG_CHARGING */ |
72 | 72 | ||
73 | enum shutdown_type | ||
74 | { | ||
75 | SHUTDOWN_POWER_OFF, | ||
76 | SHUTDOWN_REBOOT, | ||
77 | }; | ||
78 | |||
73 | #if CONFIG_CHARGING == CHARGING_TARGET | 79 | #if CONFIG_CHARGING == CHARGING_TARGET |
74 | /* Include target-specific definitions */ | 80 | /* Include target-specific definitions */ |
75 | #include "powermgmt-target.h" | 81 | #include "powermgmt-target.h" |
@@ -164,8 +170,9 @@ void handle_auto_poweroff(void); | |||
164 | void set_car_adapter_mode(bool setting); | 170 | void set_car_adapter_mode(bool setting); |
165 | void reset_poweroff_timer(void); | 171 | void reset_poweroff_timer(void); |
166 | void cancel_shutdown(void); | 172 | void cancel_shutdown(void); |
167 | void shutdown_hw(void); | 173 | void shutdown_hw(enum shutdown_type sd_type); |
168 | void sys_poweroff(void); | 174 | void sys_poweroff(void); |
175 | void sys_reboot(void); | ||
169 | /* Returns true if the system should force shutdown for some reason - | 176 | /* Returns true if the system should force shutdown for some reason - |
170 | * eg. low battery */ | 177 | * eg. low battery */ |
171 | bool query_force_shutdown(void); | 178 | bool query_force_shutdown(void); |