Skip to content

Commit

Permalink
types: Add enum for Completion Condition of Get LBA status command
Browse files Browse the repository at this point in the history
Add enum for Completion Condition (CMPC) field of Get LBA
status command.

Signed-off-by: Francis Pravin <francis.p@samsung.com>
  • Loading branch information
francispravin5 authored and igaw committed Aug 9, 2024
1 parent 600bbf6 commit df12de6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df12de6

Please sign in to comment.