Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/lib/libpci Fix handle typos/pastos in bus_space...



details:   https://anonhg.NetBSD.org/src/rev/74ec370cb689
branches:  trunk
changeset: 809954:74ec370cb689
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Aug 11 22:28:34 2015 +0000

description:
Fix handle typos/pastos in bus_space_barrier() calls

diffstat:

 sys/rump/dev/lib/libpci/rumpdev_bus_space.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 65b3a6faa9b1 -r 74ec370cb689 sys/rump/dev/lib/libpci/rumpdev_bus_space.c
--- a/sys/rump/dev/lib/libpci/rumpdev_bus_space.c       Tue Aug 11 18:15:41 2015 +0000
+++ b/sys/rump/dev/lib/libpci/rumpdev_bus_space.c       Tue Aug 11 22:28:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpdev_bus_space.c,v 1.5 2015/06/15 15:38:52 pooka Exp $      */
+/*     $NetBSD: rumpdev_bus_space.c,v 1.6 2015/08/11 22:28:34 pooka Exp $      */
 
 /*-
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -134,7 +134,7 @@
 
        while (count--) {
                *datap++ = bus_space_read_1(bst, bsh, offset);
-               bus_space_barrier(bst, bst, offset, 1, BUS_SPACE_BARRIER_READ);
+               bus_space_barrier(bst, bsh, offset, 1, BUS_SPACE_BARRIER_READ);
        }
 }
 
@@ -145,7 +145,7 @@
 
        while (count--) {
                *datap++ = bus_space_read_2(bst, bsh, offset);
-               bus_space_barrier(bst, bst, offset, 2, BUS_SPACE_BARRIER_READ);
+               bus_space_barrier(bst, bsh, offset, 2, BUS_SPACE_BARRIER_READ);
        }
 }
 
@@ -156,7 +156,7 @@
 
        while (count--) {
                *datap++ = bus_space_read_4(bst, bsh, offset);
-               bus_space_barrier(bst, bst, offset, 4, BUS_SPACE_BARRIER_READ);
+               bus_space_barrier(bst, bsh, offset, 4, BUS_SPACE_BARRIER_READ);
        }
 }
 
@@ -220,7 +220,7 @@
                const uint8_t value = *datap++;
 
                bus_space_write_1(bst, bsh, offset, value);
-               bus_space_barrier(bst, bst, offset, 1, BUS_SPACE_BARRIER_WRITE);
+               bus_space_barrier(bst, bsh, offset, 1, BUS_SPACE_BARRIER_WRITE);
        }
 }
 
@@ -233,7 +233,7 @@
                const uint16_t value = *datap++;
 
                bus_space_write_2(bst, bsh, offset, value);
-               bus_space_barrier(bst, bst, offset, 2, BUS_SPACE_BARRIER_WRITE);
+               bus_space_barrier(bst, bsh, offset, 2, BUS_SPACE_BARRIER_WRITE);
        }
 }
 
@@ -246,7 +246,7 @@
                const uint32_t value = *datap++;
 
                bus_space_write_4(bst, bsh, offset, value);
-               bus_space_barrier(bst, bst, offset, 4, BUS_SPACE_BARRIER_WRITE);
+               bus_space_barrier(bst, bsh, offset, 4, BUS_SPACE_BARRIER_WRITE);
        }
 }
 



Home | Main Index | Thread Index | Old Index