From a01146e701c1d657c33f82f523893105229e8f99 Mon Sep 17 00:00:00 2001 From: Francis Pravin Date: Thu, 8 Aug 2024 19:13:39 +0530 Subject: [PATCH] types: Add enum for Completion Condition of Get LBA status command Add enum for Completion Condition (CMPC) field of Get LBA status command. Signed-off-by: Francis Pravin --- src/nvme/types.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/nvme/types.h b/src/nvme/types.h index bb012cca..28c86829 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -5192,6 +5192,22 @@ struct nvme_lba_status { struct nvme_lba_status_desc descs[]; }; +/** + * enum nvme_lba_status_cmpc - Get LBA Status Command Completion Condition + * @NVME_LBA_STATUS_CMPC_NO_CMPC: No indication of the completion condition + * @NVME_LBA_STATUS_CMPC_INCOMPLETE: Command completed, but additional LBA Status + * Descriptor Entries are available to transfer + * or scan did not complete (if ATYPE = 10h) + * @NVME_LBA_STATUS_CMPC_COMPLETE: Completed the specified action over the number + * of LBAs specified in the Range Length field and + * transferred all available LBA Status Descriptors + */ +enum nvme_lba_status_cmpc { + NVME_LBA_STATUS_CMPC_NO_CMPC = 0x0, + NVME_LBA_STATUS_CMPC_INCOMPLETE = 0x1, + NVME_LBA_STATUS_CMPC_COMPLETE = 0x2, +}; + /** * struct nvme_feat_auto_pst - Autonomous Power State Transition * @apst_entry: See &enum nvme_apst_entry