dma: Introduce dma_max_mapping_size()
authorJoerg Roedel <jroedel@suse.de>
Thu, 7 Feb 2019 11:59:15 +0000 (12:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 6 Mar 2019 16:19:11 +0000 (11:19 -0500)
commit133d624b1cee16906134e92d5befb843b58bcf31
treeb5d5d7d1ce51dca0a90402227028eee5ded9ba6b
parent492366f7b4237257ef50ca9c431a6a0d50225aca
dma: Introduce dma_max_mapping_size()

The function returns the maximum size that can be mapped
using DMA-API functions. The patch also adds the
implementation for direct DMA and a new dma_map_ops pointer
so that other implementations can expose their limit.

Cc: stable@vger.kernel.org
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Documentation/DMA-API.txt
include/linux/dma-mapping.h
kernel/dma/direct.c
kernel/dma/mapping.c