summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/htmgt_poll.H
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2014-12-05 11:06:54 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-12-13 10:17:16 -0600
commit85351118f1aa6d7cacca6b1085b1d965eeb492c4 (patch)
tree1b92a4231a77353369ad95250fbd8f4c61498dbf /src/usr/htmgt/htmgt_poll.H
parent611d91a0295e17ea202f01e0143fc040820eadb8 (diff)
downloadblackbird-hostboot-85351118f1aa6d7cacca6b1085b1d965eeb492c4.tar.gz
blackbird-hostboot-85351118f1aa6d7cacca6b1085b1d965eeb492c4.zip
Move OCCs to active state
Change-Id: I99918d0e1a27ed5cf7cb438e3e8e7f580c5306c7 RTC: 115922 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14740 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_poll.H')
-rw-r--r--src/usr/htmgt/htmgt_poll.H31
1 files changed, 20 insertions, 11 deletions
diff --git a/src/usr/htmgt/htmgt_poll.H b/src/usr/htmgt/htmgt_poll.H
index 62eabf885..631a1d365 100644
--- a/src/usr/htmgt/htmgt_poll.H
+++ b/src/usr/htmgt/htmgt_poll.H
@@ -33,6 +33,20 @@
namespace HTMGT
{
+
+ // OCC Status bits
+ const uint8_t OCC_STATUS_MASTER = 0x80;
+ const uint8_t OCC_STATUS_FIR_MASTER = 0x40;
+ const uint8_t OCC_STATUS_ATTN_ENABLE = 0x08;
+ const uint8_t OCC_STATUS_OBS_READY = 0x02;
+ const uint8_t OCC_STATUS_ACTIVE_READY = 0x01;
+
+ // OCC Extended Status bits
+ const uint8_t OCC_XSTATUS_DVFS_OT = 0x80;
+ const uint8_t OCC_XSTATUS_DVFS_PWR = 0x40;
+ const uint8_t OCC_XSTATUS_MEM_THROT_OT = 0x20;
+ const uint8_t OCC_XSTATUS_N_POWER = 0x10;
+
struct occPollRspStruct_t
{
uint8_t status;
@@ -58,21 +72,16 @@ namespace HTMGT
/**
* @brief Send a poll command to each OCC
*
+ * @param[in] i_flushAllErrors If set to true, TMGT will send poll cmds
+ * to each OCC as long as that OCC continues
+ * to report errors. If false, only one
+ * poll will be send to each OCC.
+ *
* @return NULL on success, else error handle
*/
- errlHndl_t sendOccPoll();
+ errlHndl_t sendOccPoll(const bool i_flushAllErrors = false);
- /**
- * @brief Handle OCC poll response
- *
- * @param[in] i_occ pointer to the OCC
- * @param[in] i_pollResponse pointer to the response
- * @param[in] i_pollResponseSize length of the poll response
- */
- void poll_rsp_handler(Occ * i_occ,
- const uint8_t * i_pollResponse,
- const uint16_t i_pollResponseSize);
} // end namespace
#endif
OpenPOWER on IntegriCloud