diff options
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 18343ef104..af6d5948c7 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -3067,6 +3067,23 @@ struct ec_response_hibernation_delay { uint32_t hibernate_delay; }; +/* Inform the EC when entering a sleep state */ +#define EC_CMD_HOST_SLEEP_EVENT 0xa9 + +enum host_sleep_event { + HOST_SLEEP_EVENT_S3_SUSPEND = 1, + HOST_SLEEP_EVENT_S3_RESUME = 2, + HOST_SLEEP_EVENT_S0IX_SUSPEND = 3, + HOST_SLEEP_EVENT_S0IX_RESUME = 4 +}; + +struct ec_params_host_sleep_event { + uint8_t sleep_event; +} __packed; + +struct ec_response_host_sleep_event { + uint8_t sleep_event; +} __packed; /*****************************************************************************/ /* Smart battery pass-through */ |