diff options
author | Meng Li <shlimeng@cn.ibm.com> | 2018-04-24 21:21:07 +0800 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-05-19 17:09:16 -0400 |
commit | fd23ae8d50f307a1aca530d5a204d67261b58fea (patch) | |
tree | 61f2c614ef320538de97d46ead72cab829d56a90 /src/include/usr/ipmi | |
parent | 42327316097c17cb3a0ef2ba212c2722121af861 (diff) | |
download | talos-hostboot-fd23ae8d50f307a1aca530d5a204d67261b58fea.tar.gz talos-hostboot-fd23ae8d50f307a1aca530d5a204d67261b58fea.zip |
Get SN from BMC and update into PVPD EEPROM
Resolves #135
Change-Id: I46b5c2208ed28822c6001a955f4056d976e79339
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58010
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/ipmi')
-rw-r--r-- | src/include/usr/ipmi/ipmifruinv.H | 17 | ||||
-rw-r--r-- | src/include/usr/ipmi/ipmiif.H | 5 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/include/usr/ipmi/ipmifruinv.H b/src/include/usr/ipmi/ipmifruinv.H index 0df72462b..140395acb 100644 --- a/src/include/usr/ipmi/ipmifruinv.H +++ b/src/include/usr/ipmi/ipmifruinv.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2015 */ +/* Contributors Listed Below - COPYRIGHT 2014,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -40,6 +40,13 @@ namespace IPMIFRUINV void setData(bool i_updateData=false); /** + * @brief Reads the entire FRU inventory record + * @param[in] deviceId, The Record number to be read + * @param[o_data] The resultant pointer to the record data read + */ + void readFruData(uint8_t i_deviceId, uint8_t *o_data); + + /** * @brief Clears fru data from BMC * @param[in] fruId, The fruId to be cleared */ @@ -70,6 +77,14 @@ namespace IPMIFRUINV io_potentialFrus, bool i_updateData); + /** + * @brief Reads the Serial Number of the Product Info Area and returns it + * @param[in] fruId, The Record number to be read + * @return the pointer with the serial number - The caller is required + * to clear up this memory + */ + char* getProductSN(uint8_t i_fruId); + }; #endif diff --git a/src/include/usr/ipmi/ipmiif.H b/src/include/usr/ipmi/ipmiif.H index 55546d13e..ee83a5923 100644 --- a/src/include/usr/ipmi/ipmiif.H +++ b/src/include/usr/ipmi/ipmiif.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2017 */ +/* Contributors Listed Below - COPYRIGHT 2012,2018 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -252,6 +252,9 @@ namespace IPMI inline const command_t set_sel_time(void) { return std::make_pair(NETFUN_STORAGE, 0x49); } + inline const command_t read_fru_data(void) + { return std::make_pair(NETFUN_STORAGE, 0x11); } + inline const command_t write_fru_data(void) { return std::make_pair(NETFUN_STORAGE, 0x12); } |