소스 검색

xtensa: use physical addresses for bus addresses

Define virt_to_bus and bus_to_virt as virt_to_phys, and phys_to_virt,
       respectively.

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 12 년 전
부모
커밋
cddfcbcd05
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      arch/xtensa/include/asm/io.h

+ 4 - 0
arch/xtensa/include/asm/io.h

@@ -62,6 +62,10 @@ static inline void __iomem *ioremap(unsigned long offset, unsigned long size)
 static inline void iounmap(volatile void __iomem *addr)
 static inline void iounmap(volatile void __iomem *addr)
 {
 {
 }
 }
+
+#define virt_to_bus     virt_to_phys
+#define bus_to_virt     phys_to_virt
+
 #endif /* CONFIG_MMU */
 #endif /* CONFIG_MMU */
 
 
 /*
 /*