summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H
diff options
context:
space:
mode:
authorChris Phan <cphan@us.ibm.com>2013-06-26 07:45:34 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-10-10 21:54:30 -0500
commit5ee48041d8328da9ab3a53aa8a057ff2b62d0f6f (patch)
tree3c391e2d95bd26908655ae699b7db13689270e18 /src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H
parent4541c4a6046f2c8c325e4ef8b277b8da25bbec4e (diff)
downloadtalos-hostboot-5ee48041d8328da9ab3a53aa8a057ff2b62d0f6f.tar.gz
talos-hostboot-5ee48041d8328da9ab3a53aa8a057ff2b62d0f6f.zip
PRD: MFG threshold sync between FSP and Hostboot
Change-Id: I6c60b1cab681c148a1eab16a6b026932fe7939e7 RTC: 72602 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5196 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5868
Diffstat (limited to 'src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H')
-rwxr-xr-xsrc/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H57
1 files changed, 54 insertions, 3 deletions
diff --git a/src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H b/src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H
index 2f911a3c1..1c7ee6bca 100755
--- a/src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H
+++ b/src/usr/diag/prdf/common/mnfgtools/prdfMfgThresholdMgr.H
@@ -44,25 +44,76 @@ namespace PRDF
class MfgThresholdMgr
{
public:
+
+ /**
+ * @brief constructor
+ */
MfgThresholdMgr();
- ~MfgThresholdMgr();
+ /**
+ * @brief destructor
+ */
+ virtual ~MfgThresholdMgr();
+
+ /**
+ * @brief get MfgThresholdMgr singleton
+ *
+ * @return MfgThresholdMgr singleton
+ */
static MfgThresholdMgr * getInstance();
+ /**
+ * @brief get threshold value from name
+ * @param[in] i_thrName - threshold name
+ *
+ * @return corresponding threshold value
+ */
uint16_t getThreshold(uint32_t i_thrName);
+
+ /**
+ * @brief get threshold policy from name
+ * @param[in] i_thrName - threshold name
+ *
+ * @return threshold policy
+ */
ThresholdResolution::ThresholdPolicy* getThresholdP(uint32_t i_thrName);
+ /**
+ * @brief reset/clean up MfgThresholdMgr
+ */
void reset();
+ /**
+ * @brief get MfgThresholdFile
+ *
+ * @return MfgThresholdFile pointer
+ */
+ inline MfgThresholdFile * getMfgThresholdFile() { return iv_file; };
+
+
+ /**
+ * @brief Infinite threshold enum
+ */
enum { INFINITE_LIMIT_THR = 0xffff };
private:
+
+ /**
+ * @brief get default threshold value from name
+ * @param[in] i_thrName - threshold name
+ *
+ * @return corresponding threshold value
+ */
uint16_t getThresholdDefault(uint32_t i_thrName);
- void setupFile();
+
+ /**
+ * @brief set up MfgThresholdFile
+ */
+ virtual void setupFile();
FlyWeight<ThresholdResolution::ThresholdPolicy, 10> iv_thrs;
- PRDF_MFG_THRESHOLD_FILE_DECLARE(iv_file);
+ MfgThresholdFile * iv_file;
};
} // end namespace PRDF
OpenPOWER on IntegriCloud