Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / include / linux / goldfish.h
diff --git a/kernel/include/linux/goldfish.h b/kernel/include/linux/goldfish.h
new file mode 100644 (file)
index 0000000..569236e
--- /dev/null
@@ -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 */