From: Jeff Dike Add implementations of the write* and __raw_write* functions. __raw_writel is needed by lib/iocopy.c, which shouldn't be used in UML, but which is unconditionally linked in anyway. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton --- include/asm-um/io.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+) diff -puN include/asm-um/io.h~uml-add-__raw_writel-definition include/asm-um/io.h --- devel/include/asm-um/io.h~uml-add-__raw_writel-definition 2006-01-15 23:50:33.000000000 -0800 +++ devel-akpm/include/asm-um/io.h 2006-01-15 23:50:33.000000000 -0800 @@ -33,4 +33,20 @@ static inline void * phys_to_virt(unsign */ #define xlate_dev_kmem_ptr(p) p +static inline void writeb(unsigned char b, volatile void __iomem *addr) +{ + *(volatile unsigned char __force *) addr = b; +} +static inline void writew(unsigned short b, volatile void __iomem *addr) +{ + *(volatile unsigned short __force *) addr = b; +} +static inline void writel(unsigned int b, volatile void __iomem *addr) +{ + *(volatile unsigned int __force *) addr = b; +} +#define __raw_writeb writeb +#define __raw_writew writew +#define __raw_writel writel + #endif _