nvme: add fields into identify controller data structure
authorGuan Junxiong <guanjunxiong@huawei.com>
Tue, 13 Jun 2017 01:26:15 +0000 (09:26 +0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:30:26 +0000 (14:30 +0200)
Add the new to NVMe 1.3 fields EDSTT, DSTO, FWUG, HCTMA, MNTMT, MXTMT,
and SANICAP into the idenfity controller data structure.

Signed-off-by: Guan Junxiong <guanjunxiong@huawei.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/nvme.h

index acb484935603b1ae3b379cd6f762c843364b6f0b..6d476f242ee60f5c3a6bbd3e6c52363e06795d6f 100644 (file)
@@ -209,9 +209,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;