projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42c7768
)
NVMe: Update nvme_id_power_state with latest spec
author
Keith Busch
<keith.busch@intel.com>
Tue, 25 Jun 2013 21:15:23 +0000
(15:15 -0600)
committer
Matthew Wilcox
<matthew.r.wilcox@intel.com>
Tue, 3 Sep 2013 20:32:26 +0000
(16:32 -0400)
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
include/uapi/linux/nvme.h
patch
|
blob
|
history
diff --git
a/include/uapi/linux/nvme.h
b/include/uapi/linux/nvme.h
index 31ed566f81f6ed043db0c31680ae86ad33b44e93..989c04e0c56311c53fe75d1788699acd61621fc2 100644
(file)
--- a/
include/uapi/linux/nvme.h
+++ b/
include/uapi/linux/nvme.h
@@
-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;