blob: eab0e99a3de5aa2cfc651021e4f104fa45c40ad8 [file] [log] [blame]
Lawrence Tangc60a2432022-07-06 14:58:33 +01001#ifndef CPER_SECTION_FIRMWARE_H
2#define CPER_SECTION_FIRMWARE_H
3
Lawrence Tang5202bbb2022-08-12 14:54:36 +01004#include <json.h>
Lawrence Tangc60a2432022-07-06 14:58:33 +01005#include "../edk/Cper.h"
6
John Chungf8fc7052024-05-03 20:05:29 +08007#define FIRMWARE_ERROR_RECORD_TYPES_KEYS \
8 (int[]) \
9 { \
10 0, 1, 2 \
11 }
12#define FIRMWARE_ERROR_RECORD_TYPES_VALUES \
13 (const char *[]) \
14 { \
15 "IPF SAL Error Record", \
16 "SOC Firmware Error Record (Type1 Legacy)", \
17 "SOC Firmware Error Record (Type2)" \
18 }
Lawrence Tangc60a2432022-07-06 14:58:33 +010019
John Chungf8fc7052024-05-03 20:05:29 +080020json_object *cper_section_firmware_to_ir(void *section);
21void ir_section_firmware_to_cper(json_object *section, FILE *out);
Lawrence Tangc60a2432022-07-06 14:58:33 +010022
John Chungf8fc7052024-05-03 20:05:29 +080023#endif