blob: 858ee5d4a58ba9964a6fa67ae4792c40135eb754 [file] [log] [blame]
Lawrence Tangc60a2432022-07-06 14:58:33 +01001#ifndef CPER_SECTION_FIRMWARE_H
2#define CPER_SECTION_FIRMWARE_H
3
Karthik Rajagopalan255bd812024-09-06 14:36:34 -07004#ifdef __cplusplus
5extern "C" {
6#endif
7
Lawrence Tang5202bbb2022-08-12 14:54:36 +01008#include <json.h>
Lawrence Tangc60a2432022-07-06 14:58:33 +01009#include "../edk/Cper.h"
10
John Chungf8fc7052024-05-03 20:05:29 +080011#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 Tangc60a2432022-07-06 14:58:33 +010023
John Chungf8fc7052024-05-03 20:05:29 +080024json_object *cper_section_firmware_to_ir(void *section);
25void ir_section_firmware_to_cper(json_object *section, FILE *out);
Lawrence Tangc60a2432022-07-06 14:58:33 +010026
Karthik Rajagopalan255bd812024-09-06 14:36:34 -070027#ifdef __cplusplus
28}
29#endif
30
John Chungf8fc7052024-05-03 20:05:29 +080031#endif