Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
|
4.1.99 |
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_cpu_sleep_mode_config |
Describes the parameters for the CPU_STATE_SET command. More... | |
Macros | |
#define | SCMI_CPU_SLEEP_FLAG_IRQ_MUX 0x1U |
#define | SCMI_PROTOCOL_CPU_DOMAIN 130 |
Enumerations | |
enum | scmi_cpu_domain_message { SCMI_CPU_DOMAIN_MSG_PROTOCOL_VERSION = 0x0 , SCMI_CPU_DOMAIN_MSG_PROTOCOL_ATTRIBUTES = 0x1 , SCMI_CPU_DOMAIN_MSG_PROTOCOL_MESSAGE_ATTRIBUTES = 0x2 , SCMI_CPU_DOMAIN_MSG_CPU_DOMAIN_ATTRIBUTES = 0x3 , SCMI_CPU_DOMAIN_MSG_CPU_START = 0x4 , SCMI_CPU_DOMAIN_MSG_CPU_STOP = 0x5 , SCMI_CPU_DOMAIN_MSG_CPU_RESET_VECTOR_SET = 0x6 , SCMI_CPU_DOMAIN_MSG_CPU_SLEEP_MODE_SET = 0x7 , SCMI_CPU_DOMAIN_MSG_CPU_IRQ_WAKE_SET = 0x8 , SCMI_CPU_DOMAIN_MSG_CPU_NON_IRQ_WAKE_SET = 0x9 , SCMI_CPU_DOMAIN_MSG_CPU_PD_LPM_CONFIG_SET = 0xA , SCMI_CPU_DOMAIN_MSG_CPU_PER_LPM_CONFIG_SET = 0xB , SCMI_CPU_DOMAIN_MSG_CPU_INFO_GET = 0xC , SCMI_CPU_DOMAIN_MSG_NEGOTIATE_PROTOCOL_VERSION = 0x10 } |
CPU domain protocol command message IDs. More... | |
Functions | |
int | scmi_cpu_sleep_mode_set (struct scmi_cpu_sleep_mode_config *cfg) |
Send the CPU_SLEEP_MODE_SET command and get its reply. | |
SCMI power domain protocol helpers.
#define SCMI_CPU_SLEEP_FLAG_IRQ_MUX 0x1U |
#define SCMI_PROTOCOL_CPU_DOMAIN 130 |
CPU domain protocol command message IDs.
int scmi_cpu_sleep_mode_set | ( | struct scmi_cpu_sleep_mode_config * | cfg | ) |
Send the CPU_SLEEP_MODE_SET command and get its reply.
cfg | pointer to structure containing configuration to be set |
0 | if successful |
negative | errno if failure |