From: Jeremy Fitzhardinge Date: Mon, 23 Feb 2009 19:36:12 +0000 (-0800) Subject: xen/swiotlb: add sync functions X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7653f4d881e9bdd7dcdf7a72b0ce04d6625a6030;p=people%2Fssmith%2Fnetchannel2-pvops.git xen/swiotlb: add sync functions Add all the missing sync functions. This fixes iwlagn. (Need to think about what to do with non-swiotlb mode.) [ Impact: bugfix; makes iwlagn driver work under Xen ] Signed-off-by: Jeremy Fitzhardinge --- diff --git a/drivers/pci/xen-iommu.c b/drivers/pci/xen-iommu.c index d09ff914232..b1a7d93d88c 100644 --- a/drivers/pci/xen-iommu.c +++ b/drivers/pci/xen-iommu.c @@ -304,6 +304,13 @@ static struct dma_map_ops xen_swiotlb_dma_ops = { .mapping_error = swiotlb_dma_mapping_error, + .sync_single_for_cpu = swiotlb_sync_single_for_cpu, + .sync_single_for_device = swiotlb_sync_single_for_device, + .sync_single_range_for_cpu = swiotlb_sync_single_range_for_cpu, + .sync_single_range_for_device = swiotlb_sync_single_range_for_device, + .sync_sg_for_cpu = swiotlb_sync_sg_for_cpu, + .sync_sg_for_device = swiotlb_sync_sg_for_device, + .is_phys = 0, };