blob: be00b5f269da20fb33a3877ac0613977fa428fa2 [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);
Karthik Rajagopalan683e0552024-03-07 12:30:43 -080023size_t generate_section_nvidia(void **location);
Lawrence Tang67cbed62022-07-18 16:44:51 +010024
Lawrence Tang8f977452022-08-24 14:55:07 +010025//Definition structure for a single CPER section generator.
26typedef struct {
John Chungf8fc7052024-05-03 20:05:29 +080027 EFI_GUID *Guid;
28 const char *ShortName;
29 size_t (*Generate)(void **);
Lawrence Tang8f977452022-08-24 14:55:07 +010030} CPER_GENERATOR_DEFINITION;
31
32extern CPER_GENERATOR_DEFINITION generator_definitions[];
33extern const size_t generator_definitions_len;
34
John Chungf8fc7052024-05-03 20:05:29 +080035#endif