blob: a5fb93093e3945b2a6e4a2a9582665cf02803b2e [file] [log] [blame]
Lawrence Tang1b0b00e2022-07-05 10:33:10 +01001#ifndef CPER_SECTION_GENERIC_H
2#define CPER_SECTION_GENERIC_H
3
Lawrence Tang3c43f742022-07-05 11:37:17 +01004#define GENERIC_PROC_TYPES_KEYS (int []){0, 1, 2}
5#define GENERIC_PROC_TYPES_VALUES (const char*[]){"IA32/X64", "IA64", "ARM"}
6#define GENERIC_ISA_TYPES_KEYS (int []){0, 1, 2, 3, 4}
7#define GENERIC_ISA_TYPES_VALUES (const char*[]){"IA32", "IA64", "X64", "ARM A32/T32", "ARM A64"}
8#define GENERIC_ERROR_TYPES_KEYS (int []){0, 1, 2, 4, 8}
9#define GENERIC_ERROR_TYPES_VALUES (const char*[]){"Unknown", "Cache Error", "TLB Error", "Bus Error", "Micro-Architectural Error"}
10#define GENERIC_OPERATION_TYPES_KEYS (int []){0, 1, 2, 3}
11#define GENERIC_OPERATION_TYPES_VALUES (const char*[]){"Unknown or generic", "Data Read", "Data Write", "Instruction Execution"}
12
Lawrence Tang1b0b00e2022-07-05 10:33:10 +010013json_object* cper_section_generic_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
14
15#endif