drm/exynos: fix types for compilation on 64bit architectures
[linux-2.6/btrfs-unstable.git] / include / linux / goldfish.h
blob93e080b39cf6c09f7c310dcb31194962e67e92b3
1 #ifndef __LINUX_GOLDFISH_H
2 #define __LINUX_GOLDFISH_H
4 /* Helpers for Goldfish virtual platform */
6 static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
7 void __iomem *porth)
9 writel((u32)(unsigned long)ptr, portl);
10 #ifdef CONFIG_64BIT
11 writel((unsigned long)ptr >> 32, porth);
12 #endif
15 static inline void gf_write_dma_addr(const dma_addr_t addr,
16 void __iomem *portl,
17 void __iomem *porth)
19 writel((u32)addr, portl);
20 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
21 writel(addr >> 32, porth);
22 #endif
26 #endif /* __LINUX_GOLDFISH_H */