diff options
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r-- | include/linux/lightnvm.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index f4a84694e5e2..0106984400bc 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h | |||
@@ -86,8 +86,8 @@ struct nvm_chk_meta; | |||
86 | typedef int (nvm_id_fn)(struct nvm_dev *); | 86 | typedef int (nvm_id_fn)(struct nvm_dev *); |
87 | typedef int (nvm_op_bb_tbl_fn)(struct nvm_dev *, struct ppa_addr, u8 *); | 87 | typedef int (nvm_op_bb_tbl_fn)(struct nvm_dev *, struct ppa_addr, u8 *); |
88 | typedef int (nvm_op_set_bb_fn)(struct nvm_dev *, struct ppa_addr *, int, int); | 88 | typedef int (nvm_op_set_bb_fn)(struct nvm_dev *, struct ppa_addr *, int, int); |
89 | typedef int (nvm_get_chk_meta_fn)(struct nvm_dev *, struct nvm_chk_meta *, | 89 | typedef int (nvm_get_chk_meta_fn)(struct nvm_dev *, sector_t, int, |
90 | sector_t, int); | 90 | struct nvm_chk_meta *); |
91 | typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *); | 91 | typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *); |
92 | typedef int (nvm_submit_io_sync_fn)(struct nvm_dev *, struct nvm_rq *); | 92 | typedef int (nvm_submit_io_sync_fn)(struct nvm_dev *, struct nvm_rq *); |
93 | typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *); | 93 | typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *); |
@@ -532,18 +532,13 @@ extern struct nvm_dev *nvm_alloc_dev(int); | |||
532 | extern int nvm_register(struct nvm_dev *); | 532 | extern int nvm_register(struct nvm_dev *); |
533 | extern void nvm_unregister(struct nvm_dev *); | 533 | extern void nvm_unregister(struct nvm_dev *); |
534 | 534 | ||
535 | 535 | extern int nvm_get_chunk_meta(struct nvm_tgt_dev *, struct ppa_addr, | |
536 | extern int nvm_get_chunk_meta(struct nvm_tgt_dev *tgt_dev, | 536 | int, struct nvm_chk_meta *); |
537 | struct nvm_chk_meta *meta, struct ppa_addr ppa, | 537 | extern int nvm_set_chunk_meta(struct nvm_tgt_dev *, struct ppa_addr *, |
538 | int nchks); | ||
539 | |||
540 | extern int nvm_set_tgt_bb_tbl(struct nvm_tgt_dev *, struct ppa_addr *, | ||
541 | int, int); | 538 | int, int); |
542 | extern int nvm_submit_io(struct nvm_tgt_dev *, struct nvm_rq *); | 539 | extern int nvm_submit_io(struct nvm_tgt_dev *, struct nvm_rq *); |
543 | extern int nvm_submit_io_sync(struct nvm_tgt_dev *, struct nvm_rq *); | 540 | extern int nvm_submit_io_sync(struct nvm_tgt_dev *, struct nvm_rq *); |
544 | extern void nvm_end_io(struct nvm_rq *); | 541 | extern void nvm_end_io(struct nvm_rq *); |
545 | extern int nvm_bb_tbl_fold(struct nvm_dev *, u8 *, int); | ||
546 | extern int nvm_get_tgt_bb_tbl(struct nvm_tgt_dev *, struct ppa_addr, u8 *); | ||
547 | 542 | ||
548 | #else /* CONFIG_NVM */ | 543 | #else /* CONFIG_NVM */ |
549 | struct nvm_dev_ops; | 544 | struct nvm_dev_ops; |