summaryrefslogtreecommitdiffstats
path: root/include/linux/dma-direct.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-12-23 13:46:06 +0100
committerChristoph Hellwig <hch@lst.de>2018-01-15 09:35:14 +0100
commit19dca8c0efa30e0a45e79f237060d0f307045752 (patch)
tree7af0e38c3abd148c110d88900630f837e7e79617 /include/linux/dma-direct.h
parent95f183916d4b0bc1943684948ecdd2469f1aa978 (diff)
downloadlinux-stable-19dca8c0efa30e0a45e79f237060d0f307045752.tar.gz
linux-stable-19dca8c0efa30e0a45e79f237060d0f307045752.tar.bz2
linux-stable-19dca8c0efa30e0a45e79f237060d0f307045752.zip
dma-direct: make dma_direct_{alloc,free} available to other implementations
So that they don't need to indirect through the operation vector. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com>
Diffstat (limited to 'include/linux/dma-direct.h')
-rw-r--r--include/linux/dma-direct.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/dma-direct.h b/include/linux/dma-direct.h
index 10e924b7cba7..4788bf0bf683 100644
--- a/include/linux/dma-direct.h
+++ b/include/linux/dma-direct.h
@@ -38,4 +38,9 @@ static inline void dma_mark_clean(void *addr, size_t size)
}
#endif /* CONFIG_ARCH_HAS_DMA_MARK_CLEAN */
+void *dma_direct_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
+ gfp_t gfp, unsigned long attrs);
+void dma_direct_free(struct device *dev, size_t size, void *cpu_addr,
+ dma_addr_t dma_addr, unsigned long attrs);
+
#endif /* _LINUX_DMA_DIRECT_H */