diff options
author | Alan <alan@linux.intel.com> | 2014-04-28 15:47:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-03 19:47:18 -0400 |
commit | 425f3740cf8e93fac6318ed862bcc3081b818f0b (patch) | |
tree | 5ae3ccae92e1ade1bf6725cbce4d1cb4b3031757 | |
parent | 7f09d4a00cc85ca43b2a7f491f9b3f8498413f1b (diff) |
goldfish: Add a 64bit write helper
The base code imported from the Google tree is ifdef heaven. Prepare to fix
this by adding a helper function.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/goldfish.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/goldfish.h b/include/linux/goldfish.h new file mode 100644 index 000000000000..9cc28902b54c --- /dev/null +++ b/include/linux/goldfish.h | |||
@@ -0,0 +1,15 @@ | |||
1 | #ifndef __LINUX_GOLDFISH_H | ||
2 | #define __LINUX_GOLDFISH_H | ||
3 | |||
4 | /* Helpers for Goldfish virtual platform */ | ||
5 | |||
6 | static inline void gf_write64(unsigned long data, | ||
7 | void __iomem *portl, void __iomem *porth) | ||
8 | { | ||
9 | writel((u32)data, portl); | ||
10 | #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT | ||
11 | writel(data>>32, porth); | ||
12 | #endif | ||
13 | } | ||
14 | |||
15 | #endif /* __LINUX_GOLDFISH_H */ | ||