![]() |
Zephyr API 4.4.99
A Scalable Open Source RTOS
|
#include <zephyr/types.h>#include <zephyr/arch/arm64/arm-smccc.h>#include <stddef.h>#include <zephyr/device.h>Go to the source code of this file.
Macros | |
| #define | PSCI_VERSION_MAJOR_SHIFT 16 |
| #define | PSCI_VERSION_MINOR_MASK ((1U << PSCI_VERSION_MAJOR_SHIFT) - 1) |
| #define | PSCI_VERSION_MAJOR_MASK ~PSCI_VERSION_MINOR_MASK |
| #define | PSCI_VERSION_MAJOR(ver) |
| #define | PSCI_VERSION_MINOR(ver) |
Functions | |
| uint32_t | psci_version (void) |
| int | psci_cpu_suspend (uint32_t statestate, uintptr_t entry_point) |
| Function to call PSCI CPU_SUSPEND. | |
| #define PSCI_VERSION_MAJOR | ( | ver | ) |
| #define PSCI_VERSION_MAJOR_MASK ~PSCI_VERSION_MINOR_MASK |
| #define PSCI_VERSION_MAJOR_SHIFT 16 |
| #define PSCI_VERSION_MINOR | ( | ver | ) |
| #define PSCI_VERSION_MINOR_MASK ((1U << PSCI_VERSION_MAJOR_SHIFT) - 1) |
Function to call PSCI CPU_SUSPEND.
This function is API for CPU_SUSPEND PSCI SMC call.
| state | CPU Power state |
| entry_point | The address entry when returning from suspend |
| 0 | if enter suspend successfully, others for failure |
| uint32_t psci_version | ( | void | ) |