blob: ab3b34fab081097e1f8e996c18ec9be2b1bc2847 [file] [log] [blame]
Lawrence Tangd7e8ca32022-07-07 10:25:53 +01001/**
2 * Describes functions for converting CXL component error CPER sections from binary and JSON format
3 * into an intermediate format.
4 *
5 * Author: Lawrence.Tang@arm.com
6 **/
7#include <stdio.h>
8#include "json.h"
9#include "../edk/Cper.h"
10#include "../cper-utils.h"
11#include "cper-section-cxl-component.h"
12
13//Converts a single CXL component error CPER section into JSON IR.
14json_object* cper_section_cxl_component_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor)
15{
16 //The length of the structure (bytes).
17 EFI_CXL_COMPONENT_EVENT_HEADER* cxl_error = (EFI_CXL_COMPONENT_EVENT_HEADER*)section;
18 json_object* section_ir = json_object_new_object();
19
20 //todo: Figure out structure for CXL Component Event log (UEFI spec is a bit vague)
21
22 return section_ir;
23}