X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ia64%2Fdma-mapping.h;h=8499cd6af87a1b71c64b77567a0154dd72639e53;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=a527db735599d7ebf34fce66a3516260d5ee9f46;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/include/asm-ia64/dma-mapping.h b/include/asm-ia64/dma-mapping.h index a527db735..8499cd6af 100644 --- a/include/asm-ia64/dma-mapping.h +++ b/include/asm-ia64/dma-mapping.h @@ -6,7 +6,6 @@ * David Mosberger-Tang */ #include - #ifndef CONFIG_XEN #define dma_alloc_coherent platform_dma_alloc_coherent @@ -23,7 +22,6 @@ #define dma_sync_sg_for_device platform_dma_sync_sg_for_device #define dma_mapping_error platform_dma_mapping_error - #else /* CONFIG_XEN */ /* Needed for arch/i386/kernel/swiotlb.c and arch/i386/kernel/pci-dma-xen.c */ #include @@ -101,7 +99,8 @@ dma_set_mask (struct device *dev, u64 mask) extern int dma_get_cache_alignment(void); static inline void -dma_cache_sync (void *vaddr, size_t size, enum dma_data_direction dir) +dma_cache_sync (struct device *dev, void *vaddr, size_t size, + enum dma_data_direction dir) { /* * IA-64 is cache-coherent, so this is mostly a no-op. However, we do need to @@ -110,7 +109,7 @@ dma_cache_sync (void *vaddr, size_t size, enum dma_data_direction dir) mb(); } -#define dma_is_consistent(dma_handle) (1) /* all we do is coherent memory... */ +#define dma_is_consistent(d, h) (1) /* all we do is coherent memory... */ #ifdef CONFIG_XEN /* arch/i386/kernel/swiotlb.o requires */