]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
commit 2fa8a050a0026eadbb39a2f281011991e00fe29a git-9f6026b8c308365d955faaf31dd0f457266d11f8
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)
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/dma-mapping.h

index b6da83dcc7a6690e81bde6956cd16acf6ef12a15..d22296d822b7aace548c8b5239bc6e16922673ae 100644 (file)
@@ -70,6 +70,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,