1 #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 \ 8 (int[]) \ 9 { \ 10 0, 1, 2 \ 11 } 12 #define FIRMWARE_ERROR_RECORD_TYPES_VALUES \ 13 (const char *[]) \ 14 { \ 15 "IPF SAL Error Record", \ 16 "SOC Firmware Error Record (Type1 Legacy)", \ 17 "SOC Firmware Error Record (Type2)" \ 18 } 19 20 json_object *cper_section_firmware_to_ir(void *section); 21 void ir_section_firmware_to_cper(json_object *section, FILE *out); 22 23 #endif 24