diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-25 17:36:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:56 -0400 |
commit | 8d396ded71a9b378fc3e846095e50565606f2df6 (patch) | |
tree | 62852546c33e7d33fed5e83962ae0af6947cc6ed /include/asm-x86/dma-mapping_64.h | |
parent | e7f3a913f91b7bfef3a93dff27930f24bdfcd2c0 (diff) |
x86: move alloc and free coherent to common header
they are the same between architectures. (except for the fact
that x86_64 has duplicate code)
move them to dma-mapping.h
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/dma-mapping_64.h')
-rw-r--r-- | include/asm-x86/dma-mapping_64.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/asm-x86/dma-mapping_64.h b/include/asm-x86/dma-mapping_64.h index 707dbbe86a26..ce881d992228 100644 --- a/include/asm-x86/dma-mapping_64.h +++ b/include/asm-x86/dma-mapping_64.h | |||
@@ -12,17 +12,6 @@ static inline int dma_mapping_error(dma_addr_t dma_addr) | |||
12 | return (dma_addr == bad_dma_address); | 12 | return (dma_addr == bad_dma_address); |
13 | } | 13 | } |
14 | 14 | ||
15 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) | ||
16 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) | ||
17 | |||
18 | #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) | ||
19 | #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) | ||
20 | |||
21 | extern void *dma_alloc_coherent(struct device *dev, size_t size, | ||
22 | dma_addr_t *dma_handle, gfp_t gfp); | ||
23 | extern void dma_free_coherent(struct device *dev, size_t size, void *vaddr, | ||
24 | dma_addr_t dma_handle); | ||
25 | |||
26 | #define dma_map_page(dev,page,offset,size,dir) \ | 15 | #define dma_map_page(dev,page,offset,size,dir) \ |
27 | dma_map_single((dev), page_address(page)+(offset), (size), (dir)) | 16 | dma_map_single((dev), page_address(page)+(offset), (size), (dir)) |
28 | 17 | ||