xref: /openbmc/libcper/include/libcper/sections/cper-section-firmware.h (revision ad6c880fc739b6ca750c3ab594e270efd972c2ac)
1 #ifndef CPER_SECTION_FIRMWARE_H
2 #define CPER_SECTION_FIRMWARE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stdio.h>
9 #include <json.h>
10 #include <libcper/Cper.h>
11 
12 #define FIRMWARE_ERROR_RECORD_TYPES_KEYS (int[]){ 0, 1, 2 }
13 #define FIRMWARE_ERROR_RECORD_TYPES_VALUES                                     \
14 	(const char *[]){ "IPF SAL Error Record",                              \
15 			  "SOC Firmware Error Record (Type1 Legacy)",          \
16 			  "SOC Firmware Error Record (Type2)" }
17 
18 json_object *cper_section_firmware_to_ir(const UINT8 *section, UINT32 size,
19 					 char **desc_string);
20 void ir_section_firmware_to_cper(json_object *section, FILE *out);
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif
27