]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: add fields into identify controller data structure
authorGuan Junxiong <guanjunxiong@huawei.com>
Fri, 2 Jun 2017 07:18:18 +0000 (15:18 +0800)
committerKeith Busch <keith.busch@intel.com>
Mon, 12 Jun 2017 14:30:58 +0000 (10:30 -0400)
NVMe 1.3 inctrodues new fields such as EDSTT, DSTO, FWUG, HCTMA, MNTMT, MXTMT, SANICAP
into the idenfity controller data structure. So we add them. Note that KAS field is
included in the previous NVMe 1.2.1 spec, but not itemized in the nvme-cli.

Signed-off-by: Keith Busch <keith.busch@intel.com>
linux/nvme.h

index 397c0f1a81cbfbfbc9006402c460f573e6ebf983..b2c8dbb2244b498e32b6258d56e780f00e5972a5 100644 (file)
@@ -207,9 +207,15 @@ struct nvme_id_ctrl {
        __u8                    tnvmcap[16];
        __u8                    unvmcap[16];
        __le32                  rpmbs;
-       __u8                    rsvd316[4];
+       __le16                  edstt;
+       __u8                    dsto;
+       __u8                    fwug;
        __le16                  kas;
-       __u8                    rsvd322[190];
+       __le16                  hctma;
+       __le16                  mntmt;
+       __le16                  mxtmt;
+       __le32                  sanicap;
+       __u8                    rsvd332[180];
        __u8                    sqes;
        __u8                    cqes;
        __le16                  maxcmd;