diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2018-05-07 09:48:23 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 10:17:43 -0500 |
commit | 13878e5b27c5916938374b9e66dd9c8d80f4dbeb (patch) | |
tree | f816bf95af436057f545f2db12c1654750d4a2d3 /include/ipmi.h | |
parent | c5bff438b7db358c223a1f8d3d44c1ef2ed192d0 (diff) | |
download | skiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.zip skiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.tar.gz skiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.tar.bz2 |
ipmi: Add BMC firmware version to device tree
BMC Get device ID command gives BMC firmware version details. Lets add this
to device tree. User space tools will use this information to display BMC
version details.
Stewart,
I have added bmc information under /ibm,firmware-version node as its firmware
version. But may be we should add new node (/bmc/firmware). So that we can
keep BMC related information separately. Let me know your thoughts on this.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/ipmi.h')
-rw-r--r-- | include/ipmi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ipmi.h b/include/ipmi.h index 3389eaf..0acfbf5 100644 --- a/include/ipmi.h +++ b/include/ipmi.h @@ -109,6 +109,7 @@ #define IPMI_GET_SEL_TIME IPMI_CODE(IPMI_NETFN_STORAGE, 0x48) #define IPMI_SET_SEL_TIME IPMI_CODE(IPMI_NETFN_STORAGE, 0x49) #define IPMI_CHASSIS_CONTROL IPMI_CODE(IPMI_NETFN_CHASSIS, 0x02) +#define IPMI_BMC_GET_DEVICE_ID IPMI_CODE(IPMI_NETFN_APP, 0x01) #define IPMI_SET_POWER_STATE IPMI_CODE(IPMI_NETFN_APP, 0x06) #define IPMI_GET_POWER_STATE IPMI_CODE(IPMI_NETFN_APP, 0x07) #define IPMI_RESET_WDT IPMI_CODE(IPMI_NETFN_APP, 0x22) @@ -278,4 +279,10 @@ int ipmi_set_boot_count(void); /* Terminate immediate */ void __attribute__((noreturn)) ipmi_terminate(const char *msg); +/* Get BMC firmware info */ +extern int ipmi_get_bmc_info_request(void); + +/* Add BMC firmware info to device tree */ +extern void ipmi_dt_add_bmc_info(void); + #endif |