const char *nvme_feature_to_string(enum nvme_features_id feature)
{
switch (feature) {
- case NVME_FEAT_FID_ARBITRATION: return "Arbitration";
- case NVME_FEAT_FID_POWER_MGMT: return "Power Management";
- case NVME_FEAT_FID_LBA_RANGE: return "LBA Range Type";
- case NVME_FEAT_FID_TEMP_THRESH: return "Temperature Threshold";
- case NVME_FEAT_FID_ERR_RECOVERY:return "Error Recovery";
- case NVME_FEAT_FID_VOLATILE_WC: return "Volatile Write Cache";
- case NVME_FEAT_FID_NUM_QUEUES: return "Number of Queues";
- case NVME_FEAT_FID_IRQ_COALESCE:return "Interrupt Coalescing";
- case NVME_FEAT_FID_IRQ_CONFIG: return "Interrupt Vector Configuration";
- case NVME_FEAT_FID_WRITE_ATOMIC:return "Write Atomicity Normal";
- case NVME_FEAT_FID_ASYNC_EVENT: return "Async Event Configuration";
- case NVME_FEAT_FID_AUTO_PST: return "Autonomous Power State Transition";
- case NVME_FEAT_FID_HOST_MEM_BUF:return "Host Memory Buffer";
- case NVME_FEAT_FID_TIMESTAMP: return "Timestamp";
- case NVME_FEAT_FID_KATO: return "Keep Alive Timer";
- case NVME_FEAT_FID_HCTM: return "Host Controlled Thermal Management";
- case NVME_FEAT_FID_NOPSC: return "Non-Operational Power State Config";
- case NVME_FEAT_FID_RRL: return "Read Recovery Level";
- case NVME_FEAT_FID_PLM_CONFIG: return "Predictable Latency Mode Config";
- case NVME_FEAT_FID_PLM_WINDOW: return "Predictable Latency Mode Window";
+ case NVME_FEAT_FID_ARBITRATION: return "Arbitration";
+ case NVME_FEAT_FID_POWER_MGMT: return "Power Management";
+ case NVME_FEAT_FID_LBA_RANGE: return "LBA Range Type";
+ case NVME_FEAT_FID_TEMP_THRESH: return "Temperature Threshold";
+ case NVME_FEAT_FID_ERR_RECOVERY: return "Error Recovery";
+ case NVME_FEAT_FID_VOLATILE_WC: return "Volatile Write Cache";
+ case NVME_FEAT_FID_NUM_QUEUES: return "Number of Queues";
+ case NVME_FEAT_FID_IRQ_COALESCE: return "Interrupt Coalescing";
+ case NVME_FEAT_FID_IRQ_CONFIG: return "Interrupt Vector Configuration";
+ case NVME_FEAT_FID_WRITE_ATOMIC: return "Write Atomicity Normal";
+ case NVME_FEAT_FID_ASYNC_EVENT: return "Async Event Configuration";
+ case NVME_FEAT_FID_AUTO_PST: return "Autonomous Power State Transition";
+ case NVME_FEAT_FID_HOST_MEM_BUF: return "Host Memory Buffer";
+ case NVME_FEAT_FID_TIMESTAMP: return "Timestamp";
+ case NVME_FEAT_FID_KATO: return "Keep Alive Timer";
+ case NVME_FEAT_FID_HCTM: return "Host Controlled Thermal Management";
+ case NVME_FEAT_FID_NOPSC: return "Non-Operational Power State Config";
+ case NVME_FEAT_FID_RRL: return "Read Recovery Level";
+ case NVME_FEAT_FID_PLM_CONFIG: return "Predictable Latency Mode Config";
+ case NVME_FEAT_FID_PLM_WINDOW: return "Predictable Latency Mode Window";
case NVME_FEAT_FID_LBA_STS_INTERVAL: return "LBA Status Interval";
case NVME_FEAT_FID_HOST_BEHAVIOR: return "Host Behavior";
- case NVME_FEAT_FID_SANITIZE: return "Sanitize";
+ case NVME_FEAT_FID_SANITIZE: return "Sanitize";
case NVME_FEAT_FID_ENDURANCE_EVT_CFG: return "Endurance Event Group Configuration";
case NVME_FEAT_FID_IOCS_PROFILE: return "I/O Command Set Profile";
case NVME_FEAT_FID_SPINUP_CONTROL: return "Spinup Control";
+ case NVME_FEAT_FID_POWER_LOSS_SIGNAL: return "Power Loss Signaling Config";
+ case NVME_FEAT_FID_PERF_CHARACTERISTICS:return "Performance Characteristics";
+ case NVME_FEAT_FID_FDP: return "Flexible Direct Placement";
+ case NVME_FEAT_FID_FDP_EVENTS: return "Flexible Direct Placement Events";
+ case NVME_FEAT_FID_NS_ADMIN_LABEL: return "Namespace Admin Label";
+ case NVME_FEAT_FID_KEY_VALUE: return "Key Value Configuration";
+ case NVME_FEAT_FID_CTRL_DATA_QUEUE: return "Controller Data Queue";
+ case NVME_FEAT_FID_EMB_MGMT_CTRL_ADDR: return "Embedded Management Controller Address";
+ case NVME_FEAT_FID_HOST_MGMT_AGENT_ADDR:return "Host Management Agent Address";
case NVME_FEAT_FID_ENH_CTRL_METADATA: return "Enhanced Controller Metadata";
case NVME_FEAT_FID_CTRL_METADATA: return "Controller Metadata";
- case NVME_FEAT_FID_NS_METADATA: return "Namespace Metadata";
- case NVME_FEAT_FID_SW_PROGRESS: return "Software Progress";
- case NVME_FEAT_FID_HOST_ID: return "Host Identifier";
- case NVME_FEAT_FID_RESV_MASK: return "Reservation Notification Mask";
- case NVME_FEAT_FID_RESV_PERSIST:return "Reservation Persistence";
+ case NVME_FEAT_FID_NS_METADATA: return "Namespace Metadata";
+ case NVME_FEAT_FID_SW_PROGRESS: return "Software Progress";
+ case NVME_FEAT_FID_HOST_ID: return "Host Identifier";
+ case NVME_FEAT_FID_RESV_MASK: return "Reservation Notification Mask";
+ case NVME_FEAT_FID_RESV_PERSIST: return "Reservation Persistence";
case NVME_FEAT_FID_WRITE_PROTECT: return "Namespace Write Protect";
- case NVME_FEAT_FID_FDP: return "Flexible Direct Placement";
- case NVME_FEAT_FID_FDP_EVENTS: return "Flexible Direct Placement Events";
- case NVME_FEAT_FID_CTRL_DATA_QUEUE: return "Controller Data Queue";
+ case NVME_FEAT_FID_BP_WRITE_PROTECT: return "Boot Partition Write Protection Config";
}
/*
* We don't use the "default:" statement to let the compiler warning if