diff options
author | nagurram-in <nagendra.g@in.ibm.com> | 2017-02-27 08:28:01 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-03-22 17:38:12 -0400 |
commit | f92bf74315ee13b44d60d6085b86d4153ba85f92 (patch) | |
tree | 9700cc7c4cbd39b023e905051aa4e1d8b9c6d68c /src/usr/hdat/hdatmsvpd.C | |
parent | 0f5d9ad1ca5f27d3aaeecceea0f326e65a70478b (diff) | |
download | talos-hostboot-f92bf74315ee13b44d60d6085b86d4153ba85f92.tar.gz talos-hostboot-f92bf74315ee13b44d60d6085b86d4153ba85f92.zip |
I2c data fillup in msvpd and pcrd structs
Change-Id: Id2d9754b9a044223372d67a7c61e7784584a45c3
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37093
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/hdat/hdatmsvpd.C')
-rwxr-xr-x | src/usr/hdat/hdatmsvpd.C | 48 |
1 files changed, 4 insertions, 44 deletions
diff --git a/src/usr/hdat/hdatmsvpd.C b/src/usr/hdat/hdatmsvpd.C index f835da10e..32ab77fd1 100755 --- a/src/usr/hdat/hdatmsvpd.C +++ b/src/usr/hdat/hdatmsvpd.C @@ -55,45 +55,6 @@ namespace HDAT #define HDAT_MS_AREA(_i_idx_) *((HdatMsArea **)((char *)iv_msAreaPtrs + \ _i_idx_ * sizeof(HdatMsArea *))) -/******************************************************************************* - * hdatGetMsaDeviceInfo - * - * @brief Routine returns the Host I2C device entries - * - * @pre None - * - * @post None - * - * @param[in] i_pMembufTarget - * The membuf target handle - * @param[out] o_i2cDevEntries - * The host i2c dev entries - * - * @return void - * -*******************************************************************************/ -void hdatGetMsaDeviceInfo(TARGETING::Target* i_pMembufTarget, - std::vector<hdatMsAreaHI2cData_t>&o_i2cDevEntries) -{ - HDAT_ENTER(); - //TODO : RTC Story 165230 - //Need to populate the data once ready - //std::vector<hdatDeviceInfo_t> o_deviceInfo; - //getDeviceInfo( TARGETING::Target* i_membufTarget, - // std::vector<hdatDeviceInfo_t>& o_deviceInfo ); - - hdatMsAreaHI2cData_t l_hostI2cObj; - memset(&l_hostI2cObj, 0x00, sizeof(l_hostI2cObj)); - - //Hard coded values - l_hostI2cObj.hdatMsaI2cMasterInfo = 1; - l_hostI2cObj.hdatMsaI2cSlaveDevType = 1; - l_hostI2cObj.hdatMsaI2cPurpose = 1; - o_i2cDevEntries.push_back(l_hostI2cObj); - - HDAT_EXIT(); -} - /** @brief See the prologue in hdatmsvpd.H */ HdatMsVpd::HdatMsVpd(errlHndl_t &o_errlHndl, @@ -691,7 +652,7 @@ errlHndl_t HdatMsVpd::addEcEntry(uint16_t i_msAreaId, /** @brief See the prologue in hdatmsvpd.H */ void HdatMsVpd::setMsaI2cInfo(uint16_t i_msAreaId, - std::vector<hdatMsAreaHI2cData_t>& i_I2cDevEntries) + std::vector<hdatI2cData_t>& i_I2cDevEntries) { HdatMsArea *l_obj; @@ -1405,10 +1366,9 @@ errlHndl_t HdatMsVpd::hdatLoadMsData(uint32_t &o_size, uint32_t &o_count) l_pMcsTarget->getAttr<TARGETING::ATTR_HUID>()); break; } - - // TODO RTC Story 165230 + // Need to get i2c Master data correctly - std::vector<hdatMsAreaHI2cData_t> l_i2cDevEntries; + std::vector<hdatI2cData_t> l_i2cDevEntries; TARGETING::PredicateCTM l_membufPredicate( TARGETING::CLASS_CHIP, TARGETING::TYPE_MEMBUF); @@ -1432,7 +1392,7 @@ errlHndl_t HdatMsVpd::hdatLoadMsData(uint32_t &o_size, uint32_t &o_count) l_membufList[0]; if (l_pMembufTarget != NULL) { - hdatGetMsaDeviceInfo(l_pMembufTarget, + hdatGetI2cDeviceInfo(l_pMembufTarget, l_i2cDevEntries); } } |