Blob Blame History Raw
From f491884513bfba7bb007428e4664c2dfda21d424 Mon Sep 17 00:00:00 2001
From: Maurizio Lombardi <mlombard@redhat.com>
Date: Wed, 29 Jun 2022 17:33:10 +0200
Subject: [PATCH 2/7] Add new events support in PEL

Add two new events support in header file.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
---
 linux/nvme.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/linux/nvme.h b/linux/nvme.h
index 7a925c7a..8b4c6833 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -862,6 +862,12 @@ struct nvme_thermal_exc_event {
     __u8 	threshold;
 };
 
+/* persistent event type 0Bh */
+struct nvme_set_feature_event {
+	__le32	layout;
+	__le32	cdw_mem[0];
+};
+
 /* persistent event entry head */
 struct nvme_persistent_event_entry_head {
 	__u8	etype;
@@ -909,6 +915,8 @@ enum nvme_persistent_event_types {
     NVME_FORMAT_COMPLETION_EVENT    = 0x08,
     NVME_SANITIZE_START_EVENT       = 0x09,
     NVME_SANITIZE_COMPLETION_EVENT  = 0x0a,
+    NVME_SET_FEATURE_EVENT	    = 0x0b,
+    NVME_TELEMETRY_CRT		    = 0x0c,
     NVME_THERMAL_EXCURSION_EVENT    = 0x0d
 };
 
-- 
2.31.1