From: Tokunori Ikegami Date: Sun, 15 Dec 2024 14:14:01 +0000 (+0900) Subject: ocp: add ocp-types.h file for OCP requirements definitions X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=22978d609d64573956145ed83dbc7995fe5c1ad7;p=users%2Fsagi%2Fnvme-cli.git ocp: add ocp-types.h file for OCP requirements definitions This is for the OCP requirement fields and bits definitions. Signed-off-by: Tokunori Ikegami --- diff --git a/plugins/ocp/ocp-types.h b/plugins/ocp/ocp-types.h new file mode 100644 index 00000000..63fa4d7d --- /dev/null +++ b/plugins/ocp/ocp-types.h @@ -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 */