mmc: sdhci: fix error conditions for controller reset
[linux/fpc-iii.git] / include / asm-generic / io-64-nonatomic-lo-hi.h
blob0efacff0a1ce4db42d31038cd83163218239fcfe
1 #ifndef _ASM_IO_64_NONATOMIC_LO_HI_H_
2 #define _ASM_IO_64_NONATOMIC_LO_HI_H_
4 #include <linux/io.h>
5 #include <asm-generic/int-ll64.h>
7 static inline __u64 lo_hi_readq(const volatile void __iomem *addr)
9 const volatile u32 __iomem *p = addr;
10 u32 low, high;
12 low = readl(p);
13 high = readl(p + 1);
15 return low + ((u64)high << 32);
18 static inline void lo_hi_writeq(__u64 val, volatile void __iomem *addr)
20 writel(val, addr);
21 writel(val >> 32, addr + 4);
24 #ifndef readq
25 #define readq lo_hi_readq
26 #endif
28 #ifndef writeq
29 #define writeq lo_hi_writeq
30 #endif
32 #endif /* _ASM_IO_64_NONATOMIC_LO_HI_H_ */