Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
power.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 NXP
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_POWER_H_
13#define _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_POWER_H_
14
16
17#define SCMI_POWER_STATE_SET_FLAGS_ASYNC BIT(0)
18
30
46
66int scmi_power_state_get(uint32_t domain_id, uint32_t *power_state);
67
68#endif /* _INCLUDE_ZEPHYR_DRIVERS_FIRMWARE_SCMI_POWER_H_ */
int scmi_power_state_set(struct scmi_power_state_config *cfg)
Send the POWER_STATE_SET command and get its reply.
scmi_power_domain_message
Power domain protocol command message IDs.
Definition power.h:34
@ SCMI_POWER_DOMAIN_MSG_PROTOCOL_MESSAGE_ATTRIBUTES
Definition power.h:37
@ SCMI_POWER_DOMAIN_MSG_POWER_DOMAIN_NAME_GET
Definition power.h:43
@ SCMI_POWER_DOMAIN_MSG_PROTOCOL_ATTRIBUTES
Definition power.h:36
@ SCMI_POWER_DOMAIN_MSG_PROTOCOL_VERSION
Definition power.h:35
@ SCMI_POWER_DOMAIN_MSG_POWER_STATE_GET
Definition power.h:40
@ SCMI_POWER_DOMAIN_MSG_POWER_STATE_NOTIFY
Definition power.h:41
@ SCMI_POWER_DOMAIN_MSG_POWER_STATE_SET
Definition power.h:39
@ SCMI_POWER_DOMAIN_MSG_POWER_STATE_CHANGE_REQEUSTED_NOTIFY
Definition power.h:42
@ SCMI_POWER_DOMAIN_MSG_NEGOTIATE_PROTOCOL_VERSION
Definition power.h:44
@ SCMI_POWER_DOMAIN_MSG_POWER_DOMAIN_ATTRIBUTES
Definition power.h:38
int scmi_power_state_get(uint32_t domain_id, uint32_t *power_state)
Query the power domain state.
SCMI protocol generic functions and structures.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Describes the parameters for the POWER_STATE_SET command.
Definition power.h:25
uint32_t power_state
Definition power.h:28
uint32_t flags
Definition power.h:26
uint32_t domain_id
Definition power.h:27