@@ -673,6 +673,13 @@
}
EXPORT_SYMBOL_GPL(xen_swiotlb_dma_supported);
+u64
+xen_swiotlb_get_required_mask(struct device *dev)
+{
+ return DMA_BIT_MASK(64);
+}
+EXPORT_SYMBOL_GPL(xen_swiotlb_get_required_mask);
+
int
xen_swiotlb_set_dma_mask(struct device *dev, u64 dma_mask)
{
@@ -127,6 +127,7 @@
return dma_set_mask_and_coherent(dev, mask);
}
+extern u64 dma_get_required_mask_from_max_pfn(struct device *dev);
extern u64 dma_get_required_mask(struct device *dev);
#ifndef set_arch_dma_coherent_ops
@@ -56,6 +56,10 @@
extern int
xen_swiotlb_dma_supported(struct device *hwdev, u64 mask);
+extern u64
+xen_swiotlb_get_required_mask(struct device *dev);
+
+
extern int
xen_swiotlb_set_dma_mask(struct device *dev, u64 dma_mask);
#endif /* __LINUX_SWIOTLB_XEN_H */