summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/htmgt_cfgdata.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_cfgdata.H
parent611d91a0295e17ea202f01e0143fc040820eadb8 (diff)
downloadtalos-hostboot-85351118f1aa6d7cacca6b1085b1d965eeb492c4.tar.gz
talos-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_cfgdata.H')
-rw-r--r--src/usr/htmgt/htmgt_cfgdata.H52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/usr/htmgt/htmgt_cfgdata.H b/src/usr/htmgt/htmgt_cfgdata.H
index 5b6d30f5a..b1c32f80f 100644
--- a/src/usr/htmgt/htmgt_cfgdata.H
+++ b/src/usr/htmgt/htmgt_cfgdata.H
@@ -67,6 +67,58 @@ namespace HTMGT
};
+ enum cfgTargets
+ {
+ TARGET_ALL = 0x00,
+ TARGET_MASTER = 0x01,
+ };
+
+ enum cfgSupStates
+ {
+ CFGSTATE_ALL = 0x00,
+ CFGSTATE_STANDBY = 0x01,
+ CFGSTATE_SBYOBS = 0x02
+ };
+
+ const uint32_t TO_20SEC = 20;
+
+ struct occCfgDataTable_t
+ {
+ occCfgDataFormat format;
+ cfgTargets targets;
+ uint16_t timeout; // in seconds
+ cfgSupStates supportedStates;
+
+ bool operator==(const occCfgDataFormat& i_format) const
+ {
+ return (i_format == format);
+ }
+ };
+
+ const occCfgDataTable_t occCfgDataTable[] =
+ {
+ { OCC_CFGDATA_SYS_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_APSS_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_OCC_ROLE, TARGET_ALL, TO_20SEC, CFGSTATE_STANDBY },
+ { OCC_CFGDATA_PSTATE_SSTRUCT, TARGET_ALL, TO_20SEC, CFGSTATE_SBYOBS },
+ { OCC_CFGDATA_FREQ_POINT, TARGET_MASTER, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_MEM_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_PCAP_CONFIG, TARGET_MASTER, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_MEM_THROTTLE, TARGET_ALL, TO_20SEC, CFGSTATE_ALL },
+ { OCC_CFGDATA_TCT_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL }
+ };
+ const size_t OCC_CONFIG_TABLE_SIZE = sizeof(occCfgDataTable) /
+ sizeof(occCfgDataTable_t);
+
+ /**
+ * @brief Send config format data to all OCCs
+ *
+ * @param[in] config format to send. Default is to send
+ * all config formats.
+ */
+ void sendOccConfigData(const occCfgDataFormat i_requestedFormat =
+ OCC_CFGDATA_CLEAR_ALL);
+
/**
* Fills in the Memory Config Configuration Data message buffer,
* including the format and version numbers.
OpenPOWER on IntegriCloud