summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-09-12 18:49:24 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-12 10:50:56 -0700
commit27183ebd330a676fe29f7eb9b7ff582492246ec8 (patch)
tree6bac5ff944bb2b7fc50404b6007a2d942a90ae48 /include/asm-x86_64
parent05d1fa4bf6a1528e4d4e39fa537f11e6cfca4720 (diff)
downloadkernel-crypto-27183ebd330a676fe29f7eb9b7ff582492246ec8.tar.gz
kernel-crypto-27183ebd330a676fe29f7eb9b7ff582492246ec8.tar.xz
kernel-crypto-27183ebd330a676fe29f7eb9b7ff582492246ec8.zip
[PATCH] x86-64: Add dma_sync_single_range_for_{cpu,device}
Currently just defined to their non range parts. Pointed out by John Linville Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/dma-mapping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-x86_64/dma-mapping.h b/include/asm-x86_64/dma-mapping.h
index a416dc31634..e784fdc524f 100644
--- a/include/asm-x86_64/dma-mapping.h
+++ b/include/asm-x86_64/dma-mapping.h
@@ -85,6 +85,11 @@ static inline void dma_sync_single_for_device(struct device *hwdev,
flush_write_buffers();
}
+#define dma_sync_single_range_for_cpu(dev, dma_handle, offset, size, dir) \
+ dma_sync_single_for_cpu(dev, dma_handle, size, dir)
+#define dma_sync_single_range_for_device(dev, dma_handle, offset, size, dir) \
+ dma_sync_single_for_device(dev, dma_handle, size, dir)
+
static inline void dma_sync_sg_for_cpu(struct device *hwdev,
struct scatterlist *sg,
int nelems, int direction)