diff options
-rw-r--r-- | include/asm-powerpc/dma-mapping.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/include/asm-powerpc/dma-mapping.h b/include/asm-powerpc/dma-mapping.h index 744d6bb24116..d05891608f74 100644 --- a/include/asm-powerpc/dma-mapping.h +++ b/include/asm-powerpc/dma-mapping.h | |||
@@ -249,8 +249,12 @@ dma_map_single(struct device *dev, void *ptr, size_t size, | |||
249 | return virt_to_bus(ptr); | 249 | return virt_to_bus(ptr); |
250 | } | 250 | } |
251 | 251 | ||
252 | /* We do nothing. */ | 252 | static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, |
253 | #define dma_unmap_single(dev, addr, size, dir) ((void)0) | 253 | size_t size, |
254 | enum dma_data_direction direction) | ||
255 | { | ||
256 | /* We do nothing. */ | ||
257 | } | ||
254 | 258 | ||
255 | static inline dma_addr_t | 259 | static inline dma_addr_t |
256 | dma_map_page(struct device *dev, struct page *page, | 260 | dma_map_page(struct device *dev, struct page *page, |
@@ -264,8 +268,12 @@ dma_map_page(struct device *dev, struct page *page, | |||
264 | return page_to_bus(page) + offset; | 268 | return page_to_bus(page) + offset; |
265 | } | 269 | } |
266 | 270 | ||
267 | /* We do nothing. */ | 271 | static inline void dma_unmap_page(struct device *dev, dma_addr_t dma_address, |
268 | #define dma_unmap_page(dev, handle, size, dir) ((void)0) | 272 | size_t size, |
273 | enum dma_data_direction direction) | ||
274 | { | ||
275 | /* We do nothing. */ | ||
276 | } | ||
269 | 277 | ||
270 | static inline int | 278 | static inline int |
271 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | 279 | dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, |
@@ -284,8 +292,12 @@ dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, | |||
284 | return nents; | 292 | return nents; |
285 | } | 293 | } |
286 | 294 | ||
287 | /* We don't do anything here. */ | 295 | static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg, |
288 | #define dma_unmap_sg(dev, sg, nents, dir) ((void)0) | 296 | int nhwentries, |
297 | enum dma_data_direction direction) | ||
298 | { | ||
299 | /* We don't do anything here. */ | ||
300 | } | ||
289 | 301 | ||
290 | #endif /* CONFIG_PPC64 */ | 302 | #endif /* CONFIG_PPC64 */ |
291 | 303 | ||