diff options
author | Keith Busch <keith.busch@intel.com> | 2013-06-25 17:15:23 -0400 |
---|---|---|
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | 2013-09-03 16:32:26 -0400 |
commit | 685585c25e8269cc355b59d1cd6fc65b8c5c4878 (patch) | |
tree | a718a710d6b6e3f7f3e1f21f3bf9d6c2123f7b2e /include | |
parent | 42c7768316905dc64ad22256d6cbff273e3fbf55 (diff) |
NVMe: Update nvme_id_power_state with latest spec
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/nvme.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/linux/nvme.h b/include/uapi/linux/nvme.h index 31ed566f81f6..989c04e0c563 100644 --- a/include/uapi/linux/nvme.h +++ b/include/uapi/linux/nvme.h | |||
@@ -23,7 +23,8 @@ | |||
23 | 23 | ||
24 | struct nvme_id_power_state { | 24 | struct nvme_id_power_state { |
25 | __le16 max_power; /* centiwatts */ | 25 | __le16 max_power; /* centiwatts */ |
26 | __u16 rsvd2; | 26 | __u8 rsvd2; |
27 | __u8 flags; | ||
27 | __le32 entry_lat; /* microseconds */ | 28 | __le32 entry_lat; /* microseconds */ |
28 | __le32 exit_lat; /* microseconds */ | 29 | __le32 exit_lat; /* microseconds */ |
29 | __u8 read_tput; | 30 | __u8 read_tput; |
@@ -33,6 +34,11 @@ struct nvme_id_power_state { | |||
33 | __u8 rsvd16[16]; | 34 | __u8 rsvd16[16]; |
34 | }; | 35 | }; |
35 | 36 | ||
37 | enum { | ||
38 | NVME_PS_FLAGS_MAX_POWER_SCALE = 1 << 0, | ||
39 | NVME_PS_FLAGS_NON_OP_STATE = 1 << 1, | ||
40 | }; | ||
41 | |||
36 | struct nvme_id_ctrl { | 42 | struct nvme_id_ctrl { |
37 | __le16 vid; | 43 | __le16 vid; |
38 | __le16 ssvid; | 44 | __le16 ssvid; |