aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/android_alarm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/android_alarm.h')
-rw-r--r--include/linux/android_alarm.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/android_alarm.h b/include/linux/android_alarm.h
index 68c9b0f..4c93791 100644
--- a/include/linux/android_alarm.h
+++ b/include/linux/android_alarm.h
@@ -76,6 +76,8 @@ ktime_t alarm_get_elapsed_realtime(void);
int alarm_set_rtc(const struct timespec ts);
#if defined(CONFIG_RTC_ALARM_BOOT)
int alarm_set_alarm_boot(char *alarm_data);
+#elif defined(CONFIG_RTC_POWER_OFF)
+int alarm_set_alarm_poweroff(char *alarm_data);
#endif
#endif
@@ -102,9 +104,11 @@ enum android_alarm_return_flags {
#define ANDROID_ALARM_SET(type) ALARM_IOW(2, type, struct timespec)
#define ANDROID_ALARM_SET_AND_WAIT(type) ALARM_IOW(3, type, struct timespec)
#define ANDROID_ALARM_GET_TIME(type) ALARM_IOW(4, type, struct timespec)
-#define ANDROID_ALARM_SET_RTC _IOW('a', 5, struct timespec)
+#define ANDROID_ALARM_SET_RTC _IOW('a', 5, struct timespec)
#if defined(CONFIG_RTC_ALARM_BOOT)
-#define ANDROID_ALARM_SET_ALARM_BOOT _IOW('a', 7, struct timespec)
+#define ANDROID_ALARM_SET_ALARM_BOOT _IOW('a', 7, struct timespec)
+#elif defined(CONFIG_RTC_POWER_OFF)
+#define ANDROID_ALARM_SET_ALARM_POWEROFF _IOW('a', 8, struct timespec)
#endif
#define ANDROID_ALARM_BASE_CMD(cmd) (cmd & ~(_IOC(0, 0, 0xf0, 0)))
#define ANDROID_ALARM_IOCTL_TO_TYPE(cmd) (_IOC_NR(cmd) >> 4)