Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/include Fix bus_space_write_multi_N.



details:   https://anonhg.NetBSD.org/src/rev/a89cd4f927a8
branches:  trunk
changeset: 500992:a89cd4f927a8
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Thu Dec 21 23:17:32 2000 +0000

description:
Fix bus_space_write_multi_N.
(From der Mouse <mouse%Rodents.Montreal.QC.CA@localhost>)

diffstat:

 sys/arch/macppc/include/bus.h |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 3cb361fe0fa1 -r a89cd4f927a8 sys/arch/macppc/include/bus.h
--- a/sys/arch/macppc/include/bus.h     Thu Dec 21 23:05:47 2000 +0000
+++ b/sys/arch/macppc/include/bus.h     Thu Dec 21 23:17:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.10 2000/06/26 04:55:49 simonb Exp $  */
+/*     $NetBSD: bus.h,v 1.11 2000/12/21 23:17:32 tsubai Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -359,27 +359,31 @@
  */
 
 #define bus_space_write_multi_1(t, h, o, a, c) do {                    \
-               outsb(__BA(t, h, o), (a), (c));                         \
+               outs8(__BA(t, h, o), (a), (c));                         \
        } while (0)
 
 #define bus_space_write_multi_2(t, h, o, a, c) do {                    \
-               outsw(__BA(t, h, o), (a), (c));                         \
+               outs16rb(__BA(t, h, o), (a), (c));                              \
        } while (0)
 
 #define bus_space_write_multi_4(t, h, o, a, c) do {                    \
-               outsl(__BA(t, h, o), (a), (c));                         \
+               outs32rb(__BA(t, h, o), (a), (c));                              \
        } while (0)
 
 #if 0
 #define bus_space_write_multi_8                !!! unimplemented !!!
 #endif
 
+#define bus_space_write_multi_stream_1(t, h, o, a, c) do {             \
+               outs8(__BA(t, h, o), (a), (c));                         \
+       } while (0)
+
 #define bus_space_write_multi_stream_2(t, h, o, a, c) do {             \
-               outsw(__BA(t, h, o), (a), (c));                         \
+               outs16(__BA(t, h, o), (a), (c));                                \
        } while (0)
 
 #define bus_space_write_multi_stream_4(t, h, o, a, c) do {             \
-               outsl(__BA(t, h, o), (a), (c));                         \
+               outs32(__BA(t, h, o), (a), (c));                                \
        } while (0)
 
 #if 0



Home | Main Index | Thread Index | Old Index