OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on OMAP4
[zen-stable.git] / include / asm-generic / io-64-nonatomic-hi-lo.h
bloba6806a94250d3454b7abc7c15a2ec5c9b78ec04f
1 #ifndef _ASM_IO_64_NONATOMIC_HI_LO_H_
2 #define _ASM_IO_64_NONATOMIC_HI_LO_H_
4 #include <linux/io.h>
5 #include <asm-generic/int-ll64.h>
7 #ifndef readq
8 static inline __u64 readq(const volatile void __iomem *addr)
10 const volatile u32 __iomem *p = addr;
11 u32 low, high;
13 high = readl(p + 1);
14 low = readl(p);
16 return low + ((u64)high << 32);
18 #endif
20 #ifndef writeq
21 static inline void writeq(__u64 val, volatile void __iomem *addr)
23 writel(val >> 32, addr + 4);
24 writel(val, addr);
26 #endif
28 #endif /* _ASM_IO_64_NONATOMIC_HI_LO_H_ */