Skip to content

Commit

Permalink
nvme.h: add struct nvme_host_mem_buf_desc and HMB flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig committed Jun 13, 2017
1 parent fdd050b commit 39673e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/linux/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 39673e1

Please sign in to comment.