]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/dma-mapping.h
x86, IA64, powerpc: add phys_to_dma() and dma_to_phys()
[karo-tx-linux.git] / arch / x86 / include / asm / dma-mapping.h
index adac59c8f69b6405164b493d3da274dd3a3352db..0ee770d23d0e52998810113f662cb517549064c6 100644 (file)
@@ -63,6 +63,16 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
        return addr + size <= *dev->dma_mask;
 }
 
+static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
+{
+       return paddr;
+}
+
+static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)
+{
+       return daddr;
+}
+
 static inline void
 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
        enum dma_data_direction dir)