]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame_incremental - include/linux/goldfish.h
blk-stat: fix blk_stat_sum() if all samples are batched
[mirror_ubuntu-bionic-kernel.git] / include / linux / goldfish.h
... / ...
CommitLineData
1#ifndef __LINUX_GOLDFISH_H
2#define __LINUX_GOLDFISH_H
3
4/* Helpers for Goldfish virtual platform */
5
6static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
7 void __iomem *porth)
8{
9 writel((u32)(unsigned long)ptr, portl);
10#ifdef CONFIG_64BIT
11 writel((unsigned long)ptr >> 32, porth);
12#endif
13}
14
15static inline void gf_write_dma_addr(const dma_addr_t addr,
16 void __iomem *portl,
17 void __iomem *porth)
18{
19 writel((u32)addr, portl);
20#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
21 writel(addr >> 32, porth);
22#endif
23}
24
25
26#endif /* __LINUX_GOLDFISH_H */