aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/goldfish.h
blob: 9cc28902b54cc6df80f2c866f3815a2094d05cbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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 */