blob: efbabf7efffbba34eb4b6f358814e0e3695abbc3 [file] [log] [blame]
#pragma once
#include <util/ffdc_file.hpp>
#include <cstddef> // for size_t
#include <map>
#include <string>
#include <vector>
namespace attn
{
constexpr auto pathLogging = "/xyz/openbmc_project/logging";
constexpr auto levelPelError = "xyz.openbmc_project.Logging.Entry.Level.Error";
constexpr auto eventPelTerminate = "xyz.open_power.Attn.Error.Terminate";
/** @brief Logging event types */
enum class EventType
{
Checkstop = 0,
Terminate = 1,
Vital = 2,
HwDiagsFail = 3,
AttentionFail = 4,
PhalSbeChipop = 5
};
/** @brief Commit special attention TI event to log */
void eventTerminate(std::map<std::string, std::string> i_additionalData,
char* i_tiInfoData);
/** @brief Commit SBE vital event to log, returns event log Id */
uint32_t eventVital();
/** @brief Commit attention handler failure event to log */
void eventAttentionFail(int i_error);
} // namespace attn