1 /** 2 * Describes available sections to the CPER parser. 3 * 4 * Author: Lawrence.Tang@arm.com 5 **/ 6 #include <libcper/Cper.h> 7 #include <libcper/sections/cper-section.h> 8 #include <libcper/sections/cper-section-arm.h> 9 #include <libcper/sections/cper-section-generic.h> 10 #include <libcper/sections/cper-section-ia32x64.h> 11 #include <libcper/sections/cper-section-ipf.h> 12 #include <libcper/sections/cper-section-memory.h> 13 #include <libcper/sections/cper-section-pcie.h> 14 #include <libcper/sections/cper-section-firmware.h> 15 #include <libcper/sections/cper-section-pci-bus.h> 16 #include <libcper/sections/cper-section-pci-dev.h> 17 #include <libcper/sections/cper-section-dmar-generic.h> 18 #include <libcper/sections/cper-section-dmar-vtd.h> 19 #include <libcper/sections/cper-section-dmar-iommu.h> 20 #include <libcper/sections/cper-section-ccix-per.h> 21 #include <libcper/sections/cper-section-cxl-protocol.h> 22 #include <libcper/sections/cper-section-cxl-component.h> 23 #include <libcper/sections/cper-section-nvidia.h> 24 #include <libcper/sections/cper-section-ampere.h> 25 26 //Definitions of all sections available to the CPER parser. 27 CPER_SECTION_DEFINITION section_definitions[] = { 28 { &gEfiProcessorGenericErrorSectionGuid, "Processor Generic", 29 "GenericProcessor", cper_section_generic_to_ir, 30 ir_section_generic_to_cper }, 31 { &gEfiIa32X64ProcessorErrorSectionGuid, "IA32/X64", "Ia32x64Processor", 32 cper_section_ia32x64_to_ir, ir_section_ia32x64_to_cper }, 33 { &gEfiIpfProcessorErrorSectionGuid, "IPF", "IPF", NULL, NULL }, 34 { &gEfiArmProcessorErrorSectionGuid, "ARM", "ArmProcessor", 35 cper_section_arm_to_ir, ir_section_arm_to_cper }, 36 { &gEfiPlatformMemoryErrorSectionGuid, "Platform Memory", "Memory", 37 cper_section_platform_memory_to_ir, ir_section_memory_to_cper }, 38 { &gEfiPlatformMemoryError2SectionGuid, "Platform Memory 2", "Memory2", 39 cper_section_platform_memory2_to_ir, ir_section_memory2_to_cper }, 40 { &gEfiPcieErrorSectionGuid, "PCIe", "Pcie", cper_section_pcie_to_ir, 41 ir_section_pcie_to_cper }, 42 { &gEfiFirmwareErrorSectionGuid, "Firmware Error Record Reference", 43 "Firmware", cper_section_firmware_to_ir, 44 ir_section_firmware_to_cper }, 45 { &gEfiPciBusErrorSectionGuid, "PCI/PCI-X Bus", "PciBus", 46 cper_section_pci_bus_to_ir, ir_section_pci_bus_to_cper }, 47 { &gEfiPciDevErrorSectionGuid, "PCI Component/Device", "PciComponent", 48 cper_section_pci_dev_to_ir, ir_section_pci_dev_to_cper }, 49 { &gEfiDMArGenericErrorSectionGuid, "DMAr Generic", "GenericDmar", 50 cper_section_dmar_generic_to_ir, ir_section_dmar_generic_to_cper }, 51 { &gEfiDirectedIoDMArErrorSectionGuid, 52 "Intel VT for Directed I/O Specific DMAr", "VtdDmar", 53 cper_section_dmar_vtd_to_ir, ir_section_dmar_vtd_to_cper }, 54 { &gEfiIommuDMArErrorSectionGuid, "IOMMU Specific DMAr", "IommuDmar", 55 cper_section_dmar_iommu_to_ir, ir_section_dmar_iommu_to_cper }, 56 { &gEfiCcixPerLogErrorSectionGuid, "CCIX PER Log Error", "CcixPer", 57 cper_section_ccix_per_to_ir, ir_section_ccix_per_to_cper }, 58 { &gEfiCxlProtocolErrorSectionGuid, "CXL Protocol Error", "CxlProtocol", 59 cper_section_cxl_protocol_to_ir, ir_section_cxl_protocol_to_cper }, 60 { &gEfiCxlGeneralMediaErrorSectionGuid, 61 "CXL General Media Component Error", "CxlComponent", 62 cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 63 { &gEfiCxlDramEventErrorSectionGuid, "CXL DRAM Component Error", 64 "CxlComponent", cper_section_cxl_component_to_ir, 65 ir_section_cxl_component_to_cper }, 66 { &gEfiCxlMemoryModuleErrorSectionGuid, 67 "CXL Memory Module Component Error", "CxlComponent", 68 cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 69 { &gEfiCxlPhysicalSwitchErrorSectionGuid, 70 "CXL Physical Switch Component Error", "CxlComponent", 71 cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 72 { &gEfiCxlVirtualSwitchErrorSectionGuid, 73 "CXL Virtual Switch Component Error", "CxlComponent", 74 cper_section_cxl_component_to_ir, ir_section_cxl_component_to_cper }, 75 { &gEfiCxlMldPortErrorSectionGuid, "CXL MLD Port Component Error", 76 "CxlComponent", cper_section_cxl_component_to_ir, 77 ir_section_cxl_component_to_cper }, 78 { &gEfiNvidiaErrorSectionGuid, "NVIDIA", "Nvidia", 79 cper_section_nvidia_to_ir, ir_section_nvidia_to_cper }, 80 { &gEfiAmpereErrorSectionGuid, "Ampere", "Ampere", 81 cper_section_ampere_to_ir, ir_section_ampere_to_cper }, 82 }; 83 const size_t section_definitions_len = 84 sizeof(section_definitions) / sizeof(CPER_SECTION_DEFINITION); 85