diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvme.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 2a2c535c834..9490a00529f 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h | |||
| @@ -57,6 +57,18 @@ enum { | |||
| 57 | NVME_CSTS_SHST_CMPLT = 2 << 2, | 57 | NVME_CSTS_SHST_CMPLT = 2 << 2, |
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | struct nvme_id_power_state { | ||
| 61 | __le16 max_power; /* centiwatts */ | ||
| 62 | __u16 rsvd2; | ||
| 63 | __le32 entry_lat; /* microseconds */ | ||
| 64 | __le32 exit_lat; /* microseconds */ | ||
| 65 | __u8 read_tput; | ||
| 66 | __u8 read_lat; | ||
| 67 | __u8 write_tput; | ||
| 68 | __u8 write_lat; | ||
| 69 | __u8 rsvd16[16]; | ||
| 70 | }; | ||
| 71 | |||
| 60 | #define NVME_VS(major, minor) (major << 16 | minor) | 72 | #define NVME_VS(major, minor) (major << 16 | minor) |
| 61 | 73 | ||
| 62 | struct nvme_id_ctrl { | 74 | struct nvme_id_ctrl { |
| @@ -65,9 +77,11 @@ struct nvme_id_ctrl { | |||
| 65 | char sn[20]; | 77 | char sn[20]; |
| 66 | char mn[40]; | 78 | char mn[40]; |
| 67 | char fr[8]; | 79 | char fr[8]; |
| 68 | __le32 nn; | ||
| 69 | __u8 rab; | 80 | __u8 rab; |
| 70 | __u8 rsvd77[178]; | 81 | __u8 ieee[3]; |
| 82 | __u8 mic; | ||
| 83 | __u8 mdts; | ||
| 84 | __u8 rsvd78[178]; | ||
| 71 | __le16 oacs; | 85 | __le16 oacs; |
| 72 | __u8 acl; | 86 | __u8 acl; |
| 73 | __u8 aerl; | 87 | __u8 aerl; |
| @@ -76,15 +90,18 @@ struct nvme_id_ctrl { | |||
| 76 | __u8 elpe; | 90 | __u8 elpe; |
| 77 | __u8 npss; | 91 | __u8 npss; |
| 78 | __u8 rsvd264[248]; | 92 | __u8 rsvd264[248]; |
| 79 | __le64 psd[32]; | 93 | __u8 sqes; |
| 94 | __u8 cqes; | ||
| 95 | __u8 rsvd514[2]; | ||
| 96 | __le32 nn; | ||
| 80 | __le16 oncs; | 97 | __le16 oncs; |
| 81 | __le16 fuses; | 98 | __le16 fuses; |
| 82 | __u8 fna; | 99 | __u8 fna; |
| 83 | __u8 vwc; | 100 | __u8 vwc; |
| 84 | __le16 awun; | 101 | __le16 awun; |
| 85 | __le16 awupf; | 102 | __le16 awupf; |
| 86 | __u8 rsvd778[246]; | 103 | __u8 rsvd530[1518]; |
| 87 | __u8 cmdset[2048]; | 104 | struct nvme_id_power_state psd[32]; |
| 88 | __u8 vs[1024]; | 105 | __u8 vs[1024]; |
| 89 | }; | 106 | }; |
| 90 | 107 | ||
