Skip to content

Commit 020b979

Browse files
francispravin5igaw
authored andcommitted
types: add enum for Identify I/O Command Set Data Structure
Add the shift and mask enum for Identify I/O Command Set Data Structure (CNS 1Ch) Signed-off-by: Francis Pravin <francis.p@samsung.com>
1 parent 85eb728 commit 020b979

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/nvme/types.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,6 +3344,36 @@ struct nvme_id_iocs {
33443344
__le64 iocsc[512];
33453345
};
33463346

3347+
/**
3348+
* enum nvme_id_iocs_iocsc - This field indicates the Identify I/O Command Set Data Structure
3349+
* @NVME_IOCS_IOCSC_NVMCS_SHIFT: Shift amount to get the value of NVM Command Set
3350+
* @NVME_IOCS_IOCSC_NVMCS_MASK: Mask to get the value of NVM Command Set
3351+
* @NVME_IOCS_IOCSC_KVCS_SHIFT: Shift amount to get the value of Key Value Command Set
3352+
* @NVME_IOCS_IOCSC_KVCS_MASK: Mask to get the value of Key Value Command Set
3353+
* @NVME_IOCS_IOCSC_ZNSCS_SHIFT: Shift amount to get the value of Zoned Namespace Command
3354+
* Set
3355+
* @NVME_IOCS_IOCSC_ZNSCS_MASK: Mask to get the value of Zoned Namespace Command Set
3356+
* @NVME_IOCS_IOCSC_SLMCS_SHIFT: Shift amount to get the value of Subsystem Local Memory
3357+
* Command Set
3358+
* @NVME_IOCS_IOCSC_SLMCS_MASK: Mask to get the value of Subsystem Local Memory Command Set
3359+
* @NVME_IOCS_IOCSC_CPNCS_SHIFT: Shift amount to get the value of Computational Programs
3360+
* Namespace Command Set
3361+
* @NVME_IOCS_IOCSC_CPNCS_MASK: Mask to get the value of Computational Programs Namespace
3362+
* Command Set
3363+
*/
3364+
enum nvme_id_iocs_iocsc {
3365+
NVME_IOCS_IOCSC_NVMCS_SHIFT = 0,
3366+
NVME_IOCS_IOCSC_NVMCS_MASK = 0x1,
3367+
NVME_IOCS_IOCSC_KVCS_SHIFT = 1,
3368+
NVME_IOCS_IOCSC_KVCS_MASK = 0x1,
3369+
NVME_IOCS_IOCSC_ZNSCS_SHIFT = 2,
3370+
NVME_IOCS_IOCSC_ZNSCS_MASK = 0x1,
3371+
NVME_IOCS_IOCSC_SLMCS_SHIFT = 3,
3372+
NVME_IOCS_IOCSC_SLMCS_MASK = 0x1,
3373+
NVME_IOCS_IOCSC_CPNCS_SHIFT = 4,
3374+
NVME_IOCS_IOCSC_CPNCS_MASK = 0x1,
3375+
};
3376+
33473377
/**
33483378
* struct nvme_id_domain_attr - Domain Attributes Entry
33493379
* @dom_id: Domain Identifier

0 commit comments

Comments
 (0)