diff options
Diffstat (limited to 'include/asm-x86/dma-mapping.h')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index 09011546a48b..6e7747a23e5b 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h | |||
@@ -82,4 +82,13 @@ dma_map_sg(struct device *hwdev, struct scatterlist *sg, | |||
82 | BUG_ON(!valid_dma_direction(direction)); | 82 | BUG_ON(!valid_dma_direction(direction)); |
83 | return dma_ops->map_sg(hwdev, sg, nents, direction); | 83 | return dma_ops->map_sg(hwdev, sg, nents, direction); |
84 | } | 84 | } |
85 | |||
86 | static inline void | ||
87 | dma_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents, | ||
88 | int direction) | ||
89 | { | ||
90 | BUG_ON(!valid_dma_direction(direction)); | ||
91 | if (dma_ops->unmap_sg) | ||
92 | dma_ops->unmap_sg(hwdev, sg, nents, direction); | ||
93 | } | ||
85 | #endif | 94 | #endif |