Commit 6da97790 authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Add __raw_ read/write ops to v850 io.h

parent 99782bcc
/* /*
* include/asm-v850/io.h -- Misc I/O operations * include/asm-v850/io.h -- Misc I/O operations
* *
* Copyright (C) 2001,02 NEC Corporation * Copyright (C) 2001,02,03 NEC Electronics Corporation
* Copyright (C) 2001,02 Miles Bader <miles@gnu.org> * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
* *
* This file is subject to the terms and conditions of the GNU General * This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this * Public License. See the file COPYING in the main directory of this
...@@ -30,6 +30,13 @@ ...@@ -30,6 +30,13 @@
#define writel(b, addr) \ #define writel(b, addr) \
(void)((*(volatile unsigned int *) (addr)) = (b)) (void)((*(volatile unsigned int *) (addr)) = (b))
#define __raw_readb readb
#define __raw_readw readw
#define __raw_readl readl
#define __raw_writeb writeb
#define __raw_writew writew
#define __raw_writel writel
#define inb(addr) readb (addr) #define inb(addr) readb (addr)
#define inw(addr) readw (addr) #define inw(addr) readw (addr)
#define inl(addr) readl (addr) #define inl(addr) readl (addr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment