Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286312
b: refs/heads/master
c: 010e646
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox committed Nov 4, 2011
1 parent cdab126 commit b0f59dc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1938f6e1ee1583c87ec74dc406fdd8694e99ac8
refs/heads/master: 010e646ba2fdfc558048a97da746381c35836280
27 changes: 22 additions & 5 deletions trunk/include/linux/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ enum {
NVME_CSTS_SHST_CMPLT = 2 << 2,
};

struct nvme_id_power_state {
__le16 max_power; /* centiwatts */
__u16 rsvd2;
__le32 entry_lat; /* microseconds */
__le32 exit_lat; /* microseconds */
__u8 read_tput;
__u8 read_lat;
__u8 write_tput;
__u8 write_lat;
__u8 rsvd16[16];
};

#define NVME_VS(major, minor) (major << 16 | minor)

struct nvme_id_ctrl {
Expand All @@ -65,9 +77,11 @@ struct nvme_id_ctrl {
char sn[20];
char mn[40];
char fr[8];
__le32 nn;
__u8 rab;
__u8 rsvd77[178];
__u8 ieee[3];
__u8 mic;
__u8 mdts;
__u8 rsvd78[178];
__le16 oacs;
__u8 acl;
__u8 aerl;
Expand All @@ -76,15 +90,18 @@ struct nvme_id_ctrl {
__u8 elpe;
__u8 npss;
__u8 rsvd264[248];
__le64 psd[32];
__u8 sqes;
__u8 cqes;
__u8 rsvd514[2];
__le32 nn;
__le16 oncs;
__le16 fuses;
__u8 fna;
__u8 vwc;
__le16 awun;
__le16 awupf;
__u8 rsvd778[246];
__u8 cmdset[2048];
__u8 rsvd530[1518];
struct nvme_id_power_state psd[32];
__u8 vs[1024];
};

Expand Down

0 comments on commit b0f59dc

Please sign in to comment.