summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-01-25 21:58:42 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-01-25 21:58:42 +0000
commitfaf934eaffd25a2b3a04041075d89ddfb6804769 (patch)
tree460be23d73e788b3cbeb05f60ad34060b8af6ddc /include/asm-mips64
parent11ec82eec8b39cc4e6f633724a5498aadf9e7ef3 (diff)
SN0ism: inw/outw used by scsi driver requires address swizzling.
inb/outb used by serial driver, doesn't need swizzling. May also need to update the outw_p/inw_p/outsw/insw if we have problems with them.
Diffstat (limited to 'include/asm-mips64')
-rw-r--r--include/asm-mips64/io.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-mips64/io.h b/include/asm-mips64/io.h
index e9df13a60..3114b1070 100644
--- a/include/asm-mips64/io.h
+++ b/include/asm-mips64/io.h
@@ -1,4 +1,4 @@
-/* $Id: io.h,v 1.2 1999/10/09 00:01:43 ralf Exp $
+/* $Id: io.h,v 1.3 2000/01/17 23:32:47 ralf Exp $
*
* 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 archive
@@ -306,14 +306,14 @@ __OUTS(w,l,4)
__inb_p(port))
#define outw(val,port) \
-((__builtin_constant_p((port)) && (port) < 32768) ? \
- __outwc((val),(port)) : \
- __outw((val),(port)))
+((__builtin_constant_p((port^2)) && (port^2) < 32768) ? \
+ __outwc((val),(port^2)) : \
+ __outw((val),(port^2)))
#define inw(port) \
-((__builtin_constant_p((port)) && (port) < 32768) ? \
- __inwc(port) : \
- __inw(port))
+((__builtin_constant_p((port^2)) && (port^2) < 32768) ? \
+ __inwc(port^2) : \
+ __inw(port^2))
#define outw_p(val,port) \
((__builtin_constant_p((port)) && (port) < 32768) ? \