diff options
Diffstat (limited to 'zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h')
-rw-r--r-- | zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h b/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h index e16816d185..d3cbc8c15f 100644 --- a/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h +++ b/zephyr/subsys/ap_pwrseq/include/ap_power_host_sleep.h @@ -26,10 +26,27 @@ int ap_power_get_lazy_wake_mask( enum power_states_ndsx state, host_event_t *mask); #if CONFIG_AP_PWRSEQ_S0IX +/* For S0ix path, flag to notify sleep change */ +enum ap_power_sleep_type { + AP_POWER_SLEEP_NONE, + AP_POWER_SLEEP_SUSPEND, + AP_POWER_SLEEP_RESUME, +}; + /* * Reset host sleep state and clean up */ void ap_power_reset_host_sleep_state(void); + +/* + * Check if the sleep type current power transition indicates is the same + * as what is notified. If same, means host sleep event notified by AP + * through Host Command and SLP_S0 are consistent. Process + * the transition. Otherwise, no action. + * + * @param check_state Sleep type which is going to transit to. + */ +void ap_power_sleep_notify_transition(enum ap_power_sleep_type check_state); #endif /* CONFIG_AP_PWRSEQ_S0IX */ #endif /* __AP_PWRSEQ_HOST_SLEEP_H */ |