Skip to content

Commit

Permalink
types: add enum for Identify I/O Command Set Data Structure
Browse files Browse the repository at this point in the history
Add the shift and mask enum for Identify I/O Command Set Data
Structure (CNS 1Ch)

Signed-off-by: Francis Pravin <[email protected]>
  • Loading branch information
francispravin5 committed Feb 26, 2025
1 parent 85eb728 commit 5c914de
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -3344,6 +3344,36 @@ struct nvme_id_iocs {
__le64 iocsc[512];
};

/**
* enum nvme_id_iocs_iocsc - This field indicates the Identify I/O Command Set Data Structure
* @NVME_IOCS_IOCSC_NVMCS_SHIFT: Shift amount to get the value of NVM Command Set
* @NVME_IOCS_IOCSC_NVMCS_MASK: Mask to get the value of NVM Command Set
* @NVME_IOCS_IOCSC_KVCS_SHIFT: Shift amount to get the value of Key Value Command Set
* @NVME_IOCS_IOCSC_KVCS_MASK: Mask to get the value of Key Value Command Set
* @NVME_IOCS_IOCSC_ZNSCS_SHIFT: Shift amount to get the value of Zoned Namespace Command
* Set
* @NVME_IOCS_IOCSC_ZNSCS_MASK: Mask to get the value of Zoned Namespace Command Set
* @NVME_IOCS_IOCSC_SLMCS_SHIFT: Shift amount to get the value of Subsystem Local Memory
* Command Set
* @NVME_IOCS_IOCSC_SLMCS_MASK: Mask to get the value of Subsystem Local Memory Command Set
* @NVME_IOCS_IOCSC_CPNCS_SHIFT: Shift amount to get the value of Computational Programs
* Namespace Command Set
* @NVME_IOCS_IOCSC_CPNCS_MASK: Mask to get the value of Computational Programs Namespace
* Command Set
*/
enum nvme_id_iocs_iocsc {
NVME_IOCS_IOCSC_NVMCS_SHIFT = 0,
NVME_IOCS_IOCSC_NVMCS_MASK = 0x1,
NVME_IOCS_IOCSC_KVCS_SHIFT = 1,
NVME_IOCS_IOCSC_KVCS_MASK = 0x1,
NVME_IOCS_IOCSC_ZNSCS_SHIFT = 2,
NVME_IOCS_IOCSC_ZNSCS_MASK = 0x1,
NVME_IOCS_IOCSC_SLMCS_SHIFT = 3,
NVME_IOCS_IOCSC_SLMCS_MASK = 0x1,
NVME_IOCS_IOCSC_CPNCS_SHIFT = 4,
NVME_IOCS_IOCSC_CPNCS_MASK = 0x1,
};

/**
* struct nvme_id_domain_attr - Domain Attributes Entry
* @dom_id: Domain Identifier
Expand Down

0 comments on commit 5c914de

Please sign in to comment.