Lawrence Tang | 864c0da | 2022-07-06 15:55:40 +0100 | [diff] [blame] | 1 | #ifndef CPER_SECTION_CCIX_PER_H |
| 2 | #define CPER_SECTION_CCIX_PER_H |
| 3 | |
Lawrence Tang | 5202bbb | 2022-08-12 14:54:36 +0100 | [diff] [blame] | 4 | #include <json.h> |
Lawrence Tang | 864c0da | 2022-07-06 15:55:40 +0100 | [diff] [blame] | 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 | /// |
| 12 | typedef struct { |
| 13 | UINT32 Length; |
| 14 | UINT64 ValidBits; |
| 15 | UINT8 CcixSourceId; |
| 16 | UINT8 CcixPortId; |
| 17 | UINT16 Reserved; |
Lawrence Tang | 0a4b3f2 | 2022-07-21 10:40:10 +0100 | [diff] [blame] | 18 | } __attribute__((packed, aligned(1))) EFI_CCIX_PER_LOG_DATA; |
Lawrence Tang | 864c0da | 2022-07-06 15:55:40 +0100 | [diff] [blame] | 19 | |
| 20 | json_object* cper_section_ccix_per_to_ir(void* section, EFI_ERROR_SECTION_DESCRIPTOR* descriptor); |
Lawrence Tang | 205dd1d | 2022-07-14 16:23:38 +0100 | [diff] [blame] | 21 | void ir_section_ccix_per_to_cper(json_object* section, FILE* out); |
Lawrence Tang | 864c0da | 2022-07-06 15:55:40 +0100 | [diff] [blame] | 22 | |
| 23 | #endif |