diff options
Diffstat (limited to 'src/include/usr/errl')
| -rw-r--r-- | src/include/usr/errl/errlentry.H | 37 | ||||
| -rw-r--r-- | src/include/usr/errl/errlmanager.H | 12 |
2 files changed, 49 insertions, 0 deletions
diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H index 555bcb4c1..4159d867d 100644 --- a/src/include/usr/errl/errlentry.H +++ b/src/include/usr/errl/errlentry.H @@ -612,6 +612,24 @@ public: */ std::vector<void*> getUDSections(compId_t i_compId, uint8_t i_subSect); + /** + * @brief set iv_eselCallhomeInfoEvent + * + * When true, send this error as a special callhome + * type of eSEL to the BMC + * + * @return nothing + */ + void setEselCallhomeInfoEvent(bool i_valid); + + /** + * @brief get iv_eselCallhomeInfoEvent + * + * @return true if this log should result in a callhome event type eSEL, + * false otherwise + */ + bool getEselCallhomeInfoEvent(); + private: /** @@ -788,6 +806,7 @@ private: */ bool getSkipShowingLog(); + /** * @brief Sets internal flag to indicate if this log should be * saved to PNOR and sent to the BMC @@ -838,6 +857,9 @@ private: //BMC, or displayed in the console bool iv_skipShowingLog; + // when true, send this special type of eSEL to the BMC + // This is used to send OCC informational errors up to BMC + bool iv_eselCallhomeInfoEvent; }; @@ -984,6 +1006,21 @@ inline bool ErrlEntry::getSkipShowingLog() return iv_skipShowingLog; } +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +inline void ErrlEntry::setEselCallhomeInfoEvent(bool i_valid) +{ + iv_eselCallhomeInfoEvent = i_valid; + return; +} + +//////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////// +inline bool ErrlEntry::getEselCallhomeInfoEvent() +{ + return iv_eselCallhomeInfoEvent; +} + } // End namespace diff --git a/src/include/usr/errl/errlmanager.H b/src/include/usr/errl/errlmanager.H index 174b55725..93165a821 100644 --- a/src/include/usr/errl/errlmanager.H +++ b/src/include/usr/errl/errlmanager.H @@ -607,6 +607,18 @@ private: * @param[in/out] io_err - errorlog that's being checked and updatd */ void setErrlSkipFlag(errlHndl_t io_err); + +#ifdef CONFIG_BMC_IPMI + /** + * @brief Helper function to grab the value of + * ATTR_ALLOW_CALLHOME_ESELS_TO_BMC and + * return it as a boolean value + * + * @return true if these ESELs are allowed, false otherwise + */ + bool allowCallHomeEselsToBmc(void); +#endif + }; |

