Commit bf53974c2ddae678d7660f2b5ccfeb0732b6f5dc
1 parent
24e02d0fd3
add missing __raw versions of Blackfin read/write io functions
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
include/asm-blackfin/io.h
... | ... | @@ -80,10 +80,16 @@ |
80 | 80 | #define readb(addr) ({ unsigned char __v = (*(volatile unsigned char *) (addr));asm("ssync;"); __v; }) |
81 | 81 | #define readw(addr) ({ unsigned short __v = (*(volatile unsigned short *) (addr)); asm("ssync;");__v; }) |
82 | 82 | #define readl(addr) ({ unsigned int __v = (*(volatile unsigned int *) (addr));asm("ssync;"); __v; }) |
83 | +#define __raw_readb readb | |
84 | +#define __raw_readw readw | |
85 | +#define __raw_readl readl | |
83 | 86 | |
84 | 87 | #define writeb(b,addr) {((*(volatile unsigned char *) (addr)) = (b)); asm("ssync;");} |
85 | 88 | #define writew(b,addr) {((*(volatile unsigned short *) (addr)) = (b)); asm("ssync;");} |
86 | 89 | #define writel(b,addr) {((*(volatile unsigned int *) (addr)) = (b)); asm("ssync;");} |
90 | +#define __raw_writeb writeb | |
91 | +#define __raw_writew writew | |
92 | +#define __raw_writel writel | |
87 | 93 | |
88 | 94 | #define memset_io(a,b,c) memset((void *)(a),(b),(c)) |
89 | 95 | #define memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c)) |