summaryrefslogtreecommitdiff
path: root/include/linux/cxl-event.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2024-05-01 09:53:32 -0700
committerDave Jiang <dave.jiang@intel.com>2024-05-01 09:53:32 -0700
commitdf2a8f4b444f92152a9e981d9b0eb0776130892a (patch)
tree02d78b02f85a185dc736c14bb4ce3d78e39c5e6d /include/linux/cxl-event.h
parentd357dd8ad2f154376e5cb930284e7bf4fe21ffaa (diff)
parentc19ac30eda3a1d14d4883de0ea214b6c5c96a9b4 (diff)
Merge remote-tracking branch 'cxl/for-6.10/cper' into cxl-for-next
Add support to send CPER records to CXL for more detailed parsing.
Diffstat (limited to 'include/linux/cxl-event.h')
-rw-r--r--include/linux/cxl-event.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h
index 0f1987fe98bb..855908792ef8 100644
--- a/include/linux/cxl-event.h
+++ b/include/linux/cxl-event.h
@@ -5,6 +5,7 @@
#include <linux/types.h>
#include <linux/uuid.h>
+#include <linux/workqueue_types.h>
/*
* Common Event Record Format
@@ -153,4 +154,29 @@ struct cxl_cper_event_rec {
union cxl_event event;
} __packed;
+struct cxl_cper_work_data {
+ enum cxl_event_type event_type;
+ struct cxl_cper_event_rec rec;
+};
+
+#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 /* _LINUX_CXL_EVENT_H */