blob: df1e227417510f70f40399e91eee5839e991ac27 [file] [log] [blame]
Lawrence Tang67cbed62022-07-18 16:44:51 +01001#ifndef GEN_SECTIONS_H
2#define GEN_SECTIONS_H
3
4#include <stdlib.h>
Lawrence Tang8f977452022-08-24 14:55:07 +01005#include "../../edk/Cper.h"
Lawrence Tang67cbed62022-07-18 16:44:51 +01006
Lawrence Tang8f977452022-08-24 14:55:07 +01007//Section generator function predefinitions.
John Chungf8fc7052024-05-03 20:05:29 +08008size_t generate_section_generic(void **location);
9size_t generate_section_ia32x64(void **location);
10size_t generate_section_arm(void **location);
11size_t generate_section_memory(void **location);
12size_t generate_section_memory2(void **location);
13size_t generate_section_pcie(void **location);
14size_t generate_section_pci_bus(void **location);
15size_t generate_section_pci_dev(void **location);
16size_t generate_section_firmware(void **location);
17size_t generate_section_dmar_generic(void **location);
18size_t generate_section_dmar_vtd(void **location);
19size_t generate_section_dmar_iommu(void **location);
20size_t generate_section_ccix_per(void **location);
21size_t generate_section_cxl_protocol(void **location);
22size_t generate_section_cxl_component(void **location);
Lawrence Tang67cbed62022-07-18 16:44:51 +010023
Lawrence Tang8f977452022-08-24 14:55:07 +010024//Definition structure for a single CPER section generator.
25typedef struct {
John Chungf8fc7052024-05-03 20:05:29 +080026 EFI_GUID *Guid;
27 const char *ShortName;
28 size_t (*Generate)(void **);
Lawrence Tang8f977452022-08-24 14:55:07 +010029} CPER_GENERATOR_DEFINITION;
30
31extern CPER_GENERATOR_DEFINITION generator_definitions[];
32extern const size_t generator_definitions_len;
33
John Chungf8fc7052024-05-03 20:05:29 +080034#endif