|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
SCMI power domain protocol helpers. More...
#include <zephyr/drivers/firmware/scmi/protocol.h>Go to the source code of this file.
Data Structures | |
| struct | scmi_power_state_config |
| Describes the parameters for the POWER_STATE_SET command. More... | |
Macros | |
| #define | SCMI_POWER_STATE_SET_FLAGS_ASYNC BIT(0) |
Enumerations | |
| enum | scmi_power_domain_message { SCMI_POWER_DOMAIN_MSG_PROTOCOL_VERSION = 0x0 , SCMI_POWER_DOMAIN_MSG_PROTOCOL_ATTRIBUTES = 0x1 , SCMI_POWER_DOMAIN_MSG_PROTOCOL_MESSAGE_ATTRIBUTES = 0x2 , SCMI_POWER_DOMAIN_MSG_POWER_DOMAIN_ATTRIBUTES = 0x3 , SCMI_POWER_DOMAIN_MSG_POWER_STATE_SET = 0x4 , SCMI_POWER_DOMAIN_MSG_POWER_STATE_GET = 0x5 , SCMI_POWER_DOMAIN_MSG_POWER_STATE_NOTIFY = 0x6 , SCMI_POWER_DOMAIN_MSG_POWER_STATE_CHANGE_REQEUSTED_NOTIFY = 0x7 , SCMI_POWER_DOMAIN_MSG_POWER_DOMAIN_NAME_GET = 0x8 , SCMI_POWER_DOMAIN_MSG_NEGOTIATE_PROTOCOL_VERSION = 0x10 } |
| Power domain protocol command message IDs. More... | |
Functions | |
| int | scmi_power_state_set (struct scmi_power_state_config *cfg) |
| Send the POWER_STATE_SET command and get its reply. | |
| int | scmi_power_state_get (uint32_t domain_id, uint32_t *power_state) |
| Query the power domain state. | |
SCMI power domain protocol helpers.
| #define SCMI_POWER_STATE_SET_FLAGS_ASYNC BIT(0) |
Power domain protocol command message IDs.
Query the power domain state.
| domain_id | ID of the power domain for which the query is done |
| power_state | pointer to be set via this command |
| 0 | if successful |
| negative | errno if failure |
| int scmi_power_state_set | ( | struct scmi_power_state_config * | cfg | ) |
Send the POWER_STATE_SET command and get its reply.
| cfg | pointer to structure containing configuration to be set |
| 0 | if successful |
| negative | errno if failure |