blob: e16816d18594d35bd126cc08d62e2fd4f55e01e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef __AP_POWER_HOST_SLEEP_H
#define __AP_POWER_HOST_SLEEP_H
#include <ap_power/ap_power_interface.h>
#include <power_host_sleep.h>
/*
* Deferred call to set active mask according to current power state
*/
void ap_power_set_active_wake_mask(void);
/*
* Get lazy wake masks for the sleep state provided
*
* @param state Power state
* @param mask Lazy wake mask.
*
* @return 0 for success; -EINVAL if power state is not S3/S5/S0ix
*/
int ap_power_get_lazy_wake_mask(
enum power_states_ndsx state, host_event_t *mask);
#if CONFIG_AP_PWRSEQ_S0IX
/*
* Reset host sleep state and clean up
*/
void ap_power_reset_host_sleep_state(void);
#endif /* CONFIG_AP_PWRSEQ_S0IX */
#endif /* __AP_PWRSEQ_HOST_SLEEP_H */
|