]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
types: Add PEL reporting context port identifier type definitions
authorTokunori Ikegami <ikegami.t@gmail.com>
Mon, 26 Feb 2024 15:46:52 +0000 (00:46 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 29 Feb 2024 15:11:01 +0000 (16:11 +0100)
The changes for PEL rci port identifier type print function.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
src/nvme/types.h

index f2c1ce604bfa702493b6d091e0a74f5142e1f6c5..02d5604054b988891c53a0b18fc34c413dfa5085 100644 (file)
@@ -3374,6 +3374,18 @@ enum nvme_pel_rci {
 #define NVME_PEL_RCI_RCE(rci)  NVME_GET(rci, PEL_RCI_RCE)
 #define NVME_PEL_RCI_RSVD(rci) NVME_GET(rci, PEL_RCI_RSVD)
 
+/**
+ * enum nvme_pel_rci_rcpit - Persistent Event Log Reporting Context - Port Identifier Type
+ * @NVME_PEL_RCI_RCPIT_NOT_EXIST:      Does not already exist
+ * @NVME_PEL_RCI_RCPIT_EST_PORT:       Established by an NVM subsystem port
+ * @NVME_PEL_RCI_RCPIT_EST_ME:         Established by a Management Endpoint
+ */
+enum nvme_pel_rci_rcpit {
+       NVME_PEL_RCI_RCPIT_NOT_EXIST    = 0,
+       NVME_PEL_RCI_RCPIT_EST_PORT     = 1,
+       NVME_PEL_RCI_RCPIT_EST_ME       = 2,
+};
+
 /**
  * struct nvme_persistent_event_entry - Persistent Event
  * @etype:     Event Type