aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/dma-mapping.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-25 17:36:22 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:19:56 -0400
commit0cb0ae68323657663e4e8c0c1ce82a5af6621bbb (patch)
tree543d3f18b5239d73b12e36af750c62c6e8b2733d /include/asm-x86/dma-mapping.h
parent22456b97148be300e25e9cb97244656775972475 (diff)
x86: move dma_unmap_single to common header
i386 base does not need it, so it gets an empty function. 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.h')
-rw-r--r--include/asm-x86/dma-mapping.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index d320244db8af..bb0378f2b933 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -66,4 +66,14 @@ dma_map_single(struct device *hwdev, void *ptr, size_t size,
66 return dma_ops->map_single(hwdev, ptr, size, direction); 66 return dma_ops->map_single(hwdev, ptr, size, direction);
67} 67}
68 68
69static inline void
70dma_unmap_single(struct device *dev, dma_addr_t addr, size_t size,
71 int direction)
72{
73 BUG_ON(!valid_dma_direction(direction));
74 if (dma_ops->unmap_single)
75 dma_ops->unmap_single(dev, addr, size, direction);
76}
77
78
69#endif 79#endif