From: t_jeang Date: Tue, 6 Jan 2009 12:05:20 +0000 (+0000) Subject: Apply to mach-xen too. X-Git-Tag: git-2fa8a050a0026eadbb39a2f281011991e00fe29a X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6c27e41f619a6e8a1312d8068202b883cf16e9ba;p=xenclient%2Fkernel.git Apply to mach-xen too. commit 2fa8a050a0026eadbb39a2f281011991e00fe29a Author: Jeff Garzik Date: Tue Feb 13 13:26:24 2007 +0100 [PATCH] x86-64: define dma noncoherent API functions x86-64 is missing these: Signed-off-by: Jeff Garzik Signed-off-by: Andi Kleen --- diff --git a/include/asm-x86_64/mach-xen/asm/dma-mapping.h b/include/asm-x86_64/mach-xen/asm/dma-mapping.h index ae33eb31..d94b2e1b 100644 --- a/include/asm-x86_64/mach-xen/asm/dma-mapping.h +++ b/include/asm-x86_64/mach-xen/asm/dma-mapping.h @@ -71,6 +71,9 @@ static inline int dma_mapping_error(dma_addr_t dma_addr) return (dma_addr == bad_dma_address); } +#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) +#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) + extern void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp); extern void dma_free_coherent(struct device *dev, size_t size, void *vaddr,