blob: 4e0f528286099f0b771f7e0bc4c2acd43bc15f21 [file] [log] [blame]
Lawrence Tangc60a2432022-07-06 14:58:33 +01001#ifndef CPER_SECTION_FIRMWARE_H
2#define CPER_SECTION_FIRMWARE_H
3
Lawrence Tang5202bbb2022-08-12 14:54:36 +01004#include <json.h>
Lawrence Tangc60a2432022-07-06 14:58:33 +01005#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