]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
ocp: add ocp-types.h file for OCP requirements definitions
authorTokunori Ikegami <ikegami.t@gmail.com>
Sun, 15 Dec 2024 14:14:01 +0000 (23:14 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 16 Dec 2024 16:04:13 +0000 (17:04 +0100)
This is for the OCP requirement fields and bits definitions.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
plugins/ocp/ocp-types.h [new file with mode: 0644]

diff --git a/plugins/ocp/ocp-types.h b/plugins/ocp/ocp-types.h
new file mode 100644 (file)
index 0000000..63fa4d7
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+#ifndef OCP_TYPES_H
+#define OCP_TYPES_H
+
+#define OCP_GET(value, name) NVME_GET(value, OCP_##name)
+#define OCP_SET(value, name) NVME_SET(value, OCP_##name)
+
+enum nvme_ocp_enable_ieee1667_silo {
+       NVME_OCP_ENABLE_IEEE1667_SILO_SHIFT     = 31,
+       NVME_OCP_ENABLE_IEEE1667_SILO_MASK      = 1,
+};
+
+#endif /* OCP_TYPES_H */