mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
lightnvm: pblk: implement get log report chunk
In preparation of pblk supporting 2.0, implement the get log report chunk in pblk. Also, define the chunk states as given in the 2.0 spec. 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>
This commit is contained in:
parent
bb845ae45c
commit
32ef9412c1
4 changed files with 298 additions and 82 deletions
|
@ -232,6 +232,19 @@ struct nvm_addrf {
|
|||
u64 rsv_mask[2];
|
||||
};
|
||||
|
||||
enum {
|
||||
/* Chunk states */
|
||||
NVM_CHK_ST_FREE = 1 << 0,
|
||||
NVM_CHK_ST_CLOSED = 1 << 1,
|
||||
NVM_CHK_ST_OPEN = 1 << 2,
|
||||
NVM_CHK_ST_OFFLINE = 1 << 3,
|
||||
|
||||
/* Chunk types */
|
||||
NVM_CHK_TP_W_SEQ = 1 << 0,
|
||||
NVM_CHK_TP_W_RAN = 1 << 1,
|
||||
NVM_CHK_TP_SZ_SPEC = 1 << 4,
|
||||
};
|
||||
|
||||
/*
|
||||
* Note: The structure size is linked to nvme_nvm_chk_meta such that the same
|
||||
* buffer can be used when converting from little endian to cpu addressing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue