diff options
| author | CamVan Nguyen <ctnguyen@us.ibm.com> | 2012-12-04 10:57:51 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-02-20 16:32:05 -0600 |
| commit | dc3be407b9bbe715a23ef2e55900a4240158cfdd (patch) | |
| tree | 5d9e1e48fe27a0899229523bf3b2206d302d6a9e /src/include/usr/targeting/attrsync.H | |
| parent | 7ef3dfebf8e2a38b4b810b07600c9c49921a870f (diff) | |
| download | talos-hostboot-dc3be407b9bbe715a23ef2e55900a4240158cfdd.tar.gz talos-hostboot-dc3be407b9bbe715a23ef2e55900a4240158cfdd.zip | |
Attribute sync from FSP to HB
Change-Id: Ia177f591c9bb295d0435ed913d11bac7a0601405
RTC: 51687
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2964
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/targeting/attrsync.H')
| -rw-r--r-- | src/include/usr/targeting/attrsync.H | 124 |
1 files changed, 98 insertions, 26 deletions
diff --git a/src/include/usr/targeting/attrsync.H b/src/include/usr/targeting/attrsync.H index 274674382..cba459622 100644 --- a/src/include/usr/targeting/attrsync.H +++ b/src/include/usr/targeting/attrsync.H @@ -1,26 +1,25 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/include/usr/targeting/attrsync.H $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2012 - * - * p1 - * - * Object Code Only (OCO) source materials - * Licensed Internal Code Source Materials - * IBM HostBoot Licensed Internal Code - * - * The source code for this program is not published or other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/targeting/attrsync.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2012,2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #ifndef __ATTRSYNC_H_ #define __ATTRSYNC_H_ /** @@ -83,7 +82,7 @@ namespace TARGETING * attribute section. * * @par Detailed Description: - * This funciton will call into the AttRP:: to have the + * This function will call into the AttRP:: to have the * correct attribute section paged into accessable memory. * this function may be called multiple times with different * section names. @@ -106,6 +105,38 @@ namespace TARGETING errlHndl_t syncSectionToFsp( TARGETING::SECTION_TYPE i_section_to_sync ); + /** + * @brief Sends a request to the FSP to sync its data to Hostboot + * for a specific attribute section. Write the data + * received from the FSP to the attribute section. + * + * @par Detailed Description: + * This function will call into the AttRP:: to have the + * correct attribute section updated. This function may be + * called multiple times with different section names. + * + * @pre None: + * + * @post The entire section from the FSP attribute section + * passed in has been synchronized to the HB memory area. + * + * @param[in] i_section_to_sync + * TARGETING::SECTION_TYPE is passed in to + * identify the section to be synced from the + * FSP. + * i_msgQ + * the message queue which FSP will use to send + * the attribute data + * + * @return errlHndl_t + * return errl == NULL -> success + * return errl != NULL -> failure + * + */ + errlHndl_t syncSectionFromFsp( + TARGETING::SECTION_TYPE i_section_to_sync, + msg_q_t i_pMsgQ ); + private: /** @@ -126,13 +157,27 @@ namespace TARGETING * attribute section. * * @par Detailed Description: - * This funciton will call into the AttRP:: to have the + * This function will call into the AttRP:: to have the * correct attribute section paged into accessable memory * */ void getSectionData(); /** + * @brief Write the attribute data received from the FSP to + * the attribute section. + * + * @par Detailed Description: + * This function will call into the AttRP:: to have the + * correct attribute section written + * + * @return ATTR_SYNC_SUCCESS -> success + * ATTR_SYNC_FAILURE -> failure + * + */ + ATTR_SYNC_RC updateSectionData() const; + + /** * @brief Uses the internal mailbox to send a message to the FSP * * @@ -169,6 +214,17 @@ namespace TARGETING */ errlHndl_t sendSyncCompleteMessage(); + /** + * @brief Sends the sync to HB request message to the FSP + * requesting the FSP to sync it's attribute data + * to Hostboot. + * + * @return errlHndl_t + * return errl == NULL -> success + * return errl != NULL -> failure + */ + errlHndl_t sendSyncToHBRequestMessage(); + private: // id of the section being updated @@ -191,7 +247,7 @@ namespace TARGETING /** * @brief Handles synchronization of all RW targeting attributes from - * hostboot to the fsp; the following section are are + * hostboot to the fsp; the following sections are * synchronized. * * 1). SECTION_TYPE_PNOR_RW @@ -205,5 +261,21 @@ namespace TARGETING */ errlHndl_t syncAllAttributesToFsp(); + /** + * @brief Handles synchronization of all RW targeting attributes from + * the fsp to hostboot; the following sections are + * synchronized. + * + * 1). SECTION_TYPE_PNOR_RW + * 2). SECTION_TYPE_HEAP_PNOR_INIT + * 3). SECTION_TYPE_HEAP_PNOR_ZERO_INIT + * + * + * @return errlHndl_t + * return errl == NULL -> success + * return errl != NULL -> failure + */ + errlHndl_t syncAllAttributesFromFsp(); + } // namespace #endif |

