aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h15
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;
86typedef int (nvm_id_fn)(struct nvm_dev *); 86typedef int (nvm_id_fn)(struct nvm_dev *);
87typedef int (nvm_op_bb_tbl_fn)(struct nvm_dev *, struct ppa_addr, u8 *); 87typedef int (nvm_op_bb_tbl_fn)(struct nvm_dev *, struct ppa_addr, u8 *);
88typedef int (nvm_op_set_bb_fn)(struct nvm_dev *, struct ppa_addr *, int, int); 88typedef int (nvm_op_set_bb_fn)(struct nvm_dev *, struct ppa_addr *, int, int);
89typedef int (nvm_get_chk_meta_fn)(struct nvm_dev *, struct nvm_chk_meta *, 89typedef int (nvm_get_chk_meta_fn)(struct nvm_dev *, sector_t, int,
90 sector_t, int); 90 struct nvm_chk_meta *);
91typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *); 91typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *);
92typedef int (nvm_submit_io_sync_fn)(struct nvm_dev *, struct nvm_rq *); 92typedef int (nvm_submit_io_sync_fn)(struct nvm_dev *, struct nvm_rq *);
93typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *); 93typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *);
@@ -532,18 +532,13 @@ extern struct nvm_dev *nvm_alloc_dev(int);
532extern int nvm_register(struct nvm_dev *); 532extern int nvm_register(struct nvm_dev *);
533extern void nvm_unregister(struct nvm_dev *); 533extern void nvm_unregister(struct nvm_dev *);
534 534
535 535extern int nvm_get_chunk_meta(struct nvm_tgt_dev *, struct ppa_addr,
536extern 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, 537extern int nvm_set_chunk_meta(struct nvm_tgt_dev *, struct ppa_addr *,
538 int nchks);
539
540extern int nvm_set_tgt_bb_tbl(struct nvm_tgt_dev *, struct ppa_addr *,
541 int, int); 538 int, int);
542extern int nvm_submit_io(struct nvm_tgt_dev *, struct nvm_rq *); 539extern int nvm_submit_io(struct nvm_tgt_dev *, struct nvm_rq *);
543extern int nvm_submit_io_sync(struct nvm_tgt_dev *, struct nvm_rq *); 540extern int nvm_submit_io_sync(struct nvm_tgt_dev *, struct nvm_rq *);
544extern void nvm_end_io(struct nvm_rq *); 541extern void nvm_end_io(struct nvm_rq *);
545extern int nvm_bb_tbl_fold(struct nvm_dev *, u8 *, int);
546extern int nvm_get_tgt_bb_tbl(struct nvm_tgt_dev *, struct ppa_addr, u8 *);
547 542
548#else /* CONFIG_NVM */ 543#else /* CONFIG_NVM */
549struct nvm_dev_ops; 544struct nvm_dev_ops;