aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2014-05-09 22:45:08 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2014-06-03 11:29:31 -0400
commit23372af15e638bf3ce0764554db3b5e58bf7ceb8 (patch)
tree038d00ce4d4b2e43445648ec8b3873fe6cf14383
parent21bd78bcf4208e84deab0d34f9d4e034d0580d0c (diff)
NVMe: Update data structures for NVMe 1.2
Include changes from the current set of ratified Technical Proposals for NVMe 1.2. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
-rw-r--r--include/uapi/linux/nvme.h26
1 files changed, 21 insertions, 5 deletions
diff --git a/include/uapi/linux/nvme.h b/include/uapi/linux/nvme.h
index e74da782d69c..a6fb2a360577 100644
--- a/include/uapi/linux/nvme.h
+++ b/include/uapi/linux/nvme.h
@@ -27,7 +27,12 @@ struct nvme_id_power_state {
27 __u8 read_lat; 27 __u8 read_lat;
28 __u8 write_tput; 28 __u8 write_tput;
29 __u8 write_lat; 29 __u8 write_lat;
30 __u8 rsvd16[16]; 30 __le16 idle_power;
31 __u8 idle_scale;
32 __u8 rsvd19;
33 __le16 active_power;
34 __u8 active_work_scale;
35 __u8 rsvd23[9];
31}; 36};
32 37
33enum { 38enum {
@@ -46,7 +51,8 @@ struct nvme_id_ctrl {
46 __u8 mic; 51 __u8 mic;
47 __u8 mdts; 52 __u8 mdts;
48 __u16 cntlid; 53 __u16 cntlid;
49 __u8 rsvd80[176]; 54 __u32 ver;
55 __u8 rsvd84[172];
50 __le16 oacs; 56 __le16 oacs;
51 __u8 acl; 57 __u8 acl;
52 __u8 aerl; 58 __u8 aerl;
@@ -56,7 +62,9 @@ struct nvme_id_ctrl {
56 __u8 npss; 62 __u8 npss;
57 __u8 avscc; 63 __u8 avscc;
58 __u8 apsta; 64 __u8 apsta;
59 __u8 rsvd266[246]; 65 __le16 wctemp;
66 __le16 cctemp;
67 __u8 rsvd270[242];
60 __u8 sqes; 68 __u8 sqes;
61 __u8 cqes; 69 __u8 cqes;
62 __u8 rsvd514[2]; 70 __u8 rsvd514[2];
@@ -102,7 +110,12 @@ struct nvme_id_ns {
102 __u8 dps; 110 __u8 dps;
103 __u8 nmic; 111 __u8 nmic;
104 __u8 rescap; 112 __u8 rescap;
105 __u8 rsvd32[88]; 113 __u8 fpi;
114 __u8 rsvd33;
115 __le16 nawun;
116 __le16 nawupf;
117 __le16 nacwu;
118 __u8 rsvd40[80];
106 __u8 eui64[8]; 119 __u8 eui64[8];
107 struct nvme_lbaf lbaf[16]; 120 struct nvme_lbaf lbaf[16];
108 __u8 rsvd192[192]; 121 __u8 rsvd192[192];
@@ -134,7 +147,10 @@ struct nvme_smart_log {
134 __u8 unsafe_shutdowns[16]; 147 __u8 unsafe_shutdowns[16];
135 __u8 media_errors[16]; 148 __u8 media_errors[16];
136 __u8 num_err_log_entries[16]; 149 __u8 num_err_log_entries[16];
137 __u8 rsvd192[320]; 150 __le32 warning_temp_time;
151 __le32 critical_comp_time;
152 __le16 temp_sensor[8];
153 __u8 rsvd216[296];
138}; 154};
139 155
140enum { 156enum {