aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_os_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_os_linux.h')
-rw-r--r--include/drm/drm_os_linux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_os_linux.h b/include/drm/drm_os_linux.h
index 013551d03c03..26641e95e0a4 100644
--- a/include/drm/drm_os_linux.h
+++ b/include/drm/drm_os_linux.h
@@ -7,12 +7,12 @@
7#include <linux/delay.h> 7#include <linux/delay.h>
8 8
9#ifndef readq 9#ifndef readq
10static u64 readq(void __iomem *reg) 10static inline u64 readq(void __iomem *reg)
11{ 11{
12 return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32); 12 return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32);
13} 13}
14 14
15static void writeq(u64 val, void __iomem *reg) 15static inline void writeq(u64 val, void __iomem *reg)
16{ 16{
17 writel(val & 0xffffffff, reg); 17 writel(val & 0xffffffff, reg);
18 writel(val >> 32, reg + 0x4UL); 18 writel(val >> 32, reg + 0x4UL);