aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorMatias Bjørling <mb@lightnvm.io>2018-03-30 00:05:02 +0200
committerJens Axboe <axboe@kernel.dk>2018-03-29 17:29:09 -0600
commit62771fe0aa28b5d329f3e53a2e0f805f73433752 (patch)
tree9d3010c12b34e2e4963f026d6bbad662ee5b8c49 /include/linux/lightnvm.h
parentlightnvm: flatten nvm_id_group into nvm_id (diff)
downloadlinux-dev-62771fe0aa28b5d329f3e53a2e0f805f73433752.tar.xz
linux-dev-62771fe0aa28b5d329f3e53a2e0f805f73433752.zip
lightnvm: add 2.0 geometry identification
Implement the geometry data structures for 2.0 and enable a drive to be identified as one, including exposing the appropriate 2.0 sysfs entries. Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 94b704a8d83d..b717c000b712 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -184,10 +184,9 @@ struct nvm_id {
u16 csecs;
u16 sos;
- u16 ws_min;
- u16 ws_opt;
- u16 ws_seq;
- u16 ws_per_chk;
+ u32 ws_min;
+ u32 ws_opt;
+ u32 mw_cunits;
u32 trdt;
u32 trdm;
@@ -199,6 +198,10 @@ struct nvm_id {
u32 mccap;
u16 cpar;
+ /* calculated values */
+ u16 ws_seq;
+ u16 ws_per_chk;
+
/* 1.2 compatibility */
u8 mtype;
u8 fmtype;