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 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 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 | } |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 19 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 20 | json_object *cper_section_firmware_to_ir(void *section); |
| 21 | void ir_section_firmware_to_cper(json_object *section, FILE *out); |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 22 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 23 | #endif |