zephyr/subsys/power/policy/pm_policy.h
Kumar Gala a1b77fd589 zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-06-08 08:23:57 -05:00

57 lines
1.1 KiB
C

/*
* Copyright (c) 2018 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _PM_POLICY_H_
#define _PM_POLICY_H_
#include <power/power.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Function to create device PM list
*/
void sys_pm_create_device_list(void);
/**
* @brief Function to suspend the devices in PM device list
*/
int sys_pm_suspend_devices(void);
/**
* @brief Function to put the devices in PM device list in low power state
*/
int sys_pm_low_power_devices(void);
/**
* @brief Function to force suspend the devices in PM device list
*/
int sys_pm_force_suspend_devices(void);
/**
* @brief Function to resume the devices in PM device list
*/
void sys_pm_resume_devices(void);
/**
* @brief Function to get the next PM state based on the ticks
*/
enum power_states sys_pm_policy_next_state(int32_t ticks);
/**
* @brief Function to determine whether to put devices in low
* power state, given the system PM state.
*/
bool sys_pm_policy_low_power_devices(enum power_states pm_state);
#ifdef __cplusplus
}
#endif
#endif /* _PM_POLICY_H_ */