-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 287767 b: refs/heads/master c: 797a796 h: refs/heads/master i: 287765: a08b57b 287763: ecdd3bc 287759: 76d44c9 v: v3
- Loading branch information
Hitoshi Mitake
authored and
Linus Torvalds
committed
Feb 22, 2012
1 parent
0cbb277
commit 4aa35e5
Showing
8 changed files
with
67 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 27e74da9800289e69ba907777df1e2085231eff7 | ||
refs/heads/master: 797a796a13df6b84a4791e57306737059b5b2384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef _ASM_IO_64_NONATOMIC_HI_LO_H_ | ||
#define _ASM_IO_64_NONATOMIC_HI_LO_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
#ifndef readq | ||
static inline __u64 readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
high = readl(p + 1); | ||
low = readl(p); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
#endif | ||
|
||
#ifndef writeq | ||
static inline void writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val >> 32, addr + 4); | ||
writel(val, addr); | ||
} | ||
#endif | ||
|
||
#endif /* _ASM_IO_64_NONATOMIC_HI_LO_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef _ASM_IO_64_NONATOMIC_LO_HI_H_ | ||
#define _ASM_IO_64_NONATOMIC_LO_HI_H_ | ||
|
||
#include <linux/io.h> | ||
#include <asm-generic/int-ll64.h> | ||
|
||
#ifndef readq | ||
static inline __u64 readq(const volatile void __iomem *addr) | ||
{ | ||
const volatile u32 __iomem *p = addr; | ||
u32 low, high; | ||
|
||
low = readl(p); | ||
high = readl(p + 1); | ||
|
||
return low + ((u64)high << 32); | ||
} | ||
#endif | ||
|
||
#ifndef writeq | ||
static inline void writeq(__u64 val, volatile void __iomem *addr) | ||
{ | ||
writel(val, addr); | ||
writel(val >> 32, addr + 4); | ||
} | ||
#endif | ||
|
||
#endif /* _ASM_IO_64_NONATOMIC_LO_HI_H_ */ |