Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18913
b: refs/heads/master
c: ea1eae7
h: refs/heads/master
i:
  18911: e8906c1
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Jan 19, 2006
1 parent ba947c1 commit 0ceee80
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86c562a9d6683063e071692fe14e0a18e64ee1be
refs/heads/master: ea1eae75eb596e0628dc5e01d32c78b1f6b257fb
16 changes: 16 additions & 0 deletions trunk/include/asm-um/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0ceee80

Please sign in to comment.