Commit | Line | Data |
---|---|---|
1162b070 VG |
1 | /* |
2 | * DMA Mapping glue for ARC | |
3 | * | |
4 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | #ifndef ASM_ARC_DMA_MAPPING_H | |
12 | #define ASM_ARC_DMA_MAPPING_H | |
13 | ||
f2e3d553 VG |
14 | #ifndef CONFIG_ARC_PLAT_NEEDS_PHYS_TO_DMA |
15 | #define plat_dma_to_phys(dev, dma_handle) ((phys_addr_t)(dma_handle)) | |
16 | #define plat_phys_to_dma(dev, paddr) ((dma_addr_t)(paddr)) | |
17 | #else | |
18 | #include <plat/dma.h> | |
19 | #endif | |
20 | ||
052c96db | 21 | extern struct dma_map_ops arc_dma_ops; |
fc7943d2 | 22 | |
052c96db | 23 | static inline struct dma_map_ops *get_dma_ops(struct device *dev) |
1162b070 | 24 | { |
052c96db | 25 | return &arc_dma_ops; |
1162b070 VG |
26 | } |
27 | ||
1162b070 | 28 | #endif |