Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 1 | #ifndef CPER_SECTION_FIRMWARE_H |
| 2 | #define CPER_SECTION_FIRMWARE_H |
| 3 | |
Lawrence Tang | 5202bbb | 2022-08-12 14:54:36 +0100 | [diff] [blame] | 4 | #include <json.h> |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 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 | |
| 11 | json_object* cper_section_firmware_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor); |
Lawrence Tang | 205dd1d | 2022-07-14 16:23:38 +0100 | [diff] [blame] | 12 | void ir_section_firmware_to_cper(json_object* section, FILE* out); |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 13 | |
| 14 | #endif |