1*8c686ccaSMatt Spinler #pragma once 2*8c686ccaSMatt Spinler 3*8c686ccaSMatt Spinler #include "elog_entry.hpp" 4*8c686ccaSMatt Spinler 5*8c686ccaSMatt Spinler namespace openpower 6*8c686ccaSMatt Spinler { 7*8c686ccaSMatt Spinler namespace pels 8*8c686ccaSMatt Spinler { 9*8c686ccaSMatt Spinler 10*8c686ccaSMatt Spinler /** 11*8c686ccaSMatt Spinler * @brief Convert an OpenBMC event log severity to a PEL severity 12*8c686ccaSMatt Spinler * 13*8c686ccaSMatt Spinler * @param[in] severity - The OpenBMC event log severity 14*8c686ccaSMatt Spinler * 15*8c686ccaSMatt Spinler * @return uint8_t - The PEL severity value 16*8c686ccaSMatt Spinler */ 17*8c686ccaSMatt Spinler uint8_t convertOBMCSeverityToPEL(phosphor::logging::Entry::Level severity); 18*8c686ccaSMatt Spinler 19*8c686ccaSMatt Spinler } // namespace pels 20*8c686ccaSMatt Spinler } // namespace openpower 21