summaryrefslogtreecommitdiffstats
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2016-02-02 21:46:32 -0800
committerMichael S. Tsirkin <mst@redhat.com>2016-03-02 17:01:55 +0200
commita8463d4b0e47d1f37af684d97884ffcf35de043b (patch)
tree22edc03944c201629c6fd2c77805b014c05f9fbc /include/linux/dma-mapping.h
parente1f33be9186363da7955bcb5f0b03e6685544c50 (diff)
downloadlinux-a8463d4b0e47d1f37af684d97884ffcf35de043b.tar.gz
linux-a8463d4b0e47d1f37af684d97884ffcf35de043b.tar.bz2
linux-a8463d4b0e47d1f37af684d97884ffcf35de043b.zip
dma: Provide simple noop dma ops
We are going to require dma_ops for several common drivers, even for systems that do have an identity mapping. Lets provide some minimal no-op dma_ops that can be used for that purpose. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r--include/linux/dma-mapping.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 75857cda38e9..c0b27ff2c784 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -70,6 +70,8 @@ struct dma_map_ops {
int is_phys;
};
+extern struct dma_map_ops dma_noop_ops;
+
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
#define DMA_MASK_NONE 0x0ULL