From b2f4074620cc8965457c2461860363c1800bf424 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 17 Jul 2011 13:57:44 +0800 Subject: [PATCH] mips: add readb/w/l and writeb/w/l support needed by cfi driver as example Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/mips/include/asm/io.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index 97ea231..51a5340 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -62,4 +62,12 @@ static inline void __raw_writel(u32 b, volatile void __iomem *addr) } #endif +#define writeb(v,a) __raw_writeb(v,a) +#define writew(v,a) __raw_writew(v,a) +#define writel(v,a) __raw_writel(v,a) + +#define readb(a) __raw_readb(a) +#define readw(a) __raw_readw(a) +#define readl(a) __raw_readl(a) + #endif /* __ASM_MIPS_IO_H */ -- 1.7.5.4