]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
Apply to mach-xen too. git-2fa8a050a0026eadbb39a2f281011991e00fe29a
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:05:20 +0000 (12:05 +0000)
commit 2fa8a050a0026eadbb39a2f281011991e00fe29a
Author: Jeff Garzik <jeff@garzik.org>
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 <jeff@garzik.org>
Signed-off-by: Andi Kleen <ak@suse.de>
include/asm-x86_64/mach-xen/asm/dma-mapping.h

index ae33eb3149844e430c52405f4dc4fa5a7af26270..d94b2e1b161a0a618306e24445a99be9a8e1982b 100644 (file)
@@ -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,