From 0ceee8034a55471a47b168066fbbbbee1efd30bf Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Wed, 18 Jan 2006 17:42:38 -0800 Subject: [PATCH] --- yaml --- r: 18913 b: refs/heads/master c: ea1eae75eb596e0628dc5e01d32c78b1f6b257fb h: refs/heads/master i: 18911: e8906c1f7e057c5cf79a0722cb824768cc8cd3ec v: v3 --- [refs] | 2 +- trunk/include/asm-um/io.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 66e636d767e3..1c248037478f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 86c562a9d6683063e071692fe14e0a18e64ee1be +refs/heads/master: ea1eae75eb596e0628dc5e01d32c78b1f6b257fb diff --git a/trunk/include/asm-um/io.h b/trunk/include/asm-um/io.h index 90674056dcef..1934d9340e2c 100644 --- a/trunk/include/asm-um/io.h +++ b/trunk/include/asm-um/io.h @@ -33,4 +33,20 @@ static inline void * phys_to_virt(unsigned long address) */ #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