1 #ifndef CPER_SECTION_FIRMWARE_H
2 #define CPER_SECTION_FIRMWARE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <json.h>
9 #include "Cper.h"
10 
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 	}
23 
24 json_object *cper_section_firmware_to_ir(void *section);
25 void ir_section_firmware_to_cper(json_object *section, FILE *out);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif
32