drm/panfrost: Remove set but not used variable 'bo'
[linux/fpc-iii.git] / include / linux / goldfish.h
blob265a099cd3b83dce18e24a36e37d6038e25fc7d0
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_GOLDFISH_H
3 #define __LINUX_GOLDFISH_H
5 #include <linux/kernel.h>
6 #include <linux/types.h>
7 #include <linux/io.h>
9 /* Helpers for Goldfish virtual platform */
11 static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
12 void __iomem *porth)
14 const unsigned long addr = (unsigned long)ptr;
16 writel(lower_32_bits(addr), portl);
17 #ifdef CONFIG_64BIT
18 writel(upper_32_bits(addr), porth);
19 #endif
22 static inline void gf_write_dma_addr(const dma_addr_t addr,
23 void __iomem *portl,
24 void __iomem *porth)
26 writel(lower_32_bits(addr), portl);
27 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
28 writel(upper_32_bits(addr), porth);
29 #endif
33 #endif /* __LINUX_GOLDFISH_H */