1 /**
2  * Describes available section generators to the CPER generator.
3  *
4  * Author: Lawrence.Tang@arm.com
5  **/
6 #include "gen-section.h"
7 
8 CPER_GENERATOR_DEFINITION generator_definitions[] = {
9 	{ &gEfiProcessorGenericErrorSectionGuid, "generic",
10 	  generate_section_generic },
11 	{ &gEfiIa32X64ProcessorErrorSectionGuid, "ia32x64",
12 	  generate_section_ia32x64 },
13 	{ &gEfiArmProcessorErrorSectionGuid, "arm", generate_section_arm },
14 	{ &gEfiPlatformMemoryErrorSectionGuid, "memory",
15 	  generate_section_memory },
16 	{ &gEfiPlatformMemoryError2SectionGuid, "memory2",
17 	  generate_section_memory2 },
18 	{ &gEfiPcieErrorSectionGuid, "pcie", generate_section_pcie },
19 	{ &gEfiFirmwareErrorSectionGuid, "firmware",
20 	  generate_section_firmware },
21 	{ &gEfiPciBusErrorSectionGuid, "pcibus", generate_section_pci_bus },
22 	{ &gEfiPciDevErrorSectionGuid, "pcidev", generate_section_pci_dev },
23 	{ &gEfiDMArGenericErrorSectionGuid, "dmargeneric",
24 	  generate_section_dmar_generic },
25 	{ &gEfiDirectedIoDMArErrorSectionGuid, "dmarvtd",
26 	  generate_section_dmar_vtd },
27 	{ &gEfiIommuDMArErrorSectionGuid, "dmariommu",
28 	  generate_section_dmar_iommu },
29 	{ &gEfiCcixPerLogErrorSectionGuid, "ccixper",
30 	  generate_section_ccix_per },
31 	{ &gEfiCxlProtocolErrorSectionGuid, "cxlprotocol",
32 	  generate_section_cxl_protocol },
33 	{ &gEfiCxlGeneralMediaErrorSectionGuid, "cxlcomponent-media",
34 	  generate_section_cxl_component },
35 	{ &gEfiCxlDramEventErrorSectionGuid, "cxlcomponent-dram",
36 	  generate_section_cxl_component },
37 	{ &gEfiCxlMemoryModuleErrorSectionGuid, "cxlcomponent-memory",
38 	  generate_section_cxl_component },
39 	{ &gEfiCxlPhysicalSwitchErrorSectionGuid, "cxlcomponent-pswitch",
40 	  generate_section_cxl_component },
41 	{ &gEfiCxlVirtualSwitchErrorSectionGuid, "cxlcomponent-vswitch",
42 	  generate_section_cxl_component },
43 	{ &gEfiCxlMldPortErrorSectionGuid, "cxlcomponent-mld",
44 	  generate_section_cxl_component },
45 	{ &gEfiNvidiaErrorSectionGuid, "nvidia", generate_section_nvidia },
46 	{ &gEfiAmpereErrorSectionGuid, "ampere", generate_section_ampere },
47 };
48 const size_t generator_definitions_len =
49 	sizeof(generator_definitions) / sizeof(CPER_GENERATOR_DEFINITION);
50