1 #ifndef __LINUX_GOLDFISH_H
2 #define __LINUX_GOLDFISH_H
4 #include <linux/types.h>
7 /* Helpers for Goldfish virtual platform */
9 static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
12 const uintptr_t addr = (uintptr_t)ptr;
14 writel((u32)addr, portl);
16 writel(addr >> 32, porth);
20 static inline void gf_write_dma_addr(const dma_addr_t addr,
24 writel((u32)addr, portl);
25 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
26 writel(addr >> 32, porth);
31 #endif /* __LINUX_GOLDFISH_H */