Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41060
b: refs/heads/master
c: 8de35ef
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Nov 20, 2006
1 parent 8fe114a commit cc863c9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 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: eb370f0bd409f8bcdc88583ae04f94453e19d882
refs/heads/master: 8de35efb6afa75f25415d54e21221eea759db261
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-ebsa110/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <asm/io.h>
#include <asm/page.h>

static void __iomem *__isamem_convert_addr(void __iomem *addr)
static void __iomem *__isamem_convert_addr(const volatile void __iomem *addr)
{
u32 ret, a = (u32 __force) addr;

Expand Down Expand Up @@ -63,7 +63,7 @@ static void __iomem *__isamem_convert_addr(void __iomem *addr)
/*
* read[bwl] and write[bwl]
*/
u8 __readb(void __iomem *addr)
u8 __readb(const volatile void __iomem *addr)
{
void __iomem *a = __isamem_convert_addr(addr);
u32 ret;
Expand All @@ -75,7 +75,7 @@ u8 __readb(void __iomem *addr)
return ret;
}

u16 __readw(void __iomem *addr)
u16 __readw(const volatile void __iomem *addr)
{
void __iomem *a = __isamem_convert_addr(addr);

Expand All @@ -85,7 +85,7 @@ u16 __readw(void __iomem *addr)
return __raw_readw(a);
}

u32 __readl(void __iomem *addr)
u32 __readl(const volatile void __iomem *addr)
{
void __iomem *a = __isamem_convert_addr(addr);
u32 ret;
Expand Down
16 changes: 11 additions & 5 deletions trunk/include/asm-arm/arch-ebsa110/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ void __outw(u16 val, unsigned int port);
u32 __inl(unsigned int port);
void __outl(u32 val, unsigned int port);

u8 __readb(void __iomem *addr);
u16 __readw(void __iomem *addr);
u32 __readl(void __iomem *addr);
u8 __readb(const volatile void __iomem *addr);
u16 __readw(const volatile void __iomem *addr);
u32 __readl(const volatile void __iomem *addr);

void __writeb(u8 val, void __iomem *addr);
void __writew(u16 val, void __iomem *addr);
Expand Down Expand Up @@ -64,8 +64,14 @@ void __writel(u32 val, void __iomem *addr);
#define writew(v,b) __writew(v,b)
#define writel(v,b) __writel(v,b)

#define __arch_ioremap(cookie,sz,c) ((void __iomem *)(cookie))
#define __arch_iounmap(cookie) do { } while (0)
static inline void __iomem *__arch_ioremap(unsigned long cookie, size_t size,
unsigned int flags)
{
return (void __iomem *)cookie;
}

#define __arch_ioremap __arch_ioremap
#define __arch_iounmap(cookie) do { } while (0)

extern void insb(unsigned int port, void *buf, int sz);
extern void insw(unsigned int port, void *buf, int sz);
Expand Down

0 comments on commit cc863c9

Please sign in to comment.