diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-09 15:36:28 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-13 11:45:33 +0200 |
commit | 39673e1995381b09a63cc7e9d0aea7cf871cb359 (patch) | |
tree | fa1f5fbc9f46303cc909a53d91a680d3345cdea5 /include | |
parent | fdd050b5b3c96813ae6756ed68157d32ba31b9f2 (diff) | |
download | linux-39673e1995381b09a63cc7e9d0aea7cf871cb359.tar.bz2 |
nvme.h: add struct nvme_host_mem_buf_desc and HMB flags
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvme.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index e400a69fa1d3..180a2fdbcaef 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -587,6 +587,11 @@ struct nvme_feat_auto_pst { __le64 entries[32]; }; +enum { + NVME_HOST_MEM_ENABLE = (1 << 0), + NVME_HOST_MEM_RETURN = (1 << 1), +}; + /* Admin commands */ enum nvme_admin_opcode { @@ -671,6 +676,12 @@ struct nvme_features { __u32 rsvd12[4]; }; +struct nvme_host_mem_buf_desc { + __le64 addr; + __le32 size; + __u32 rsvd; +}; + struct nvme_create_cq { __u8 opcode; __u8 flags; |