diff options
author | Christophe Lombard <clombard@linux.ibm.com> | 2023-08-29 11:24:06 +0200 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2023-09-12 14:22:11 -0500 |
commit | 9b68c95e5d1bdc96c988f2f6d55120a2b38b31f2 (patch) | |
tree | f4e1a9a5e9b88e96fd8d7e0f8975f206cf2a01f2 /include/pldm.h | |
parent | 15e8bd754f000441aeb415ff4d777cd798cd465e (diff) | |
download | skiboot-9b68c95e5d1bdc96c988f2f6d55120a2b38b31f2.zip skiboot-9b68c95e5d1bdc96c988f2f6d55120a2b38b31f2.tar.gz skiboot-9b68c95e5d1bdc96c988f2f6d55120a2b38b31f2.tar.bz2 |
core/pldm: Update boot progress state
PLDM Event Messages are PLDM monitoring and control messages that are used
by a PLDM terminus to synchronously or asynchronously report PLDM events
to a central party called the PLDM Event Receiver.
This patch allows to send a:
- generic sensor events (events related to PLDM numeric and state sensors).
- boot progress sensor event.
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pldm.h b/include/pldm.h index 80ee85c..e33de7d 100644 --- a/include/pldm.h +++ b/include/pldm.h @@ -6,6 +6,7 @@ #define __PLDM_H__ #include <skiboot.h> +#include <pldm/include/libpldm/state_set.h> /** * Handle PLDM messages received from MCTP @@ -34,6 +35,11 @@ int pldm_platform_power_off(void); int pldm_platform_restart(void); /** + * Send a system firmware Graceful Shutdown request + */ +int pldm_platform_initiate_shutdown(void); + +/** * Update the firmware version device-tree field */ int pldm_fru_dt_add_bmc_version(void); @@ -53,4 +59,10 @@ bool pldm_lid_files_exit(struct blocklevel_device *bl); */ int pldm_watchdog_init(void); +/** + * Update boot progress state + */ +int pldm_platform_send_progress_state_change( + enum pldm_state_set_boot_progress_state_values state); + #endif /* __PLDM_H__ */ |