diff options
author | Matias Bjørling <m@bjorling.me> | 2015-12-06 11:25:47 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-07 09:14:19 -0700 |
commit | 57b4bd06ff0372fe1e3617889c4b37fbd500364a (patch) | |
tree | fc6b65cb566f06307aa992232c20b67cd5938a0a /include/linux/lightnvm.h | |
parent | 437f8f9a1e923deab6c61822c36f29f4a2198cfe (diff) | |
download | lwn-57b4bd06ff0372fe1e3617889c4b37fbd500364a.tar.gz lwn-57b4bd06ff0372fe1e3617889c4b37fbd500364a.zip |
lightnvm: comments on constants
It is not obvious what NVM_IO_* and NVM_BLK_T_* are used for. Make sure
to comment them appropriately as the other constants.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index c6916aec43b6..935ef3844c05 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -50,9 +50,16 @@ enum { NVM_IO_DUAL_ACCESS = 0x1, NVM_IO_QUAD_ACCESS = 0x2, + /* NAND Access Modes */ NVM_IO_SUSPEND = 0x80, NVM_IO_SLC_MODE = 0x100, NVM_IO_SCRAMBLE_DISABLE = 0x200, + + /* Block Types */ + NVM_BLK_T_FREE = 0x0, + NVM_BLK_T_BAD = 0x1, + NVM_BLK_T_DEV = 0x2, + NVM_BLK_T_HOST = 0x4, }; struct nvm_id_group { |