diff options
author | Javier González <javier@cnexlabs.com> | 2018-03-30 00:05:12 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-29 17:29:09 -0600 |
commit | f1d4e8121f3fc25f9be94c6de6b8f5f788ad0265 (patch) | |
tree | e63647ba5652bbc5a1502a486a0df459df2e2b82 /include | |
parent | 3cb98f84d368b3bbe07a2d5bf938e31f74567620 (diff) | |
download | linux-f1d4e8121f3fc25f9be94c6de6b8f5f788ad0265.tar.bz2 |
lightnvm: add shorten OCSSD version in geo
Create a shorten version to use in the generic geometry.
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/lightnvm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index 7ed8b92d6744..a073c0c76260 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -23,6 +23,11 @@ enum { #define NVM_LUN_BITS (8) #define NVM_CH_BITS (7) +enum { + NVM_OCSSD_SPEC_12 = 12, + NVM_OCSSD_SPEC_20 = 20, +}; + struct ppa_addr { /* Generic structure for all addresses */ union { @@ -266,6 +271,9 @@ struct nvm_geo { u8 major_ver_id; u8 minor_ver_id; + /* kernel short version */ + u8 version; + /* instance specific geometry */ int nr_chnls; int nr_luns; /* per channel */ |