blob: 5e8fb281d9d22bdcb17f17f6e5b76ecf521b8e20 [file] [log] [blame]
#ifndef CPER_SECTION_FIRMWARE_H
#define CPER_SECTION_FIRMWARE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <json.h>
#include <libcper/Cper.h>
#define FIRMWARE_ERROR_RECORD_TYPES_KEYS (int[]){ 0, 1, 2 }
#define FIRMWARE_ERROR_RECORD_TYPES_VALUES \
(const char *[]){ "IPF SAL Error Record", \
"SOC Firmware Error Record (Type1 Legacy)", \
"SOC Firmware Error Record (Type2)" }
json_object *cper_section_firmware_to_ir(const UINT8 *section, UINT32 size,
char **desc_string);
void ir_section_firmware_to_cper(json_object *section, FILE *out);
#ifdef __cplusplus
}
#endif
#endif