blob: f74f9525ebf615bd084aad00bd9e94140e4bc9dd [file] [log] [blame]
#ifndef CPER_SECTION_CCIX_PER_H
#define CPER_SECTION_CCIX_PER_H
#include "json.h"
#include "../edk/Cper.h"
#define CCIX_PER_ERROR_VALID_BITFIELD_NAMES (const char*[]) {"ccixSourceIDValid", "ccixPortIDValid", "ccixPERLogValid"}
///
/// CCIX PER Log Error Section
///
typedef struct {
UINT32 Length;
UINT64 ValidBits;
UINT8 CcixSourceId;
UINT8 CcixPortId;
UINT16 Reserved;
} __attribute__((packed, aligned(1))) EFI_CCIX_PER_LOG_DATA;
json_object* cper_section_ccix_per_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor);
void ir_section_ccix_per_to_cper(json_object* section, FILE* out);
#endif