summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/goldfish.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/goldfish.h')
-rw-r--r--kernel/include/linux/goldfish.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/include/linux/goldfish.h b/kernel/include/linux/goldfish.h
new file mode 100644
index 000000000..569236e6b
--- /dev/null
+++ b/kernel/include/linux/goldfish.h
@@ -0,0 +1,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_64BIT
+ writel(data>>32, porth);
+#endif
+}
+
+#endif /* __LINUX_GOLDFISH_H */