xref: /openbmc/libcper/include/libcper/sections/cper-section-firmware.h (revision c97c041e571841f0ce67292208e083f6d858cf5c)
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(void *section);
19  void ir_section_firmware_to_cper(json_object *section, FILE *out);
20  
21  #ifdef __cplusplus
22  }
23  #endif
24  
25  #endif
26