Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: Add enum for Completion Condition of Get LBA status command #879

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
igaw marked this conversation as resolved.
Show resolved Hide resolved
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