summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/dma-mapping.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-03-25 18:36:22 -0300
committerIngo Molnar <mingo@elte.hu>2008-04-19 19:19:56 +0200
commit0cb0ae68323657663e4e8c0c1ce82a5af6621bbb (patch)
tree543d3f18b5239d73b12e36af750c62c6e8b2733d /include/asm-x86/dma-mapping.h
parent22456b97148be300e25e9cb97244656775972475 (diff)
downloadop-kernel-dev-0cb0ae68323657663e4e8c0c1ce82a5af6621bbb.zip
op-kernel-dev-0cb0ae68323657663e4e8c0c1ce82a5af6621bbb.tar.gz
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 d320244db..bb0378f 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,
return dma_ops->map_single(hwdev, ptr, size, direction);
}
+static inline void
+dma_unmap_single(struct device *dev, dma_addr_t addr, size_t size,
+ int direction)
+{
+ BUG_ON(!valid_dma_direction(direction));
+ if (dma_ops->unmap_single)
+ dma_ops->unmap_single(dev, addr, size, direction);
+}
+
+
#endif
OpenPOWER on IntegriCloud