2003-06-17 05:52:03

by Miles Bader

[permalink] [raw]
Subject: [PATCH][v850] Add __raw_ read/write ops to v850 io.h

diff -ruN -X../cludes linux-2.5.72-moo/include/asm-v850/io.h linux-2.5.72-moo-v850-20030617/include/asm-v850/io.h
--- linux-2.5.72-moo/include/asm-v850/io.h 2002-11-05 11:25:32.000000000 +0900
+++ linux-2.5.72-moo-v850-20030617/include/asm-v850/io.h 2003-06-17 14:23:12.000000000 +0900
@@ -1,8 +1,8 @@
/*
* include/asm-v850/io.h -- Misc I/O operations
*
- * Copyright (C) 2001,02 NEC Corporation
- * Copyright (C) 2001,02 Miles Bader <[email protected]>
+ * Copyright (C) 2001,02,03 NEC Electronics Corporation
+ * Copyright (C) 2001,02,03 Miles Bader <[email protected]>
*
* 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
@@ -30,6 +30,13 @@
#define writel(b, addr) \
(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 inw(addr) readw (addr)
#define inl(addr) readl (addr)