Skip to contentSkip to conversation

NVMe: Update nvme_id_power_state with latest spec

PATCH New Keith Busch 1 participant 1 message Jun 25, 2013 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NVMe: Update nvme_id_power_state with latest spec

Signed-off-by Keith Busch <keith.busch at intel.com>
---
 include/uapi/linux/nvme.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
include/uapi/linux/nvme.h +7 -1
index 31ed566..989c04e 100644
@@ -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;
Signature · 1 line
1.7.0.4