aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.ibm.com>2023-08-29 11:23:29 +0200
committerReza Arbab <arbab@linux.ibm.com>2023-09-12 14:22:11 -0500
commitbb6b93f75169a439f5ac5d97a6a011245702b90f (patch)
tree3193787538350807253e69f8737aa5ca1f71ec9f /include
parentfdf104ea741ee8c0d575c61f75db8b49bbfced2b (diff)
downloadskiboot-bb6b93f75169a439f5ac5d97a6a011245702b90f.zip
skiboot-bb6b93f75169a439f5ac5d97a6a011245702b90f.tar.gz
skiboot-bb6b93f75169a439f5ac5d97a6a011245702b90f.tar.bz2
core/pldm: Send a system firmware Graceful Restart request
Set the state information of the PLDM effecter identified by: the entity type (PLDM_ENTITY_SYS_FIRMWARE) and the state set PLDM_STATE_SET_SW_TERMINATION_STATUS with the effecter state: PLDM_SW_TERM_GRACEFUL_RESTART_REQUESTED to request a platform restart. 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')
-rw-r--r--include/pldm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pldm.h b/include/pldm.h
index 617287f..6d86cd1 100644
--- a/include/pldm.h
+++ b/include/pldm.h
@@ -21,4 +21,9 @@ int pldm_mctp_init(void);
*/
void pldm_mctp_exit(void);
+/**
+ * Send a system firmware Graceful Restart request
+ */
+int pldm_platform_restart(void);
+
#endif /* __PLDM_H__ */