]>
git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - include/linux/goldfish.h
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
,
9 writel((u32
)(unsigned long)ptr
, portl
);
11 writel((unsigned long)ptr
>> 32, porth
);
15 static inline void gf_write_dma_addr(const dma_addr_t addr
,
19 writel((u32
)addr
, portl
);
20 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
21 writel(addr
>> 32, porth
);
26 #endif /* __LINUX_GOLDFISH_H */