#ifndef _LINUX_CXL_EVENT_H
#define _LINUX_CXL_EVENT_H
#include <linux/types.h>
#include <linux/uuid.h>
#include <linux/workqueue_types.h>
struct cxl_event_record_hdr { … } __packed;
struct cxl_event_media_hdr { … } __packed;
#define CXL_EVENT_RECORD_DATA_LENGTH …
struct cxl_event_generic { … } __packed;
#define CXL_EVENT_GEN_MED_COMP_ID_SIZE …
struct cxl_event_gen_media { … } __packed;
#define CXL_EVENT_DER_CORRECTION_MASK_SIZE …
struct cxl_event_dram { … } __packed;
struct cxl_get_health_info { … } __packed;
struct cxl_event_mem_module { … } __packed;
cxl_event __packed;
struct cxl_event_record_raw { … } __packed;
enum cxl_event_type { … };
#define CPER_CXL_DEVICE_ID_VALID …
#define CPER_CXL_DEVICE_SN_VALID …
#define CPER_CXL_COMP_EVENT_LOG_VALID …
struct cxl_cper_event_rec { … } __packed;
struct cxl_cper_work_data { … };
#ifdef CONFIG_ACPI_APEI_GHES
int cxl_cper_register_work(struct work_struct *work);
int cxl_cper_unregister_work(struct work_struct *work);
int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd);
#else
static inline int cxl_cper_register_work(struct work_struct *work)
{
return 0;
}
static inline int cxl_cper_unregister_work(struct work_struct *work)
{
return 0;
}
static inline int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd)
{
return 0;
}
#endif
#endif