Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210736
b: refs/heads/master
c: 0fab59e
h: refs/heads/master
v: v3
  • Loading branch information
Chris Metcalf committed Sep 15, 2010
1 parent 8122a21 commit 1d98d97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a802fc685426303ab627b7ad3fd5c97b5dea7e00
refs/heads/master: 0fab59e5ddb4e0557825e9ab8e41b66b5f336941
8 changes: 4 additions & 4 deletions trunk/arch/tile/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,22 @@ static inline void _tile_writeq(u64 val, unsigned long addr)
#define iowrite32 writel
#define iowrite64 writeq

static inline void *memcpy_fromio(void *dst, void *src, int len)
static inline void memcpy_fromio(void *dst, const volatile void __iomem *src,
size_t len)
{
int x;
BUG_ON((unsigned long)src & 0x3);
for (x = 0; x < len; x += 4)
*(u32 *)(dst + x) = readl(src + x);
return dst;
}

static inline void *memcpy_toio(void *dst, void *src, int len)
static inline void memcpy_toio(volatile void __iomem *dst, const void *src,
size_t len)
{
int x;
BUG_ON((unsigned long)dst & 0x3);
for (x = 0; x < len; x += 4)
writel(*(u32 *)(src + x), dst + x);
return dst;
}

/*
Expand Down

0 comments on commit 1d98d97

Please sign in to comment.