swiotlb-xen: use xen_alloc/free_coherent_pages
[linux-drm-fsl-dcu.git] / arch / arm / xen / mm.c
index 0d69b874d249b749147e694b00246dcd32df4ab0..b0e77de9914866e19fb69ab28f9cd674d7e7f57d 100644 (file)
@@ -16,7 +16,7 @@
 #include <asm/xen/hypercall.h>
 #include <asm/xen/interface.h>
 
-int xen_create_contiguous_region(unsigned long vstart, unsigned int order,
+int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
                                 unsigned int address_bits,
                                 dma_addr_t *dma_handle)
 {
@@ -24,12 +24,12 @@ int xen_create_contiguous_region(unsigned long vstart, unsigned int order,
                return -EINVAL;
 
        /* we assume that dom0 is mapped 1:1 for now */
-       *dma_handle = virt_to_phys(pstart);
+       *dma_handle = pstart;
        return 0;
 }
 EXPORT_SYMBOL_GPL(xen_create_contiguous_region);
 
-void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order)
+void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order)
 {
        return;
 }