summaryrefslogtreecommitdiffstats
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-11-02 10:28:12 -0700
committerJens Axboe <axboe@kernel.dk>2018-12-07 22:26:55 -0700
commit12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5 (patch)
tree74ea0f0efa02ce1f7d568f13bf197e6842cfcb7b /include/linux/nvme.h
parent103e515efa89be33d04e45aae82de136f0c49865 (diff)
downloadlinux-12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5.tar.gz
linux-12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5.tar.bz2
linux-12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5.zip
nvme: introduce ctrl attributes enumeration
We are growing more controller attributes, so use a proper enumeration for it. For now just add the 128-bit hostid which we support. Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 818dbe9331be..753c83a5c01f 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -198,6 +198,10 @@ enum {
NVME_PS_FLAGS_NON_OP_STATE = 1 << 1,
};
+enum nvme_ctrl_attr {
+ NVME_CTRL_ATTR_HID_128_BIT = (1 << 0),
+};
+
struct nvme_id_ctrl {
__le16 vid;
__le16 ssvid;