blob: bed02c99b3002862f6541fd2c6c1cc8b1a487700 [file] [log] [blame]
Lawrence Tang7f21db62022-07-06 11:09:39 +01001#ifndef CPER_SECTION_ARM_H
2#define CPER_SECTION_ARM_H
3
4#include "json.h"
5#include "../edk/Cper.h"
6
7#define MEMORY_ERROR_VALID_BITFIELD_NAMES (const char*[]) \
8 {"errorStatusValid", "physicalAddressValid", "physicalAddressMaskValid", "nodeValid", "cardValid", "moduleValid", \
9 "bankValid", "deviceValid", "rowValid", "columnValid", "bitPositionValid", "platformRequestorIDValid", \
10 "platformResponderIDValid", "memoryPlatformTargetValid", "memoryErrorTypeValid", "rankNumberValid", \
11 "cardHandleValid", "moduleHandleValid", "extendedRowBitsValid", "bankGroupValid", "bankAddressValid", \
12 "chipIdentificationValid"}
Lawrence Tanga0865e32022-07-06 11:59:52 +010013#define MEMORY_ERROR_TYPES_KEYS (int []){0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}
14#define MEMORY_ERROR_TYPES_VALUES (const char*[]){"Unknown", "No Error", "Single-bit ECC", \
15 "Multi-bit ECC", "Single-symbol ChipKill ECC", "Multi-symbol ChipKill ECC", "Master Abort", \
16 "Target Abort", "Parity Error", "Watchdog Timeout", "Invalid Address", "Mirror Broken", \
17 "Memory Sparing", "Scrub Corrected Error", "Scrub Uncorrected Error", "Physical Memory Map-out Event"}
Lawrence Tang7f21db62022-07-06 11:09:39 +010018
Lawrence Tanga0865e32022-07-06 11:59:52 +010019json_object* cper_section_platform_memory_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
20json_object* cper_section_platform_memory2_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
Lawrence Tang7f21db62022-07-06 11:09:39 +010021
22#endif