blob: 0fbefe5b561fda2b22bad162032b0a16431cbcf1 [file] [log] [blame]
Lawrence Tang864c0da2022-07-06 15:55:40 +01001#ifndef CPER_SECTION_CCIX_PER_H
2#define CPER_SECTION_CCIX_PER_H
3
4#include "json.h"
5#include "../edk/Cper.h"
6
7#define CCIX_PER_ERROR_VALID_BITFIELD_NAMES (const char*[]) {"ccixSourceIDValid", "ccixPortIDValid", "ccixPERLogValid"}
8
9///
10/// CCIX PER Log Error Section
11///
12typedef struct {
13 UINT32 Length;
14 UINT64 ValidBits;
15 UINT8 CcixSourceId;
16 UINT8 CcixPortId;
17 UINT16 Reserved;
18} EFI_CCIX_PER_LOG_DATA;
19
20json_object* cper_section_ccix_per_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
Lawrence Tang205dd1d2022-07-14 16:23:38 +010021void ir_section_ccix_per_to_cper(json_object* section, FILE* out);
Lawrence Tang864c0da2022-07-06 15:55:40 +010022
23#endif