/* Return whether the given device DMA address mask can be supported properly. For example, if your device can only drive the low 24-bits during bus mastering, then you would pass 0x00ffffff as the mask to this function.  */
int swiotlb_dma_supported(struct device *hwdev, u64 mask)
/* Return whether the given device DMA address mask can be supported properly. For example, if your device can only drive the low 24-bits during bus mastering, then you would pass 0x00ffffff as the mask to this function.  */
int swiotlb_dma_supported(struct device *hwdev, u64 mask)
{
	return swiotlb_virt_to_bus(hwdev, io_tlb_end - 1) <= mask;
}