diff options
Diffstat (limited to 'include/asm-x86/dma-mapping.h')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 10 |
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 | ||
69 | static inline void | ||
70 | dma_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 |