diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-05 00:26:54 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-05 00:26:54 (GMT) |
commit | bf53974c2ddae678d7660f2b5ccfeb0732b6f5dc (patch) | |
tree | 5a7dcff3a2c5433e911354f6beb58de31ba68784 /include/asm-blackfin | |
parent | 24e02d0fd3acc50e73e1a3cdd567f0a77946f15d (diff) | |
download | u-boot-bf53974c2ddae678d7660f2b5ccfeb0732b6f5dc.tar.xz |
add missing __raw versions of Blackfin read/write io functions
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r-- | include/asm-blackfin/io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-blackfin/io.h b/include/asm-blackfin/io.h index 512e13d..5d42668 100644 --- a/include/asm-blackfin/io.h +++ b/include/asm-blackfin/io.h @@ -80,10 +80,16 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags) #define readb(addr) ({ unsigned char __v = (*(volatile unsigned char *) (addr));asm("ssync;"); __v; }) #define readw(addr) ({ unsigned short __v = (*(volatile unsigned short *) (addr)); asm("ssync;");__v; }) #define readl(addr) ({ unsigned int __v = (*(volatile unsigned int *) (addr));asm("ssync;"); __v; }) +#define __raw_readb readb +#define __raw_readw readw +#define __raw_readl readl #define writeb(b,addr) {((*(volatile unsigned char *) (addr)) = (b)); asm("ssync;");} #define writew(b,addr) {((*(volatile unsigned short *) (addr)) = (b)); asm("ssync;");} #define writel(b,addr) {((*(volatile unsigned int *) (addr)) = (b)); asm("ssync;");} +#define __raw_writeb writeb +#define __raw_writew writew +#define __raw_writel writel #define memset_io(a,b,c) memset((void *)(a),(b),(c)) #define memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c)) |