Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9477
b: refs/heads/master
c: a3ca066
h: refs/heads/master
i:
  9475: 9a81e0e
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 30, 2005
1 parent ae51b13 commit 862726c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 66df3bbf0701b7408a1067c4b819aceee2686bba
refs/heads/master: a3ca066efb18524bf3f07137a8f8ff434022c4f2
20 changes: 10 additions & 10 deletions trunk/include/asm-ppc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extern unsigned long pci_dram_offset;
* is actually performed (i.e. the data has come back) before we start
* executing any following instructions.
*/
extern inline int in_8(volatile unsigned char __iomem *addr)
extern inline int in_8(const volatile unsigned char __iomem *addr)
{
int ret;

Expand All @@ -72,7 +72,7 @@ extern inline void out_8(volatile unsigned char __iomem *addr, int val)
__asm__ __volatile__("stb%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
}

extern inline int in_le16(volatile unsigned short __iomem *addr)
extern inline int in_le16(const volatile unsigned short __iomem *addr)
{
int ret;

Expand All @@ -83,7 +83,7 @@ extern inline int in_le16(volatile unsigned short __iomem *addr)
return ret;
}

extern inline int in_be16(volatile unsigned short __iomem *addr)
extern inline int in_be16(const volatile unsigned short __iomem *addr)
{
int ret;

Expand All @@ -104,7 +104,7 @@ extern inline void out_be16(volatile unsigned short __iomem *addr, int val)
__asm__ __volatile__("sth%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
}

extern inline unsigned in_le32(volatile unsigned __iomem *addr)
extern inline unsigned in_le32(const volatile unsigned __iomem *addr)
{
unsigned ret;

Expand All @@ -115,7 +115,7 @@ extern inline unsigned in_le32(volatile unsigned __iomem *addr)
return ret;
}

extern inline unsigned in_be32(volatile unsigned __iomem *addr)
extern inline unsigned in_be32(const volatile unsigned __iomem *addr)
{
unsigned ret;

Expand All @@ -139,7 +139,7 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
#define readb(addr) in_8((volatile u8 *)(addr))
#define writeb(b,addr) out_8((volatile u8 *)(addr), (b))
#else
static inline __u8 readb(volatile void __iomem *addr)
static inline __u8 readb(const volatile void __iomem *addr)
{
return in_8(addr);
}
Expand All @@ -150,11 +150,11 @@ static inline void writeb(__u8 b, volatile void __iomem *addr)
#endif

#if defined(CONFIG_APUS)
static inline __u16 readw(volatile void __iomem *addr)
static inline __u16 readw(const volatile void __iomem *addr)
{
return *(__force volatile __u16 *)(addr);
}
static inline __u32 readl(volatile void __iomem *addr)
static inline __u32 readl(const volatile void __iomem *addr)
{
return *(__force volatile __u32 *)(addr);
}
Expand All @@ -173,11 +173,11 @@ static inline void writel(__u32 b, volatile void __iomem *addr)
#define writew(b,addr) out_le16((volatile u16 *)(addr),(b))
#define writel(b,addr) out_le32((volatile u32 *)(addr),(b))
#else
static inline __u16 readw(volatile void __iomem *addr)
static inline __u16 readw(const volatile void __iomem *addr)
{
return in_le16(addr);
}
static inline __u32 readl(volatile void __iomem *addr)
static inline __u32 readl(const volatile void __iomem *addr)
{
return in_le32(addr);
}
Expand Down

0 comments on commit 862726c

Please sign in to comment.