6 enum dma_data_direction;
9 struct nvfs_dma_rw_ops;
11 int REGISTER_FUNC (struct nvfs_dma_rw_ops *ops);
13 void UNREGISTER_FUNC (void);
15 unsigned int lnet_get_dev_prio(struct device *dev,
16 unsigned int dev_idx);
17 int lnet_rdma_map_sg_attrs(struct device *dev, struct scatterlist *sg,
18 int nents, enum dma_data_direction direction);
19 int lnet_rdma_unmap_sg(struct device *dev,
20 struct scatterlist *sg, int nents,
21 enum dma_data_direction direction);
22 bool lnet_is_rdma_only_page(struct page *page);
23 unsigned int lnet_get_dev_idx(struct page *page);
25 /* DMA_ATTR_NO_WARN was added to kernel v4.8-11962-ga9a62c9 */
26 #ifndef DMA_ATTR_NO_WARN
27 #define DMA_ATTR_NO_WARN 0
30 #endif /* LUSTRE_NVFS_H */