blob: 1a2d729c9b8225911b079b9d9f05a23b16b31906 [file] [log] [blame]
#ifndef CPER_SECTION_PCIE_H
#define CPER_SECTION_PCIE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <json.h>
#include "Cper.h"
#define PCIE_ERROR_VALID_BITFIELD_NAMES \
(const char *[]) \
{ \
"portTypeValid", "versionValid", "commandStatusValid", \
"deviceIDValid", "deviceSerialNumberValid", \
"bridgeControlStatusValid", \
"capabilityStructureStatusValid", "aerInfoValid" \
}
#define PCIE_ERROR_PORT_TYPES_KEYS \
(int[]) \
{ \
0, 1, 4, 5, 6, 7, 8, 9, 10 \
}
#define PCIE_ERROR_PORT_TYPES_VALUES \
(const char *[]) \
{ \
"PCI Express End Point", "Legacy PCI End Point Device", \
"Root Port", "Upstream Switch Port", \
"Downstream Switch Port", \
"PCI Express to PCI/PCI-X Bridge", \
"PCI/PCI-X Bridge to PCI Express Bridge", \
"Root Complex Integrated Endpoint Device", \
"Root Complex Event Collector" \
}
json_object *cper_section_pcie_to_ir(void *section);
void ir_section_pcie_to_cper(json_object *section, FILE *out);
#ifdef __cplusplus
}
#endif
#endif