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 | |
Karthik Rajagopalan | 255bd81 | 2024-09-06 14:36:34 -0700 | [diff] [blame^] | 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Lawrence Tang | 5202bbb | 2022-08-12 14:54:36 +0100 | [diff] [blame] | 8 | #include <json.h> |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 9 | #include "../edk/Cper.h" |
| 10 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 11 | #define FIRMWARE_ERROR_RECORD_TYPES_KEYS \ |
| 12 | (int[]) \ |
| 13 | { \ |
| 14 | 0, 1, 2 \ |
| 15 | } |
| 16 | #define FIRMWARE_ERROR_RECORD_TYPES_VALUES \ |
| 17 | (const char *[]) \ |
| 18 | { \ |
| 19 | "IPF SAL Error Record", \ |
| 20 | "SOC Firmware Error Record (Type1 Legacy)", \ |
| 21 | "SOC Firmware Error Record (Type2)" \ |
| 22 | } |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 23 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 24 | json_object *cper_section_firmware_to_ir(void *section); |
| 25 | void ir_section_firmware_to_cper(json_object *section, FILE *out); |
Lawrence Tang | c60a243 | 2022-07-06 14:58:33 +0100 | [diff] [blame] | 26 | |
Karthik Rajagopalan | 255bd81 | 2024-09-06 14:36:34 -0700 | [diff] [blame^] | 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
| 30 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 31 | #endif |