diff options
Diffstat (limited to 'include/linux/wakeup_source_notify.h')
| -rw-r--r-- | include/linux/wakeup_source_notify.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/wakeup_source_notify.h b/include/linux/wakeup_source_notify.h index 070a8bcab46..98db849d13d 100644 --- a/include/linux/wakeup_source_notify.h +++ b/include/linux/wakeup_source_notify.h @@ -19,14 +19,22 @@ #ifdef __KERNEL__ +enum wakeup_request_type { + WAKEUP_DISPLAY, +}; +#define WAKEUP_EVENT_START(type) ((type) << 8) +#define GET_WAKEUP_EVENT_TYPE(event) ((event) >> 8) + enum display_wakeup_request { - DISPLAY_WAKE_EVENT_POWERKEY, + DISPLAY_WAKE_EVENT_BEGIN = WAKEUP_EVENT_START(WAKEUP_DISPLAY), + DISPLAY_WAKE_EVENT_POWERKEY = DISPLAY_WAKE_EVENT_BEGIN, DISPLAY_WAKE_EVENT_TOUCH, DISPLAY_WAKE_EVENT_GESTURE, - DISPLAY_WAKE_EVENT_GESTURE_VIEW, + DISPLAY_WAKE_EVENT_GESTURE_VIEWON, + DISPLAY_WAKE_EVENT_GESTURE_VIEWOFF, DISPLAY_WAKE_EVENT_DOCKON, DISPLAY_WAKE_EVENT_DOCKOFF, - DISPLAY_WAKE_EVENT_MAX + DISPLAY_WAKE_EVENT_END }; #define notify_display_wakeup(reason) \ |