diff options
author | Christoph Hellwig <hch@lst.de> | 2017-12-24 15:04:32 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-01-15 09:35:15 +0100 |
commit | 1a9777a8a01fb88659a3dda48080c95c34cab7d3 (patch) | |
tree | 8dbc7851ef09db41b5e2f0bed1bd5fff84c5a240 /include/linux/dma-direct.h | |
parent | 19dca8c0efa30e0a45e79f237060d0f307045752 (diff) | |
download | linux-1a9777a8a01fb88659a3dda48080c95c34cab7d3.tar.gz linux-1a9777a8a01fb88659a3dda48080c95c34cab7d3.tar.bz2 linux-1a9777a8a01fb88659a3dda48080c95c34cab7d3.zip |
dma-direct: reject too small dma masks
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'include/linux/dma-direct.h')
-rw-r--r-- | include/linux/dma-direct.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dma-direct.h b/include/linux/dma-direct.h index 4788bf0bf683..bcdb1a3e4b1f 100644 --- a/include/linux/dma-direct.h +++ b/include/linux/dma-direct.h @@ -42,5 +42,6 @@ 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); +int dma_direct_supported(struct device *dev, u64 mask); #endif /* _LINUX_DMA_DIRECT_H */ |