Skip to content

Commit e830543

Browse files
committed
types.h: Add missing enum for power state descriptor
1. Add enum and description for not reported power scale. 2. Add enum and description for power workload. Signed-off-by: Ankit Kumar <[email protected]>
1 parent 2657a41 commit e830543

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/nvme/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,12 @@ enum nvme_psd_flags {
633633
* enum nvme_psd_ps - Known values for &struct nvme_psd %ips and %aps. Use with
634634
* nvme_psd_power_scale() to extract the power scale field
635635
* to match this enum.
636+
* @NVME_PSD_PS_NOT_REPORTED: Not reported
636637
* @NVME_PSD_PS_100_MICRO_WATT: 0.0001 watt scale
637638
* @NVME_PSD_PS_10_MILLI_WATT: 0.01 watt scale
638639
*/
639640
enum nvme_psd_ps {
641+
NVME_PSD_PS_NOT_REPORTED = 0,
640642
NVME_PSD_PS_100_MICRO_WATT = 1,
641643
NVME_PSD_PS_10_MILLI_WATT = 2,
642644
};
@@ -655,6 +657,7 @@ static inline unsigned int nvme_psd_power_scale(__u8 ps)
655657
* Feature (see &struct nvme_psd.apw) to inform the
656658
* NVM subsystem or indicate the conditions for the
657659
* active power level.
660+
* @NVME_PSD_WORKLOAD_NP: The workload is unkown or not provided.
658661
* @NVME_PSD_WORKLOAD_1: Extended Idle Period with a Burst of Random Write
659662
* consists of five minutes of idle followed by
660663
* thirty-two random write commands of size 1 MiB
@@ -670,6 +673,7 @@ static inline unsigned int nvme_psd_power_scale(__u8 ps)
670673
* times during the workload.
671674
*/
672675
enum nvme_psd_workload {
676+
NVME_PSD_WORKLOAD_NP = 0,
673677
NVME_PSD_WORKLOAD_1 = 1,
674678
NVME_PSD_WORKLOAD_2 = 2,
675679
};

0 commit comments

Comments
 (0)