提交 685585c2 编写于 作者: K Keith Busch 提交者: Matthew Wilcox

NVMe: Update nvme_id_power_state with latest spec

Signed-off-by: NKeith Busch <keith.busch@intel.com>
Signed-off-by: NMatthew Wilcox <matthew.r.wilcox@intel.com>
上级 42c77683
......@@ -23,7 +23,8 @@
struct nvme_id_power_state {
__le16 max_power; /* centiwatts */
__u16 rsvd2;
__u8 rsvd2;
__u8 flags;
__le32 entry_lat; /* microseconds */
__le32 exit_lat; /* microseconds */
__u8 read_tput;
......@@ -33,6 +34,11 @@ struct nvme_id_power_state {
__u8 rsvd16[16];
};
enum {
NVME_PS_FLAGS_MAX_POWER_SCALE = 1 << 0,
NVME_PS_FLAGS_NON_OP_STATE = 1 << 1,
};
struct nvme_id_ctrl {
__le16 vid;
__le16 ssvid;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册