blob: 531ddf790e9d5c53404919a55aee6ca55160c5b7 [file] [log] [blame]
Lawrence Tangc60a2432022-07-06 14:58:33 +01001#ifndef CPER_SECTION_FIRMWARE_H
2#define CPER_SECTION_FIRMWARE_H
3
4#include "json.h"
5#include "../edk/Cper.h"
6
7#define FIRMWARE_ERROR_RECORD_TYPES_KEYS (int []){0, 1, 2}
8#define FIRMWARE_ERROR_RECORD_TYPES_VALUES (const char*[]){"IPF SAL Error Record", \
9 "SOC Firmware Error Record (Type1 Legacy)", "SOC Firmware Error Record (Type2)"}
10
11json_object* cper_section_firmware_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
Lawrence Tang205dd1d2022-07-14 16:23:38 +010012void ir_section_firmware_to_cper(json_object* section, FILE* out);
Lawrence Tangc60a2432022-07-06 14:58:33 +010013
14#endif