Skip to content

Commit

Permalink
types: add NVMe 2.1 identify power state descriptor fields
Browse files Browse the repository at this point in the history
Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Dec 25, 2024
1 parent f2b9bd3 commit 32e521a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,13 @@ enum nvme_psd_workload {
* Bits 2-0: Active Power Workload(APW) indicates the workload
* used to calculate maximum power for this power state.
* See &enum nvme_psd_workload for decoding this field.
* @rsvd23: Reserved
* @epfrt: Emergency power fail recovery time
* @fqvt: Forced quiescence vault time
* @epfvt: Emergency power fail vault time
* @epfr_fqv_ts: Bits 7-4: Forced quiescence vault time scale
* Bits 3-0: Emergency power fail recovery time scale
* @epfvts: Emergency power fail vault time scale
* @rsvd28: Reserved
*/
struct nvme_id_psd {
__le16 mp;
Expand All @@ -1162,7 +1168,12 @@ struct nvme_id_psd {
__u8 rsvd19;
__le16 actp;
__u8 apws;
__u8 rsvd23[9];
__u8 epfrt;
__u8 fqvt;
__u8 epfvt;
__u8 epfr_fqv_ts;
__u8 epfvts;
__u8 rsvd28[4];
};

/**
Expand Down

0 comments on commit 32e521a

Please sign in to comment.