|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
ARM PSCI specific APIs for CPU power management. More...
#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(ver) |
| Extract the major version field from a PSCI version value. | |
| #define | PSCI_VERSION_MINOR(ver) |
| Extract the minor version field from a PSCI version value. | |
Functions | |
| uint32_t | psci_version (void) |
| Get the PSCI firmware version. | |
| int | psci_cpu_suspend (uint32_t state, uintptr_t entry_point) |
| Function to call PSCI CPU_SUSPEND. | |
ARM PSCI specific APIs for CPU power management.
| #define PSCI_VERSION_MAJOR | ( | ver | ) |
Extract the major version field from a PSCI version value.
| ver | PSCI version value |
| #define PSCI_VERSION_MINOR | ( | ver | ) |
Extract the minor version field from a PSCI version value.
| ver | PSCI version value |
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 | ) |
Get the PSCI firmware version.
Returns the version of the detected PSCI firmware, with the major version in the upper 16 bits and the minor version in the lower 16 bits. Use PSCI_VERSION_MAJOR() and PSCI_VERSION_MINOR() to decode the fields.