summaryrefslogtreecommitdiffstats
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorBart Van Assche2017-01-20 22:04:07 +0100
committerDoug Ledford2017-01-24 18:23:35 +0100
commit551199aca1c3102ebed390566d681cc1290284ca (patch)
treea093ec747368b2b0fa7d9e7e1e95032502f89541 /include/linux/dma-mapping.h
parentlib/dma-noop: Only build dma_noop_ops for s390 and m32r (diff)
downloadkernel-qcow2-linux-551199aca1c3102ebed390566d681cc1290284ca.tar.gz
kernel-qcow2-linux-551199aca1c3102ebed390566d681cc1290284ca.tar.xz
kernel-qcow2-linux-551199aca1c3102ebed390566d681cc1290284ca.zip
lib/dma-virt: Add dma_virt_ops
Several RDMA drivers (hfi1, qib and rxe) expect that ib_sge.addr is a virtual address. Provide DMA mapping operations that are suitable for these drivers. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Joerg Roedel <jroedel@suse.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r--include/linux/dma-mapping.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index ab8710888ddf..426c43d4fdbf 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -128,6 +128,7 @@ struct dma_map_ops {
};
extern const struct dma_map_ops dma_noop_ops;
+extern const struct dma_map_ops dma_virt_ops;
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))