diff options
author | Christophe Lombard <clombard@linux.ibm.com> | 2023-08-29 11:23:30 +0200 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2023-09-12 14:22:11 -0500 |
commit | b1e22c7c91185f230a734a74239f4d03fed500af (patch) | |
tree | 1408d80ee812c6d7cf417a2813fb7bcf66082613 /include/pldm.h | |
parent | bb6b93f75169a439f5ac5d97a6a011245702b90f (diff) | |
download | skiboot-b1e22c7c91185f230a734a74239f4d03fed500af.zip skiboot-b1e22c7c91185f230a734a74239f4d03fed500af.tar.gz skiboot-b1e22c7c91185f230a734a74239f4d03fed500af.tar.bz2 |
core/pldm: Send a system chassis Off-Soft Graceful request
Set the state information of the PLDM effecter identified by:
the entity type (PLDM_ENTITY_SYSTEM_CHASSIS) and the state set
PLDM_STATE_SET_SYSTEM_POWER_STATE with the effecter state:
PLDM_STATE_SET_SYS_POWER_STATE_OFF_SOFT_GRACEFUL to request a platform off.
Reviewed-by: Abhishek Singh Tomar <abhishek@linux.ibm.com>
Signed-off-by: Christophe Lombard <clombard@linux.ibm.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'include/pldm.h')
-rw-r--r-- | include/pldm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pldm.h b/include/pldm.h index 6d86cd1..55a4e14 100644 --- a/include/pldm.h +++ b/include/pldm.h @@ -22,6 +22,11 @@ int pldm_mctp_init(void); void pldm_mctp_exit(void); /** + * Send a system chassis Off-Soft Graceful request + */ +int pldm_platform_power_off(void); + +/** * Send a system firmware Graceful Restart request */ int pldm_platform_restart(void); |