1580423feSLawrence Tang /** 2580423feSLawrence Tang * Describes available sections to the CPER parser. 3580423feSLawrence Tang * 4580423feSLawrence Tang * Author: Lawrence.Tang@arm.com 5580423feSLawrence Tang **/ 6580423feSLawrence Tang #include "../edk/Cper.h" 7580423feSLawrence Tang #include "cper-section.h" 8580423feSLawrence Tang #include "cper-section-arm.h" 9580423feSLawrence Tang #include "cper-section-generic.h" 10580423feSLawrence Tang #include "cper-section-ia32x64.h" 11580423feSLawrence Tang #include "cper-section-ipf.h" 12580423feSLawrence Tang #include "cper-section-memory.h" 13580423feSLawrence Tang #include "cper-section-pcie.h" 14580423feSLawrence Tang #include "cper-section-firmware.h" 15580423feSLawrence Tang #include "cper-section-pci-bus.h" 16580423feSLawrence Tang #include "cper-section-pci-dev.h" 17580423feSLawrence Tang #include "cper-section-dmar-generic.h" 18580423feSLawrence Tang #include "cper-section-dmar-vtd.h" 19580423feSLawrence Tang #include "cper-section-dmar-iommu.h" 20580423feSLawrence Tang #include "cper-section-ccix-per.h" 21580423feSLawrence Tang #include "cper-section-cxl-protocol.h" 22580423feSLawrence Tang #include "cper-section-cxl-component.h" 23580423feSLawrence Tang 24580423feSLawrence Tang //Definitions of all sections available to the CPER parser. 25580423feSLawrence Tang CPER_SECTION_DEFINITION section_definitions[] = { 26*f8fc7052SJohn Chung { &gEfiProcessorGenericErrorSectionGuid, "Processor Generic", 27*f8fc7052SJohn Chung cper_section_generic_to_ir, ir_section_generic_to_cper }, 28*f8fc7052SJohn Chung { &gEfiIa32X64ProcessorErrorSectionGuid, "IA32/X64", 29*f8fc7052SJohn Chung cper_section_ia32x64_to_ir, ir_section_ia32x64_to_cper }, 30580423feSLawrence Tang { &gEfiIpfProcessorErrorSectionGuid, "IPF", NULL, NULL }, 31*f8fc7052SJohn Chung { &gEfiArmProcessorErrorSectionGuid, "ARM", cper_section_arm_to_ir, 32*f8fc7052SJohn Chung ir_section_arm_to_cper }, 33*f8fc7052SJohn Chung { &gEfiPlatformMemoryErrorSectionGuid, "Platform Memory", 34*f8fc7052SJohn Chung cper_section_platform_memory_to_ir, ir_section_memory_to_cper }, 35*f8fc7052SJohn Chung { &gEfiPlatformMemoryError2SectionGuid, "Platform Memory 2", 36*f8fc7052SJohn Chung cper_section_platform_memory2_to_ir, ir_section_memory2_to_cper }, 37*f8fc7052SJohn Chung { &gEfiPcieErrorSectionGuid, "PCIe", cper_section_pcie_to_ir, 38*f8fc7052SJohn Chung ir_section_pcie_to_cper }, 39*f8fc7052SJohn Chung { &gEfiFirmwareErrorSectionGuid, "Firmware Error Record Reference", 40*f8fc7052SJohn Chung cper_section_firmware_to_ir, ir_section_firmware_to_cper }, 41*f8fc7052SJohn Chung { &gEfiPciBusErrorSectionGuid, "PCI/PCI-X Bus", 42*f8fc7052SJohn Chung cper_section_pci_bus_to_ir, ir_section_pci_bus_to_cper }, 43*f8fc7052SJohn Chung { &gEfiPciDevErrorSectionGuid, "PCI Component/Device", 44*f8fc7052SJohn Chung cper_section_pci_dev_to_ir, ir_section_pci_dev_to_cper }, 45*f8fc7052SJohn Chung { &gEfiDMArGenericErrorSectionGuid, "DMAr Generic", 46*f8fc7052SJohn Chung cper_section_dmar_generic_to_ir, ir_section_dmar_generic_to_cper }, 47*f8fc7052SJohn Chung { &gEfiDirectedIoDMArErrorSectionGuid, 48*f8fc7052SJohn Chung "Intel VT for Directed I/O Specific DMAr", 49*f8fc7052SJohn Chung cper_section_dmar_vtd_to_ir, ir_section_dmar_vtd_to_cper }, 50*f8fc7052SJohn Chung { &gEfiIommuDMArErrorSectionGuid, "IOMMU Specific DMAr", 51*f8fc7052SJohn Chung cper_section_dmar_iommu_to_ir, ir_section_dmar_iommu_to_cper }, 52*f8fc7052SJohn Chung { &gEfiCcixPerLogErrorSectionGuid, "CCIX PER Log Error", 53*f8fc7052SJohn Chung cper_section_ccix_per_to_ir, ir_section_ccix_per_to_cper }, 54*f8fc7052SJohn Chung { &gEfiCxlProtocolErrorSectionGuid, "CXL Protocol Error", 55*f8fc7052SJohn Chung cper_section_cxl_protocol_to_ir, ir_section_cxl_protocol_to_cper }, 56*f8fc7052SJohn Chung { &gEfiCxlGeneralMediaErrorSectionGuid, 57*f8fc7052SJohn Chung "CXL General Media Component Error", cper_section_cxl_component_to_ir, 58*f8fc7052SJohn Chung ir_section_cxl_component_to_cper }, 59*f8fc7052SJohn Chung { &gEfiCxlDramEventErrorSectionGuid, "CXL DRAM Component Error", 60*f8fc7052SJohn Chung cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 61*f8fc7052SJohn Chung { &gEfiCxlMemoryModuleErrorSectionGuid, 62*f8fc7052SJohn Chung "CXL Memory Module Component Error", cper_section_cxl_component_to_ir, 63*f8fc7052SJohn Chung ir_section_cxl_component_to_cper }, 64*f8fc7052SJohn Chung { &gEfiCxlPhysicalSwitchErrorSectionGuid, 65*f8fc7052SJohn Chung "CXL Physical Switch Component Error", 66*f8fc7052SJohn Chung cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 67*f8fc7052SJohn Chung { &gEfiCxlVirtualSwitchErrorSectionGuid, 68*f8fc7052SJohn Chung "CXL Virtual Switch Component Error", 69*f8fc7052SJohn Chung cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 70*f8fc7052SJohn Chung { &gEfiCxlMldPortErrorSectionGuid, "CXL MLD Port Component Error", 71*f8fc7052SJohn Chung cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 72580423feSLawrence Tang }; 73*f8fc7052SJohn Chung const size_t section_definitions_len = 74*f8fc7052SJohn Chung sizeof(section_definitions) / sizeof(CPER_SECTION_DEFINITION); 75