selftests/powerpc: Add gitignore file for the new DSCR tests
[linux-2.6/btrfs-unstable.git] / include / asm-generic / io-64-nonatomic-hi-lo.h
blob2e29d13fc1541b45d9b73b6282e2163f00815bb4
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 static inline __u64 hi_lo_readq(const volatile void __iomem *addr)
9 const volatile u32 __iomem *p = addr;
10 u32 low, high;
12 high = readl(p + 1);
13 low = readl(p);
15 return low + ((u64)high << 32);
18 static inline void hi_lo_writeq(__u64 val, volatile void __iomem *addr)
20 writel(val >> 32, addr + 4);
21 writel(val, addr);
24 #ifndef readq
25 #define readq hi_lo_readq
26 #endif
28 #ifndef writeq
29 #define writeq hi_lo_writeq
30 #endif
32 #endif /* _ASM_IO_64_NONATOMIC_HI_LO_H_ */