Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375037
b: refs/heads/master
c: f8ebf84
h: refs/heads/master
i:
  375035: fa9a6d8
v: v3
  • Loading branch information
Vishal Verma authored and Matthew Wilcox committed Mar 27, 2013
1 parent a2ded79 commit cfe853e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13c3b0fcc8e33ba49f252378f6e7290b146042af
refs/heads/master: f8ebf8409abfdaeeb8c847381629a2a8b8e3d816
1 change: 1 addition & 0 deletions trunk/drivers/block/nvme-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ static inline void _nvme_check_size(void)
BUILD_BUG_ON(sizeof(struct nvme_create_sq) != 64);
BUILD_BUG_ON(sizeof(struct nvme_delete_queue) != 64);
BUILD_BUG_ON(sizeof(struct nvme_features) != 64);
BUILD_BUG_ON(sizeof(struct nvme_format_cmd) != 64);
BUILD_BUG_ON(sizeof(struct nvme_command) != 64);
BUILD_BUG_ON(sizeof(struct nvme_id_ctrl) != 4096);
BUILD_BUG_ON(sizeof(struct nvme_id_ns) != 4096);
Expand Down
12 changes: 12 additions & 0 deletions trunk/include/linux/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,16 @@ struct nvme_download_firmware {
__u32 rsvd12[4];
};

struct nvme_format_cmd {
__u8 opcode;
__u8 flags;
__u16 command_id;
__le32 nsid;
__u64 rsvd2[4];
__le32 cdw10;
__u32 rsvd11[5];
};

struct nvme_command {
union {
struct nvme_common_command common;
Expand All @@ -403,6 +413,7 @@ struct nvme_command {
struct nvme_create_sq create_sq;
struct nvme_delete_queue delete_queue;
struct nvme_download_firmware dlfw;
struct nvme_format_cmd format;
struct nvme_dsm_cmd dsm;
};
};
Expand All @@ -420,6 +431,7 @@ enum {
NVME_SC_FUSED_FAIL = 0x9,
NVME_SC_FUSED_MISSING = 0xa,
NVME_SC_INVALID_NS = 0xb,
NVME_SC_CMD_SEQ_ERROR = 0xc,
NVME_SC_LBA_RANGE = 0x80,
NVME_SC_CAP_EXCEEDED = 0x81,
NVME_SC_NS_NOT_READY = 0x82,
Expand Down

0 comments on commit cfe853e

Please sign in to comment.