mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
16 lines
327 B
C
16 lines
327 B
C
|
#ifndef __LINUX_GOLDFISH_H
|
||
|
#define __LINUX_GOLDFISH_H
|
||
|
|
||
|
/* Helpers for Goldfish virtual platform */
|
||
|
|
||
|
static inline void gf_write64(unsigned long data,
|
||
|
void __iomem *portl, void __iomem *porth)
|
||
|
{
|
||
|
writel((u32)data, portl);
|
||
|
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
|
||
|
writel(data>>32, porth);
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
#endif /* __LINUX_GOLDFISH_H */
|